/* ==========================================================================
   Herrera y Asociados — Sistema base
   Tokens, base, encabezado, pie y secciones de portada.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Azules profundos y poco saturados: base del sitio */
  --bg-950: #070B12;
  --bg-900: #0A101A;
  --bg-880: #0C131F;
  --bg-850: #0E1622;
  --bg-800: #131D2C;
  --bg-750: #182437;
  --bg-700: #1F2C42;

  /* Azul de marca: reservado para acentos puntuales, no para fondos amplios */
  --brand: #011F49;

  /* Acento metálico cálido */
  --gold: #C9A961;
  --gold-lit: #E0C589;
  --gold-dim: rgba(201, 169, 97, 0.14);
  --gold-line: rgba(201, 169, 97, 0.34);

  --steel: #8FA6C4;

  --white: #ffffff;
  --txt: rgba(223, 231, 243, 0.72);
  --txt-dim: rgba(196, 209, 228, 0.5);

  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);

  --wa: #25d366;
  --wa-dark: #1da851;

  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 60px);
  --header-h: 134px;
  --r: 4px;
  --r-lg: 10px;

  --sh-md: 0 20px 50px rgba(2, 6, 14, 0.45);
  --sh-lg: 0 44px 110px rgba(2, 6, 14, 0.66);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 350;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #16110a; }

:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-950); }
::-webkit-scrollbar-thumb { background: #1e2c42; border-radius: 99px; border: 3px solid var(--bg-950); }
::-webkit-scrollbar-thumb:hover { background: #2c405f; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #16110a; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. Utilidades
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(80px, 9.5vw, 148px) 0; position: relative; }

.bg-950 { background: var(--bg-950); }
.bg-900 { background: var(--bg-900); }
.bg-880 { background: var(--bg-880); }
.bg-850 { background: var(--bg-850); }

/* Costura entre secciones: un filete dorado que se desvanece a los lados.
   Marca la transición sin que el cambio de fondo se note como un corte. */
.section--seam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(201, 169, 97, 0.05) 18%,
    rgba(201, 169, 97, 0.32) 50%,
    rgba(201, 169, 97, 0.05) 82%,
    transparent 100%);
}

/* Antetítulo con filete dorado */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.eyebrow--c { justify-content: center; }
.eyebrow--c::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(to left, transparent, var(--gold));
}

.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); line-height: 1.82; }

.head-c { text-align: center; max-width: 820px; margin-inline: auto; }

em.hl {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-lit);
  position: relative;
}

/* Filigrana de fondo reutilizable */
/* Los focos se apagan antes de llegar al borde de su sección, para que
   nunca se vea el degradado cortado contra la sección vecina. */
.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 83%, transparent 100%);
}
.veil--grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: min(20vw, 240px) 100%;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
/* Focos cálidos: el recurso que da temperatura y profundidad a las secciones.
   Se combinan de dos en dos como máximo para no saturar. */
.veil--warm-tr {
  background: radial-gradient(48% 56% at 84% 6%, rgba(201, 169, 97, 0.19), transparent 68%);
}
.veil--warm-bl {
  background: radial-gradient(52% 58% at 8% 98%, rgba(186, 146, 84, 0.16), transparent 70%);
}
.veil--warm-b {
  background: radial-gradient(78% 50% at 50% 106%, rgba(201, 169, 97, 0.17), transparent 68%);
}
.veil--warm-t {
  background: radial-gradient(72% 46% at 50% -6%, rgba(201, 169, 97, 0.15), transparent 66%);
}
.veil--glow-steel {
  background: radial-gradient(58% 62% at 6% 96%, rgba(84, 122, 176, 0.17), transparent 70%);
}
/* compatibilidad con el nombre anterior */
.veil--glow-gold {
  background: radial-gradient(48% 56% at 84% 6%, rgba(201, 169, 97, 0.19), transparent 68%);
}
.section > .wrap { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--gold);
  --fg: #16110a;
  --bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 30px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.755rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201, 169, 97, 0.24); }
