/* ============================================================================
   Alphabiotic Spine · alphabioticspine.com
   Colores de los logos: azul de la insignia, verde de la columna, gris oscuro y blanco.
   ========================================================================== */
:root {
  --azul: #1677b8;
  --azul-osc: #0d4f80;
  --azul-cl: #8fd3ff;
  --verde: #00a37a;
  --verde-osc: #007f5f;
  --verde-cl: #5fe0b8;
  --marino: #0f2236;
  --marino-2: #14324f;
  --tinta: #1f2933;
  --gris: #52606d;
  --gris-cl: #e4e9f0;
  --borde: #d9e2ec;
  --fondo: #f6f8fb;
  --blanco: #ffffff;
  --alto-cab: 78px;
  --radio: 18px;
  --sombra: 0 18px 50px -24px rgba(15, 34, 54, 0.35);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (max-width: 899px) { :root { --alto-cab: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--fondo); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--tinta); background: transparent; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font: 400 clamp(2rem, 4.2vw, 3rem)/1.08 var(--serif); letter-spacing: -0.01em; color: var(--marino); }
h3 { font-weight: 700; font-size: 1.08rem; }
p { margin: 0 0 1em; }
b { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--alto-cab) + 8px); }

.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--marino); color: #fff; padding: 10px 16px; border-radius: 8px; }
.saltar:focus { left: 12px; }
.contenedor { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.contenedor-angosto { max-width: 820px; }
.eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--azul); }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 999px; border: 0; font: 700 15px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-grande { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn-verde { color: #fff; background: linear-gradient(135deg, #00b386, var(--verde-osc)); box-shadow: 0 10px 26px -12px rgba(0, 150, 110, .8); }
.btn-verde:hover { box-shadow: 0 14px 30px -12px rgba(0, 150, 110, .9); }
.btn-azul { color: #fff; background: linear-gradient(135deg, #1b86c9, var(--azul-osc)); box-shadow: 0 10px 26px -12px rgba(22, 119, 184, .8); }
.btn-claro { color: var(--marino); background: #fff; border: 1px solid var(--borde); box-shadow: 0 8px 22px -14px rgba(15, 34, 54, .5); }
.btn-borde { color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, .38); }
.btn-borde:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- fondo animado (LIGERO: solo CSS)
   Degradados y puntitos FIJOS: se pintan una sola vez. Lo único que se mueve son 2 brillos suaves, y solo
   con transform (lo mueve la tarjeta de video sin volver a dibujar nada). Sin canvas, sin dibujo por cuadro.
   Alto = 100lvh: en el celular no cambia de tamaño cuando aparece/desaparece la barra del navegador. */
.fondo { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(70vmax 50vmax at 100% 0%, rgba(22, 119, 184, .10), rgba(22, 119, 184, 0) 62%),
    radial-gradient(60vmax 45vmax at 0% 100%, rgba(15, 34, 54, .07), rgba(15, 34, 54, 0) 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f5f9 55%, #eef2f7 100%); }
.fondo::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle, rgba(22, 119, 184, .38) 1px, rgba(22, 119, 184, 0) 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 25%, transparent 78%); }
.brillo { position: absolute; border-radius: 50%; }
.b1 { width: 48vmax; height: 48vmax; left: -14vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(22, 119, 184, .17), rgba(22, 119, 184, 0) 66%);
  animation: brillo1 26s ease-in-out infinite alternate; }
.b2 { width: 42vmax; height: 42vmax; right: -12vmax; bottom: -14vmax;
  background: radial-gradient(circle, rgba(52, 64, 78, .13), rgba(52, 64, 78, 0) 66%);
  animation: brillo2 32s ease-in-out infinite alternate; }
@keyframes brillo1 { to { transform: translate3d(40vw, 34vh, 0); } }
@keyframes brillo2 { to { transform: translate3d(-36vw, -38vh, 0); } }
.fondo.en-pausa .brillo { animation-play-state: paused; }   /* en pantalla solo hay secciones con fondo propio: no se mueve */
@media (prefers-reduced-motion: reduce) { .brillo { animation: none; } }

/* ---------------------------------------------------------------- cabecera */
/* sin desenfoque detrás (backdrop-filter): sobre el video obligaba a redibujar en cada cuadro al bajar */
.cabecera { position: sticky; top: 0; z-index: 50; height: var(--alto-cab); background: #fff;   /* opaca: sobre el video no se transparenta nada */
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.cabecera.con-sombra { border-color: var(--gris-cl); box-shadow: 0 10px 30px -22px rgba(15, 34, 54, .5); }
.cabecera-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.marca { flex: 0 0 auto; display: flex; align-items: center; }
.marca img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 24px); margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--tinta); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--verde); transition: right .25s ease; }
.nav a:hover::after, .nav a.activo::after { right: 0; }
.nav a.activo { color: var(--azul-osc); }

