/* =============================================================
   ISMAEL PASTOR ARQUITECTURA — Cinematic Dark
   1.Tokens 2.Reset 3.Util 4.Tipo 5.Cursor/FX 6.Nav 7.Hero
   8.Marquee 9.Bloques 10.Estudio 11.Showcase 12.Feature
   13.Servicios 14.Contacto 15.Footer 16.Responsive 17.Reduced
   ============================================================= */

/* ============ 1. TOKENS ============ */
@property --s { syntax: "<number>"; inherits: false; initial-value: 1.08; }
:root {
  --bg:        #0d0c0a;   /* negro cálido cinematográfico */
  --bg-2:      #15130e;
  --bg-card:   #1c1913;
  --cream:     #f2ede3;   /* texto sobre oscuro (nunca blanco puro) */
  --cream-2:   #cfc7b6;
  --mute:      #8b8475;
  --accent:    #f29a1e;   /* naranja IPAU (marca) */
  --accent-2:  #f6b450;
  --line:      rgba(242,237,227,0.14);
  --line-2:    rgba(242,237,227,0.08);

  /* sección clara (estudio) */
  --light-bg:  #efece3;
  --light-ink: #16140f;
  --light-mute:#6f6b60;
  --light-line:rgba(22,20,15,0.14);

  --sans:    "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --pad: clamp(1.1rem, 4vw, 5rem);
  --nav-h: 76px;
}

/* ============ 2. RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%; tab-size: 2;
  overflow-x: clip;
  background: var(--bg);
  transition: background .9s var(--ease-out);
}
html[data-active-theme="light"] { background: var(--light-bg); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--cream); background: transparent;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.0; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ 3. UTILIDADES ============ */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cream); color: var(--bg); z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.kicker-idx { color: var(--accent); }
.kicker-light { color: var(--cream-2); }

.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .5rem; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .45; } }

/* ============ 4. TIPOGRAFÍA ============ */
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.7rem, 8.5vw, 8rem); line-height: .96; letter-spacing: -.04em; }
.hero-title em, .block-title em, .feature-title em { font-style: normal; color: var(--accent); }
.block-title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.0; letter-spacing: -.03em; max-width: 20ch; }
.feature-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 10vw, 7.5rem); line-height: .95; letter-spacing: -.04em; }

/* ============ 5. CURSOR / FX GLOBALES ============ */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px; }

/* Cursor estilo AutoCAD: cruz a pantalla completa + pickbox central */
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } .has-cursor, .has-cursor * { cursor: none !important; } .has-cursor input, .has-cursor textarea { cursor: text !important; } }
.cursor-line { position: fixed; top: 0; left: 0; background: #fff; will-change: transform; }
.cursor-h { width: 100vw; height: 1px; }
.cursor-v { width: 1px; height: 100vh; }
.cursor-box { position: fixed; top: 0; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border: 1px solid #fff; will-change: transform; transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out); }
.cursor.is-interactive .cursor-box { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 950; background: rgba(242,237,227,.08); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 0; transform: scaleX(0); }

/* SPLASH */
.splash { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-out); animation: splashSafety .01s 4.5s forwards; }
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: min(320px, 70vw); }
.splash-logo { width: min(220px, 58vw); height: auto; display: block; }
.splash-mark { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--cream); border: 1px solid var(--line); padding: .4rem .7rem; }
.footer-logo { height: 44px; width: auto; max-width: 320px; display: block; align-self: flex-start; object-fit: contain; margin-bottom: .4rem; }
.splash-line { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.splash-line span { display: block; height: 100%; width: 0; background: var(--accent); animation: splashFill 1.8s var(--ease-out) forwards; }
@keyframes splashFill { to { width: 100%; } }
.splash-name { font-family: var(--mono); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--mute); }

/* ============ 6. NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: transform .45s var(--ease-out), background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
html[data-active-theme="light"] .nav:not(.is-scrolled) { color: var(--light-ink); }
html[data-active-theme="light"] .nav.is-scrolled { background: color-mix(in srgb, var(--light-bg) 82%, transparent); border-bottom-color: var(--light-line); color: var(--light-ink); }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo-mark { font-family: var(--display); font-weight: 700; font-size: 1rem; border: 1px solid currentColor; padding: .25rem .45rem; line-height: 1; }
.nav-logo-text { font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-logo-sub { font-family: var(--mono); font-weight: 400; font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; opacity: .65; }
/* logo oficial IPAU en la cabecera (swap claro/oscuro segun tema) */
.nav-logo-img { height: 30px; width: auto; display: block; }
.nav-logo-img--dark { display: none; }
html[data-active-theme="light"] .nav-logo-img--light { display: none; }
html[data-active-theme="light"] .nav-logo-img--dark { display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-link { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; position: relative; padding: .3rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width .4s var(--ease-out); }
.nav-link:hover::after { width: 100%; }
.nav-cta { font-family: var(--mono); font-size: .8rem; border: 1px solid currentColor; padding: .55rem 1rem; transition: background .3s, color .3s, border-color .3s; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }

/* ============ COMPONENTES BTN ============ */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; padding: .95rem 1.6rem; border: 1px solid var(--cream); transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--bg); }
.btn-light { color: var(--cream); border-color: var(--cream); }
.has-magnetic { position: relative; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; will-change: transform; }
.btn-submit { justify-content: center; width: 100%; }
.btn-check { opacity: 0; width: 0; transition: opacity .3s, width .3s; }
.btn-submit.is-done .btn-label { opacity: .55; }
.btn-submit.is-done .btn-check { opacity: 1; width: 20px; }