.btn:active { transform: translateY(0); }

.btn--gold:hover { --bg: var(--gold-lit); --bd: var(--gold-lit); }

.btn--ghost { --bg: transparent; --fg: var(--white); --bd: var(--line-2); }
.btn--ghost:hover {
  --bg: rgba(255, 255, 255, 0.06);
  --bd: var(--gold-line);
  --fg: var(--gold-lit);
  box-shadow: none;
}

.btn--light { --bg: var(--white); --fg: #0b1220; --bd: var(--white); }
.btn--light:hover { --bg: #eef2f8; --bd: #eef2f8; box-shadow: var(--sh-md); }

.btn--wa { --bg: var(--wa); --fg: #06301a; --bd: var(--wa); }
.btn--wa:hover { --bg: var(--wa-dark); --bd: var(--wa-dark); --fg: #fff; box-shadow: 0 16px 36px rgba(29, 168, 81, 0.28); }

.btn--sm { padding: 12px 22px; font-size: 0.7rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
}
.arrow-link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.arrow-link:hover svg { transform: translateX(7px); }

/* --------------------------------------------------------------------------
   5. Encabezado
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), height 0.45s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header.is-solid {
  height: 104px;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.4);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 98px; width: auto; transition: height 0.45s var(--ease); }
.site-header.is-solid .brand img { height: 76px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--txt);
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.is-open > .nav-link { color: var(--white); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-item.is-open > .nav-link::after { transform: scaleX(1); }

.nav-link .caret { width: 9px; height: 9px; opacity: 0.75; transition: transform 0.35s var(--ease); }
.nav-item.is-open > .nav-link .caret { transform: rotate(180deg); }

.nav-cta { margin-left: 16px; }

/* Menú desplegable */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 12px);
  width: min(700px, 88vw);
  background: linear-gradient(165deg, #10192a 0%, #090e18 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.4s var(--ease), visibility 0.32s;
}
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  border-radius: var(--r);
  transition: background-color 0.3s var(--ease);
}
.dd-item:hover { background: rgba(255, 255, 255, 0.05); }
.dd-item .ico {
  flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--gold);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.dd-item .ico svg { width: 17px; height: 17px; }
.dd-item:hover .ico { border-color: var(--gold-line); background: var(--gold-dim); }
.dd-item b {
  display: block;
  font-family: var(--font-body);
  font-size: 0.855rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.dd-item span { display: block; font-size: 0.775rem; line-height: 1.5; color: var(--txt-dim); }

.dropdown-foot {
  margin-top: 10px;
  padding: 15px 14px 6px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dropdown-foot p { margin: 0; font-size: 0.8rem; color: var(--txt-dim); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(18px, 3vw, 42px));
  padding-bottom: 0;
  overflow: hidden;
  background: var(--bg-950);
  isolation: isolate;
}

/* --- capas de fondo --- */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, #16233A 0%, transparent 58%),
    radial-gradient(90% 80% at 10% 100%, #101B2B 0%, transparent 60%),
    linear-gradient(168deg, #0A111C 0%, #070B12 62%, #090F19 100%);
}

/* Calidez del hero: un amanecer dorado que sube desde el pie y otro foco
   detrás del arco. Muy difusos, para dar temperatura sin manchar. */
.hero__warm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(88% 46% at 42% 106%, rgba(201, 169, 97, 0.26), transparent 66%),
    radial-gradient(42% 46% at 74% 40%, rgba(201, 169, 97, 0.15), transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.72;
  will-change: transform;
}
.hero__glow--gold {
  width: 52vw; height: 52vw;
  right: -8vw; top: -14vw;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.32), transparent 66%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero__glow--steel {
  width: 52vw; height: 52vw;
  left: -14vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(76, 116, 176, 0.26), transparent 66%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4vw, 4vw, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(5vw, -3vw, 0) scale(1); }
}

/* retícula vertical fina */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: min(16.66vw, 200px) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent);
}

/* fotografía de textura, muy atenuada */
.hero__texture {
  position: absolute;
  inset: 0;
  background: url("../img/hero-1.jpg") center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(0.5) contrast(1.1);
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 60%, #000 0%, transparent 72%);
  mask-image: radial-gradient(80% 70% at 30% 60%, #000 0%, transparent 72%);
}

/* grano sutil */
.hero__noise {
  position: absolute;
  inset: -50%;
  opacity: 0.32;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* marca de agua: balanza monumental */
/* La balanza envuelve el arco: sus platos y su base asoman a los lados */
.hero__mark {
  position: absolute;
  right: -9%;
  top: 7%;
  width: min(60vw, 790px);
  height: auto;
  color: rgba(201, 169, 97, 0.14);
  animation: float-mark 14s ease-in-out infinite alternate;
}
@keyframes float-mark {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-26px) rotate(1.5deg); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 105% at 50% 38%, transparent 46%, rgba(4, 7, 12, 0.6) 100%),
    linear-gradient(to bottom, rgba(4, 7, 12, 0.55) 0%, transparent 24%);
}

/* --- contenido --- */
.hero__inner {
  position: relative;
  z-index: 2;
  /* algo más ancho que el resto de la página: el titular necesita el aire */
  max-width: 1400px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 390px);
  gap: clamp(26px, 3vw, 46px);
  align-items: center;
  flex: 1;
  padding-bottom: clamp(28px, 3.4vw, 48px);
}

