/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
    /* ── PALETA EDITORIAL MUTEADA (LINO CRUDO & LATÓN) ────────
       Lienzo más opaco para cero fatiga visual.
    ─────────────────────────────────────────────────────────── */

    /* Fondos — Lino Crudo (Sin brillo) */
    --ink:       #E8E3DB;   /* Fondo principal: Lino opaco / Avena */
    --ink2:      #F0ECE6;   /* Elevación suave (Nunca blanco puro) */
    --ink3:      #DDD7CD;   /* Tarjetas y hover states */
    --ink4:      #D1C9BE;   /* Fondos de inputs de formulario */
    --ink5:      #C2B8AA;   /* Elementos elevados oscuros */

    /* Acentos Principales — Latón Puro */
    --gold:      #9E7648;   /* Latón profundo (Para destacar sobre fondo claro) */
    --gold-lt:   #B88E5E;   /* Latón iluminado para hovers */
    --gold-dim:  rgba(158, 118, 72, 0.15); /* Resplandor latón */

    /* Textos — Grafito Absoluto */
    --cream:     #1F1D1B;   /* Texto principal (Grafito casi negro) */
    --cream-dim: rgba(31, 29, 27, 0.75); /* Párrafos y descripciones */

    /* Grises cálidos para UI secundaria */
    --muted:     #78736E;   /* Texto apagado y fechas */
    --muted2:    #948E87;   /* Subtítulos de portafolio y FAQ */
    --muted3:    #C2B8AA;   /* Placeholders del formulario */

    /* Bordes Arquitectónicos */
    --border:    rgba(31, 29, 27, 0.08); /* Líneas de separación muy finas */
    --border2:   rgba(158, 118, 72, 0.4); /* Bordes color latón activos */

    /* Tipografía y Curvas de Animación */
    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body:    'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(158, 118, 72, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out-expo), width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s;
}
.cursor.hover { width: 20px; height: 20px; }
.cursor-ring.hover { width: 56px; height: 56px; opacity: 0.5; }

/* ─── NOISE OVERLAY ────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1;
}

/* ─── NAVIGATION ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.75rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s, padding 0.4s;
}
nav.scrolled {
  background: rgba(232, 227, 219, 0.96);
  padding: 1.1rem 3.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 300;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted2);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.7rem !important;
  letter-spacing: 0.18em;
  color: var(--gold) !important;
  border: 1px solid var(--border2);
  padding: 0.55rem 1.4rem;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }
.nav-cta::after { display: none !important; }

/* CORRECCIÓN: Botón Hamburguesa Estructurado */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 501; /* Z-index mayor que el menú móvil */
}
.nav-burger span {
  display: block;
  width: 30px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(232, 227, 219, 0.98);
  z-index: 490;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-weight: 300;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── SECTION COMMON ───────────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  display: block;
  flex-shrink: 0;
}

/* ─── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 4rem 6rem;
  position: relative;
  z-index: 2;
}

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right-inner {
  position: absolute;
  inset: 0;
  background: var(--ink3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 7s var(--ease-out-expo);
  transform: scale(1.02);
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.06);
  z-index: 2;
}
.hero-right-inner:hover img { transform: scale(1.0); }
.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, transparent 40%);
}
.hero-right::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border2), transparent);
  z-index: 3;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 2rem;
  max-width: 640px;
}
.hero-h1 em {
  color: var(--gold);
  font-style: italic;
  display: block;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.35s, color 0.35s;
  cursor: none;
}
.btn-primary:hover { background: var(--gold); color: var(--ink); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted2);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: none;
}
.btn-ghost:hover { color: var(--cream); }
.btn-ghost svg { width: 18px; height: 18px; stroke: currentColor; }

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 40px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scanline 2s ease-in-out infinite;
}
@keyframes scanline {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ─── MARQUEE ───────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: var(--ink2);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 22s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 0 2rem;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.marquee-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SERVICES ─────────────────────────────────────────────── */
#servicios {
  padding: 8rem 3.5rem;
  position: relative;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.services-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.services-header h2 em {
  color: var(--gold);
  font-style: italic;
  display: block;
}
.services-header p {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.85;
  align-self: end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--ink);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}
.service-card:hover { background: var(--ink3); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--ff-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(31, 29, 27, 0.08); /* Ajustado a Lino Crudo */
  font-weight: 300;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
  display: block;
}
.service-card:hover .service-num { color: rgba(31, 29, 27, 0.15); }

.service-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: border-color 0.3s, background 0.3s;
}
.service-card:hover .service-icon { background: var(--gold-dim); border-color: var(--gold); }
.service-icon svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 1.3; fill: none; }