.aparta { position: relative; flex: 0 0 auto; }
.aparta-btn { padding-inline: 18px 14px; }
.aparta-btn .flecha { width: 16px; height: 16px; transition: transform .2s ease; }
.aparta.abierto .flecha { transform: rotate(180deg); }
.aparta-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 250px; padding: 8px; border-radius: 16px; background: #fff;
  border: 1px solid var(--gris-cl); box-shadow: var(--sombra); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.aparta.abierto .aparta-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.aparta-op { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.aparta-op b { color: var(--marino); }
.aparta-op small { color: var(--gris); font-size: 13px; }
.aparta-op:hover, .aparta-op:focus-visible { background: #eef6fb; }

.hamburguesa { display: none; width: 46px; height: 46px; margin-left: 4px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburguesa span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--marino); transition: transform .25s ease, opacity .2s ease; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu-movil { position: fixed; left: 0; right: 0; top: var(--alto-cab); height: calc(100dvh - var(--alto-cab)); overflow-y: auto;
  padding: 18px clamp(18px, 4vw, 32px) calc(28px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--gris-cl);
  opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease; }
.menu-movil.abierto { opacity: 1; transform: none; }
.menu-movil nav { display: flex; flex-direction: column; }
.menu-movil nav a { padding: 15px 4px; border-bottom: 1px solid var(--gris-cl); font-size: 18px; font-weight: 600; color: var(--marino); text-decoration: none; }
.menu-movil-cta { display: grid; gap: 12px; margin-top: 22px; }
.menu-movil-cta .btn { min-height: 54px; font-size: 16px; }
body.menu-abierto { overflow: hidden; }

@media (max-width: 1080px) { .nav { gap: 14px; } .nav a { font-size: 13.5px; } }
@media (max-width: 979px) {
  .nav { display: none; }
  .hamburguesa { display: flex; }
  .aparta { margin-left: auto; }
}
@media (max-width: 899px) { .marca img { height: 48px; } }
@media (max-width: 520px) { .aparta { display: none; } .hamburguesa { margin-left: auto; } }

/* ---------------------------------------------------------------- inicio (hero) */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(28px, 5vw, 64px);
  min-height: min(calc(100svh - var(--alto-cab)), 860px); padding-block: clamp(32px, 6vh, 64px); }
.hero-texto h1 { font: 400 clamp(2.6rem, 5.6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -0.015em; color: var(--marino); margin-bottom: 20px; }
.hero-texto h1 em { font-style: italic; color: var(--verde-osc); }
.hero-lead { max-width: 33em; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--gris); margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-puntos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-puntos li { padding-left: 12px; border-left: 3px solid var(--verde); font-size: 14px; color: var(--gris); }
.hero-puntos b { display: block; font: 400 1.5rem/1.1 var(--serif); color: var(--marino); }

.hero-marco { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 9 / 16; max-height: calc(100svh - var(--alto-cab) - 80px);
  border-radius: 30px; overflow: hidden; background: #0f2236 url("media/hero.webp") center / cover;
  box-shadow: 0 40px 80px -36px rgba(15, 34, 54, .6), 0 0 0 10px rgba(255, 255, 255, .7); animation: flota 7s ease-in-out infinite; }
@supports not (aspect-ratio: 1) { .hero-marco { height: 640px; } }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.chip-fecha { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: rgba(15, 34, 54, .78); color: #fff; font-size: 14px; line-height: 1.3; }
.chip-fecha b { color: var(--verde-cl); }
/* el puntito que «late»: un aro que crece y se desvanece (solo transform/opacity: no se redibuja en cada cuadro) */
.punto { position: relative; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--verde-cl); }
.punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--verde-cl); opacity: .7; animation: late 2s ease-out infinite; }
@keyframes late { 70%, 100% { transform: scale(3); opacity: 0; } }
@keyframes flota { 50% { transform: translateY(-10px); } }
.bajar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 26px; height: 40px; border: 2px solid rgba(15, 34, 54, .35); border-radius: 14px; }
.bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--azul); animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .hero-marco, .punto::after, .bajar span { animation: none; } }
.hero.en-pausa .hero-marco, .hero.en-pausa .punto::after, .hero.en-pausa .bajar span { animation-play-state: paused; }   /* fuera de pantalla no se mueve */