.hero__copy { max-width: 960px; }

.hero h1 {
  margin-bottom: 32px;
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.022em;
  text-shadow: 0 8px 54px rgba(0, 0, 0, 0.6);
}
.hero h1 .l1,
.hero h1 .l2 {
  display: block;
  text-wrap: balance;
}
.hero h1 .hl {
  /* La palabra clave se destaca con un sutil brillo metálico */
  background: linear-gradient(103deg, #E9D5A4 8%, #C9A961 46%, #F0E0B6 78%, #C9A961 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__cta .btn { padding: 18px 34px; font-size: 0.78rem; }

.hero__trust {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hero__trust li { display: flex; align-items: center; gap: 11px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero__trust b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  white-space: nowrap;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}
.hero__trust span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-top: 2px;
}

/* --- composición visual derecha --- */
.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  aspect-ratio: 42 / 51;
}

/* arco decorativo desfasado */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 22px -20px -20px 24px;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 999px 999px 8px 8px;
  pointer-events: none;
}

.arch {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  isolation: isolate;
}
/* Tinte azulado que integra cualquier fotografía con la paleta oscura */
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 14, 24, 0.22) 0%, rgba(9, 14, 24, 0) 30%, rgba(7, 11, 18, 0.74) 100%),
    linear-gradient(180deg, rgba(13, 26, 48, 0.34), rgba(13, 26, 48, 0.34));
}
.arch .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 28%;
  filter: grayscale(0.22) contrast(1.06) brightness(0.84) saturate(0.9);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity, transform;
}
.arch .hero-slide.is-active { opacity: 1; animation: archZoom 12s ease-out forwards; }

/* destello diagonal que recorre el arco */
.arch__shine {
  position: absolute;
  inset: -45%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(104deg,
    transparent 40%,
    rgba(255, 255, 255, 0.11) 47%,
    rgba(233, 213, 164, 0.07) 52%,
    transparent 60%);
  transform: translateX(-72%);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep {
  0%, 68% { transform: translateX(-72%); }
  100%    { transform: translateX(72%); }
}
@keyframes archZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
/* main.js reutiliza este nombre al reiniciar la animación */
@keyframes heroZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}

/* tarjeta flotante */
.hero__badge {
  position: absolute;
  left: -14%;
  bottom: 16%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 22px;
  background: rgba(11, 17, 27, 0.76);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--gold);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-md);
  animation: rise 1.1s 0.55s var(--ease) both;
}
.hero__badge svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.hero__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.hero__badge span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-top: 5px;
}

