/* ════════════════════════════════════════════════
   NUMEN — Sistema de diseño web v1
   Base: Brand Book v1 (aprobado jun 2026)
   Antracita #1B1816 · Cream #F8F5F0 · Rojo Inglés #B53030
   ════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --base:    #1B1816;
  --base-2:  #1B1816;
  --base-3:  #1B1816;
  --cream:   #F8F5F0;
  --cream-dk:#EDE9E1;
  --red:     #B53030;
  --red-lt:  #D04444;
  --red-dk:  #8E2424;
  --dim:     rgba(248,245,240,.58);
  --dimmer:  rgba(248,245,240,.30);
  --line:    rgba(248,245,240,.12);
  --serif:   'Libre Baskerville', Georgia, serif;
  --sans:    'Lato', 'Helvetica Neue', sans-serif;
  --sc:      'Cormorant SC', serif;
  --easing:  cubic-bezier(.22,.7,.25,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--base);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILIDADES ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.kicker {
  font-family: var(--sc); font-size: clamp(14px,1vw,18px); font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--red-lt);
}
.sec { padding: 110px 0; position: relative; }
.sec-cream { background: var(--cream); color: #211E1C; }
.sec-cream .kicker { color: var(--red); }
.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18;
  margin: 18px 0 22px;
}
.h-display em { font-style: italic; color: var(--red-lt); }
.sec-cream .h-display em { color: var(--red); }
.lead { font-size: clamp(16px,1.2vw,21px); line-height: 1.7; max-width: 640px; color: var(--dim); }
/* wordmark "numen" en minúscula (brand book v3 · variante sin símbolo):
   tipografía del wordmark + la "n" inicial en Rojo Inglés como puente cromático.
   inline-block es necesario para que aplique ::first-letter. */