/* celular y tableta: el video llena el inicio y el texto va encima */
@media (max-width: 899px) {
  .hero-grid { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
    min-height: calc(100svh - var(--alto-cab)); padding-block: 96px 74px; }
  .hero-marco { position: absolute; inset: 0; width: auto; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; animation: none; z-index: 0;
    justify-self: stretch; align-self: stretch; }
  .hero-marco::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 34, 54, .55) 0%, rgba(15, 34, 54, .15) 30%, rgba(15, 34, 54, .55) 58%, rgba(10, 24, 38, .92) 100%); }
  .chip-fecha { top: 14px; bottom: auto; left: clamp(18px, 4vw, 32px); right: auto; z-index: 1; background: rgba(15, 34, 54, .62); }
  .hero-texto { position: relative; z-index: 1; color: #fff; }
  .hero-texto .eyebrow { color: var(--azul-cl); }
  .hero-texto h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
  .hero-texto h1 em { color: var(--verde-cl); }
  .hero-lead { color: rgba(255, 255, 255, .9); }
  .hero-puntos li { color: rgba(255, 255, 255, .85); border-left-color: var(--verde-cl); }
  .hero-puntos b { color: #fff; }
  .bajar { border-color: rgba(255, 255, 255, .55); z-index: 1; }
  .bajar span { background: #fff; }
}
@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-puntos { gap: 10px 18px; }
  .hero-puntos li { font-size: 13px; }
}
@media (max-height: 640px) and (max-width: 899px) { .hero-grid { padding-block: 84px 56px; } .hero-puntos { display: none; } }

/* ---------------------------------------------------------------- secciones */
.seccion { position: relative; padding-block: clamp(64px, 9vw, 116px); }
.seccion-blanca { background: rgba(255, 255, 255, .86); }
.seccion-oscura { color: #dbe6f1; background: radial-gradient(120% 90% at 85% 0%, #1c4a73 0%, transparent 55%), linear-gradient(160deg, var(--marino) 0%, #10283f 60%, #0c1d2f 100%); }
.seccion-oscura h2, .seccion-oscura h3 { color: #fff; }
.seccion-oscura .eyebrow { color: var(--verde-cl); }
.titulo-seccion { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.titulo-seccion h2 { margin-bottom: 16px; }
.titulo-seccion p { color: var(--gris); font-size: 1.06rem; }
.seccion-oscura .titulo-seccion p { color: #b9c9d9; }
.titulo-seccion.izquierda { text-align: left; margin-inline: 0; }

/* qué es */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.tarjeta { padding: 26px 24px; border-radius: var(--radio); background: rgba(255, 255, 255, .88); border: 1px solid var(--gris-cl);
  box-shadow: 0 16px 40px -30px rgba(15, 34, 54, .45); transition: transform .25s ease, box-shadow .25s ease; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -28px rgba(15, 34, 54, .5); }
.tarjeta h3 { margin: 16px 0 8px; color: var(--marino); }
.tarjeta p { margin: 0; color: var(--gris); font-size: 15px; }
.icono { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff;
  background: linear-gradient(135deg, var(--azul), var(--verde)); box-shadow: 0 10px 22px -12px rgba(22, 119, 184, .9); }
.icono svg { width: 26px; height: 26px; fill: currentColor; }

/* felipe */
.felipe-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 6vw, 72px); }
.felipe-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 470px; margin-inline: auto; }
.insignia { grid-column: 1 / -1; width: 100%; height: auto; border-radius: 50%; box-shadow: 0 30px 60px -30px rgba(13, 79, 128, .7); }
.felipe-mini { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 34px -22px rgba(15, 34, 54, .6); }
.felipe-texto h2 { margin-bottom: 8px; }
.subrayado { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: #e6f6f1; color: var(--verde-osc); font-weight: 700; font-size: 14.5px; }
.felipe-texto > p { color: var(--gris); font-size: 1.04rem; }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.cifras div { padding: 16px 14px; border-radius: 16px; background: var(--fondo); border: 1px solid var(--gris-cl); text-align: center; }
.cifras dt { font: 400 1.9rem/1 var(--serif); color: var(--azul-osc); }
.cifras dd { margin: 6px 0 0; font-size: 13px; color: var(--gris); line-height: 1.35; }

/* tu sesión */
.sesion-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 72px); }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pasos li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--gris-cl); }
.num { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--azul), var(--verde)); }
.pasos h3 { margin: 6px 0 4px; color: var(--marino); }
.pasos p { margin: 0; color: var(--gris); font-size: 15px; }
.video-voz { position: relative; margin: 0 auto; width: min(100%, 360px); }
.video-voz video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #0f2236; box-shadow: var(--sombra); }
.video-voz .play { position: absolute; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--verde-osc); cursor: pointer; display: grid; place-items: center; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6);
  transition: transform .2s ease; }
