/* Variables CSS Globales */
:root {
  /* Color Base */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --accent-color: #a67c52;
  --text-primary: #f5f5f5;
  --text-secondary: #d1d1d1;

  /* === DEPTH DESIGN: Color Layering System === */
  /* Capas de profundidad - del más profundo al más elevado */
  --bg-deep: #050505; /* Capa más profunda */
  --bg-base: #0a0a0a; /* Capa base (primary-bg) */
  --bg-elevated: #141414; /* Capa elevada (+0.1 lightness) */
  --bg-surface: #1a1a1a; /* Superficie interactiva (+0.15 lightness) */
  --bg-highlight: #202020; /* Elementos destacados (+0.2 lightness) */

  /* === DEPTH DESIGN: Shadow System === */
  /* Sombras realistas combinadas (clara arriba + oscura abajo) */
  --shadow-subtle-top: 0 -1px 2px rgba(255, 255, 255, 0.03);
  --shadow-subtle-bottom: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-subtle: var(--shadow-subtle-top), var(--shadow-subtle-bottom);

  --shadow-medium-top: 0 -2px 4px rgba(255, 255, 255, 0.04);
  --shadow-medium-bottom: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-medium: var(--shadow-medium-top), var(--shadow-medium-bottom);

  --shadow-elevated-top: 0 -3px 6px rgba(255, 255, 255, 0.05);
  --shadow-elevated-bottom: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-elevated: var(--shadow-elevated-top), var(--shadow-elevated-bottom);

  --shadow-prominent-top: 0 -4px 8px rgba(255, 255, 255, 0.06);
  --shadow-prominent-bottom: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-prominent: var(--shadow-prominent-top),
    var(--shadow-prominent-bottom);

  /* Sombras interiores (efecto hundido) */
  --inset-shadow-top: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --inset-shadow-bottom: inset 0 -1px 2px rgba(255, 255, 255, 0.02);
  --inset-shadow: var(--inset-shadow-top), var(--inset-shadow-bottom);

  /* Resplandor para elementos destacados */
  --glow-accent: 0 0 20px rgba(166, 124, 82, 0.3);
  --glow-accent-strong: 0 0 30px rgba(166, 124, 82, 0.5);
}

/* Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos Base del Body */
body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Estilos para Encabezados */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Contenedor Principal */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Contenedor del Header */
.header-container {
  display: flex;
  align-items: center;
  position: relative;
}

/* --- Navegación --- */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    padding 0.3s ease;
  background-color: rgba(10, 10, 10, 0);
}

.nav-scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;

  /* === DEPTH DESIGN: Navigation Depth === */
  box-shadow: var(--shadow-elevated), 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-size: 1.4rem;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  margin: 0 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.lang-button-container {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
  --parallax-offset: 0px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/hero.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  animation: heroZoom 45s linear infinite alternate;
  transform: translateY(var(--parallax-offset));
  will-change: transform;
}