.wmk { display: inline-block; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; text-transform: lowercase; font-style: normal; }
.wmk::first-letter { color: var(--red); }
.sec-cream .lead { color: #5A5654; }
.lead b, .lead strong { font-weight: 700; color: var(--cream); }
.sec-cream .lead b, .sec-cream .lead strong { color: #1B1816; }

/* ── BOTONES — estilo plano (Programa de Aliados) ──
   Relleno rojo sólido como primario; variante .ghost de contorno como secundario.
   Sin vidrio, sin filtros SVG, sin destellos. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; isolation: isolate;
  padding: 15px 32px; border-radius: 40px;
  font-family: var(--sans); font-size: clamp(12.5px,.95vw,14px); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--red); border: 1px solid var(--red); cursor: pointer;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  transition: background .3s var(--easing), border-color .3s var(--easing), color .3s var(--easing), transform .3s var(--easing);
}
.btn::before, .btn::after { content: none; }
.btn span { position: relative; z-index: 2; }
@media (hover: hover) {
  .btn:hover, .btn:focus-visible {
    background: var(--red-dk); border-color: var(--red-dk); color: #fff; transform: translateY(-2px);
  }
}
.btn:active { transform: translateY(0); }
/* CTA principal: idéntico al primario (relleno rojo sólido) */
.btn-solid { }
/* Variante de contorno sobre fondos claros */
.btn-dark, .btn.ghost {
  color: var(--red); background: transparent; border-color: var(--red);
}
@media (hover: hover) {
  .btn-dark:hover, .btn.ghost:hover { color: #fff; background: var(--red); border-color: var(--red); }
}

/* ── Botones de la home (.btnx primario oscuro / .btn-glass primario claro) ──
   Mismo botón plano del Programa de Aliados; .ghost = contorno secundario. */
.btnx, .btn-glass {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  isolation: isolate; border-radius: 40px; padding: 15px 32px;
  font-family: var(--sans); font-size: clamp(12.5px,.95vw,14px); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--red); border: 1px solid var(--red);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  transition: background .3s var(--easing), border-color .3s var(--easing), color .3s var(--easing), transform .3s var(--easing);
}
.btnx::after, .btn-glass::after { content: none; }
.btnx span, .btn-glass span { position: relative; z-index: 2; }
@media (hover: hover) {
  .btnx:hover, .btn-glass:hover { color: #fff; background: var(--red-dk); border-color: var(--red-dk); transform: translateY(-2px); }
}
.btnx:active, .btn-glass:active { transform: translateY(0); }
/* Contorno secundario: cream sobre oscuro (.btnx), rojo sobre claro (.btn-glass) */
.btnx.ghost { background: transparent; color: var(--cream); border-color: var(--red-lt); }
.btn-glass.ghost { background: transparent; color: var(--red); border-color: var(--red); }
@media (hover: hover) {
  .btnx.ghost:hover, .btn-glass.ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
}

/* ── HEADER · botón CTA plano (Programa de Aliados), algo más compacto ── */
.nav .btn {
  padding: 12px 26px; border-radius: 40px;
  color: #fff; background: var(--red); border: 1px solid var(--red);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  transition: background .3s var(--easing), border-color .3s var(--easing), color .3s var(--easing), transform .3s var(--easing);
}
.nav .btn::before, .nav .btn::after { content: none; }
/* En nav claro el botón mantiene el relleno rojo */
.nav.on-light .btn { color: #fff; background: var(--red); border-color: var(--red); }
/* El CTA es un <a> dentro de .nav-links: el color de `.nav-links a` (oscuro en nav
   claro) le ganaba por especificidad y dejaba el texto rojo-sobre-rojo. Forzamos
   blanco con mayor especificidad, en reposo y en hover, en ambos fondos. */
.nav .nav-links a.nav-cta,
.nav.on-light .nav-links a.nav-cta,
.nav .nav-links a.nav-cta:hover,
.nav.on-light .nav-links a.nav-cta:hover { color: #fff; }
@media (hover: hover) {
  .nav .btn:hover, .nav .btn:focus-visible,
  .nav.on-light .btn:hover {
    transform: translateY(-1.5px); color: #fff; background: var(--red-dk); border-color: var(--red-dk);
  }
}
.nav .btn:active { transform: translateY(0); }
.nav .nav-cta { padding: 12px 26px; font-size: 11px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  /* Interiores: el nav se alinea al contenido .wrap (1200px centrado). En la home
     lleva .nav-hero y se alinea al marco de la imagen del hero (ver abajo). */
  padding: 0 max(48px, calc((100vw - 1200px) / 2 + 48px)); height: 76px;
  background: rgba(27,24,22,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: height .3s var(--easing);
}
.nav-brand { display: flex; align-items: center; gap: 13px; }
.nav-brand svg { width: 34px; height: 34px; transition: transform .4s var(--easing); }
.nav-brand:hover svg { transform: translate(4px,-5px) scale(1.12); }
/* Logo del sitio: símbolo en versión acento (todo rojo) + wordmark en blanco */
.nav-brand .n-part, .nav-brand .a-part { fill: var(--red-lt); }
.nav-wm { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: .02em; text-transform: lowercase; color: var(--cream); padding-left: .04em; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); position: relative; padding: 6px 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--red-lt); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--easing);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 10px; padding: 13px 32px; font-size: 10.5px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger i { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: background .3s, transform .3s, opacity .3s; font-style: normal; }
.nav.on-light .nav-burger i { background: var(--base); }
/* HOME: el nav se alinea al marco de la imagen del hero antes de expandirse (inset 14%
   = el 72% centrado de .hero-inner), así el logo y el menú/CTA escalan con la pantalla
   en vez de toparse a 1200px y la proporción es la misma en 13" y en 27". */
.nav.nav-hero { padding: 0 14vw; }
/* En pantallas de poca altura (13") el hero arranca con inset 12%; el nav lo replica. */
@media (min-width: 961px) and (max-height: 840px) { .nav.nav-hero { padding-inline: 12vw; } }

/* ── HERO (Dirección B) ── */
.hero {
  min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 130px 0 90px;
}
.stripes {
  position: absolute; inset: -60%; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 36px, rgba(181,48,48,.09) 36px 39px);
  animation: drift 16s linear infinite;
}
@keyframes drift { to { transform: translate(51px,51px); } }
.hero-band { /* la franja vive DETRÁS del gráfico de la derecha */
  position: absolute; top: -25%; bottom: -25%; left: 63%; width: 26%; z-index: 1;
  background: linear-gradient(180deg, var(--red), var(--red-dk));
  transform: skewX(-14deg);
  box-shadow: 0 0 120px rgba(181,48,48,.35);
  animation: bandFloat 9s ease-in-out infinite alternate;
}
@keyframes bandFloat { to { transform: skewX(-14deg) translateX(54px); } }

/* ── GRÁFICO DEL HERO: panel liquid glass con el camino NUMEN en miniatura ── */
.hero-visual {
  position: absolute; right: 5%; top: 50%; z-index: 3;
  width: min(440px, 34vw); transform: translateY(-52%);
  animation: hvFloat 7s ease-in-out infinite alternate;
}
@keyframes hvFloat { from { transform: translateY(-54%); } to { transform: translateY(-49%); } }
.hv-card {
  position: relative; border-radius: 20px; padding: 28px 26px 20px;
  background: linear-gradient(135deg, rgba(248,245,240,.11), rgba(248,245,240,.03) 55%, rgba(248,245,240,.07));
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16); border-top-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 36px 70px -24px rgba(0,0,0,.6);
}
.hv-label { font-family: var(--sc); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.hv-wire { fill: none; stroke: var(--red-lt); stroke-width: 2; }
.js .hv-wire { stroke-dasharray: 640; stroke-dashoffset: 640; animation: hvDraw 7s var(--easing) infinite; }
@keyframes hvDraw {
  0% { stroke-dashoffset: 640; opacity: 1; }
  42%, 84% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.hv-node { fill: var(--base-2); stroke: var(--cream); stroke-width: 1.4; }
.hv-ring { fill: rgba(181,48,48,.12); stroke: var(--red-lt); stroke-width: 2.4; }
.hv-text { font-family: var(--sc); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--dim); }
.hv-chip {
  position: absolute; top: -24px; right: -16px; z-index: 4;
  display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(248,245,240,.16), rgba(248,245,240,.05));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.22); border-top-color: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 40px -14px rgba(0,0,0,.55);
  font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--cream);
}
.hv-chip svg { width: 22px; height: 22px; }
.hv-chip .n-part { fill: var(--cream); } .hv-chip .a-part { fill: var(--red-lt); }
.hero-inner { position: relative; z-index: 3; max-width: 640px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 86px); line-height: 1.08; margin: 22px 0 26px;
}
.hero h1 em { font-style: italic; color: var(--red-lt); }
.hero-sub { font-size: 17px; color: var(--dim); max-width: 520px; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 86px; left: 48px; z-index: 3;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--dimmer);
}
.hero-scroll i { /* línea + chevrón hacia abajo */
  position: relative; display: block; width: 1px; height: 44px; margin: 10px 0 0 4px;
  background: linear-gradient(var(--red-lt), rgba(212,68,68,.2));
  animation: dropline 2.2s ease-in-out infinite;
}
.hero-scroll i::after {
  content: ""; position: absolute; bottom: -1px; left: -4px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--red-lt); border-bottom: 1.5px solid var(--red-lt);
  transform: rotate(45deg);
}
@keyframes dropline { 0%,100% { transform: translateY(0); opacity:.45; } 50% { transform: translateY(8px); opacity: 1; } }