.video-voz .play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-voz .play svg { width: 38px; height: 38px; margin-left: 5px; fill: currentColor; }
.video-voz.reproduciendo .play { display: none; }
.video-voz figcaption { margin-top: 14px; text-align: center; font-weight: 700; color: var(--marino); }
/* pantalla completa: el video se ve ENTERO (con barras a los lados si es vertical), nunca recortado */
video:fullscreen { object-fit: contain !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000 !important; }
video:-webkit-full-screen { object-fit: contain !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000 !important; }
.video-voz figcaption span { font-weight: 500; color: var(--gris); }

/* sedes */
.sedes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sede { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); }
.sede-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sede h3 { font: 400 clamp(1.8rem, 3vw, 2.2rem)/1.05 var(--serif); }
.etiqueta { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(143, 211, 255, .14); color: var(--azul-cl); border: 1px solid rgba(143, 211, 255, .3); }
.etiqueta-verde { background: rgba(95, 224, 184, .14); color: var(--verde-cl); border-color: rgba(95, 224, 184, .35); }
.sede-fecha { margin: 14px 0 18px; font-size: 1.12rem; font-weight: 700; color: #fff; }
.datos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.datos li { display: flex; gap: 12px; align-items: flex-start; color: #cfdbe7; font-size: 15px; }
.datos svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; fill: var(--verde-cl); color: var(--verde-cl); }
.datos b { color: #fff; }
.nota { font-size: 14px; color: #9fb3c8; }
.sede-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.mapa { position: relative; margin-top: 18px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .2); display: grid; place-items: center; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-btn { padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; cursor: pointer; }
.mapa-btn:hover { background: rgba(255, 255, 255, .16); }

/* videos y fotos */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 22px; margin-bottom: 30px; }
.video-tarjeta { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 16; background: #0f2236; box-shadow: var(--sombra); }
.video-tarjeta video { width: 100%; height: 100%; object-fit: cover; }
.video-tarjeta figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(10, 24, 38, .85)); }
.galeria { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.foto { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #dfe7ef; }
.foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.foto:hover img { transform: scale(1.06); }

/* preguntas */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--gris-cl); box-shadow: 0 10px 30px -26px rgba(15, 34, 54, .5); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--marino); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--verde), var(--verde)) center / 14px 2.5px no-repeat, linear-gradient(var(--verde), var(--verde)) center / 2.5px 14px no-repeat;
  transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--gris); }

