/* =========================================================
   TEMPLARIO · Landing
   Estética: muro de piedra oscuro + tinte azul + acentos cian
   ========================================================= */

:root {
  --ink: #040c16;          /* fondo más profundo */
  --navy: #0a1d31;         /* azul marino base */
  --blue: #12406a;         /* azul medio (tinte de fotos) */
  --cyan: #1eb6e8;         /* acento principal */
  --cyan-light: #7fdcff;   /* brillo del acento */
  --wa-light: #5ef08f;     /* WhatsApp: brillo */
  --wa: #25d366;           /* WhatsApp: verde marca */
  --wa-deep: #0b7a55;      /* WhatsApp: sombra */
  --text: #eaf3fa;
  --muted: #a3b9cb;

  --font-body: "Poppins", system-ui, sans-serif;
  --font-display: "Michroma", "Poppins", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  /* Imagen de muro (ver README de fondos). Si no existe, se usa la textura generada. */
  --wall: url("../assets/fondos/muro-piedra.webp");
  --wall-mobile: url("../assets/fondos/muro-piedra-movil.webp");
  --dust: url("../assets/texturas/polvo-rayones.webp");
  --wear: url("../assets/texturas/desgaste.webp");
  /* Textura de respaldo: ruido tipo piedra generado con SVG */
}

/* Fuentes alojadas en el sitio (latin) — Michroma + Poppins */
@font-face {
  font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/michroma-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa-light) 0%, var(--wa) 45%, var(--wa-deep) 100%);
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,50,25,.55), 0 0 10px rgba(4,12,22,.25);
  font-weight: 700; letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(94,240,143,.45), 0 10px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(94,240,143,.75), 0 14px 40px -6px rgba(37,211,102,.8); }
.btn:focus-visible { outline: 2px solid var(--wa-light); outline-offset: 3px; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 2em; font-size: 1.05rem; }

.link-arrow { color: var(--muted); text-decoration: none; font-weight: 500; }
.link-arrow:hover { color: var(--cyan-light); }

.text-glow {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan-light) 40%, var(--cyan) 75%, #0c6f9e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(30,182,232,.35));
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(4,12,22,.85), rgba(4,12,22,0));
  transition: background .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  background: rgba(4,12,22,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,182,232,.18);
}
.header__inner {
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__shield { width: 34px; height: auto; }
.brand__name { font-weight: 700; letter-spacing: .12em; font-size: 1.05rem; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) clamp(72px, 9vw, 130px);
  overflow: hidden;
  isolation: isolate;
}

/* Capa de fondo: imagen de muro (si existe) + tinte azul + textura */
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(18,64,106,.45), transparent 60%),
    linear-gradient(90deg, rgba(4,12,22,.55) 0%, rgba(4,12,22,.15) 45%, rgba(4,12,22,.35) 100%),
    linear-gradient(180deg, rgba(10,29,49,.25), rgba(4,12,22,.35) 80%, rgba(4,12,22,.55)),
    var(--wall) center / cover no-repeat,
    var(--navy);
}
.hero__bg::after { /* polvo y rayones */
  content: ""; position: absolute; inset: 0;
  background: var(--dust) 0 0 / 520px repeat;
  mix-blend-mode: screen; opacity: .22;
}

/* Foto con borde curvo, como la referencia */
.hero__photo {
  position: absolute; z-index: -2;
  top: 0; right: 0; bottom: 0;
  width: min(56vw, 900px);
}
.hero__photo-frame,
.hero__photo-ring {
  position: absolute; inset: 0;
  border-radius: 100% 0 0 100% / 62% 0 0 62%;
}
.hero__photo-frame { overflow: hidden; }
.hero__photo-ring {
  inset: -14px 0 -14px -26px;
  border: 2px solid var(--cyan);
  border-right: 0;
  opacity: .9;
  filter: drop-shadow(0 0 10px rgba(30,182,232,.6));
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.3) brightness(.9);
}
/* Duotono azul + fundido hacia el contenido */
.hero__photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,12,22,.85) 0%, rgba(4,12,22,0) 35%),
    linear-gradient(0deg, rgba(4,12,22,.9) 0%, rgba(4,12,22,0) 30%),
    linear-gradient(135deg, rgba(30,120,190,.35), rgba(4,12,22,.55));
}
.hero__photo-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #1a5f99; mix-blend-mode: color; opacity: .55;
}