/* sello circular */
.hero__seal {
  position: absolute;
  right: -11%;
  top: 8%;
  z-index: 4;
  width: clamp(96px, 11vw, 124px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(9, 14, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 1.1s 0.75s var(--ease) both;
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.hero__seal img {
  width: 54%;
  height: auto;
  margin-inline: auto;
  opacity: 0.92;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* --- cinta inferior de áreas --- */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 19px 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  color: rgba(226, 233, 243, 0.62);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.ticker__item:hover { color: var(--white); }
.ticker__item::after {
  content: "";
  width: 6px; height: 6px;
  margin: 0 30px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* indicador de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, transparent, var(--line-2));
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 20px;
  background: var(--gold);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%   { top: -22px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 58px; opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. Quiénes somos
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
}

.media-cluster { position: relative; padding-bottom: 58px; }
.media-cluster__arch {
  position: relative;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 43 / 52;
}
.media-cluster__arch img { width: 100%; height: 100%; object-fit: cover; }
.media-cluster__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 18, 0.5) 100%);
}
.media-cluster__frame {
  position: absolute;
  inset: 24px -20px -20px 26px;
  border: 1px solid var(--gold-line);
  border-radius: 999px 999px 8px 8px;
  pointer-events: none;
}
.media-cluster__thumb {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 54%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid var(--bg-850);
  box-shadow: var(--sh-md);
}
.media-cluster__thumb img { width: 100%; height: clamp(140px, 17vw, 196px); object-fit: cover; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-row div b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-lit);
}
.stat-row div span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-top: 8px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--txt);
}
.chip::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   8. Mapa de fortalezas
   -------------------------------------------------------------------------- */
/* La sección entera debe caber en una pantalla de escritorio: el ancho del
   mapa se limita también en función de la altura disponible (relación 3:2). */
#fortalezas { padding-block: clamp(72px, 8vw, 118px); }

/* El mapa se dimensiona para que la imagen completa quepa en pantalla con
   holgura: 68svh de alto, convertidos a ancho por su relación 3:2. */
.fmap {
  margin-top: clamp(28px, 3vw, 42px);
  max-width: min(1040px, calc(68svh * 1.5));
  margin-inline: auto;
}

/* El texto guía de esta sección va deliberadamente discreto */
#fortalezas .head-c .lead {
  font-size: 0.9rem;
  line-height: 1.68;
  max-width: 580px;
  margin-inline: auto;
  color: var(--txt-dim);
}
#fortalezas .head-c h2 { margin-bottom: 0.34em; }
#fortalezas .eyebrow { margin-bottom: 16px; }
.fmap__hint { margin-top: 14px; }

.fmap__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-lg);
  isolation: isolate;
  cursor: crosshair;
}
.fmap__stage > img { width: 100%; height: auto; display: block; transition: filter 0.55s var(--ease); }
.fmap__stage.is-active > img { filter: brightness(0.66) saturate(0.9); }
.fmap__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(7, 11, 18, 0.28), transparent 24%, transparent 74%, rgba(7, 11, 18, 0.44));
}