/* ============ 7. HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); overflow: hidden; }
.hero-bgs { position: absolute; inset: -3%; z-index: -2; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s var(--ease-out); will-change: transform, opacity; }
.hero-bg.is-active { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06) translate3d(1.5%, 1%, 0); } to { transform: scale(1.22) translate3d(-2%, -2.5%, 0); } }
.hero-bgs { transition: transform .6s var(--ease-out); will-change: transform; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(13,12,10,.55) 0%, rgba(13,12,10,.15) 30%, rgba(13,12,10,.55) 70%, rgba(13,12,10,.92) 100%),
  radial-gradient(120% 80% at 20% 90%, rgba(13,12,10,.7), transparent 60%); }
.hero-inner { position: relative; max-width: 1100px; padding-bottom: clamp(2rem, 6vh, 4rem); }
.hero-kicker { margin-bottom: 1.4rem; color: var(--cream-2); }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--cream-2); max-width: 42ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); }
.hero-cue { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero-cue-line { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cueDrop 1.8s var(--ease-out) infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ 8. MARQUEE ============ */
.marquee { overflow: hidden; padding: 1.1rem 0; background: var(--accent); color: var(--cream); position: relative; }
.marquee-track { display: inline-flex; gap: 2rem; white-space: nowrap; will-change: transform; align-items: center; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; }
.marquee-track .sep { opacity: .55; }

/* ============ 9. BLOQUES ============ */
.block { padding: clamp(4rem, 10vw, 9rem) var(--pad); position: relative; }
.block-head { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(2.4rem, 6vw, 4rem); align-items: end; }

/* ============ 10. ESTUDIO (claro) ============ */
.estudio { background: var(--light-bg); color: var(--light-ink); }
.estudio .kicker { color: var(--light-mute); }
.estudio .kicker-idx { color: var(--accent); }
.estudio-body { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); }
.estudio-text p { margin-bottom: 1.1rem; font-size: 1.06rem; color: #2c2920; max-width: 56ch; }
.estudio-list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.estudio-list li { display: flex; gap: .7rem; font-family: var(--mono); font-size: .82rem; border-top: 1px solid var(--light-line); padding-top: .7rem; }
.estudio-list span { color: var(--accent); }
.estudio-figure { position: relative; overflow: hidden; align-self: start; height: clamp(280px, 44vh, 520px); }
.estudio-figure img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.estudio-figure figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .6rem .9rem; color: var(--cream); background: linear-gradient(transparent, rgba(22,20,15,.7)); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(2.6rem, 6vw, 4.5rem); border-top: 1px solid var(--light-line); border-left: 1px solid var(--light-line); }
.stat { padding: clamp(1.2rem, 3vw, 2rem); border-right: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line); }
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; display: block; letter-spacing: -.03em; }
.stat-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--light-mute); margin-top: .5rem; display: block; }