/* Decoraciones */
.deco { position: absolute; z-index: -1; fill: none; pointer-events: none; }
.deco--arc {
  top: 0; left: 0; width: min(38vw, 420px); height: min(30vw, 320px);
  stroke: var(--cyan); stroke-width: 3; opacity: .85;
  filter: drop-shadow(0 0 8px rgba(30,182,232,.7));
  vector-effect: non-scaling-stroke;
}
.deco--arc path { vector-effect: non-scaling-stroke; }
.deco--waves {
  right: -40px; bottom: -30px; width: min(55vw, 640px);
  stroke: var(--cyan); stroke-width: 1.1; opacity: .55;
}
.deco--cross {
  left: -40px; bottom: -110px; width: min(18vw, 190px);
  stroke: var(--cyan); stroke-width: 3; opacity: .4;
}

/* Contenido */
.hero__content {
  position: relative;
  width: 100%; max-width: 1280px; margin: 0 auto;
}
.hero__content > * { max-width: min(600px, 42vw); }

.lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.lockup__shield { width: 72px; height: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }
.lockup__name { margin: 0; font-weight: 700; font-size: 1.9rem; letter-spacing: .08em; line-height: 1; }
.lockup__tag {
  margin: 8px 0 0; font-size: .68rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}

.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: .01em;
}
.hero__lead { text-shadow: 0 1px 12px rgba(4,12,22,.95), 0 0 2px rgba(4,12,22,.9); margin: 0 0 32px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 520px; }
.hero__sign { margin: -20px 0 32px; font-size: .85rem; font-weight: 500; letter-spacing: .06em; color: var(--cyan-light); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 40px; }

.proof {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.proof li {
  display: flex; flex-direction: column;
  padding: 12px 18px;
  border: 1px solid rgba(30,182,232,.3);
  border-radius: 14px;
  background: rgba(10,29,49,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proof strong { font-size: 1.35rem; line-height: 1.2; color: var(--cyan-light); }
.proof span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Secciones (base) ---------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.section::before { /* muro de piedra, más oscuro que en el hero */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(18,64,106,.4), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(18,64,106,.3), transparent 60%),
    linear-gradient(180deg, rgba(4,12,22,.95), rgba(4,12,22,.72) 30%, rgba(4,12,22,.7) 75%, rgba(4,12,22,.45)),
    var(--wall) center / 1400px auto repeat,
    var(--ink);
}
.section::after { /* polvo y rayones */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--dust) 0 0 / 520px repeat;
  mix-blend-mode: screen; opacity: .16;
  pointer-events: none;
}
.section--alt::before { background-position: 0 0, 0 0, 0 0, 50% 30%, 0 0; }

/* Borde rasgado entre secciones */
.tear {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2;
  height: clamp(48px, 7vw, 110px);
  background: url("../assets/texturas/borde-rasgado.webp") center bottom / 100% 100% no-repeat;
  filter: drop-shadow(0 -1.5px 0 rgba(30,182,232,.55)) drop-shadow(0 -8px 18px rgba(30,182,232,.15));
  pointer-events: none;
}
.tear--top { top: -2px; bottom: auto; transform: scaleY(-1); }

/* Desgaste en titulares (tipo sello) */
.hero__title, .section-title {
  -webkit-mask-image: linear-gradient(#000, #000), var(--wear);
  -webkit-mask-size: 100% 100%, 300px;
  -webkit-mask-composite: xor;
          mask-image: linear-gradient(#000, #000), var(--wear);
          mask-size: 100% 100%, 300px;
          mask-composite: exclude;
}
.container { max-width: 1120px; margin: 0 auto; }
/* Rendimiento: el navegador omite el render de secciones fuera de pantalla */
.metodo, .resultados, .fundador, .faq { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow {
  margin: 0 0 14px;
  font-size: .75rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin: 0 12px; opacity: .6;
}
.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1.25;
}
.section-title .text-glow { display: inline; }
.section-title, .hero__title { text-wrap: balance; }
.section-lead { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); }
.section-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 56px); }

