/* Páginas de filial (Infralgae, Ocean Plastic Ø, Infraoceans). Se apoya en estilos.css */

/* Color propio de cada filial (por defecto, Infralgae) */
:root, body { --acento: #2F7D5B; --acento-claro: #9FD3B5; --sombra: 8,16,13; --fondo-oscuro: #0B1411; }
.v-etq { font-family: var(--display); font-size: .95rem; letter-spacing: .02em; color: var(--acento); }
.oscuro .v-etq { color: var(--acento-claro); }
.oscuro h2, .oscuro h3 { color: #fff; }

/* ---------- Portada a pantalla completa ---------- */
.v-hero { position: relative; padding: 0; height: 100svh; min-height: 620px; overflow: hidden; background: var(--fondo-oscuro); color: #fff; display: flex; align-items: flex-end; }
.v-hero .v-fondo, .v-hero .v-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-hero .v-fondo img { transform-origin: 60% 40%; }
@media (prefers-reduced-motion: no-preference) { .v-hero .v-fondo img { animation: acercar 18s cubic-bezier(.2,.6,.2,1) both; } }
@keyframes acercar { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.v-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--sombra),.55) 0%, rgba(var(--sombra),0) 26%, rgba(var(--sombra),0) 45%, rgba(var(--sombra),.82) 100%), linear-gradient(90deg, rgba(var(--sombra),.45) 0%, rgba(var(--sombra),0) 60%); pointer-events: none; }
.v-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 10svh, 112px); }
.v-hero .v-logo { width: clamp(240px, 30vw, 440px); max-height: 140px; height: auto; object-fit: contain; object-position: left center; }
.v-hero .v-division { margin-top: clamp(28px, 5svh, 52px); font-family: var(--display); font-size: .95rem; opacity: .85; }
.v-hero h1 { margin-top: 10px; font-size: clamp(2.2rem, min(4.6vw, 7.5svh), 4.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.v-hero h1 span { display: block; }
.v-hero h1 strong { font-weight: 700; }
.v-hero .v-entrada { margin-top: clamp(16px, 3svh, 28px); max-width: 36ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255,255,255,.92); }
.v-bajar { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--ancho)) / 2 + var(--gutter))); bottom: clamp(56px, 10svh, 112px); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); display: grid; place-items: center; color: #fff; }
.v-bajar svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .v-bajar svg { animation: flotar 2.2s ease-in-out infinite; }
  .js .v-hero .v-anim { opacity: 0; transform: translateY(26px); animation: subir 1.1s cubic-bezier(.2,.75,.2,1) forwards; }
}
@keyframes flotar { 50% { transform: translateY(5px); } }
@keyframes subir { to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .v-bajar { display: none; } }

/* ---------- Manifiesto: frase que se ilumina con el scroll ---------- */
.v-frase { padding-block: clamp(96px, 16vw, 200px); }
.v-frase p { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.9vw, 3.4rem); line-height: 1.18; letter-spacing: -.025em; color: var(--tinta); max-width: 22ch; }
.v-frase p em { font-style: normal; color: var(--acento); }
.js .v-frase.anima p .w { color: #C9D3E3; transition: color .25s linear; }
.js .v-frase.anima p .w.on { color: var(--tinta); }
.js .v-frase.anima p em .w.on { color: var(--acento); }

/* ---------- Problema / respuesta en grandes fotos ---------- */
.v-duo { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.v-panel { position: relative; min-height: min(92svh, 860px); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 5vw, 72px); background: var(--fondo-oscuro); }
.v-panel img { position: absolute; left: 0; top: -7.5%; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.v-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--sombra),0) 30%, rgba(var(--sombra),.88) 100%); }
.v-panel > div { position: relative; z-index: 1; max-width: 520px; }
.v-panel h2 { font-size: clamp(1rem, 1.2vw, 1.1rem); font-family: var(--display); font-weight: 600; color: #fff; opacity: .85; letter-spacing: .01em; }
.v-panel p { margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.25; letter-spacing: -.015em; }
@media (max-width: 860px) { .v-duo { grid-template-columns: 1fr; } .v-panel { min-height: 78svh; } }

/* ---------- Pausa: cita sobre el cielo ---------- */
.v-pausa { position: relative; padding: 0; height: 110svh; min-height: 640px; overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center; background: var(--fondo-oscuro); }
.v-pausa img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.v-pausa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(var(--sombra),.15) 0%, rgba(var(--sombra),.6) 100%); }
.v-pausa blockquote { position: relative; z-index: 1; font-family: var(--display); font-weight: 300; font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.04em; padding-inline: var(--gutter); }
.v-pausa blockquote strong { font-weight: 700; display: block; }