/* ============ 11. SHOWCASE PINNED ============ */
.showcase { background: var(--bg); padding: clamp(4rem, 9vw, 8rem) 0; overflow: hidden; }
.showcase.is-pinned { padding-bottom: 0; }
.showcase-head { padding: 0 var(--pad); margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; }
.showcase-hint { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-top: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.showcase-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase.is-pinned .showcase-viewport { overflow: clip; scroll-snap-type: none; }
.show-card { scroll-snap-align: start; }
.showcase-track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--pad); will-change: transform; }
.show-card { position: relative; flex: 0 0 auto; width: min(78vw, 460px); }
.showcase.is-pinned .show-card { height: 70vh; }
.show-img { position: relative; overflow: hidden; height: clamp(300px, 56vh, 560px); }
.showcase.is-pinned .show-img { height: 100%; }
.show-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(.9); transform: translateX(var(--px, 0px)) scale(var(--s, 1.08)); transition: filter .6s var(--ease-out), --s 1s var(--ease-out); will-change: transform; }
.show-card:hover .show-img img { filter: grayscale(0) contrast(1.05) brightness(1); --s: 1.14; }
.show-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(10,9,7,.55) 30%, rgba(10,9,7,.95)); display: flex; flex-direction: column; gap: .25rem; }
.show-n { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
.show-meta h3 { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 600; color: var(--cream); line-height: 1.05; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.show-meta p { font-family: var(--mono); font-size: .76rem; color: var(--cream-2); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.show-count { position: absolute; top: 1rem; right: 1rem; z-index: 2; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: rgba(10,9,7,.55); backdrop-filter: blur(4px); padding: .32rem .55rem; display: inline-flex; align-items: center; gap: .35rem; }
.show-count::before { content: "⤢"; color: var(--accent); font-size: .8rem; }
.show-card { cursor: pointer; }
.show-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--cream); padding: .3rem .55rem; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 10001; display: none; place-items: center; background: rgba(8,7,5,.97); opacity: 0; transition: opacity .35s var(--ease-out); }
.lightbox.is-open { display: grid; opacity: 1; }
.lb-stage { position: relative; width: min(92vw, 1500px); height: 82vh; display: grid; place-items: center; margin: 0; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.6); opacity: 0; transition: opacity .3s var(--ease-out); }
.lb-img.is-shown { opacity: 1; }
.lb-close, .lb-nav { position: fixed; z-index: 2; color: var(--cream); border: 1px solid var(--line); background: rgba(242,237,227,.05); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 1.4rem; right: 1.6rem; width: 48px; height: 48px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.6rem; } .lb-next { right: 1.6rem; }
.lb-bar { position: fixed; left: 0; right: 0; bottom: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .3rem 1.2rem; padding: 0 5rem; text-align: center; }
.lb-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--cream); }
.lb-sub { font-family: var(--mono); font-size: .76rem; color: var(--cream-2); }
.lb-count { font-family: var(--mono); font-size: .76rem; color: var(--accent); }
@media (max-width: 600px) { .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; } .lb-prev { left: .6rem; } .lb-next { right: .6rem; } .lb-stage { height: 72vh; } .lb-bar { padding: 0 1rem; } }

/* ============ 12. FEATURE FULL-BLEED ============ */
.feature { position: relative; min-height: 100svh; display: flex; align-items: center; padding: var(--pad); overflow: hidden; }
.feature-bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.feature-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,12,10,.86) 0%, rgba(13,12,10,.55) 45%, rgba(13,12,10,.25) 100%); }
.feature-inner { max-width: 640px; }
.feature-inner--right { margin-left: auto; text-align: right; }
.feature-inner--right ~ .feature-scrim, .feature-inner--right { }
.feature .kicker { margin-bottom: 1.2rem; }
.feature-text { margin: 1.4rem 0 2rem; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--cream-2); }
.feature-inner--right .feature-text { margin-left: auto; max-width: 46ch; }

/* feature 2 scrim invertido */
.feature:nth-of-type(even) .feature-scrim { background: linear-gradient(270deg, rgba(13,12,10,.86) 0%, rgba(13,12,10,.55) 45%, rgba(13,12,10,.25) 100%); }

/* ============ 13. SERVICIOS ============ */
.servicios { background: var(--bg); }
.services-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; padding: clamp(1.4rem, 3.5vw, 2.6rem) 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease-out), background .4s; }
.service:hover { background: var(--accent); padding-left: 1.4rem; }
.service:hover .service-text { color: rgba(242,237,227,.85); }
.service:hover .service-n { color: var(--cream); }
.service-n { font-family: var(--mono); font-size: .82rem; color: var(--accent); grid-row: span 2; }
.service-title { font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2.4rem); font-weight: 600; }
.service-text { font-size: 1rem; color: var(--cream-2); max-width: 60ch; transition: color .4s; }