/* marquee */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: rgba(248,245,240,.045); border-top: 1px solid var(--line);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee > div { display: inline-block; animation: marq 22s linear infinite; }
.marquee span {
  font-family: var(--sc); font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--dim); padding: 0 8px;
}
.marquee b { color: var(--red-lt); font-weight: 400; padding: 0 10px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── PROGRESO DE SCROLL (la flecha asciende) ── */
.progress {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  height: 220px; width: 26px; z-index: 90; pointer-events: none;
}
.progress::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.progress-arrow { position: absolute; left: 0; bottom: 0; width: 20px; height: 20px; opacity: 1; will-change: bottom; }
.progress-arrow path { fill: var(--red); }

/* ── CORTES DIAGONALES ── */
.cut-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%); padding-bottom: 160px; }
.cut-t { clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%); padding-top: 170px; margin-top: -70px; }

/* ── REVEALS (solo si JS está activo; sin JS todo es visible) ── */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--easing), transform .8s var(--easing); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="line"] { clip-path: inset(0 0 100% 0); transform: translateY(14px); transition: clip-path .9s var(--easing), transform .9s var(--easing), opacity .6s; }
.js [data-reveal="line"].in { clip-path: inset(0 0 -10% 0); }

/* ── STATS (compromisos universales) ── */
.stats-note { font-family: var(--sc); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-top: 56px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 22px; }
.stat { background: var(--base-2); padding: 34px 36px; border-top: 2px solid var(--red); }
.stat-n { font-family: var(--serif); font-size: 46px; color: var(--cream); line-height: 1; }
.stat-n sub { font-size: 18px; color: var(--red-lt); bottom: 0; }
.stat-l { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }

/* ── TARJETAS DE SERVICIO ── */
.svc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; margin-top: 58px; }
.svc {
  position: relative; background: #fff; border: 1px solid #E4DFD7;
  padding: 42px 40px 38px; overflow: hidden; color: #211E1C;
  transition: transform .4s var(--easing), box-shadow .4s;
}
.svc::before { /* la flecha del símbolo NUMEN entra al hover */
  content: ""; position: absolute; top: 16px; right: 16px; width: 28px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23B53030' d='M29.9 95.9 L10.1 76.1 L40.1 46.1 L59.9 65.9 Z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; transform: translate(14px,14px);
  transition: opacity .35s, transform .45s var(--easing);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(27,24,22,.16); }