.service-title {
  font-family: var(--ff-display);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.2;
}
.service-desc {
  font-size: 0.83rem;
  color: var(--muted2);
  line-height: 1.85;
  margin-bottom: 1.8rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tag {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  transition: border-color 0.3s, color 0.3s;
}
.service-card:hover .service-tag { border-color: var(--border2); color: var(--muted3); }

/* ─── COVERFLOW CAROUSEL (PORTAFOLIO PURO SIN VIDEO) ──────────────── */
#galeria {
  padding: 6rem 3.5rem 8rem;
  position: relative;
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.gallery-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
}
.gallery-header h2 em { color: var(--gold); font-style: italic; }
.gallery-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s;
  font-weight: 300;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.coverflow-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 3rem auto 0;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.coverflow-slide {
  position: absolute;
  width: min(85%, 580px);
  height: 400px;
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), filter 0.7s var(--ease-out-expo);
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(0) scale(0.5) translateZ(-200px);
  z-index: 0;
  pointer-events: none; 
}
.coverflow-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink2);
  transition: filter 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imágenes Limpias */
.coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 0.7s var(--ease-out-expo);
  display: block;
}

/* Restauración del Placeholder */
.placeholder-slide {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.placeholder-slide svg {
  width: 32px; height: 32px;
  fill: none; stroke: var(--gold); stroke-width: 1.2;
  opacity: 0.6;
}
.placeholder-slide .ph-text {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--muted);
  font-style: italic;
  display: block;
}

.coverflow-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  text-transform: none;
  margin-top: -2rem;
  z-index: 10;
  text-shadow: 0 12px 35px rgba(31, 29, 27, 0.15); /* Sombra suave para fondo claro */
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}
.coverflow-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}
.coverflow-slide.filtered-out {
  opacity: 0 !important;
  transform: translateX(0) scale(0.3) translateZ(-500px) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* ESTADOS DE INTERACCIÓN (Habilitamos clics solo donde se debe) */
.coverflow-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1) translateZ(0);
  z-index: 5;
  pointer-events: auto; /* Permite clic para abrir el Lightbox */
}
.coverflow-slide.active .coverflow-img-wrapper {
  filter: blur(0) brightness(1);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.1);
}
.coverflow-slide.active .coverflow-title { opacity: 1; transform: none; }
.coverflow-slide.active .coverflow-subtitle { opacity: 0.8; }

.coverflow-slide.prev {
  opacity: 0.7;
  transform: translateX(-50%) scale(0.78) translateZ(-150px);
  z-index: 3;
  pointer-events: auto; /* Permite clic para centrarla */
}
.coverflow-slide.prev .coverflow-img-wrapper { filter: blur(3px) brightness(0.85); }

.coverflow-slide.next {
  opacity: 0.7;
  transform: translateX(50%) scale(0.78) translateZ(-150px);
  z-index: 3;
  pointer-events: auto; /* Permite clic para centrarla */
}
.coverflow-slide.next .coverflow-img-wrapper { filter: blur(3px) brightness(0.85); }

.coverflow-controls {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 20;
}
.cf-btn {
  background: transparent;
  border: 1px solid var(--border);
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s, background 0.3s;
}
.cf-btn svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  transition: transform 0.3s;
}
.cf-btn:hover { background: var(--gold-dim); border-color: var(--gold); }

.gallery-more {
  text-align: center;
  margin-top: 3rem;
}