/* ---------- Por qué ahora (fondo claro) ---------- */
.v-momento { background: #F5F3EE; color: var(--tinta); }
.v-momento .v-cab { max-width: 780px; }
.v-momento h2 { margin-top: 10px; }
.v-momento .v-cab p { margin-top: 18px; font-size: 1.15rem; color: var(--gris); max-width: 60ch; }
.v-claves { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; border-top: 1.5px solid var(--tinta); }
.v-claves li { padding: 34px 28px 8px 0; display: flex; flex-direction: column; }
.v-claves li + li { padding-left: 28px; border-left: 1px solid #DCD8CE; }
.v-claves .cifra { color: var(--acento); font-size: clamp(2.4rem, 3.9vw, 3.9rem); }
.v-claves h3 { margin-top: 18px; font-size: 1.1rem; }
.v-claves p { margin-top: 8px; color: var(--gris); font-size: .98rem; }
@media (max-width: 1000px) { .v-claves { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .v-claves li:nth-child(3) { padding-left: 0; border-left: 0; } .v-claves li:nth-child(n+3) { border-top: 1px solid #DCD8CE; margin-top: 24px; } }
@media (max-width: 560px) { .v-claves { grid-template-columns: 1fr; } .v-claves li + li { padding-left: 0; border-left: 0; border-top: 1px solid #DCD8CE; margin-top: 20px; } }

/* ---------- Cómo lo hacemos: foto fija y pasos ---------- */
.v-como { padding: 0; display: grid; grid-template-columns: 5fr 6fr; background: #fff; }
.v-como .v-fija { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.v-como .v-fija img { width: 100%; height: 100%; object-fit: cover; }
.v-como .v-fija::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--sombra),.6), rgba(var(--sombra),0) 45%); }
.v-como .v-fija p { position: absolute; z-index: 1; left: clamp(24px, 4vw, 56px); bottom: clamp(24px, 5vh, 56px); right: 24px; color: #fff; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; max-width: 16ch; }
.v-como .v-lado { padding: clamp(96px, 14vh, 160px) max(var(--gutter), calc((100vw - var(--ancho)) / 2 + var(--gutter))) clamp(96px, 14vh, 160px) clamp(32px, 6vw, 104px); }
.v-como h2 { margin-top: 10px; }
.v-pasos { margin-top: clamp(40px, 7vh, 72px); list-style: none; counter-reset: paso; }
.v-pasos li { counter-increment: paso; display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; padding-block: clamp(26px, 5vh, 44px); border-top: 1px solid var(--bruma); transition: opacity .5s ease; }
.v-pasos li::before { content: counter(paso, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9; letter-spacing: -.04em; color: var(--acento); }
.v-pasos h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.v-pasos p { margin-top: 8px; color: var(--gris); }
.js .v-pasos.anima li { opacity: .28; }
.js .v-pasos.anima li.on { opacity: 1; }
@media (max-width: 900px) {
  .v-como { grid-template-columns: 1fr; }
  .v-como .v-fija { position: relative; height: 62svh; }
  .v-como .v-lado { padding: 72px var(--gutter); }
  .v-pasos li { grid-template-columns: 64px 1fr; }
}

/* ---------- Qué producimos: mosaico ---------- */
.v-productos-sec { background: #fff; }
.v-productos { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(300px, 38vh)); gap: 14px; list-style: none; }
.v-productos li { position: relative; overflow: hidden; border-radius: 6px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.4vw, 34px); background: var(--fondo-oscuro); }
.v-productos li:first-child { grid-row: 1 / 3; }
.v-productos li:last-child { grid-column: 2 / 4; }
.v-productos li img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.v-productos li:hover img { transform: scale(1.05); }
.v-productos li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--sombra),0) 35%, rgba(var(--sombra),.85) 100%); }
.v-productos li.negro { background: radial-gradient(120% 140% at 85% 0%, #2a2f3a 0%, #0b0c10 55%, #050507 100%); }
.v-productos li.negro::after { display: none; }
.v-productos li.negro::before { content: attr(data-letra); position: absolute; right: clamp(20px, 3vw, 48px); top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: clamp(7rem, 12vw, 12rem); line-height: 1; color: rgba(255,255,255,.06); letter-spacing: -.05em; }
.v-productos li > * { position: relative; z-index: 1; }
.v-productos li > img { position: absolute; z-index: 0; }
.v-productos .uso { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); }
.v-productos h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.3vw, 2.1rem); color: #fff; }
.v-productos li:first-child h3 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.v-productos p { margin-top: 8px; color: rgba(255,255,255,.86); font-size: .98rem; max-width: 36ch; }
@media (max-width: 900px) {
  .v-productos { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(260px, auto); }
  .v-productos li:first-child { grid-row: auto; grid-column: 1 / 3; min-height: 64svh; }
  .v-productos li:last-child { grid-column: 1 / 3; }
}
@media (max-width: 560px) { .v-productos { grid-template-columns: 1fr; } .v-productos li:first-child, .v-productos li:last-child { grid-column: auto; } }

/* ---------- Cartera sobre la foto aérea ---------- */
.v-cartera { position: relative; overflow: hidden; color: #fff; background: var(--fondo-oscuro); padding-block: clamp(110px, 16vw, 200px); }
.v-cartera > picture img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.v-cartera::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--sombra),.82) 0%, rgba(var(--sombra),.55) 50%, rgba(var(--sombra),.9) 100%); z-index: 1; }
.v-cartera .wrap { position: relative; z-index: 2; }
.v-cartera h2 { margin-top: 10px; }
.v-proyectos { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 66px)); gap: 10px; list-style: none; }
.v-proyectos li { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center; font-family: var(--display); font-size: clamp(.7rem, 1vw, .95rem); font-weight: 600; color: rgba(255,255,255,.75); transition: background .5s ease, color .5s ease, border-color .5s ease, transform .5s cubic-bezier(.3,1.5,.5,1); }
.v-proyectos li.on { background: var(--acento-claro); border-color: var(--acento-claro); color: var(--fondo-oscuro); transform: scale(1.06); }
.v-proyectos-nota { margin-top: 14px; font-size: .9rem; color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .v-proyectos { grid-template-columns: repeat(min(var(--n, 12), 6), 1fr); } }
.v-cifras { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px; list-style: none; }
.v-cifras li { border-top: 1px solid rgba(255,255,255,.35); padding-top: 20px; }
.v-cifras .cifra { color: #fff; font-size: clamp(3rem, 5.4vw, 4.8rem); }
.v-cifras p { margin-top: 10px; color: rgba(255,255,255,.85); max-width: 30ch; }
@media (max-width: 860px) { .v-cifras { grid-auto-flow: row; grid-template-columns: 1fr; } }

/* ---------- Otras filiales ---------- */
.v-otras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(32px, 5vw, 48px); }
.v-otra { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 32px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: var(--fondo-oscuro); }
.v-otra > img.f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.v-otra:hover > img.f { transform: scale(1.06); }
.v-otra::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(var(--sombra),.05) 0%, rgba(var(--sombra),.85) 100%); }
.v-otra > :not(.f) { position: relative; z-index: 2; }
.v-otra img.l { height: 40px; width: auto; align-self: flex-start; }
.v-otra span { margin-top: 14px; font-weight: 600; }
@media (max-width: 760px) { .v-otras { grid-template-columns: 1fr; } .v-otra { min-height: 300px; } }