.svc:hover::before { opacity: 1; transform: translate(0,0); }
.svc-icon { width: 44px; height: 44px; color: var(--red); margin-bottom: 14px; }
.svc-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-num { font-family: var(--sc); font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--red); }
.svc h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #1B1816; margin: 12px 0 14px; }
.svc p { font-size: 16.5px; line-height: 1.65; color: #5A5654; }
.svc-link { display: inline-block; margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); position: relative; }
.svc-link::after { content: " →"; transition: .3s; display: inline-block; }
.svc:hover .svc-link::after { transform: translateX(6px) translateY(-3px) rotate(-45deg); }

/* ── DIAGRAMA DE PROCESO (Dirección C, remate en flecha) ── */
.diagram-wrap { position: relative; margin-top: 70px; }
.diagram-grid-bg {
  position: absolute; inset: -40px;
  background-image: linear-gradient(rgba(248,245,240,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(248,245,240,.045) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.diagram { position: relative; width: 100%; height: auto; }
.diagram .wire { fill: none; stroke: var(--red-lt); stroke-width: 2; }
.js .diagram .wire { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.drawn .wire { animation: drawLoop 9s var(--easing) infinite; } /* loop: se dibuja, sostiene y reinicia */
@keyframes drawLoop {
  0% { stroke-dashoffset: 1200; opacity: 1; }
  38%, 86% { stroke-dashoffset: 0; opacity: 1; }
  95% { stroke-dashoffset: 0; opacity: 0; }
  95.1%, 99.9% { stroke-dashoffset: 1200; opacity: 0; }
  100% { stroke-dashoffset: 1200; opacity: 1; }
}
.diagram .whead { fill: var(--red-lt); stroke: none; }
.js .diagram .whead { opacity: 0; }
.drawn .whead { animation: headLoop 9s ease-in-out infinite; }
@keyframes headLoop { 0%,32% { opacity: 0; } 40%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.diagram .ring { fill: rgba(181,48,48,.10); stroke: var(--red-lt); stroke-width: 3; }
.diagram .node { fill: var(--base); stroke: var(--cream); stroke-width: 1.6; }
.diagram .node-end { fill: var(--red); stroke: var(--red-lt); stroke-width: 2.4; }
.js .diagram .ngroup { opacity: 0; transform: scale(.5); transform-origin: center; transform-box: fill-box; transition: opacity .5s, transform .5s var(--easing); }
.drawn .ngroup { opacity: 1; transform: scale(1); }
.drawn .ngroup:nth-of-type(1) { transition-delay: .3s; }
.drawn .ngroup:nth-of-type(2) { transition-delay: 1s; }
.drawn .ngroup:nth-of-type(3) { transition-delay: 1.7s; }
.drawn .ngroup:nth-of-type(4) { transition-delay: 2.4s; }
.drawn .ngroup:nth-of-type(5) { transition-delay: 3.1s; }
.diagram .nlabel { font-family: var(--sc); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: var(--dim); }
.diagram .nlabel-hl { fill: var(--red-lt); }
.diagram .nsub { font-family: var(--sans); font-size: 10px; fill: var(--dimmer); letter-spacing: .04em; }
.diagram .endsym path { fill: var(--cream); }
.diagram .endsym .a-part { fill: var(--red-lt); }
.pulse { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
/* línea de tiempo vertical del framework: solo móvil (ver media query) */
.fw-mobile { display: none; }

/* ── FRAMEWORK · panel Liquid Glass (gráfico migrado desde el hero) ── */
.fw-glass {
  position: relative; margin-top: 58px; border-radius: 24px; padding: 46px 48px 38px; overflow: hidden;
  background: linear-gradient(135deg, rgba(248,245,240,.11), rgba(248,245,240,.025) 55%, rgba(248,245,240,.07));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.15); border-top-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 44px 90px -34px rgba(0,0,0,.62);
}
.fw-glass::after { /* destello especular sutil */
  content: ""; position: absolute; top: -40%; left: -20%; width: 50%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.fw-glass .diagram-grid-bg { inset: 0; opacity: .45; }
.fw-glass .diagram { position: relative; z-index: 1; }
/* en el panel, las etiquetas quedan SIEMPRE visibles y más legibles */
.fw-glass .diagram .nlabel { font-size: 14px; fill: var(--cream); }
.fw-glass .diagram .nsub { font-size: 10.5px; fill: var(--dim); }
.js .fw-glass .diagram .ngroup { opacity: 1; transform: none; }
.fw-chip {
  position: absolute; top: -22px; right: 28px; z-index: 3;
  display: flex; align-items: center; gap: 11px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(248,245,240,.17), rgba(248,245,240,.05));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.22); border-top-color: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 40px -14px rgba(0,0,0,.55);
  font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--cream);
}
.fw-chip svg { width: 22px; height: 22px; }
.fw-chip .n-part, .fw-chip .a-part { fill: var(--red-lt); }

/* ── METODOLOGÍA (oscuro) · gráfico del framework mejorado ──
   Se mantiene en negro como el resto de la página, pero el chip va DENTRO
   arriba-izquierda (sin que el overflow del panel lo recorte) y las etiquetas
   del diagrama son más grandes y legibles. Requiere .method-dark en la sección. */
.method-dark .fw-glass { margin-top: clamp(36px,5vh,60px); }
.method-dark .fw-chip { top: 22px; left: 26px; right: auto; }
.method-dark .fw-glass .diagram .nlabel { font-size: 21px; }
.method-dark .fw-glass .diagram .nsub { font-size: 14px; }

/* ── CLIENTES · "Confían en nosotros" (marquee de logos) ── */
.clients { background: var(--base); padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-head { text-align: center; margin-bottom: 44px; }
.clients-head .kicker { color: var(--red-lt); }
.clients-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px,2.6vw,30px); color: var(--cream); margin-top: 10px; }
.client-mask { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.client-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: clientMarq 32s linear infinite; }
.clients:hover .client-track { animation-play-state: paused; }
@keyframes clientMarq { to { transform: translateX(-50%); } }
.client-logo {
  flex: 0 0 auto; height: 56px; min-width: 150px; display: flex; align-items: center; justify-content: center;
  color: var(--dim); opacity: .65; transition: opacity .3s, color .3s; filter: grayscale(1);
}
.client-logo:hover { opacity: 1; color: var(--cream); filter: grayscale(0); }
.client-logo svg, .client-logo img { max-height: 56px; max-width: 180px; width: auto; }
.client-logo.placeholder {
  font-family: var(--sc); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px dashed rgba(248,245,240,.22); border-radius: 8px; padding: 0 26px; min-width: 170px;
}

/* etapas interactivas (metodología) */
.stages { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 54px; }
.stage {
  background: var(--base-2); padding: 32px 30px; cursor: pointer;
  border-top: 2px solid transparent; transition: border-color .3s, background .3s;
}
.stage:hover, .stage.active { border-top-color: var(--red); background: var(--base-3); }
.stage-n { font-family: var(--sc); font-size: 14px; letter-spacing: .18em; color: var(--red-lt); }
.stage h4 { font-family: var(--serif); font-size: 23px; font-weight: 400; color: var(--cream); margin: 9px 0 11px; }
.stage p { font-size: 16.5px; color: var(--dim); line-height: 1.6; }
/* detalle de cada etapa: oculto en escritorio (se usa el panel #stage-detail),
   visible bajo cada tarjeta en móvil */
.stage-detail-m { display: none; font-size: 16px; line-height: 1.62; color: var(--dim); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── BANDA CASO / CTA ── */
.band {
  position: relative; overflow: hidden; background: var(--red); color: #fff;
  padding: 84px 0;
}
.band .stripes { background: repeating-linear-gradient(-45deg, transparent 0 36px, rgba(255,255,255,.06) 36px 39px); }
.band-q { font-family: var(--serif); font-style: italic; font-size: clamp(22px,3vw,32px); line-height: 1.5; max-width: 820px; position: relative; }
.band-meta { margin-top: 26px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); position: relative; }
.band-sub { margin-top: 20px; max-width: 600px; font-size: clamp(16px,1.15vw,19px); line-height: 1.65; font-weight: 300; color: rgba(255,255,255,.82); position: relative; }

/* ── Titular con palabra que cicla (sección negra, centrado · servicios) ── */
.cyc-sec { text-align: center; }
.cyc-line { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.5vw,58px); line-height: 1.12; color: var(--cream); }
.cyc-wrap { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; padding: 0 .06em .14em; }
.cyc { display: inline-block; font-style: italic; color: var(--red-lt); white-space: nowrap; will-change: transform, opacity, filter; transition: opacity .34s var(--easing), filter .34s var(--easing), transform .34s var(--easing); }
.cyc.is-out { opacity: 0; filter: blur(8px); transform: translateY(-16px); }
.cyc.is-pre { opacity: 0; filter: blur(8px); transform: translateY(16px); transition: none; }
@media (prefers-reduced-motion: reduce) { .cyc { transition: opacity .2s; } .cyc.is-out, .cyc.is-pre { transform: none; filter: none; } }

/* ── EQUIPO ── */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 58px; }
.member { background: var(--base-2); padding: 46px 44px; border-top: 2px solid var(--red); }
.member-avatar {
  width: 88px; height: 88px; border-radius: 50%; background: var(--base-3);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; color: var(--red-lt); margin-bottom: 24px;
}
.member h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--cream); }
.member-role { font-family: var(--sc); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-lt); margin: 8px 0 18px; }
.member p { font-size: 13.5px; color: var(--dim); }