/* ============ 14. CONTACTO ============ */
.contacto { position: relative; overflow: hidden; }
.contacto-bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.contacto-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,12,10,.92), rgba(13,12,10,.8)); }
.contacto-content { position: relative; }
.contacto-body { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.contacto-email { display: inline-block; max-width: 100%; font-family: var(--display); font-weight: 600; font-size: clamp(0.92rem, 2.1vw, 1.3rem); letter-spacing: -.01em; border-bottom: 1px solid var(--accent); padding-bottom: .25rem; margin-bottom: 2.4rem; transition: color .3s, border-color .3s; word-break: break-word; }
.contacto-email:hover { color: var(--accent); border-color: var(--accent); }
.contacto-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: 1.5rem 1rem .6rem; background: rgba(242,237,227,.04); border: 1px solid var(--line); color: var(--cream); border-radius: 0; transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(242,237,227,.07); }
.field textarea { resize: vertical; }
.field label { position: absolute; left: 1rem; top: 1.1rem; font-family: var(--mono); font-size: .82rem; color: var(--mute); pointer-events: none; transition: all .25s var(--ease-out); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .45rem; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.form-note { grid-column: 1/-1; font-family: var(--mono); font-size: .76rem; color: var(--accent-2); }
.form-note a { text-decoration: underline; }
.form-note.is-error { color: #ff8a6a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contacto-info { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: .82rem; }
.info-row:last-child { border-bottom: 1px solid var(--line-2); }
.info-k { color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }

/* ============ 15. FOOTER ============ */
.footer { background: var(--bg); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) var(--pad) 2rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-direction: column; gap: 1.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.footer-mark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; border: 1px solid var(--line); padding: .3rem .55rem; align-self: flex-start; }
.footer-claim { font-family: var(--display); font-size: clamp(1.5rem, 4.5vw, 3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.footer-social { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 1.6rem; }
.footer-social-link { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8rem; color: var(--cream-2); transition: color .3s; }
.footer-social-link svg { color: var(--accent); transition: transform .3s var(--ease-out); }
.footer-social-link:hover { color: var(--cream); }
.footer-social-link:hover svg { transform: scale(1.15); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; padding-top: 1.6rem; font-family: var(--mono); font-size: .72rem; color: var(--mute); }

/* Botones flotantes de redes (coherentes con la marca) */
.social-fab { position: fixed; bottom: 9.5rem; right: 1.6rem; z-index: 800; display: flex; flex-direction: column; gap: .6rem; }
.fab-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(20,19,14,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(242,237,227,.2); color: rgba(242,237,227,.8); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .35s var(--ease-out), background .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out); }
.fab-btn svg { width: 19px; height: 19px; }
.fab-btn:hover { transform: scale(1.1); background: var(--accent); border-color: var(--accent); color: var(--bg); }
@media (max-width: 600px) { .social-fab { bottom: 8.5rem; right: 1rem; gap: .5rem; } .fab-btn { width: 40px; height: 40px; } }

/* ============ FX: reveal / split ============ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
[data-reveal-mask].is-revealed { clip-path: inset(0); }
.split-word { display: inline-block; }
[data-split] { opacity: 1; }

/* ============ 16. RESPONSIVE ============ */
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .block-head { grid-template-columns: 1fr 1.4fr; gap: 2rem; }
  .estudio-body { grid-template-columns: 1.15fr 1fr; }
  .contacto-body { grid-template-columns: 1.5fr 1fr; }
}
@media (max-width: 959px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); color: var(--cream); border-bottom: 1px solid var(--line); padding: 0 var(--pad); max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out), padding .45s var(--ease-out); }
  .nav.is-open .nav-links { max-height: 80vh; padding: 1rem var(--pad) 2rem; }
  .nav-link, .nav-cta { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; }
  .nav-cta { border: 1px solid var(--cream); text-align: center; margin-top: 1rem; }
  .nav-toggle { display: flex; }
  html[data-active-theme="light"] .nav:not(.is-scrolled) { color: var(--cream); }
}

/* ============ 17. REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg.is-active { animation: none; }
  .marquee-track { animation: none !important; }
  .dot-live, .hero-cue-line { animation: none; }
  [data-reveal], [data-reveal-mask] { opacity: 1; transform: none; clip-path: none; transition: none; }
}


/* ============================================================
   VERSIÓN CLARA — mismo formato/concepto, menos negro.
   Secciones sólidas (galería, servicios, pie) en claro;
   portada y destacados mantienen foto a pantalla completa.
   ============================================================ */
html { background: var(--light-bg); }
html[data-active-theme="dark"] { background: var(--bg); }

.showcase { background: var(--light-bg); color: var(--light-ink); }
.showcase .kicker { color: var(--light-mute); }

.servicios { background: var(--light-bg); color: var(--light-ink); }
.servicios .kicker { color: var(--light-mute); }
.services-list { border-top-color: var(--light-line); }
.service { border-bottom-color: var(--light-line); }
.service-text { color: var(--light-mute); }
.service:hover { color: var(--cream); }
.service:hover .service-text { color: rgba(242,237,227,.85); }
.service:hover .service-n { color: var(--cream); }

.footer { background: var(--light-bg); color: var(--light-ink); border-top-color: var(--light-line); }
.footer-top { border-bottom-color: var(--light-line); }
.footer-social-link { color: var(--light-mute); }
.footer-social-link:hover { color: var(--light-ink); }
.footer-bottom { color: var(--light-mute); }

.fab-btn { background: rgba(255,255,255,.3); border-color: rgba(22,20,15,.12); color: rgba(22,20,15,.58); }
.fab-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.scroll-progress { background: rgba(22,20,15,.1); }