/* Aparición suave al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .v-aparece { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.75,.2,1); }
  .js .v-aparece.visto { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .v-hero::after { background: linear-gradient(180deg, rgba(var(--sombra),.5) 0%, rgba(var(--sombra),0) 18%, rgba(var(--sombra),.35) 38%, rgba(var(--sombra),.88) 62%, rgba(var(--sombra),.92) 100%); }
  .v-hero .v-logo { width: 230px; }
}

/* Cabecera fija y sólida: la portada empieza debajo y crece si el contenido no cabe */
.v-hero { height: auto; min-height: max(620px, 100svh); padding-top: 72px; }
.v-hero .wrap { padding-top: clamp(28px, 5svh, 56px); }
.v-hero::after { background: linear-gradient(180deg, rgba(var(--sombra),.25) 0%, rgba(var(--sombra),0) 22%, rgba(var(--sombra),0) 45%, rgba(var(--sombra),.82) 100%), linear-gradient(90deg, rgba(var(--sombra),.45) 0%, rgba(var(--sombra),0) 60%); }
@media (max-width: 700px) {
  .v-hero { min-height: 100svh; }
  .v-hero::after { background: linear-gradient(180deg, rgba(var(--sombra),.2) 0%, rgba(var(--sombra),0) 16%, rgba(var(--sombra),.35) 38%, rgba(var(--sombra),.88) 62%, rgba(var(--sombra),.92) 100%); }
}