.deco--arc-right {
  top: 0; right: 0; width: min(34vw, 380px); height: min(28vw, 300px);
  stroke: var(--cyan); stroke-width: 3; opacity: .6;
  filter: drop-shadow(0 0 8px rgba(30,182,232,.6));
}
.deco--arc-right path { vector-effect: non-scaling-stroke; }

/* ---------- Intro con video (primera pantalla) ---------- */
.intro { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); }
.intro .section-head { max-width: 980px; margin-bottom: clamp(20px, 3vw, 32px); }
.intro .section-title { font-size: clamp(1.25rem, 2.6vw, 2.1rem); }
/* el video cabe completo en la primera pantalla */
.intro .video { max-width: min(960px, calc((100svh - var(--header-h) - 220px) * 16 / 9)); min-width: min(100%, 560px); }
.intro .section-cta { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- Video ---------- */
.video { position: relative; max-width: 960px; margin: 0 auto; }
.video__ring {
  position: absolute; inset: -10px; border-radius: 26px;
  border: 1px solid rgba(30,182,232,.45);
  box-shadow: 0 0 40px -10px rgba(30,182,232,.5);
  pointer-events: none;
}
.video__facade, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: 18px; overflow: hidden;
  background: var(--navy);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.video__facade { padding: 0; cursor: pointer; }
.video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.85) brightness(.8); }
.video__facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,12,22,0) 55%, rgba(4,12,22,.75));
}
.video__cta {
  position: absolute; z-index: 1; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 14px;
}
.video__label {
  font-weight: 600; font-size: clamp(.85rem, 1.4vw, 1.05rem); letter-spacing: .04em; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.video__play {
  position: relative;
  width: clamp(52px, 6vw, 72px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan) 50%, #0d7fb3);
  color: #031222;
  box-shadow: 0 0 0 10px rgba(30,182,232,.18), 0 0 40px rgba(30,182,232,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video__play svg { width: 42%; height: 42%; margin-left: 6%; }
.video__facade:hover .video__thumb { transform: scale(1.03); filter: saturate(1) brightness(.9); }
.video__facade:hover .video__play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(30,182,232,.22), 0 0 60px rgba(30,182,232,.8); }
.video__facade:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 4px; }

/* ---------- Pilares ---------- */
.pillars {
  list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillars--flush { margin-top: 0; }
.pillar {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(30,182,232,.22);
  background: linear-gradient(180deg, rgba(18,64,106,.35), rgba(10,29,49,.35));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .25s ease, transform .25s ease;
}
.pillar:hover { border-color: rgba(30,182,232,.6); transform: translateY(-4px); }
.pillar__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%; border: 1.5px solid var(--cyan);
  color: var(--cyan-light);
  box-shadow: 0 0 20px -4px rgba(30,182,232,.6);
}
.pillar__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Resultados ---------- */
.container--wide { max-width: 1240px; }
.deco--waves-left { left: -120px; right: auto; top: 80px; bottom: auto; transform: scaleX(-1); opacity: .35; }

.results {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.result {
  position: relative;
  padding: 14px 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(30,182,232,.22);
  background: linear-gradient(180deg, rgba(18,64,106,.4), rgba(10,29,49,.5));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.result:hover { border-color: rgba(30,182,232,.6); transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(30,182,232,.45); }

.result__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; }
.result__head strong { font-size: 1.5rem; line-height: 1.1; color: var(--cyan-light); font-weight: 800; }
.result__head span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.result__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.result__photos figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 5; background: var(--navy); }
.result__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.result__photos figure::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(0deg, rgba(4,12,22,.85), transparent);
}
.result__photos figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 10px;
  text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