/* ─── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(232, 227, 219, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: none;
}
.lightbox.open { display: flex; }

.lb-media {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-media img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  animation: lbEnter 0.45s var(--ease-out-expo) forwards;
}
@keyframes lbEnter {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-placeholder {
  width: min(80vw, 720px);
  height: min(75vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border2);
  background: var(--ink3);
  animation: lbEnter 0.45s var(--ease-out-expo) forwards;
}
.lb-placeholder .ph-text {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--muted);
  font-style: italic;
}
.lb-placeholder .ph-sub {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.lb-caption {
  position: absolute;
  bottom: -3.5rem;
  left: 0; right: 0;
  text-align: center;
}
.lb-caption-label {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.2rem;
}
.lb-caption-cat {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lb-close {
  position: fixed;
  top: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s, background 0.3s;
  z-index: 10;
}
.lb-close:hover { border-color: var(--gold); background: var(--gold-dim); }
.lb-close svg { width: 16px; height: 16px; stroke: var(--cream); fill: none; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(232, 227, 219, 0.85);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.lb-prev { left: 2rem; }
.lb-next { right: 2rem; }
.lb-prev:hover { transform: translateY(-50%) translateX(-4px); border-color: var(--gold); }
.lb-next:hover { transform: translateY(-50%) translateX(4px); border-color: var(--gold); }
.lb-prev svg, .lb-next svg { width: 20px; height: 20px; stroke: var(--cream); fill: none; }

.lb-counter {
  position: fixed;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.lb-counter span { color: var(--gold); }

/* ─── PRODUCCIÓN SONORA ───────────────────────── */
.produccion-section {
  padding: 8rem 3.5rem;
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.prod-inner { max-width: 1200px; margin: 0 auto; }
.prod-header { margin-bottom: 5rem; }
.prod-header h2 { font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 300; line-height: 1.1; color: var(--cream); }
.prod-header em { color: var(--gold); font-style: italic; }
.prod-desc { font-size: 0.9rem; color: var(--muted2); line-height: 1.85; max-width: 520px; margin-top: 1rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.prod-card { background: var(--ink2); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; min-height: 480px; transition: background 0.3s; }
.prod-card:hover { background: var(--ink3); }
.prod-card img { width: 100%; height: 240px; object-fit: cover; filter: brightness(0.9); transition: filter 0.3s; }
.prod-card:hover img { filter: brightness(1); }
.prod-card-content { padding: 1.2rem 2rem 2.5rem; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.prod-num { font-family: var(--ff-display); font-size: 2.2rem; color: var(--border2); font-weight:300; display:block; margin-bottom:0.2rem; line-height: 1; }
.prod-card h3 { font-family: var(--ff-display); font-size: 1.6rem; font-style: italic; font-weight: 300; color: var(--cream); margin-bottom: 1rem; }
.prod-card p { font-size: 0.85rem; color: var(--muted2); line-height: 1.8; }
.prod-tag { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-top: 2rem; display: block; }

/* ─── ABOUT ─────────────────────────────────────────────────── */
#nosotros {
  padding: 6rem 0 8rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 85vh;
  align-items: stretch;
}

.about-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink3);
  min-height: 600px;
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 8s var(--ease-out-expo);
}
.about-visual:hover img { transform: scale(1.03); }
.about-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--ink) 100%);
}
.about-badge {
  position: absolute;
  bottom: 3rem; right: -2rem;
  width: 130px; height: 130px;
  border: 1px solid var(--border2);
  background: rgba(232, 227, 219, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(8px);
}
.about-badge-num {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 0.4rem;
  text-align: center;
}

.about-content {
  padding: 6rem 5rem 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 2rem;
}
.about-content h2 em { color: var(--gold); font-style: italic; }
.about-content p {
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.9;
  margin-bottom: 1.4rem;
  max-width: 480px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── TESTIMONIOS (CARRUSEL DE DESVANECIMIENTO) ──────────────── */
#testimonios {
  padding: 8rem 3.5rem;
  position: relative;
  background: var(--ink2);
}
.testi-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}
.testi-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.testi-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative; 
}
.testi-stars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 2rem;
}
.testi-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}
.testi-text {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 2.5rem;
}
.testi-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.testi-event {
  font-size: 0.75rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.testi-controls {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

/* ─── FAQ ──────────────────────────────────────────────────── */
#faq {
  padding: 8rem 3.5rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}
.faq-header {
  margin-bottom: 4rem;
}
.faq-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
}
.faq-header h2 em { color: var(--gold); font-style: italic; }
.faq-header p {
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.85;
  max-width: 560px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.faq-item {
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--ink);
  transition: background 0.3s;
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item.open { background: var(--ink3); border-color: var(--border2); }
.faq-item.open + .faq-item { border-top-color: var(--border2); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 2rem;
  cursor: none;
  user-select: none;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--cream); }
.faq-q-text {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  flex: 1;
  transition: color 0.3s;
}
.faq-item.open .faq-q-text { color: var(--gold); }
.faq-q-num {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  letter-spacing: 0.1em;
  font-style: italic;
}
.faq-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out-expo);
}
.faq-item.open .faq-icon {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: rotate(45deg);
}
.faq-icon svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 2rem 2rem 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.faq-answer-inner p {
  font-size: 0.87rem;
  color: var(--muted2);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner strong {
  color: var(--cream);
  font-weight: 400;
}

.faq-cta {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--border2);
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.faq-cta-text {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cream);
  font-style: italic;
}
.faq-cta-text span { color: var(--gold); }

/* ─── CONTACT ───────────────────────────────────────────────── */
#contacto {
  padding: 8rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}