/* Problema / respuesta: titulares alineados a la misma altura y texto más ancho */
@media (min-width: 861px) {
  .v-duo { grid-template-rows: 1fr auto; min-height: min(92svh, 860px); }
  .v-panel { grid-row: span 2; min-height: 0; display: grid; grid-template-rows: subgrid; }
  .v-panel > div { grid-row: 2; align-self: start; max-width: 600px; }
}
@media (max-width: 860px) {
  .v-panel { padding-inline: 20px; }
  .v-panel > div { max-width: none; }
}

/* Título de la tarjeta grande de productos: nunca partir palabras; el tamaño se ajusta al ancho de la tarjeta */
.v-productos li:first-child { container-type: inline-size; }
.v-productos li:first-child h3 { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: clamp(1.9rem, 10.5cqi, 3.6rem); }

.pp-etq .nw { white-space: nowrap; }

/* ---------- Así es una planta: foto grande que se recorre con el scroll, puntos que laten y etiqueta al pasar o pulsar ---------- */
.v-planta { background: #fff; padding-bottom: clamp(48px, 7vw, 96px); }
.v-planta-intro { margin-top: 16px; max-width: 62ch; font-size: 1.1rem; color: var(--gris); }
.v-planta-pista { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.v-planta-fig { margin: 0; overflow: hidden; background: #fff; }
.v-planta-lienzo { position: relative; }
.v-planta-lienzo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v-planta-puntos { list-style: none; }
.pp { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 1; }
.pp:hover, .pp.activo { z-index: 3; }
.pp-punto { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #fff; border: 2px solid #fff; font: 600 .85rem/1 var(--display); box-shadow: 0 2px 12px rgba(0,0,0,.4); cursor: pointer; transition: transform .2s; }
.pp:hover .pp-punto, .pp.activo .pp-punto { transform: translate(-50%, -50%) scale(1.15); }
.pp-punto::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .pp-punto::after { animation: pp-latido 2.6s ease-out infinite; animation-delay: calc(var(--i) * .35s); } }
@keyframes pp-latido { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.3); opacity: 0; } }
.pp-linea { position: absolute; left: -1px; bottom: 17px; width: 2px; height: 54px; background: #fff; transform-origin: bottom; transform: scaleY(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.pp-etq { position: absolute; left: -16px; bottom: 71px; width: max-content; max-width: 260px; padding: 12px 16px; border-radius: 8px; background: rgba(11,23,64,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .95rem; line-height: 1.3; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .3s ease .1s, transform .3s cubic-bezier(.2,.7,.2,1) .1s; pointer-events: none; }
.pp.der .pp-etq { left: auto; right: -16px; }
.pp:hover .pp-linea, .pp.activo .pp-linea { transform: scaleY(1); }
.pp:hover .pp-etq, .pp.activo .pp-etq { opacity: 1; transform: none; }
.v-planta-desliza { margin-top: 14px; font-size: .9rem; color: var(--gris); }
.v-planta-desliza .m { display: none; }
.v-planta-lista { display: none; }

/* Escritorio: la foto ocupa casi toda la pantalla y se desplaza en horizontal al hacer scroll */
@media (min-width: 1001px) {
  .v-planta-fig { position: sticky; top: 72px; height: calc(100svh - 72px); display: flex; align-items: center; }
  .v-planta-lienzo { flex: none; height: min(calc(100svh - 150px), 980px); will-change: transform; }
}

/* Tablet y móvil: la foto se desliza con el dedo y los pasos van en lista debajo */
@media (max-width: 1000px) {
  .v-planta-fig { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v-planta-fig::-webkit-scrollbar { display: none; }
  .v-planta-lienzo { height: min(62svh, 440px); }
  .pp-etq { max-width: 210px; font-size: .85rem; padding: 10px 13px; }
  .v-planta-desliza .d { display: none; } .v-planta-desliza .m { display: inline; }
  .v-planta-desliza .m::after { content: " →"; }
  .v-planta-lista { display: grid; gap: 10px; margin-top: 22px; list-style: none; }
  .v-planta-lista li { display: flex; gap: 12px; align-items: baseline; font-size: .98rem; color: var(--tinta); transition: color .3s; }
  .v-planta-lista li span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #fff; font: 600 .75rem/1 var(--display); transform: translateY(5px); }
  .v-planta-lista li.activo { color: var(--acento); font-weight: 600; }
}

/* ---------- Calidad e integridad (Infraoceans): fondo abisal con luz, sello y seis compromisos ---------- */
.v-calidad { position: relative; overflow: hidden; color: #fff; padding-block: clamp(88px, 11vw, 160px); background: radial-gradient(120% 70% at 50% -10%, #1f8f95 0%, #0d4f5e 32%, #072b3f 62%, #041726 100%); isolation: isolate; }
.q-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.q-rayo { position: absolute; top: -20%; width: 22vw; height: 120%; background: linear-gradient(180deg, rgba(190,245,240,.22), rgba(190,245,240,0) 70%); filter: blur(18px); transform-origin: top center; }
.q-rayo.r1 { left: 12%; transform: rotate(14deg); }
.q-rayo.r2 { left: 42%; width: 14vw; transform: rotate(4deg); opacity: .7; }
.q-rayo.r3 { left: 70%; transform: rotate(-10deg); opacity: .55; }
.q-burbujas { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.35) 0 1.5px, transparent 2.5px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.25) 0 1px, transparent 2px), radial-gradient(circle at 45% 90%, rgba(255,255,255,.3) 0 2px, transparent 3px), radial-gradient(circle at 85% 85%, rgba(255,255,255,.2) 0 1px, transparent 2px); background-size: 340px 420px, 260px 300px, 420px 520px, 200px 260px; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .q-rayo { animation: q-luz 9s ease-in-out infinite alternate; }
  .q-rayo.r2 { animation-duration: 12s; animation-delay: -3s; }
  .q-rayo.r3 { animation-duration: 10s; animation-delay: -6s; }
  .q-burbujas { animation: q-subir 30s linear infinite; }
  .q-gira { animation: q-giro 60s linear infinite; transform-origin: 150px 150px; }
}
@keyframes q-luz { from { opacity: .35; translate: -3vw 0; } to { opacity: .95; translate: 3vw 0; } }
@keyframes q-subir { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 -840px, 0 -600px, 0 -1040px, 0 -520px; } }
@keyframes q-giro { to { transform: rotate(360deg); } }
.v-calidad .v-etq { color: var(--acento-claro); }
.q-cab { position: relative; max-width: 860px; }
.q-cab h2 { margin-top: 10px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.q-intro { margin-top: 22px; max-width: 64ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,.82); }