.result__photos figure + figure figcaption { color: var(--cyan-light); }
.result__photos figure + figure::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border: 1.5px solid rgba(30,182,232,.75); border-radius: inherit;
}

.result__arrow { /* doble chevrón en el centro */
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--cyan);
  box-shadow: 0 0 18px rgba(30,182,232,.6);
}
.result__arrow::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cyan-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l5 5-5 5M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l5 5-5 5M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.result__stat { margin: 14px 6px 0; font-size: .92rem; font-weight: 600; color: var(--text); }
.result__stat span { color: var(--cyan); margin: 0 4px; }

.results__hint { display: none; }
.results__note { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: .78rem; color: var(--muted); opacity: .75; }

/* ---------- Sobre el fundador ---------- */
.fundador__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.fundador__photo { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.fundador__frame, .fundador__ring { border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; }
.fundador__frame { position: relative; overflow: hidden; aspect-ratio: 900 / 1034; background: var(--navy); }
.fundador__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.25) brightness(.92); }
.fundador__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #1a5f99; mix-blend-mode: color; opacity: .55; }
.fundador__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(4,12,22,.85), transparent 40%); }
.fundador__ring {
  position: absolute; inset: -12px; border: 2px solid var(--cyan);
  filter: drop-shadow(0 0 10px rgba(30,182,232,.6)); pointer-events: none;
}
.fundador__photo figcaption {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan-light);
}
.fundador__text { min-width: 0; }
.fundador__text > p { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.fundador__text strong { color: var(--text); font-weight: 600; }
.fundador__text .section-title { margin-bottom: 24px; }
.eyebrow--left::before { display: none; }

.credenciales { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.credenciales li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(30,182,232,.28);
  background: linear-gradient(180deg, rgba(18,64,106,.4), rgba(10,29,49,.45));
}
.credenciales strong { font-size: 1.15rem; font-weight: 800; color: var(--cyan-light); line-height: 1.2; }
.credenciales span { font-size: .78rem; color: var(--muted); line-height: 1.4; }

.valores { list-style: none; margin: 4px 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.valores li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(127,220,255,.35);
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}

/* ---------- Preguntas frecuentes ---------- */
.container--narrow { max-width: 820px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid rgba(30,182,232,.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,64,106,.32), rgba(10,29,49,.4));
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(30,182,232,.55); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item summary:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 2px; border-radius: 16px; }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 65ch; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 48px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  border-top: 1px solid rgba(30,182,232,.18);
}
.footer__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 36px; height: auto; }
.footer__name { margin: 0; font-weight: 700; letter-spacing: .12em; }
.footer__tag { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__links a, .footer__cookies {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; cursor: pointer;
}
.footer__links a:hover, .footer__cookies:hover { color: var(--cyan-light); }
.footer__copy { margin: 0; font-size: .78rem; color: var(--muted); opacity: .75; }
.footer__copy a { color: inherit; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 70;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(30,182,232,.35);
  background: rgba(6,16,30,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.8);
}
.cookie-banner__title { margin: 0 0 6px; font-weight: 700; }
.cookie-banner__desc { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.cookie-banner__desc a { color: var(--cyan-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-btn {
  padding: .65em 1.2em; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--cyan); background: var(--cyan); color: #031222;
}
.cookie-btn--ghost { background: transparent; color: var(--text); border-color: rgba(163,185,203,.4); }
.cookie-btn:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 2px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: linear-gradient(135deg, var(--wa-light), var(--wa) 50%, var(--wa-deep)); color: var(--text);
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 4px rgba(37,211,102,.2);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .icon { width: 30px; height: 30px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .fundador__grid { grid-template-columns: 1fr; }
  .fundador__photo { max-width: 380px; }
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; --wall: var(--wall-mobile); }

  /* El contenido se apoya abajo; la foto llena la parte superior detrás */
  .hero {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 60px;
  }
  .hero__photo { left: 0; width: 100%; bottom: auto; height: 64%; }
  .hero__photo-frame { border-radius: 0; }
  .hero__photo-ring { display: none; }
  .hero__photo-frame::after {
    background:
      linear-gradient(0deg, rgba(4,12,22,1) 0%, rgba(4,12,22,.55) 30%, rgba(4,12,22,0) 60%),
      linear-gradient(135deg, rgba(30,120,190,.35), rgba(4,12,22,.45));
  }
  .hero__photo img { object-position: 50% 15%; }

  .deco--arc { width: 60vw; height: 46vw; }
  .deco--waves { width: 110vw; bottom: auto; top: 46%; right: -20vw; opacity: .3; }
  .deco--cross { display: none; }

  .hero__content > * { max-width: 100%; }
  .lockup { gap: 12px; margin-bottom: 14px; }
  .lockup__shield { width: 42px; }
  .lockup__name { font-size: 1.25rem; }
  .lockup__tag { font-size: .54rem; letter-spacing: .2em; }

  .hero__title { font-size: clamp(1.45rem, 6.6vw, 2.4rem); margin-bottom: 12px; }
  .hero__lead { font-size: .95rem; margin-bottom: 20px; line-height: 1.55; }
  .hero__sign { margin: -10px 0 18px; font-size: .78rem; }

  .hero__sign { margin: -20px 0 32px; font-size: .85rem; font-weight: 500; letter-spacing: .06em; color: var(--cyan-light); }
.hero__actions { margin-bottom: 18px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__actions .link-arrow { display: none; }

  .proof { flex-wrap: nowrap; gap: 8px; }
  .proof li { flex: 1; padding: 8px 6px; text-align: center; align-items: center; border-radius: 12px; }
  .proof strong { font-size: 1.05rem; }
  .proof span { font-size: .56rem; letter-spacing: .08em; }

  /* En móvil el WhatsApp vive en el botón flotante */
  .header .btn--sm { display: none; }
  .wa-float { display: grid; }
  .credenciales { grid-template-columns: 1fr; }
  .credenciales li { flex-direction: row; align-items: baseline; gap: 10px; }
  .credenciales strong { font-size: 1rem; white-space: nowrap; }
  .fundador .btn { width: 100%; justify-content: center; }
  .fundador__photo { max-width: 300px; }

  .eyebrow { letter-spacing: .2em; font-size: .68rem; }
  .eyebrow::before, .eyebrow::after { display: none; }
  /* Botones más compactos en celular */
  .btn--lg { font-size: .9rem; padding: .8em 1.1em; gap: .5em; }
  .btn--lg .icon { width: 1.1em; height: 1.1em; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float .icon { width: 26px; height: 26px; }
  .video__ring { inset: -6px; border-radius: 18px; }
  .video__facade, .video iframe { border-radius: 14px; }
  .pillar { padding: 24px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .pillar__icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .pillar__icon svg { width: 24px; height: 24px; }
  .section-cta .btn { width: 100%; justify-content: center; }
  .deco--arc-right { width: 50vw; height: 40vw; opacity: .45; }

  /* Resultados: carrusel deslizable */
  .results {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .results::-webkit-scrollbar { display: none; }
  .result { flex: 0 0 84%; scroll-snap-align: center; display: flex; flex-direction: column; }
  .result__head { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 10px; }
  .result__stat { margin-top: auto; padding-top: 12px; }
  .result:hover { transform: none; }
  .results__hint { display: block; margin: 8px 0 0; text-align: center; font-size: .78rem; color: var(--cyan); letter-spacing: .08em; }
  .deco--waves-left { width: 120vw; top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