.fmap__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5.6%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 4;
  padding: 0;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fmap__dot::before {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.fmap__dot::after {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.75);
  opacity: 0;
  animation: ping 2.8s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ping {
  0%        { transform: scale(0.78); opacity: 0.8; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
.fmap__dot:hover,
.fmap__dot.is-on {
  background: rgba(201, 169, 97, 0.2);
  border-color: var(--gold-lit);
  box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.12), 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(1.16);
}
.fmap__dot:hover::before,
.fmap__dot.is-on::before { opacity: 1; transform: scale(1); }
.fmap__dot.is-on::after { animation: none; opacity: 0; }
.fmap__stage.is-active .fmap__dot:not(.is-on) { opacity: 0.45; }
.fmap__stage.is-active .fmap__dot::after { animation: none; opacity: 0; }

.fmap__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.fmap__dot:hover .fmap__label { opacity: 1; }
.fmap__dot.is-on .fmap__label { opacity: 0; }

.fmap__card {
  position: absolute;
  z-index: 6;
  width: min(336px, 74%);
  padding: 24px 26px 26px;
  background: linear-gradient(158deg, rgba(19, 29, 44, 0.97), rgba(8, 13, 21, 0.98));
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.42s var(--ease), visibility 0.3s;
  pointer-events: none;
}
.fmap__card.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.fmap__card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 16px;
}
.fmap__card .ico svg { width: 21px; height: 21px; }
.fmap__card h3 { font-size: 1.36rem; margin-bottom: 9px; line-height: 1.22; }
.fmap__card p { font-size: 0.875rem; line-height: 1.66; color: var(--txt); margin: 0; }
.fmap__card .idx {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(201, 169, 97, 0.32);
}
.fmap__close {
  display: none;
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: #fff;
}
.fmap__close svg { width: 15px; height: 15px; margin: auto; }

.fmap__hint {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.fmap__hint svg { width: 16px; height: 16px; color: var(--gold); }

.fmap__list { display: none; margin-top: 26px; list-style: none; padding: 0; gap: 10px; grid-template-columns: 1fr; }
.fmap__list li { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: rgba(255, 255, 255, 0.022); }
.fmap__list b {
  display: flex; align-items: center; gap: 11px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.fmap__list b svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.fmap__list p { font-size: 0.87rem; margin: 0; }

/* --------------------------------------------------------------------------
   9. Áreas de práctica
   -------------------------------------------------------------------------- */
.areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(42px, 5vw, 62px);
}

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 386px;
  padding: 40px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Fotografía del área, revelada al pasar el cursor bajo un velo azul */
.area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(168deg, rgba(14, 24, 40, 0.68) 0%, rgba(7, 11, 18, 0.92) 74%),
    var(--img, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease), transform 1.3s var(--ease);
}
/* filete dorado superior */
.area::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), rgba(201, 169, 97, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.area:hover {
  transform: translateY(-7px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-md);
}
.area:hover::before { opacity: 1; transform: scale(1); }
.area:hover::after { transform: scaleX(1); }

/* número fantasma */
.area__n {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.11);
  transition: -webkit-text-stroke-color 0.5s var(--ease), opacity 0.5s var(--ease);
  pointer-events: none;
  user-select: none;
}
.area:hover .area__n { -webkit-text-stroke-color: rgba(201, 169, 97, 0.55); }

/* icono monumental de marca de agua */
.area__ghost {
  position: absolute;
  right: -40px;
  bottom: -34px;
  width: 205px;
  height: 205px;
  z-index: -1;
  color: rgba(201, 169, 97, 0.2);
  opacity: 0;
  transform: translate(12px, 12px) rotate(-7deg);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.area__ghost svg { width: 100%; height: 100%; }
.area:hover .area__ghost { opacity: 1; transform: none; }

/* Medallón del icono: el elemento protagonista de cada tarjeta */
.area__ico {
  position: relative;
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-lit);
  margin: 6px 0 28px;
  background:
    radial-gradient(circle at 34% 26%, rgba(201, 169, 97, 0.26), rgba(201, 169, 97, 0.06) 58%, transparent 72%);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.area__ico svg { width: 36px; height: 36px; }

/* aro punteado exterior que gira al pasar el cursor */
.area__ico::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 169, 97, 0.32);
  transition: transform 1.1s var(--ease), opacity 0.5s var(--ease), border-color 0.5s var(--ease);
}
.area:hover .area__ico::before {
  transform: rotate(140deg);
  border-color: rgba(201, 169, 97, 0.6);
}
.area:hover .area__ico {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.75);
  box-shadow: 0 0 0 10px rgba(201, 169, 97, 0.05), 0 16px 34px rgba(201, 169, 97, 0.16);
}

.area h3 {
  font-size: 1.62rem;
  margin-bottom: 10px;
  transition: color 0.4s var(--ease);
}
.area p { font-size: 0.865rem; line-height: 1.62; color: var(--txt-dim); margin-bottom: 24px; }
.area .arrow-link { margin-top: auto; color: rgba(201, 169, 97, 0.75); transition: color 0.4s var(--ease); }
.area:hover .arrow-link { color: var(--gold-lit); }
.area__hit { position: absolute; inset: 0; z-index: 3; }