@keyframes heroZoom {
  0% {
    transform: scale(1) translateY(var(--parallax-offset));
  }
  100% {
    transform: scale(1.05) translateY(var(--parallax-offset));
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  margin-left: 5%;
  padding-top: 0;
  margin-top: -3vh;
  width: 100%;
}

.hero-content h2 {
  font-size: 4rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
  
  /* === DEPTH DESIGN: Text Elevation === */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 1s;
  line-height: 1.3;
  
  /* === DEPTH DESIGN: Text Elevation === */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(255, 255, 255, 0.05);
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid var(--accent-color);
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeUp 1s forwards 1.5s;

  /* === DEPTH DESIGN: Elevated Button === */
  background: linear-gradient(
    180deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-elevated);
  border-radius: 4px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Shiny highlight effect (luz desde arriba) */
.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-btn:hover {
  /* === DEPTH DESIGN: Maximum Elevation on Hover === */
  background: linear-gradient(180deg, var(--accent-color) 0%, #8f6943 100%);
  color: var(--primary-bg);
  transform: translateY(-4px);
  box-shadow: var(--shadow-prominent), var(--glow-accent-strong);
  border-color: var(--accent-color);
}

.hero-btn:hover::before {
  opacity: 1.5;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Títulos de Sección --- */
.section-title {
  font-size: 3rem;
  margin: 4rem auto 3rem auto;
  position: relative;
  display: block;
  text-align: center;
}

#contact .section-title {
  margin-top: 0;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--accent-color);
}

/* --- Sección Galería --- */
.gallery {
  padding: 6rem 0 4rem 0;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;

  /* === DEPTH DESIGN: Elevated Card === */
  background: var(--bg-elevated);
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* === DEPTH DESIGN: Gallery Item Hover Elevation === */
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-prominent), var(--glow-accent);
  background: var(--bg-surface);
}

/* --- Modal de Imagen OPTIMIZADO --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 95%;
  height: auto;
  min-height: 60vh;
  max-width: 1300px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  overflow: hidden;

  /* === DEPTH DESIGN: Modal Elevation === */
  background: linear-gradient(
    145deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-prominent), 0 0 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-img {
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
  z-index: 1;
}

.modal-details {
  position: relative;
  width: 100%;
  max-width: 800px;
  flex-grow: 0;
  flex-shrink: 0;
  min-height: 0;
  padding: 0 0.5rem 0.5rem 0.5rem;
  color: var(--text-primary);
  margin: 0 auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;

  /* === DEPTH DESIGN: Close Button Elevation === */
  background: linear-gradient(
    135deg,
    var(--bg-highlight) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
  color: var(--accent-color);
  background: var(--bg-highlight);
  box-shadow: var(--shadow-elevated), var(--glow-accent);
  transform: rotate(90deg) scale(1.1);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: "Cormorant Garamond", serif;
}

.modal-category {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.modal-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
  padding: 0 10px;
}

.modal-nav-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav-btn:hover {
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.6);
}

/* --- Layouts Específicos para Desktop --- */
@media (min-width: 769px) {
  /* Layout Vertical - MANTENER COMO ESTÁ */
  .modal-content.layout-vertical {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    max-width: 1300px;
    background-color: var(--secondary-bg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    overflow: hidden;
    position: relative;
    width: 95%;
    height: auto;
    min-height: 60vh;
    max-height: 95vh;
  }

  .modal-content.layout-vertical .modal-img {
    flex: 0 0 55%;
    max-width: 55%;
    max-height: 90vh;
    width: auto;
    position: static;
    z-index: 1;
    border-radius: 4px;
    object-fit: contain;
  }

  .modal-content.layout-vertical .modal-details {
    flex: 1 1 45%;
    max-width: 45%;
    height: auto;
    max-height: 90vh;
    overflow-y: auto; /* MANTENER scroll solo en verticales */
    padding: 0.5rem;
    text-align: left;
    margin: 0;
    display: block;
  }

  .modal-content.layout-vertical .modal-title,
  .modal-content.layout-vertical .modal-category {
    text-align: left;
  }

  .modal-content.layout-vertical .modal-description {
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Layout Horizontal OPTIMIZADO - SIN SCROLL */
  .modal-content:not(.layout-vertical) {
    padding: 1rem;
    background-color: var(--secondary-bg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-width: 1300px;
    max-height: 95vh;
    min-height: 60vh;
    overflow: hidden;
    width: 95%;
    height: auto;
    gap: 0.8rem; /* Reducido para más espacio */
    align-items: center;
    flex-direction: column;
  }

  .modal-content:not(.layout-vertical) .modal-img {
    position: static;
    z-index: 1;
    max-width: 100%;
    max-height: 62vh; /* OPTIMIZADO: Reducido de 75vh */
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .modal-content:not(.layout-vertical) .modal-details {
    display: block;
    width: 100%;
    max-width: 900px; /* Ligeramente más ancho */
    height: auto;
    max-height: 30vh; /* NUEVO: Altura máxima fija */
    overflow: hidden; /* SIN SCROLL */
    padding: 0.5rem 1rem;
    margin: 0 auto;
    text-align: left;
  }

  /* Optimización Tipográfica para Layout Horizontal */
  .modal-content:not(.layout-vertical) .modal-title {
    font-size: 1.35rem; /* Optimizado */
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }

  .modal-content:not(.layout-vertical) .modal-category {
    font-size: 0.8rem; /* Optimizado */
    margin-bottom: 0.6rem;
    line-height: 1.1;
  }

  .modal-content:not(.layout-vertical) .modal-description {
    font-size: 0.88rem; /* Optimizado */
    line-height: 1.45; /* Más compacto */
    text-align: justify;
    hyphens: auto;
    overflow: hidden;
    /* Efecto fade-out sutil para texto largo */
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  }

  /* Alineación general */
  .modal-details {
    text-align: left;
  }

  .modal-content:not(.layout-vertical) .modal-title,
  .modal-content:not(.layout-vertical) .modal-category {
    text-align: left;
  }
}

/* --- Sección About --- */
.about {
  padding: 4rem 0 8rem 0;
  background-color: var(--secondary-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-container {
  text-align: center;
}

.about-img {
  width: 100%;
  max-width: 450px;
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  background-color: var(--primary-bg);
  display: inline-block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: justify;
}

/* --- Sección Contact --- */
.contact {
  padding: 8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: flex-start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
  width: 25px;
  text-align: center;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-text p,
.contact-text a {
  color: var(--text-secondary);
  text-decoration: none;
  word-break: break-word;
}

.contact-text a:hover {
  color: var(--accent-color);
}

.social-icons-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: "Montserrat", sans-serif;

  /* === DEPTH DESIGN: Inset Input Fields === */
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--inset-shadow);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--bg-base);
  box-shadow: var(--inset-shadow), 0 0 0 3px rgba(166, 124, 82, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-button {
  padding: 1rem 2rem;
  border: 2px solid var(--accent-color);
  color: var(--text-primary);
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  justify-self: start;
  border-radius: 6px;

  /* === DEPTH DESIGN: Form Submit Button === */
  background: linear-gradient(
    180deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.form-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.form-button:hover {
  background: linear-gradient(180deg, var(--accent-color) 0%, #8f6943 100%);
  color: var(--primary-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated), var(--glow-accent);
}

.form-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0;
  background-color: var(--secondary-bg);
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 3px;
  font-family: "Cormorant Garamond", serif;
}

.footer-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;

  /* === DEPTH DESIGN: Social Icons === */
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8f6943 100%);
  color: var(--primary-bg);
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated), var(--glow-accent);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 999999;
  display: none;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === DEPTH DESIGN: Elevated Toast === */
  background: linear-gradient(
    135deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  border: 1px solid var(--accent-color);
  box-shadow: var(--shadow-elevated), var(--glow-accent);
}

.toast.show {
  display: flex !important;
  opacity: 1;
  transform: translateX(0);
}

.toast i {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.toast span {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Copy Email Button --- */
.copy-email-btn {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.copy-email-btn:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8f6943 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium), var(--glow-accent);
}

.copy-email-btn:active {
  transform: translateY(0);
}

.copy-email-btn i {
  font-size: 0.9rem;
}

/* --- Utilidades --- */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  max-width: 100%;
  height: auto;
  display: block;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 999;
  font-size: 1.2rem;

  /* === DEPTH DESIGN: Floating Button === */
  background: linear-gradient(
    135deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-elevated);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  background: linear-gradient(135deg, 
    var(--accent-color) 0%, 
    #8f6943 100%);
  color: #ffffff !important;
  transform: translateY(-6px);
  box-shadow: var(--shadow-prominent), var(--glow-accent-strong);
  border-color: var(--accent-color);
}
/* --- Featured Projects Section --- */
.featured-projects {
  padding: 8rem 0;
  background: linear-gradient(
    180deg,
    var(--primary-bg) 0%,
    var(--secondary-bg) 100%
  );
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;

  /* === DEPTH DESIGN: Project Card Elevation === */
  background: linear-gradient(
    145deg,
    var(--bg-elevated) 0%,
    var(--bg-base) 100%
  );
  border: 1px solid rgba(166, 124, 82, 0.2);
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: linear-gradient(
    145deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%
  );
  box-shadow: var(--shadow-prominent), var(--glow-accent);
}

.project-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #000;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(166, 124, 82, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.project-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.play-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 5px;
  color: var(--primary-bg);
  transition: transform 0.3s ease;
}

.project-card:hover .play-icon {
  transform: scale(1.1);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.project-cta {
  color: var(--accent-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

/* --- Contra Button Styling --- */
.contact-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(166, 124, 82, 0.2);
}

.contact-cta h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contra-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.contra-hire-me-button {
  filter: none;
  transition: transform 0.3s ease;
}

.contra-hire-me-button:hover {
  transform: translateY(-3px);
}

.contra-inline-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.contact-item .contra-hire-me-button {
  transform: scale(0.9);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.contact-item .contra-hire-me-button:hover {
  transform: scale(0.9) translateY(-2px);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  #contact .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 0;
  }

  .contact-info {
    justify-content: flex-start;
  }

  .social-icons-container {
    justify-content: center;
  }

  .about-img-container {
    order: -1;
    text-align: center;
  }

  .about-img {
    max-width: 70%;
    margin: 0 auto;
  }

  .modal-content {
    max-width: 85%;
    padding: 1rem;
    min-height: 50vh;
  }

  .modal-img {
    max-height: 65vh;
  }

  .modal-details {
    max-width: 95%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    letter-spacing: 0.5px;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .section-title {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  #contact .section-title {
    margin-bottom: 2rem;
  }

  .hero::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-content h2,
  .hero-subtitle,
  .hero-btn {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  }

  .hero-content {
    padding: 0 1rem;
    margin-left: 0;
    text-align: left;
    padding-top: 13vh;
  }

  .contact-grid {
    gap: 2.5rem;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 0 0.5rem;
  }

  .modal-nav {
    padding: 0 0.5rem;
  }

  .modal-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .social-icons-container {
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Modal móvil */
  .modal-content {
    width: 95%;
    height: 90vh;
    max-height: 90vh;
    padding: 1rem;
    gap: 0.5rem;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }

  .modal-img {
    max-height: 50vh;
    flex-shrink: 0;
  }

  .modal-details {
    width: 100%;
    text-align: left;
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem;
    margin: 0;
    max-width: 100%;
  }

  .modal-description {
    text-align: left;
    font-size: 0.9rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
  }

  .modal-nav {
    width: 100%;
    max-width: none;
    left: 0;
    transform: translateY(-50%);
    padding: 0 0.5rem;
  }

  .featured-projects {
    padding: 4rem 0;
  }

  .project-image {
    height: 250px;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.5rem;
  }

  .video-container {
    max-width: 100%;
  }

  .video-close {
    top: 10px;
    right: 10px;
  }

  .contra-inline-container {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .contact-item .contra-hire-me-button {
    transform: scale(1);
    transform-origin: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .hero-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
  }

  .hero-content {
    padding-top: 10vh;
  }

  .gallery {
    padding: 4rem 0;
  }

  .gallery-grid {
    column-count: 1;
    gap: 1rem;
  }

  .gallery-item {
    margin-bottom: 1rem;
  }

  .about {
    padding: 4rem 0;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-img {
    max-width: 80%;
  }

  .about-content h3 {
    font-size: 1.8rem;
  }

  .contact {
    padding: 4rem 0;
  }

  .contact-form {
    padding: 0;
  }

  .nav-container {
    padding: 0.5rem 0;
  }

  .nav-container.nav-scrolled {
    padding: 0.3rem 0;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0.5rem 0 0;
    margin-top: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    column-gap: 0.8rem;
    flex-grow: 1;
    padding: 0.3rem 0;
    margin-top: 0;
  }

  .nav-link {
    margin: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.2rem 0;
  }

  .nav-link::after {
    display: none;
  }

  .lang-button-container {
    margin-left: 0.5rem;
    flex-shrink: 0;
    position: static;
    transform: none;
  }

  #languageToggle {
    font-size: 10px;
    padding: 0.2rem 0.4rem;
  }

  .footer {
    padding: 3rem 0;
  }

  .footer-nav {
    gap: 0.3rem 0.8rem;
    margin-bottom: 1.5rem;
  }

  .footer-link {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.8rem;
  }

  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    right: 15px;
    bottom: 15px;
  }

  .projects-grid {
    margin-top: 2rem;
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 200px;
  }
}

@media (min-width: 1600px) {
  body {
    font-size: 17px;
  }

  .container {
    max-width: 1540px;
  }

  .hero-content h2 {
    font-size: 5.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
    line-height: 1.2;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .nav-link {
    font-size: 1.6rem;
  }

  .modal-nav {
    max-width: 1500px;
  }

  .modal-content.layout-vertical {
    max-width: 1300px;
    gap: 2rem;
  }

  .modal-content.layout-vertical .modal-img {
    flex-basis: 55%;
    max-width: 55%;
  }

  .modal-content.layout-vertical .modal-details {
    flex-basis: 45%;
    max-width: 45%;
  }

  .modal-content:not(.layout-vertical) {
    max-width: 1400px;
  }

  .modal-content:not(.layout-vertical) .modal-img {
    max-height: 80vh;
  }

  .modal-content:not(.layout-vertical) .modal-details {
    max-width: 1000px;
  }
}

@media (min-width: 769px) {
  .nav-link {
    font-size: 1.4rem;
    margin: 0 1.5rem;
  }

  .nav-link::after {
    display: block;
  }

  .header-container {
    flex-direction: row;
    padding: 0 1.5rem;
    justify-content: center;
  }

  .header-top {
    width: auto;
    padding: 0;
    justify-content: center;
    flex-grow: 1;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
    padding: 0;
    flex-grow: 0;
  }

  .contact-info {
    justify-content: flex-start;
  }

  .social-icons-container {
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .lang-button-container {
    margin-left: 1rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .modal-nav {
    max-width: 95%;
  }

  .modal-details {
    text-align: left;
  }

  .modal-content:not(.layout-vertical) .modal-title,
  .modal-content:not(.layout-vertical) .modal-category {
    text-align: left;
  }

  .modal-img {
    max-height: 75vh;
  }

  .modal-content.layout-vertical .modal-details {
    text-align: left;
  }
}
/* Layout Horizontal OPTIMIZADO - SIN SCROLL - VERSIÓN 2 */
@media (min-width: 769px) {
  /* ... mantén el layout vertical como está ... */

  /* Layout Horizontal - ELIMINAR SCROLL COMPLETAMENTE */
  .modal-content:not(.layout-vertical) {
    padding: 0.8rem;
    background-color: var(--secondary-bg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-width: 1300px;
    max-height: 95vh;
    min-height: 60vh;
    overflow: hidden;
    width: 95%;
    height: auto;
    gap: 0.5rem; /* Más reducido aún */
    align-items: center;
    flex-direction: column;
  }

  .modal-content:not(.layout-vertical) .modal-img {
    position: static;
    z-index: 1;
    max-width: 100%;
    max-height: 58vh; /* REDUCIDO AÚN MÁS */
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .modal-content:not(.layout-vertical) .modal-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 32vh; /* Ligeramente más espacio */
    overflow: hidden; /* CRÍTICO: Sin scroll */
    padding: 0.3rem 1rem;
    margin: 0 auto;
    text-align: left;
  }

  /* NUEVA ESTRATEGIA: Contenedor flexible para descripción */
  .modal-content:not(.layout-vertical) .modal-title {
    font-size: 1.25rem; /* Más pequeño */
    margin-bottom: 0.2rem;
    line-height: 1.15;
    flex-shrink: 0;
  }

  .modal-content:not(.layout-vertical) .modal-category {
    font-size: 0.75rem; /* Más pequeño */
    margin-bottom: 0.4rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .modal-content:not(.layout-vertical) .modal-description {
    font-size: 0.82rem; /* Más pequeño aún */
    line-height: 1.35; /* Más compacto */
    text-align: justify;
    hyphens: auto;
    overflow: hidden;
    flex: 1 1 auto; /* Ocupa el espacio restante */
    min-height: 0; /* Importante para flexbox */
    /* Efecto fade más pronunciado */
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 75%,
      transparent 95%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 75%,
      transparent 95%,
      transparent 100%
    );
  }
}

/* Para pantallas muy grandes, ajustar proporcionalmente */
@media (min-width: 1600px) {
  .modal-content:not(.layout-vertical) .modal-img {
    max-height: 60vh; /* Un poco más en pantallas grandes */
  }

  .modal-content:not(.layout-vertical) .modal-details {
    max-height: 34vh;
  }

  .modal-content:not(.layout-vertical) .modal-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
/* PARCHE TEMPORAL - Modal sin scroll */
@media (min-width: 769px) {
  .modal-content:not(.layout-vertical) {
    gap: 0.5rem !important;
  }

  .modal-content:not(.layout-vertical) .modal-img {
    max-height: 58vh !important;
  }

  .modal-content:not(.layout-vertical) .modal-details {
    max-height: 32vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .modal-content:not(.layout-vertical) .modal-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.2rem !important;
  }

  .modal-content:not(.layout-vertical) .modal-category {
    font-size: 0.75rem !important;
    margin-bottom: 0.4rem !important;
  }

  .modal-content:not(.layout-vertical) .modal-description {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    mask-image: linear-gradient(
      to bottom,
      black 75%,
      transparent 100%
    ) !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 75%,
      transparent 100%
    ) !important;
  }
}
/* PARCHE - Título superpuesto estilo Netflix */
@media (min-width: 769px) {
  .modal-content:not(.layout-vertical) {
    position: relative !important;
  }

  .modal-content:not(.layout-vertical) .modal-img {
    max-height: 75vh !important;
    position: relative !important;
  }

  /* Crear overlay oscuro en la parte inferior */
  .modal-content:not(.layout-vertical)::before {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 1) 0%,
      rgba(17, 17, 17, 0.8) 20%,
      transparent 60%
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }

  .modal-content:not(.layout-vertical) .modal-details {
    position: absolute !important;
    bottom: 1rem !important;
    left: 2rem !important;
    right: 2rem !important;
    z-index: 3 !important;
    max-height: 35% !important;
  }

  .modal-content:not(.layout-vertical) .modal-title,
  .modal-content:not(.layout-vertical) .modal-category {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  }

  .modal-content:not(.layout-vertical) .modal-description {
    color: rgba(255, 255, 255, 0.95) !important;
    max-height: 15vh !important;
    overflow: hidden !important;
  }
}
/* FADE OPTIMIZADO - Mejor legibilidad */
@media (min-width: 769px) {
  .modal-content:not(.layout-vertical) .modal-description {
    color: rgba(255, 255, 255, 0.95) !important;
    max-height: 15vh !important;
    overflow: hidden !important;
    /* Fade muy sutil solo en las últimas 2 líneas */
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 88%,
      /* 88% completamente legible */ rgba(0, 0, 0, 0.95) 94%,
      /* Fade muy suave */ rgba(0, 0, 0, 0.7) 98%,
      /* Un poco más de fade */ transparent 100%
    ) !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 88%,
      rgba(0, 0, 0, 0.95) 94%,
      rgba(0, 0, 0, 0.7) 98%,
      transparent 100%
    ) !important;
  }
}
/* MENÚ HAMBURGUESA PARA MÓVIL */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Animación X cuando está activo */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  width: 28px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  width: 28px;
}

/* Overlay del menú móvil */
.nav-menu-overlay {
  display: block;
}

@media (max-width: 768px) {
  /* Mostrar hamburguesa */
  .hamburger {
    display: block;
  }

  /* Header simplificado */
  .header-container {
    padding: 0 1rem;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Overlay fullscreen */
  .nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Menú vertical centrado */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
  }

  .nav-menu-overlay.active .nav-menu {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link:focus::after {
    width: 100%;
  }

  /* Botón de idioma en el header */
  .lang-button-container {
    position: absolute;
    right: 50px; /* Espacio para hamburguesa */
    top: 50%;
    transform: translateY(-50%);
  }

  #languageToggle {
    font-size: 11px;
    padding: 0.3rem 0.5rem;
  }
}

/* Bloquear scroll cuando menú está abierto */
body.menu-open {
  overflow: hidden;
}