/* El sello: el texto del centro escala con el sello y nunca pisa los aros */
.q-sello { position: relative; aspect-ratio: 1; container-type: inline-size; }
.q-sello svg { display: block; width: 100%; height: 100%; overflow: visible; }
.q-aro { fill: rgba(4,23,38,.55); stroke: rgba(140,214,210,.6); stroke-width: 1.2; }
.q-aro.fino { fill: none; stroke: rgba(255,255,255,.25); stroke-dasharray: 2 6; }
.q-sello text { fill: rgba(255,255,255,.9); font: 600 10.5px var(--display); letter-spacing: .12em; }
.q-centro { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3cqi; text-align: center; }
.q-centro .q-ico { width: 16cqi; height: 16cqi; color: var(--acento-claro); }
.q-centro p { max-width: 50cqi; font-family: var(--display); font-weight: 600; font-size: 6.4cqi; line-height: 1.15; }

/* Tarjetas (móvil: carrusel lateral) */
.q-lista { list-style: none; }
.q-lista li { position: relative; padding: 24px 22px 22px; border-radius: 12px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.q-num { position: absolute; top: 20px; right: 22px; font-family: var(--display); font-weight: 300; font-size: 2.2rem; line-height: 1; color: rgba(255,255,255,.18); letter-spacing: -.04em; }
.q-lista .q-ico { width: 38px; height: 38px; color: var(--acento-claro); }
.q-lista h3 { margin-top: 16px; color: #fff; font-size: 1.2rem; line-height: 1.25; }
.q-en { margin-top: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acento-claro); }
.q-lista p:not(.q-en) { margin-top: 12px; font-size: .97rem; line-height: 1.55; color: rgba(255,255,255,.8); }
.q-rueda { display: none; }
.q-puntos { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.q-puntos span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .3s, width .3s; }
.q-puntos span.on { width: 18px; border-radius: 3px; background: var(--acento-claro); }

@media (max-width: 1000px) {
  /* El sello va estampado en la cabecera, girado, como un sello sobre la sección */
  .q-cab { padding-top: 4px; }
  .q-sello-m { float: right; width: 112px; margin: -14px -4px 8px 14px; transform: rotate(-12deg); shape-outside: circle(50%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
  .q-sello-m .q-aro { stroke: var(--acento-claro); stroke-width: 2; }
  .q-sello-m .q-centro p { font-size: 7.4cqi; }
  .q-cuerpo { margin-top: 36px; }
  .q-lista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .q-lista::-webkit-scrollbar { display: none; }
  .q-lista li { flex: 0 0 min(82%, 420px); scroll-snap-align: start; }
}

/* Escritorio: rueda de seis quesitos que parten del sello y panel con el compromiso activo */
@media (min-width: 1001px) {
  .q-sello-m { display: none; }
  .q-cab { margin-inline: auto; text-align: center; }
  .q-intro { margin-inline: auto; }
  .q-cuerpo { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: minmax(420px, 600px) minmax(320px, 1fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .q-rueda { display: block; position: relative; aspect-ratio: 1; }
  .q-rueda-svg { width: 100%; height: 100%; overflow: visible; }
  .q-queso { cursor: pointer; outline: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .q-queso path { fill: rgba(255,255,255,.07); stroke: rgba(140,214,210,.35); stroke-width: 1; transition: fill .4s, stroke .4s; }
  .q-queso .q-ico { color: var(--acento-claro); transition: color .4s; }
  .q-qn { fill: rgba(255,255,255,.45); font: 300 13px var(--display); text-anchor: middle; letter-spacing: .08em; }
  .q-qt { fill: #fff; font: 600 14.5px var(--display); text-anchor: middle; }
  .q-queso:hover path, .q-queso:focus-visible path { fill: rgba(140,214,210,.16); }
  .q-queso.activo { transform: translate(var(--dx), var(--dy)); }
  .q-queso.activo path { fill: var(--acento); stroke: var(--acento-claro); }
  .q-queso.activo .q-ico { color: #fff; }
  .q-queso.activo .q-qn { fill: rgba(255,255,255,.85); }
  .q-sello-d { position: absolute; left: 26%; top: 26%; width: 48%; }
  .q-sello-d .q-aro { fill: rgba(4,23,38,.85); }
  .js .q-queso { opacity: 0; }
  .js .q-cuerpo.visto .q-queso { opacity: 1; transition: opacity .6s ease calc(var(--i, 0) * .1s), transform .5s cubic-bezier(.2,.7,.2,1); }
  .q-panel { position: relative; }
  .q-lista { display: grid; }
  .q-lista li { grid-area: 1 / 1; padding: clamp(32px, 3vw, 44px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s; }
  .q-lista li.activo { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
  .q-lista li::after { content: attr(data-n); position: absolute; bottom: 22px; right: 26px; font: 500 .8rem var(--display); letter-spacing: .1em; color: rgba(255,255,255,.4); }
  .q-num { font-size: 3.4rem; top: 26px; right: 30px; }
  .q-lista .q-ico { width: 48px; height: 48px; }
  .q-lista h3 { margin-top: 22px; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -.02em; }
  .q-en { font-size: .85rem; }
  .q-lista p:not(.q-en) { margin-top: 16px; padding-bottom: 18px; font-size: 1.08rem; line-height: 1.6; }
  .q-puntos { display: none; }
}
@media (max-width: 1000px) { .q-sello-m { margin-top: -60px; } }

/* ---------- Puerta de contenido reservado (filiales) ---------- */
.v-puerta { position: relative; overflow: hidden; min-height: 86svh; display: flex; align-items: center; color: #fff; background: var(--fondo-oscuro); isolation: isolate; }
.vp-fondo { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px) saturate(1.15) brightness(.55); transform: scale(1.06); z-index: -2; }
.v-puerta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--sombra),.35), rgba(var(--sombra),.75)); }
.v-puerta .wrap { width: 100%; display: flex; justify-content: center; }
.vp-caja { width: min(100%, 560px); text-align: center; padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.35); transition: opacity .45s ease, transform .45s ease; }
.vp-candado { width: 44px; height: 44px; margin: 0 auto 16px; display: block; fill: none; stroke: var(--acento-claro); stroke-width: 1.6; stroke-linecap: round; }
.vp-caja .v-etq { color: var(--acento-claro); }
.vp-caja h2 { margin-top: 10px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; line-height: 1.15; }
.vp-texto { margin-top: 14px; color: rgba(255,255,255,.8); line-height: 1.55; }
.vp-form { margin-top: 28px; display: flex; gap: 10px; }
.vp-form input { flex: 1; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, background .2s; }
.vp-form input::placeholder { color: rgba(255,255,255,.6); }
.vp-form input:focus { border-color: var(--acento-claro); background: rgba(255,255,255,.16); }
.vp-form button { padding: 15px 26px; border: 0; border-radius: 999px; background: #fff; color: var(--abisal); font: 600 1rem var(--display); cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.vp-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.vp-form button:disabled { opacity: .7; cursor: default; transform: none; }
.vp-error { margin-top: 12px; color: #ffb4a8; font-size: .92rem; }
.vp-contacto { display: inline-block; margin-top: 22px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--acento-claro); padding-bottom: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-puerta.temblor .vp-caja { animation: vp-temblor .45s ease; }
@keyframes vp-temblor { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.v-puerta.abriendo .vp-caja { opacity: 0; transform: scale(.96); }
@media (max-width: 560px) { .vp-form { flex-direction: column; } .vp-form button { width: 100%; } }

/* Puerta integrada: nace del blanco de la frase con un difuminado y se funde hasta el final de la página */
.v-puerta { min-height: 120svh; padding-block: 22svh 18svh; margin-top: -1px; }
.v-puerta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 8%, rgba(255,255,255,.35) 20%, rgba(255,255,255,0) 34%, rgba(11,23,64,0) 70%, #0B1740 100%); }
.v-puerta::after { background: linear-gradient(180deg, rgba(var(--sombra),0) 0%, rgba(var(--sombra),.45) 40%, rgba(11,23,64,.6) 75%, rgba(11,23,64,.85) 100%); }
.vp-fondo { filter: blur(28px) saturate(1.1) brightness(.62); }
.v-frase:has(+ .v-puerta) { padding-bottom: clamp(48px, 7vw, 96px); }
/* Mientras está cerrada, el contacto y el footer siguen el mismo difuminado */
.v-puerta ~ .contacto .contacto-fondo { filter: blur(24px) brightness(.7); transform: scale(1.08); }
.v-puerta ~ .contacto::after { background: linear-gradient(180deg, #0B1740 0%, rgba(11,23,64,.82) 18%, rgba(11,23,64,.8) 60%, #0B1740 100%); }
.v-puerta::before { z-index: 0; }
.v-puerta .wrap { position: relative; z-index: 1; }
.v-puerta ~ .contacto::after { background: linear-gradient(180deg, #0B1740 0%, rgba(11,23,64,.9) 30%, rgba(11,23,64,.82) 60%, #0B1740 100%); }
/* Difuminado más largo y suave hacia abajo */
.v-puerta { padding-top: 34svh; min-height: 135svh; }
.v-puerta::before { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.92) 6%, rgba(255,255,255,.7) 14%, rgba(255,255,255,.4) 24%, rgba(255,255,255,.15) 34%, rgba(255,255,255,0) 44%, rgba(11,23,64,0) 72%, #0B1740 100%); }
.v-frase { transition: filter .15s linear, opacity .15s linear; will-change: filter, opacity; }

/* Puerta tras el titular de «Por qué ahora»: menos blanco, sin bloque de contacto (el botón va en la caja) */
.v-avance { padding-bottom: clamp(24px, 4vw, 48px); }
.v-puerta { padding-top: 16svh; min-height: 105svh; }
.v-puerta::before { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 7%, rgba(255,255,255,.5) 16%, rgba(255,255,255,.2) 26%, rgba(255,255,255,0) 36%, rgba(11,23,64,0) 70%, #0B1740 100%); }
.cerrada .v-puerta ~ .contacto { display: none; }
.vp-caja .contacto-accion { display: block; margin-top: 18px; }
.vp-caja .contacto-boton { margin-top: 0; padding: 12px 22px; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); font-size: .98rem; }
.vp-caja .contacto-boton:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.vp-caja .contacto-menu { margin-inline: auto; text-align: left; }
@media (max-width: 560px) { .vp-caja .contacto-boton { width: 100%; justify-content: center; } }
/* El difuminado nace del mismo tono crema de «Por qué ahora» */
.v-avance + .v-puerta::before { background: linear-gradient(180deg, #F5F3EE 0%, rgba(245,243,238,.85) 7%, rgba(245,243,238,.5) 16%, rgba(245,243,238,.2) 26%, rgba(245,243,238,0) 36%, rgba(11,23,64,0) 70%, #0B1740 100%); }
/* Primera frase de «Por qué ahora» visible pero ilegible: se desenfoca y se apaga de forma gradual hacia abajo */
.v-avance .v-velado { margin-top: 18px; font-size: 1.15rem; color: var(--gris); max-width: 60ch; filter: blur(5px); user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, transparent 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, transparent 100%); }
.v-avance { padding-bottom: 0; }
.v-planta + .v-planta { padding-top: clamp(24px, 4vw, 56px); }
/* Móvil: sin la lista de puntos bajo la planta (las etiquetas salen al pulsar cada punto) */
@media (max-width: 1000px) { .v-planta-lista { display: none !important; } .pp-linea, .pp-etq { display: block; } }