/* franja de orientación */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 4vw, 54px);
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 54px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 200% at 100% 50%, rgba(201, 169, 97, 0.11), transparent 62%),
    linear-gradient(100deg, var(--bg-800), var(--bg-950));
}
.band h3 { margin-bottom: 6px; }
.band p { margin: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   10. Cifras
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(72% 165% at 50% 0%, rgba(201, 169, 97, 0.16), transparent 62%),
    radial-gradient(60% 120% at 50% 108%, rgba(186, 146, 84, 0.1), transparent 66%),
    linear-gradient(180deg, var(--bg-900), var(--bg-950));
}
.stat {
  padding: clamp(52px, 6vw, 84px) 24px clamp(46px, 5vw, 72px);
  text-align: center;
  border-left: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.stat:first-child { border-left: 0; }

.stat b {
  display: block;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7.4vw, 6.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  /* Degradado metálico sobre el número */
  background: linear-gradient(178deg, #FBF0D4 4%, #E4CB94 34%, #C9A961 62%, #93763C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* halo suave detrás de la cifra */
.stat::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14%;
  left: 50%;
  width: 68%;
  aspect-ratio: 1.7;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 169, 97, 0.2), transparent 72%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.stat:hover::before { opacity: 1; }

/* El contador vive dentro de <b>: debe heredar el tamaño del número */
.stat b span { font: inherit; color: inherit; letter-spacing: inherit; }

/* Sólo la etiqueta, que es hija directa de .stat */
.stat > span {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  position: relative;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.stat > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold-line);
}

/* --------------------------------------------------------------------------
   11. Esencia
   -------------------------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
  margin-top: clamp(42px, 5vw, 60px);
}
.pcard {
  position: relative;
  padding: 42px 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.pcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.pcard:hover { transform: translateY(-5px); border-color: var(--gold-line); }
.pcard:hover::before { opacity: 1; }
.pcard .ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 24px;
}
.pcard .ico svg { width: 22px; height: 22px; }
.pcard h3 { margin-bottom: 12px; }
.pcard p { font-size: 0.925rem; margin: 0; }

/* --------------------------------------------------------------------------
   12. CTA final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--bg-950);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 42%;
  opacity: 0.2;
  filter: grayscale(0.35);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 112% at 50% 0%, rgba(201, 169, 97, 0.22), transparent 62%),
    radial-gradient(64% 80% at 50% 104%, rgba(186, 146, 84, 0.16), transparent 66%),
    linear-gradient(to bottom, rgba(8, 13, 21, 0.86), rgba(7, 11, 18, 0.95));
}
.cta h2 { max-width: 19ch; margin-inline: auto; }
.cta p { max-width: 560px; margin-inline: auto; }
.cta .hero__cta { justify-content: center; }

/* --------------------------------------------------------------------------
   13. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 6vw, 88px);
  background:
    radial-gradient(58% 60% at 50% -4%, rgba(201, 169, 97, 0.09), transparent 66%),
    var(--bg-950);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(44px, 5vw, 64px);
}
.footer-brand img { height: 62px; width: auto; margin-bottom: 24px; }
.footer-brand p { font-size: 0.895rem; max-width: 38ch; color: var(--txt-dim); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 0.885rem; color: var(--txt-dim); transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-col li.f-contact { display: flex; gap: 11px; align-items: flex-start; font-size: 0.885rem; color: var(--txt-dim); }
/* el correo es una sola palabra larga: debe poder partirse en pantallas estrechas */
.footer-col li.f-contact a,
.footer-col li.f-contact span { overflow-wrap: anywhere; min-width: 0; }
.footer-col li.f-contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--txt-dim);
}
.footer-legal p { margin: 0; }
.footer-legal .dots { color: rgba(201, 169, 97, 0.62); letter-spacing: 0.15em; }