.contact-left h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.contact-left h2 em { color: var(--gold); font-style: italic; display: block; }
.contact-left p {
  font-size: 0.88rem;
  color: var(--muted2);
  line-height: 1.85;
  margin-bottom: 3rem;
  max-width: 380px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.contact-detail-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-detail-value {
  font-size: 0.88rem;
  color: var(--cream-dim);
}
.contact-social {
  display: flex;
  gap: 1rem;
}
.social-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
  cursor: none;
}
.social-btn:hover { border-color: var(--gold); background: var(--gold-dim); }
.social-btn svg { width: 16px; height: 16px; stroke: var(--muted2); fill: none; transition: stroke 0.3s; }
.social-btn:hover svg { stroke: var(--gold); }

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}
.form-group {
  position: relative;
  margin-bottom: 1px;
}
.form-group label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: top 0.3s, font-size 0.3s, color 0.3s;
  pointer-events: none;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--ink3);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  padding: 2rem 1.2rem 0.8rem;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--ink4);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label {
  top: 0.5rem;
  font-size: 0.6rem;
  color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }
.form-group select { color: var(--muted2); }
.form-group select option { background: var(--ink3); color: var(--cream); }
.form-group textarea { min-height: 130px; resize: none; }

.form-submit {
  margin-top: 1px;
  padding: 1.2rem 2rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.form-submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; transition: transform 0.3s; }
.form-submit:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.form-submit:hover svg { transform: translateX(4px); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 3.5rem 3.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--ink2);
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  font-weight: 300;
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-right {
  text-align: right;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ─── RESPONSIVE (CORREGIDO PARA MÓVILES Y FORMULARIO) ──────── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 50vw; min-height: 300px; }
  .hero-right-overlay { background: linear-gradient(to bottom, var(--ink) 0%, transparent 30%); }
  .hero-left { padding: 8rem 2rem 4rem; }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .coverflow-container { height: 460px; }
  .coverflow-slide { height: 340px; }
  .coverflow-slide.prev { transform: translateX(-40%) scale(0.8) translateZ(-100px); }
  .coverflow-slide.next { transform: translateX(40%) scale(0.8) translateZ(-100px); }
  #nosotros { grid-template-columns: 1fr; }
  .about-visual { min-height: 50vw; }
  .about-content { padding: 4rem 2rem; }
  .about-badge { right: 1rem; }
  #contacto { grid-template-columns: 1fr; gap: 4rem; padding: 6rem 2rem; }
  footer { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-nav { justify-content: center; }
  .footer-right { text-align: center; }
}

@media (max-width: 768px) {
  /* ── OPTIMIZACIÓN DE RENDIMIENTO MÓVIL ── */
  
  /* 1. Apagamos el motor matemático del ruido SVG */
  .noise { 
    display: none !important; 
  }
  
  /* 2. Destruimos el cursor personalizado y su consumo de JS en táctil */
  .cursor, .cursor-ring { 
    display: none !important; 
  }
  
  /* 3. Restauramos el toque nativo del celular */
  body, a, button, input, textarea, select, .cf-btn { 
    cursor: auto !important; 
  }

  /* 4. Apagamos los filtros en vivo de las texturas de fondo (Manos) */
  .bg-hand {
    filter: none !important;
    opacity: 0.03 !important; /* Mantenemos una opacidad muy baja nativa */
  }
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  #servicios, #galeria, #testimonios, .produccion-section { padding: 5rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .gallery-filter { justify-content: flex-start; }
  .coverflow-container { height: 400px; }
  .coverflow-slide { height: 280px; }
  .coverflow-slide.prev { transform: translateX(-30%) scale(0.75) translateZ(-100px); opacity: 0.4; }
  .coverflow-slide.next { transform: translateX(30%) scale(0.75) translateZ(-100px); opacity: 0.4; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  #faq { padding: 5rem 1.5rem; }
  .faq-question { padding: 1.4rem 1.2rem; }
  .faq-answer-inner { padding: 1.2rem; }
  .faq-cta { flex-direction: column; align-items: flex-start; }
  footer { padding: 2.5rem 1.5rem; }
  .testi-carousel { min-height: 380px; }

  /* Ajustes Tipográficos Celular */
  .hero-h1 { font-size: 2.8rem; }
  .services-header h2 { font-size: 2.5rem; }
  .contact-left h2 { font-size: 2.8rem; }
  .about-content h2 { font-size: 2.5rem; }

  /* CORRECCIÓN: El formulario ahora se apila en celulares */
  .form-row { grid-template-columns: 1fr; gap: 1px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 2.4rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}