/* ── CONTACTO / FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; margin-top: 56px; align-items: start; }
.c-item { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.c-ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--red-lt); }
.c-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-k { font-family: var(--sc); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-lt); min-width: 92px; line-height: 1.7; }
.c-v { font-size: 14.5px; color: var(--cream); line-height: 1.55; }
.c-v a { color: var(--cream); text-decoration: none; transition: color .3s; }
.c-v a:hover { color: var(--red-lt); }
.form label { display: block; font-family: var(--sc); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 26px 0 8px; }
.form .req { color: var(--red-lt); }
.form .opt { color: var(--dimmer); font-size: 11px; letter-spacing: .08em; }
.form input, .form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(248,245,240,.28);
  color: var(--cream); font-family: var(--sans); font-size: 15px; font-weight: 300;
  padding: 10px 2px; outline: none; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--red-lt); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { margin-top: 36px; }
.form-note { font-size: 11px; color: var(--dimmer); margin-top: 18px; }
.form-sent { font-size: 16px; line-height: 1.6; color: var(--cream); border-left: 3px solid var(--red); padding: 18px 22px; background: rgba(248,245,240,.04); border-radius: 8px; }
.form-sent strong { color: var(--red-lt); }

/* ── WHATSAPP FLOTANTE (inferior izquierda) ── */
.wa-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(181,48,48,.45);
  transition: transform .3s var(--easing), background .3s, bottom .42s var(--easing), opacity .3s var(--easing), visibility .3s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.06); background: var(--red-lt); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
