/* =========================================================================
   Almacenar — v nueva (a7). Recurso de marca: puntos que entran desordenados
   y Kovix ordena en carriles. Sobrio, blanco, navy + azul.
   ========================================================================= */

/* ---------- HERO con el recurso de marca ---------- */
.ah { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #fff; padding: 120px 0 80px; }
.ah__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.6) 32%, rgba(255,255,255,0) 50%); }
.ah__in { position: relative; z-index: 2; width: 100%; }
.ah__tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--b7); letter-spacing: .02em; }
.ah h1 { margin-top: 18px; max-width: 11ch; font-size: clamp(52px, 6.2vw, 92px) !important; line-height: 1.0 !important; letter-spacing: -.035em; color: var(--n7); }
.ah__lead { margin-top: 26px; max-width: 34ch; font-size: 20px; line-height: 1.55; color: var(--ink7); }
.ah__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.ah__labels { position: absolute; z-index: 1; left: 0; right: 0; bottom: 56px; display: grid; grid-template-columns: 52% repeat(4, 12%); pointer-events: none; }
.ah__labels span { grid-column: auto; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9AA6C6; padding-left: 10px; border-left: 1px solid #DCE2F0; }
.ah__labels span:first-child { grid-column: 2; }

/* ---------- Frase que se "escribe" con el scroll ---------- */
.as { padding: 160px 0 !important; background: #fff; }
.as__txt { max-width: 22ch; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; color: var(--n7); }
.as__txt .w { opacity: .14; transition: opacity .25s linear; }
.as__txt .w.on { opacity: 1; }

/* ---------- Módulos: lista grande + imagen que cambia ---------- */
.mx { padding: 120px 0 !important; background: var(--soft7); }
.mx h2 { max-width: 18ch; }
.mx__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-top: 56px; align-items: stretch; }
.mx__list { display: flex; flex-direction: column; }
.mx__it { position: relative; display: block; width: 100%; text-align: left; padding: 22px 0 24px; background: none; border: 0; border-top: 1px solid #DCE2EE; color: inherit; font: inherit; cursor: pointer; scroll-margin-top: 140px; }
.mx__it:last-child { border-bottom: 1px solid #DCE2EE; }
.mx__name { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.015em; color: #A9B2C8; transition: color .35s, transform .45s cubic-bezier(.16,1,.3,1); }
.mx__it:hover .mx__name { color: var(--n7); }
.mx__it.is-on .mx__name { color: var(--n7); transform: translateX(10px); }
.mx__d { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 16px; line-height: 1.55; color: var(--ink7); transform: translateX(10px); transition: max-height .5s cubic-bezier(.16,1,.3,1), opacity .4s, margin .4s; }
.mx__it.is-on .mx__d { max-height: 80px; opacity: 1; margin-top: 10px; }
.mx__bar { display: none; }
.mx__it:not(.is-on) .mx__bar { width: 0; }
.mx__vis { position: relative; min-height: 520px; border-radius: 14px; overflow: hidden; background: var(--n7); }
.mx__v { position: absolute; inset: 0; pointer-events: none; }
.mx__ph { position: absolute; inset: 0; background: center / cover; clip-path: inset(0 0 0 100%); transform: scale(1.08); transition: clip-path 1s cubic-bezier(.77,0,.18,1), transform 1.6s cubic-bezier(.16,1,.3,1); }
.mx__v.is-on .mx__ph { clip-path: inset(0 0 0 0); transform: scale(1); }
.mx__v.is-out .mx__ph { clip-path: inset(0 0 0 0); z-index: 0; }
.mx__v.is-on { z-index: 2; }
.mx__ui { position: absolute; left: 28px; bottom: 28px; width: 58%; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(2,10,53,.55); opacity: 0; transform: translateY(30px); transition: opacity .6s .45s, transform .9s .45s cubic-bezier(.16,1,.3,1); }
.mx__v.is-on .mx__ui { opacity: 1; transform: none; }
.mx__ui img { display: block; width: 100%; }

/* ---------- Película ---------- */
.cine--a8 { background: #fff !important; padding: 140px 0 120px !important; }

/* ---------- Caso: texto + imagen grande con parallax ---------- */
.ac7 { padding: 140px 0 !important; background: #fff; }
.ac7__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.ac7__logo { height: 26px; width: auto; }
.ac7 h2 { margin-top: 28px; }
.ac7 p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink7); max-width: 42ch; }
.ac7 .b7 { margin-top: 30px; }
.ac7__img { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.ac7__img i { position: absolute; inset: -10% 0; background: center / cover; transform: translateY(var(--py, 0px)); }

@media (max-width: 900px) {
  .ah { min-height: 0; padding: 130px 0 160px; }
  .ah::after { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.75) 60%, rgba(255,255,255,.2) 100%); }
  .ah__labels { display: none; }
  .as { padding: 96px 0 !important; }
  .mx__grid, .ac7__grid { grid-template-columns: 1fr; gap: 32px; }
  .mx__vis { min-height: 360px; }
}

/* ===== Ritmo de fondos: blanco / navy / gris suave ===== */
.as { background: var(--n7) !important; }
.as__txt { color: #fff; }
.as__txt .w { opacity: .18; }
.as__txt .w.on { opacity: 1; }
.mx { background: #fff !important; }
.cine--a8 { background: var(--n7) !important; }
.cine--a8 .cine__head h2 { color: #fff !important; }
.cine--a8 .cine__head h2 .hl { color: #4F7BFF !important; }
.cine--a8 .cine__scr { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.6) !important; }
.cine--a8 .cine__c > i { background: rgba(255,255,255,.16); }
.cine--a8 .cine__c > i b { background: #4F7BFF; }
.cine--a8 .cine__c strong, .cine--a8 .cine__d { color: rgba(255,255,255,.45) !important; }
.cine--a8 .cine__c:hover strong { color: rgba(255,255,255,.8) !important; }
.cine--a8 .cine__c.is-on strong { color: #fff !important; }
.cine--a8 .cine__c.is-on .cine__d { color: rgba(255,255,255,.75) !important; }
#agente { background: #fff !important; }
.ac7 { background: var(--soft7) !important; }
#conecta { background: #fff !important; }
#faq { background: var(--soft7) !important; }

/* Módulos: la foto no cambia de tamaño al pasar de un ítem a otro */
.mx__grid { align-items: start; }
.mx__vis { height: 520px; min-height: 0; align-self: start; }
.mx__ph { transform: none !important; transition: clip-path 1s cubic-bezier(.77,0,.18,1); }
@media (max-width: 900px) { .mx__vis { height: 360px; } }

/* La frase abre la sección de módulos, sobre blanco */
.mx { padding-top: 150px !important; }
.mx .as__txt { color: var(--n7); max-width: 24ch; }
.mx .as__txt .w { opacity: .16; }
.mx .as__txt .w.on { opacity: 1; }
.mx .mx__grid { margin-top: 88px; }
.mx .as__txt { font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.15; max-width: 30ch; } .mx { padding-top: 120px !important; } .mx .mx__grid { margin-top: 64px; }

/* Caso v2: foto a todo el ancho + tarjeta blanca apoyada sobre el borde */
.ac7 { background: #fff !important; padding: 120px 0 160px !important; }
.ac8 { position: relative; display: block; color: inherit; text-decoration: none; }
.ac8__img { position: relative; height: 520px; border-radius: 14px; overflow: hidden; }
.ac8__img i { position: absolute; inset: -12% 0; background: center 60% / cover; transform: translateY(var(--py, 0px)) scale(1); transition: scale 1.2s cubic-bezier(.16,1,.3,1); }
.ac8:hover .ac8__img i { scale: 1.04; }
.ac8__card { position: absolute; left: 48px; bottom: -64px; width: min(520px, 80%); padding: 34px 36px 32px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(2,10,53,.06), 0 30px 60px -24px rgba(2,10,53,.3); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ac8:hover .ac8__card { transform: translateY(-6px); }
.ac8__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac8__top img { height: 22px; width: auto; }
.ac8__top span { font-size: 13px; color: var(--mut7); }
.ac8 h3 { margin-top: 20px; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; color: var(--n7); }
.ac8__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--b7); }
.ac8__link svg { transition: transform .3s; }
.ac8:hover .ac8__link svg { transform: translateX(4px); }
@media (max-width: 900px) { .ac8__img { height: 320px; } .ac8__card { position: relative; left: auto; bottom: auto; width: auto; margin: -60px 16px 0; } .ac7 { padding-bottom: 80px !important; } }

/* Preguntas frecuentes: directo sobre el fondo, separadas por líneas */
.faq { gap: 0; max-width: 900px; }
.faq details { background: none !important; border: 0 !important; border-top: 1px solid #DCE2EE !important; border-radius: 0 !important; padding: 0 !important; }
.faq details:last-child { border-bottom: 1px solid #DCE2EE !important; }
.faq summary { padding: 24px 0; font-size: 18px; color: var(--n7); transition: color .2s; }
.faq summary:hover { color: var(--b7); }
.faq details p { padding: 0 0 24px; max-width: 70ch; }
.mx .as__txt { max-width: none !important; }
/* La lista ocupa siempre el mismo alto: la sección de abajo no se mueve al cambiar de ítem */
.mx__it.is-on .mx__d { max-height: none; height: 3.2em; }
.mx__d { height: 0; }
.mx__grid { min-height: 540px; }
.cine--a8 .cine__scr { border-radius: 14px !important; }
/* Agente: mismo aire arriba y abajo */
.cine + #agente { padding-top: 120px !important; padding-bottom: 120px !important; }
#agente + .ac7 { padding-top: 0 !important; }
/* Caso: mismo filtro que las fotos de la página de Casos (desaturado + velo azul) */
.ac8__img i { filter: saturate(.25) contrast(1.05) brightness(.98); }
.ac8__img::after { content: ""; position: absolute; inset: 0; background: rgba(26,47,194,.14); mix-blend-mode: multiply; pointer-events: none; }

/* Módulos: foto con filtro de marca + dato grande encima (sin capturas) */
.mx__ph { filter: saturate(.3) contrast(1.05) brightness(.9); }
.mx__v::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(2,10,53,.05) 20%, rgba(2,10,53,.55) 60%, rgba(2,10,53,.92) 100%), rgba(26,47,194,.14); opacity: 0; transition: opacity .6s; }
.mx__v.is-on::after, .mx__v.is-out::after { opacity: 1; }
.mx__stat { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 36px; color: #fff; opacity: 0; transform: translateY(24px); transition: opacity .6s .5s, transform .9s .5s cubic-bezier(.16,1,.3,1); }
.mx__v.is-on .mx__stat { opacity: 1; transform: none; }
.mx__stat b { display: block; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.mx__stat span { display: block; margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.8); }
.mx .mx__stat b { font-size: clamp(30px, 3.2vw, 46px) !important; line-height: 1.05 !important; color: #fff !important; }
.faq { max-width: none !important; }
.mx__more { display: inline-block; margin-left: 6px; font-weight: 600; color: var(--b7); text-decoration: none; white-space: nowrap; } .mx__more:hover { text-decoration: underline; }
