/* ============================================================
   D RAÍZ PRODUCCIONES — Sistema de diseño
   Paleta: carbón + dorado. Motivo: raíces. Estilo cinematográfico.
   ============================================================ */

:root {
  --bg:        #0d0c0a;
  --bg-2:      #151310;
  --bg-3:      #1d1a15;
  --gold:      #d69a3c;
  --gold-soft: #e8b968;
  --gold-deep: #b47c25;
  --cream:     #f4efe6;
  --muted:     #a49a88;
  --line:      rgba(214,154,60,0.16);
  --shadow:    0 24px 60px rgba(0,0,0,0.55);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: #1a1408; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section { padding: clamp(72px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--gold); display: inline-block;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.h-xl  { font-size: clamp(2.8rem, 9vw, 6.2rem); }
.h-lg  { font-size: clamp(2.2rem, 6vw, 4rem); }
.h-md  { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.lead  { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.gold  { color: var(--gold); }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 34px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad);
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--gold); color: #1a1307; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(214,154,60,0.28); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-wa { background: #25d366; color: #0a2e17; }
.btn-wa:hover { background: #2ee06f; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,211,102,0.3); }
.btn-wa svg { width: 20px; height: 20px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.42);
  transition: transform .3s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.09); }
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 2; }

/* Etiqueta "¿Conversamos?": se despliega a la izquierda al pasar el ratón.
   El texto es decorativo (aria-hidden) porque el enlace ya se anuncia con su
   aria-label; así el lector de pantalla no lo dice dos veces. */
.wa-label {
  position: absolute; right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--bg-2); color: var(--cream);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 99px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  /* Sale de detrás del botón: se desliza hacia la izquierda mientras aparece. */
  opacity: 0; transform: translateX(14px) scale(.94); transform-origin: right center;
  pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
/* Pico que la une al botón. */
.wa-label::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px;
  background: var(--bg-2);
  border-right: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { opacity: 1; transform: translateX(0) scale(1); }
/* El icono saluda al desplegarse la etiqueta. */
.wa-float:hover svg { animation: wa-saludo .7s var(--ease); }
@keyframes wa-saludo {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg); }
  45% { transform: rotate(10deg); }
  70% { transform: rotate(-5deg); }
}
/* Sin puntero (móvil) no hay hover que valga: la etiqueta no aparece nunca y
   ocuparía pantalla sin motivo. */
@media (hover: none) { .wa-label { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wa-label { transition: opacity .2s linear; transform: none; }
  .wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { transform: none; }
  .wa-float:hover svg { animation: none; }
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: 1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  /* Por encima del menú móvil (105): el botón de cerrar vive aquí dentro y su
     propio z-index no sirve fuera de la cabecera. */
  position: fixed; top: 0; left: 0; width: 100%; z-index: 110;
  padding: 22px 0;
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13,12,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; z-index: 110; }
/* El logo incluye la raíz colgando bajo las letras, así que ocupa más alto
   que ancho: hace falta más altura que el logotipo anterior para que las
   letras se lean al mismo tamaño. */
.brand .logo { height: 66px; width: auto; flex: none; transition: height .5s var(--ease); }
.site-header.scrolled .brand .logo { height: 54px; }
.brand-sub { font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted); padding-left: 13px; border-left: 1px solid var(--line); }