/* contacto y pie */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contacto h2 { margin-bottom: 16px; }
.contacto p { color: #b9c9d9; font-size: 1.05rem; }
.contacto-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contacto-tarjetas { display: grid; gap: 12px; }
.wa-tarjeta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .2s ease, transform .2s ease; }
.wa-tarjeta:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.wa-tarjeta b { display: block; }
.wa-tarjeta small { color: #b9c9d9; font-size: 14px; }
.wa-ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #25d366; }
.wa-ico svg { width: 26px; height: 26px; fill: #fff; }
.direcciones { padding: 4px 4px 0; }
.direcciones p { margin: 6px 0; font-size: 14px; color: #9fb3c8; }
.direcciones b { color: #dbe6f1; }
.pie { padding: 44px 0 calc(96px + env(safe-area-inset-bottom)); background: #0a1828; color: #8ea3b8; text-align: center; }
.pie-in img { width: 190px; height: auto; margin: 0 auto 14px; }
.pie p { margin: 4px 0; font-size: 14px; }
.pie-chico { font-size: 12.5px; opacity: .8; }

/* whatsapp flotante */
.wa-flotante { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.wa-flotante.visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.wa-boton { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25d366; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.wa-boton:hover { transform: scale(1.06); }
.wa-boton svg { width: 30px; height: 30px; fill: #fff; }
.wa-opciones { position: absolute; right: 0; bottom: 70px; display: grid; gap: 6px; min-width: 200px; padding: 8px; border-radius: 16px; background: #fff;
  border: 1px solid var(--gris-cl); box-shadow: var(--sombra); }
.wa-opciones a { padding: 12px 14px; border-radius: 10px; font-weight: 700; color: var(--marino); text-decoration: none; }
.wa-opciones a:hover { background: #e9f9ef; }
body.menu-abierto .wa-flotante { display: none; }

/* visor de fotos */
.visor { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(6, 14, 24, .92); }
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(6, 14, 24, .6); }
.visor img { max-width: min(92vw, 640px); max-height: 88vh; width: auto; height: auto; border-radius: 16px; }
.visor-cerrar { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* aparecer al bajar */
.js .revela { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .revela.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .revela { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- tamaños intermedios y celular */
@media (max-width: 979px) {
  .felipe-grid, .sesion-grid, .contacto-grid { grid-template-columns: 1fr; }
  .felipe-texto { text-align: center; }
  .felipe-texto .titulo-seccion { text-align: center; }
  .titulo-seccion.izquierda { text-align: center; margin-inline: auto; }
  .contacto-grid > div:first-child { text-align: center; }
  .contacto-cta { justify-content: center; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) { .sedes { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  /* videos: carrusel que se desliza de lado (no ocupa tanto alto en el celular) */
  .videos { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 68%; justify-content: start; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * clamp(18px, 4vw, 32px)); padding-inline: clamp(18px, 4vw, 32px);
    scroll-padding-inline: clamp(18px, 4vw, 32px); scrollbar-width: none; }
  .videos::-webkit-scrollbar { display: none; }
  .video-tarjeta { scroll-snap-align: start; }
  .cifras dt { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sede-botones .btn { flex: 1 1 auto; }
  .sede-botones .btn-verde { flex-basis: 100%; }
  .contacto-cta .btn { flex: 1 1 100%; }
  .cifras { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cifras div { padding: 12px 6px; }
  .cifras dd { font-size: 12px; }
  .pasos li { padding: 16px; }
}
@media (max-width: 360px) { .btn { padding-inline: 16px; } .cifras dt { font-size: 1.35rem; } }