/* Mientras el aviso de cookies está visible, el botón sube por encima de él;
   al aceptar se quita .cookie-open y baja (con transición) a su posición normal. */
body.cookie-open .wa-float { bottom: var(--wa-bottom, 112px); }

/* ── BOTÓN VOLVER ARRIBA (inferior derecha) ── */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 95;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(27,24,22,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(248,245,240,.22);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--easing), transform .35s var(--easing), visibility .35s, background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .wa-float { left: 18px; bottom: 18px; }
  .to-top { right: 18px; bottom: 18px; }
  /* En móvil, al acercarse el footer los botones flotantes (WhatsApp / volver arriba)
     se desvanecen en vez de meterse por detrás de él (JS añade .near-footer al body). */
  body.near-footer .wa-float,
  body.near-footer .to-top {
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(24px);
  }
}

/* Número de WhatsApp en el footer: sin cambio de color en hover */
.foot-contact a.wa-num:hover, .footer a.wa-num:hover { color: var(--dim); }

/* ── AVISO DE COOKIES (anclado abajo-izquierda, no choca con WhatsApp) ── */
.cookie-bar {
  position: fixed; left: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,26px); z-index: 110;
  width: min(440px, calc(100vw - 32px));
  display: flex; gap: 16px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 16px;
  background: rgba(20,18,16,.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(248,245,240,.14);
  box-shadow: 0 22px 54px -22px rgba(0,0,0,.65);
  opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .4s var(--easing);
}
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-bar[hidden] { display: none; }
.cookie-txt { flex: 1 1 240px; margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.cookie-txt a { color: var(--red-lt); text-decoration: underline; text-underline-offset: 2px; }
.cookie-txt a:hover { color: var(--cream); }
.cookie-actions { flex: 0 0 auto; }
.cookie-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); background: rgba(181,48,48,.92); border: 1px solid rgba(212,68,68,.6);
  border-radius: 999px; padding: 11px 26px; cursor: pointer; transition: background .3s, transform .2s;
}
.cookie-btn:hover { background: var(--red); transform: translateY(-1px); }
@media (max-width: 560px) {
  /* en móvil el aviso sube por encima del botón de WhatsApp, que se mantiene abajo */
  .cookie-bar { bottom: 94px; }
  body.cookie-open .wa-float { bottom: 18px; }
}

/* ── PAGE HERO (interiores) ── */
.page-hero { position: relative; overflow: hidden; padding: 190px 0 100px; }
.page-hero .stripes { opacity: .8; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px,5.4vw,62px); line-height: 1.12; margin-top: 20px; position: relative; }
.page-hero h1 em { font-style: italic; color: var(--red-lt); }
.page-hero .lead { margin-top: 22px; position: relative; }
.page-hero .kicker { position: relative; }