.nav-links { display: flex; align-items: center; gap: 38px; margin-left: auto; margin-right: 34px; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--cream);
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.burger {
  display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; z-index: 110;
  /* 44×44 de zona táctil; el margen negativo mantiene el icono alineado. */
  padding: 13px 9px; margin-right: -9px;
}
.burger span { width: 26px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.2rem; padding: 10px 0; color: var(--cream); transition: color .3s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
/* El CTA es un .btn, pero ".mobile-menu a" le ganaba en especificidad y le
   ponía la serif de 2.2rem en crema: se salía de la píldora y apenas se leía. */
.mobile-menu .m-cta {
  margin-top: 26px; font-family: var(--sans); font-size: 0.9rem; color: #1a1307;
  padding: 16px 40px;
}
.mobile-menu .m-cta:hover { color: #1a1307; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 90px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(214,154,60,0.14), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(180,124,37,0.10), transparent 50%),
    linear-gradient(180deg, rgba(13,12,10,0.4) 0%, rgba(13,12,10,0.92) 100%);
}
.hero-grain { position: absolute; inset: 0; opacity: 0.05; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero h1 { margin: 8px 0 26px; }
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .roots { right: -40px; top: 8%; width: min(38vw, 430px); opacity: .6; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 40% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Raíces de fondo (/raices.svg, inyectado por main.js). Van ancladas al
   DOCUMENTO, no a la ventana: brotan del borde de la sección [data-raiz-inicio]
   y crecen hacia abajo desde ahí. Antes la capa era fija y el tronco nacía
   pegado a la cabecera, así que aparecía flotando en mitad de la pantalla sin
   salir de ningún sitio. El JS les pone top y height. z-index:1 las deja sobre
   el fondo de las secciones y bajo su contenido, que sube a 2 más abajo. */
.raices-capa {
  position: absolute; left: 0; width: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
  contain: layout paint; will-change: transform;
  display: flex; justify-content: center;
  /* Muy bajo: son una textura de fondo, nunca deben pelearse con el texto. */
  opacity: .14;
}
/* La escala la manda la ALTURA de la capa (que fija el JS), no el ancho de la
   ventana: con width:100% un monitor de 1440 px ampliaba el dibujo 1,8 veces.
   El ancho sale del viewBox; si no cabe, se recorta centrado. */
.raices-capa svg { height: 100%; width: auto; flex: none; display: block; }
@media (max-width: 720px) { .raices-capa { opacity: .11; } }
.raices-capa path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Más claro cuanto más fino: sobre el carbón el tronco queda como una sombra
   cálida y las puntas se acercan al dorado de marca. */
.raices-capa .root--w1   { stroke: #8f6a44; }
.raices-capa .root--w2   { stroke: #a8804f; }
.raices-capa .root--w3   { stroke: #c09660; }
.raices-capa .root--w4   { stroke: #d4ad78; }
.raices-capa .root--hair { stroke: #e2c391; stroke-width: .7; opacity: .45; }
/* El contenido pasa por delante de las raíces; el fondo de la sección, no. */
.section > .wrap, .page-hero > .wrap, .site-footer > .wrap, .marquee-track {
  position: relative; z-index: 2;
}

/* Animated roots motif */
.roots { position: absolute; z-index: 2; pointer-events: none; }
/* Cada hebra lleva pathLength="100", así que todas se dibujan al mismo ritmo
   aunque midan distinto. */
.roots path { stroke: var(--gold); stroke-width: 1.1; fill: none; opacity: 0.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: grow 3s var(--ease) forwards; }
.roots path:nth-child(2) { animation-delay: .25s; }
.roots path:nth-child(3) { animation-delay: .5s; }
.roots path:nth-child(4) { animation-delay: .75s; }
.roots path:nth-child(5) { animation-delay: 1s; }
.roots path:nth-child(6) { animation-delay: 1.25s; }
@media (prefers-reduced-motion: reduce) {
  .roots path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}
@keyframes grow { to { stroke-dashoffset: 0; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--muted); display: inline-flex; align-items: center; gap: 60px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 0.8em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal][data-delay="3"] { transition-delay: .36s; }
[data-reveal][data-delay="4"] { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .roots path { animation: none; stroke-dashoffset: 0; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { margin-top: 20px; }

/* ============================================================
   INTRO / ABOUT SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-3); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.05); }
.split-media .tag { position: absolute; left: 20px; bottom: 20px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); background: rgba(13,12,10,0.7); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 50px; border: 1px solid var(--line); }
.split-copy h2 { margin-bottom: 24px; }
.split-copy .lead { margin-bottom: 28px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 34px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat .lbl { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 8px; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.svc { background: var(--bg); padding: clamp(28px, 3.5vw, 44px); transition: background .5s var(--ease); position: relative; min-height: 260px; display: flex; flex-direction: column; }
.svc:hover { background: var(--bg-3); }
.svc .idx { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); opacity: 0.7; }
.svc .ico { width: 40px; height: 40px; color: var(--gold); margin: 18px 0 20px; }
.svc h3 { font-size: 1.5rem; margin-bottom: 12px; }
.svc p { font-size: 0.95rem; color: var(--muted); }
.svc .grow-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .6s var(--ease); }
.svc:hover .grow-line { width: 100%; }

/* Service detail rows (servicios page) */
.svc-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: clamp(20px,4vw,60px); align-items: start; padding: clamp(38px,5vw,58px) 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .rnum { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.svc-row h3 { font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: 14px; }
.svc-row .rmeta { color: var(--muted); }
.svc-row .rlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { font-size: 0.74rem; letter-spacing: 0.06em; padding: 7px 15px; border: 1px solid var(--line); border-radius: 50px; color: var(--muted); transition: color .3s, border-color .3s; }
.svc-row:hover .chip { color: var(--gold); border-color: var(--gold-deep); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 10px 22px; border-radius: 50px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .3s var(--ease); text-transform: uppercase;
}
.filter:hover { color: var(--cream); border-color: var(--gold-deep); }
.filter.active { background: var(--gold); color: #1a1307; border-color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-3);
  grid-column: span 4; aspect-ratio: 3/4; cursor: pointer;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work.wide { grid-column: span 8; aspect-ratio: 16/10; }
.work.tall { grid-column: span 4; aspect-ratio: 3/4; }
.work.hide { display: none; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(0.85) brightness(0.82); }
.work:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(0.92); }
.work-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(180deg, transparent 40%, rgba(13,12,10,0.9));
}
.work-info .cat { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.work-info h3 { font-size: 1.5rem; opacity: 0; transform: translateY(10px); transition: all .5s var(--ease) .05s; }
.work:hover .cat, .work:hover h3 { opacity: 1; transform: none; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.step { background: var(--bg); padding: clamp(28px,3.5vw,42px); transition: background .4s; }
.step:hover { background: var(--bg-3); }
.step .snum { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); opacity: 0.55; }
.step h3 { font-size: 1.35rem; margin: 6px 0 12px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(214,154,60,0.16), transparent 60%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { margin-bottom: 26px; }
.cta-band .lead { margin: 0 auto 38px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info h2 { margin-bottom: 22px; }
.contact-list { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-item .v { font-family: var(--serif); font-size: 1.4rem; }
.contact-item a.v { transition: color .3s; }
.contact-item a.v:hover { color: var(--gold); }


/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding: clamp(140px,20vh,220px) 0 clamp(50px,8vw,90px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 0%, rgba(214,154,60,0.12), transparent 45%); }
.page-hero h1 { margin: 10px 0 22px; }
.crumbs { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 8px; color: var(--gold-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(60px,8vw,90px) 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
/* Misma composición que la cabecera: logotipo y, separado por una línea, el
   "PRODUCCIONES". */
.footer-logo { display: inline-flex; align-items: center; gap: 13px; }
.footer-logo img { height: 86px; width: auto; flex: none; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-family: var(--sans); font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color .3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); gap: 16px; flex-wrap: wrap; }
/* Hueco para el botón flotante de WhatsApp, que va fijo abajo a la derecha y
   si no tapa el último enlace. */
.footer-bottom .socials { display: flex; gap: 18px; flex-wrap: wrap; padding-right: 76px; }
.footer-bottom .socials a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16/11; max-height: 460px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; }
  .svc-row .rnum { font-size: 1.4rem; }
  .work.wide { grid-column: span 12; aspect-ratio: 16/10; }
  .work, .work.tall { grid-column: span 6; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand .brand-sub { display: none; }   /* solo en la cabecera: en el pie sí cabe */
  .brand .logo { height: 56px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .gallery { gap: 12px; }
  .work, .work.tall, .work.wide { grid-column: span 12; aspect-ratio: 4/3; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .work-info .cat, .work-info h3 { opacity: 1; transform: none; }
  /* Bajo la cabecera: arriba del todo se cruzaba con el botón del menú. */
  .hero .roots { top: 17%; width: 44vw; opacity: .4; }
  /* Una fila que se desliza; llega a los bordes de la pantalla. */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px 36px; padding: 0 20px 4px;
  }
  .filter { flex: none; }
  /* Enlaces legales del pie con altura táctil razonable. */
  .footer-bottom .socials { gap: 4px 20px; }
  .footer-bottom .socials a { padding: 11px 0; }
}
/* En pantallas bajas o táctiles el indicador de scroll pisa los botones del
   hero, y en el móvil nadie necesita que le digan que deslice. */
@media (max-width: 620px), (max-height: 700px) {
  .hero-scroll { display: none; }
}

/* ============================================================
   PÁGINAS LEGALES (aviso legal, privacidad, cookies, gracias)
   ============================================================ */
.legal { max-width: 78ch; }
.legal .lead { max-width: none; margin-bottom: 12px; color: var(--cream); }
.legal-updated {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 34px;
}
.legal h2 {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600;
  color: var(--gold-soft); margin: 46px 0 14px; line-height: 1.25;
}
.legal h2:first-of-type { margin-top: 34px; }
.legal p { color: var(--muted); margin-bottom: 16px; }
.legal b { color: var(--cream); font-weight: 600; }
.legal a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal ul { list-style: none; margin: 0 0 20px; padding: 0; }
.legal ul li {
  color: var(--muted); position: relative; padding-left: 22px; margin-bottom: 10px;
}
.legal ul li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-size: 0.8rem;
}