.footer-credit {
  border-top: 1px solid var(--line);
  background: #04070C;
  text-align: center;
  padding: 21px 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(196, 209, 228, 0.48);
}
.footer-credit a {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-credit a:hover { color: var(--gold-lit); border-color: var(--gold-lit); }

/* --------------------------------------------------------------------------
   14. Widget de WhatsApp
   -------------------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}
.wa-btn {
  position: relative;
  width: 60px; height: 60px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee273, #1da851);
  color: #fff;
  box-shadow: 0 12px 34px rgba(29, 168, 81, 0.38), 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: waPing 2.8s var(--ease) infinite;
}
@keyframes waPing {
  0%        { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
.wa-btn:hover { transform: scale(1.07); box-shadow: 0 16px 44px rgba(29, 168, 81, 0.5); }

.wa-label {
  background: rgba(9, 14, 24, 0.95);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 11px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  box-shadow: var(--sh-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.wa-label small { display: block; font-weight: 400; font-size: 0.71rem; color: var(--txt-dim); }
.wa-widget:hover .wa-label,
.wa-widget:focus-within .wa-label { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. Aparición progresiva
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   16. Adaptación a pantallas
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}

@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy { max-width: none; }
  .hero__visual { width: min(100%, 440px); justify-self: start; }
  .hero__mark { width: 70vw; right: -18%; bottom: -10%; }
  .scroll-cue { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 96px; }

  .site-header,
  .site-header.is-solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-solid { background: rgba(7, 11, 18, 0.985); }
  .brand img { height: 74px; }
  .site-header.is-solid .brand img { height: 62px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: linear-gradient(175deg, #0D1522, #060A11);
    padding: 22px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s;
    margin-left: 0;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open .site-header { background: rgba(7, 11, 18, 0.99); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 19px 2px; font-size: 0.84rem; }
  .nav-link::after { display: none; }

  .dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease);
  }
  .dropdown > .dd-scroll { overflow: hidden; }
  .nav-item.is-open .dropdown { grid-template-rows: 1fr; transform: none; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 12px; }
  .dd-item { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
  .dd-item:hover { background: none; }
  .dropdown-foot { display: none; }

  .nav-cta { margin: 26px 0 0; width: 100%; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }

  /* Hoja inferior: fondo totalmente opaco, sin desenfoque de fondo, para que
     nada de lo que quede detrás se transparente sobre el texto. */
  .fmap__card {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px; top: auto;
    width: auto;
    z-index: 320;
    transform: translateY(24px);
    background: linear-gradient(158deg, #16223A 0%, #080D15 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.5), 0 26px 70px rgba(0, 0, 0, 0.66);
  }
  .fmap__card.is-visible { transform: none; }
  .fmap__card .idx { right: 60px; }
  .fmap__close { display: grid; }
  .fmap__dot { width: 7%; }
  .fmap__label { display: none; }

  body.fmap-open .wa-widget {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 34px); }
  .hero__seal { display: none; }
  .hero__badge { left: 0; bottom: -22px; }
  .media-cluster__thumb { position: static; width: 100%; margin-top: 16px; border-width: 0; }
  .media-cluster { padding-bottom: 0; }
  .media-cluster__frame { inset: 18px -12px -12px 18px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__inner { gap: 44px; }
  .hero__visual { width: min(100%, 310px); }
  .hero__trust { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__trust li:last-child { grid-column: 1 / -1; }
  .band { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .wa-label { display: none; }
  .ticker__item::after { margin: 0 20px; }
}

@media (max-width: 560px) {
  .areas { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .fmap__stage { cursor: default; }
  .fmap__dot { width: 8.5%; }
  .fmap__hint { display: none; }
  /* La lista queda oculta a la vista: las fortalezas se descubren tocando el
     mapa. Sigue en el DOM porque es la fuente de datos y el texto accesible
     (cada punto lleva su título y descripción en aria-label). */
  .hero__visual::before { inset: 16px -10px -10px 16px; }
}