/* servicio detalle */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 84px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-detail:last-of-type { border-bottom: none; }
.svc-detail .num { font-family: var(--sc); font-size: clamp(15px,1vw,18px); letter-spacing: .2em; color: var(--red-lt); }
.svc-detail h2 { font-family: var(--serif); font-size: clamp(26px,3vw,36px); font-weight: 400; margin: 14px 0 18px; }
.svc-detail p { font-size: clamp(16px,1.1vw,18.5px); line-height: 1.7; color: var(--dim); max-width: 480px; }
.svc-detail ul { list-style: none; margin-top: 8px; }
.svc-detail li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--dim); position: relative; }
.svc-detail li::before { content: "›"; position: absolute; left: 2px; color: var(--red-lt); font-weight: 700; }
.svc-detail li b { color: var(--cream); font-weight: 400; }

/* ── FOOTER ── */
/* Footer en el tono de apoyo (Antracita 2) — la antracita azulada domina el body */
.footer { background: var(--base-2); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; align-items: start; }
.footer .nav-brand svg { width: 40px; height: 40px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--dim); margin-top: 16px; }
.footer h5 { font-family: var(--sc); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-lt); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 13px; color: var(--dim); transition: color .3s; }
.footer li a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: .08em; color: var(--dimmer);
}

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .wrap { padding: 0 26px; }
  .nav { padding: 0 26px; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--base-3);
    flex-direction: column; gap: 0; padding: 10px 0 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .4s var(--easing);
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; text-align: center; padding: 13px 0; }
  .nav-burger { display: block; }
  .hero-band { left: 76%; opacity: .5; }
  .hero-visual { display: none; }
  .hero-scroll { display: none; }
  .progress { display: none; }
  .stats, .svc-grid, .stages, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
  .contact-grid, .svc-detail { grid-template-columns: 1fr; gap: 36px; }
  /* formulario: botón de envío centrado en móvil */
  .form .btn-solid { display: block; width: -webkit-fit-content; width: fit-content; margin-left: auto; margin-right: auto; }
  .fw-glass { padding: 30px 22px 26px; } .fw-chip { right: 16px; font-size: 12px; }
  /* metodología · en móvil el diagrama horizontal se sustituye por la línea de
     tiempo vertical (igual que la home) y cada etapa muestra su detalle debajo */
  .diagram, .fw-glass .diagram-grid-bg { display: none; }
  .fw-glass { position: relative; }
  .fw-chip { position: static; display: inline-flex; margin-bottom: 24px; }
  .fw-mobile { display: block; list-style: none; padding: 0; margin: 0; }
  .fw-mobile li { position: relative; display: flex; gap: 16px; padding-bottom: 28px; }
  .fw-mobile li:last-child { padding-bottom: 0; }
  .fw-mobile li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -2px; width: 2px; background: linear-gradient(var(--red), rgba(181,48,48,.3)); }
  .fw-mobile li.fwm-end::before, .fw-mobile li:last-child::before { display: none; }
  .fwm-mark { position: relative; z-index: 1; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--red); background: var(--base-2); display: grid; place-items: center; }
  .fw-mobile li:not(.fwm-end) .fwm-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-lt); }
  .fwm-end .fwm-mark { width: 46px; height: 46px; border-width: 3px; margin-left: -9px; }
  .fwm-end .fwm-mark svg { width: 25px; height: 25px; }
  .fwm-end .fwm-mark .n-part, .fwm-end .fwm-mark .a-part { fill: var(--red-lt); }
  .fwm-t b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px,5.6vw,30px); line-height: 1.12; color: var(--cream); }
  .fwm-end .fwm-t b { color: var(--red-lt); }
  .fwm-t i { display: block; font-style: normal; font-family: var(--sans); font-weight: 300; font-size: 15px; color: var(--dim); margin-top: 5px; }
  .fwm-end .fwm-t { align-self: center; }
  /* etapas: detalle siempre visible bajo cada tarjeta, sin necesidad de tocar */
  .stage-detail-m { display: block; }
  .stages-hint, #stage-detail { display: none; }
  .stage { cursor: default; }
  .client-track { gap: 40px; }
  .sec { padding: 72px 0; }
  .cut-b { clip-path: polygon(0 0,100% 0,100% calc(100% - 34px),0 100%); padding-bottom: 110px; }
  .cut-t { clip-path: polygon(0 34px,100% 0,100% 100%,0 100%); padding-top: 110px; margin-top: -34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .diagram .wire, .drawn .wire { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .js .diagram .whead, .drawn .whead { animation: none !important; opacity: 1; }
  .js .hv-wire { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .js .diagram .ngroup { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════
   FOOTER v2 — marco liquid glass, Antracita oscuro
   (requiere el filtro SVG #liquid-glass en el <body>)
   ════════════════════════════════════════════════ */
.foot2 { padding: 40px clamp(44px, 4.5vw, 110px); background: var(--base-3); }
.foot-glass {
  position: relative; max-width: 1680px; margin: 0 auto; padding: 30px 0 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.foot-glass::after { display: none; }
.foot-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; }
.foot-brand .nav-brand { display: inline-flex; align-items: center; gap: 13px; }
.foot-brand .nav-brand svg { width: 54px; height: 54px; }
.foot-brand .n-part, .foot-brand .a-part { fill: var(--red-lt); }
.foot-brand .nav-wm { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; text-transform: lowercase; font-size: 28px; color: var(--cream); padding-left: .04em; }
.foot-blurb { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--dim); margin: 20px 0 24px; max-width: 340px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--dim);
  background: rgba(248,245,240,.05); border: 1px solid rgba(255,255,255,.12); border-top-color: rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); transition: color .3s, background .3s, border-color .3s, transform .3s var(--easing);
}
.foot-social a:hover { color: #fff; background: rgba(181,48,48,.5); border-color: rgba(212,68,68,.5); transform: translateY(-3px); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-social svg.ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-col h5 { font-family: var(--sc); font-size: 13.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-lt); margin-bottom: 22px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { position: relative; font-size: 14.5px; font-weight: 300; color: var(--dim); text-decoration: none; transition: color .3s, padding-left .3s var(--easing); }
.foot-col a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--red-lt);
  opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity .3s, transform .3s; }
.foot-col a:hover { color: var(--cream); padding-left: 13px; }
.foot-col a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.foot-contact ul { list-style: none; }
.foot-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; font-weight: 300; color: var(--dim); margin-bottom: 15px; line-height: 1.5; }
.foot-contact li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--red-lt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-contact a { color: var(--dim); text-decoration: none; transition: color .3s; }
.foot-contact a:hover { color: var(--cream); }
.newsletter { margin-top: 26px; }
.newsletter-l { font-family: var(--sc); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 12px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; background: rgba(248,245,240,.05); color: var(--cream); font-family: var(--sans); font-size: 14px; font-weight: 300;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 12px 18px; outline: none; transition: border-color .3s;
}
.news-form input::placeholder { color: var(--dimmer); }
.news-form input:focus { border-color: var(--red-lt); }
.news-form button {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(248,245,240,.06); border: 1px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: url(#liquid-glass) blur(2px); backdrop-filter: url(#liquid-glass) blur(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px -6px rgba(0,0,0,.5); transition: background .35s, transform .25s var(--easing);
}
.news-form button:hover { background: rgba(181,48,48,.5); transform: translateY(-2px); }
.news-form button svg { width: 20px; height: 20px; }
.news-form button .n-part, .news-form button .a-part { fill: var(--red-lt); }
.news-form button:hover .n-part, .news-form button:hover .a-part { fill: #fff; }
.foot-bottom { position: relative; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-bottom .copy { font-size: 12px; letter-spacing: .06em; color: var(--dimmer); }
.foot-legal { display: flex; gap: 26px; }
.foot-legal a { font-size: 12px; letter-spacing: .08em; color: var(--dim); text-decoration: none; transition: color .3s; }
.foot-legal a:hover { color: var(--red-lt); }
@media (max-width: 900px) {
  .foot2 { padding: 18px; }
  .foot-glass { padding: 20px 0 0; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  /* marca y contacto centrados en móvil */
  .foot-brand { text-align: center; }
  .foot-brand .nav-brand { justify-content: center; }
  .foot-blurb { margin-left: auto; margin-right: auto; }
  .foot-social { justify-content: center; }
  .foot-contact { text-align: center; }
  .foot-contact li { justify-content: center; }
  /* barra inferior: legales ARRIBA del copyright, centrado */
  .foot-bottom { flex-direction: column-reverse; align-items: center; gap: 14px; text-align: center; }
  .foot-legal { justify-content: center; flex-wrap: wrap; gap: 16px 22px; }
}
/* Móvil real (≤600): footer en UNA sola columna centrada. Va después del bloque ≤900
   para ganarle su grid de 2 columnas por orden de fuente. */
@media (max-width: 600px) {
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-col { text-align: center; }
  .foot-col a, .foot-col a:hover { padding-left: 0; }
  .foot-col a::before { content: none; }
}
