/*
 * Marketing Lab 360 · diseño nuevo
 * Réplica del diseño de m.marketinglab360.cl, sin dependencias.
 */

:root {
    --azul-osc: #1d276a;
    --azul: #3c8aff;
    --azul-hover: #2470e6;
    --verde: #00a37a;
    --wa: #25d366;
    --texto: #4d4d4d;
    --negro: #242935;
    --pie: #1e1c4e;
    --gris: #f4f6fb;
    --borde: #d8dcef;
    --f-tit: "Rajdhani", "Arial Narrow", Arial, sans-serif;
    --f-txt: "Lato", "Segoe UI", Arial, sans-serif;
    --sombra: 0 18px 50px rgba(29, 39, 106, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-txt); font-size: 16px; line-height: 1.7; color: var(--texto); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-hover); }
p { margin: 0 0 18px; }
strong { color: inherit; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--azul-osc); padding: 10px 16px; border-radius: 4px; }
.saltar:focus { left: 10px; }
.centro { text-align: center; }
.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }

.contenedor { max-width: 1210px; margin: 0 auto; padding: 0 20px; }
.contenedor-ancho { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.contenedor-angosto { max-width: 880px; }
.sec { padding: 90px 0; }
[id] { scroll-margin-top: 76px; }
.botones { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--azul); color: #fff; border: 2px solid var(--azul);
    font-family: var(--f-tit); font-weight: 700; font-size: 16px; letter-spacing: .3px; line-height: 1.1;
    padding: 13px 28px; border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--azul-hover); border-color: var(--azul-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { padding: 12px 18px; font-size: 15px; }
.btn-borde { background: transparent; border-color: rgba(255, 255, 255, .85); }
.btn-borde:hover { background: #fff; border-color: #fff; color: var(--azul-osc); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #1eb957; border-color: #1eb957; }

/* ---------- Títulos ---------- */
.titulo { text-align: center; margin-bottom: 46px; }
.titulo.izq { text-align: left; margin-bottom: 24px; }
.ante { font-family: var(--f-tit); font-weight: 700; font-size: 16px; color: var(--azul); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 6px; line-height: 1.3; }
.tit { font-family: var(--f-tit); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; color: var(--azul-osc); text-transform: uppercase; margin: 0; }
.bajada { max-width: 720px; margin: 14px auto 0; font-size: 17px; }
.titulo.claro .tit { color: #fff; }
.titulo.claro .ante { color: #8fbaff; }
.titulo.claro .bajada { color: #dfe6ff; }

/* ---------- Cabecera ---------- */
.cab { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.cab a { color: #fff; }
.cab-sup { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 14px; position: relative; }
.cab-sup::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: rgba(255, 255, 255, .3); }
.cab-logo img { width: 190px; height: auto; display: block; }
.cab-datos { display: flex; align-items: center; gap: 18px; }
.cab-tel { display: flex; align-items: center; gap: 16px; }
.cab-tel > .ico { width: 18px; height: 18px; }
.cab-sep { width: 2px; height: 42px; background: rgba(255, 255, 255, .7); }
.cab-mail { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; }
.cab-mail small { display: block; font-weight: 700; font-size: 14px; }
.cab-fila-int { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.cab-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.cab-nav a { font-weight: 700; font-size: 15px; letter-spacing: .1px; transition: color .2s; }
.cab-nav a:hover, .cab-nav a[aria-current] { color: #7fb2ff; }
.cab-nav-movil { display: none; }
.cab-redes, .pie-redes { display: flex; gap: 2px; }
.cab-redes a, .pie-redes a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; transition: background .2s; }
.cab-redes a:hover, .pie-redes a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.cab-redes .ico, .pie-redes .ico { width: 17px; height: 17px; }
.cab-logo-mini { display: none; }
.cab-logo-mini img { width: 118px; height: auto; display: block; }
.cab-boton { display: none; }
.cab-boton .ico-cerrar { display: none; }

.cab.fijo { position: fixed; background: rgba(29, 39, 106, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .2); animation: cab-bajar .35s ease; }
.cab.fijo .cab-sup { display: none; }
.cab.fijo .cab-logo-mini { display: block; }
.cab.fijo .cab-fila-int { padding-top: 8px; padding-bottom: 8px; }
@keyframes cab-bajar { from { transform: translateY(-100%); } to { transform: none; } }

/* Barra para administradores con sesión iniciada */
.barra-admin { position: fixed; left: 12px; bottom: 12px; z-index: 120; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; max-width: calc(100% - 100px); background: #1d2327; color: #fff; font: 13px/1.4 var(--f-txt); padding: 9px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.barra-admin.previa { background: #8a4a12; }
.barra-admin a { color: #fff; text-decoration: underline; }

/* ---------- Portada ---------- */
.hero { position: relative; color: #fff; background: var(--azul-osc); overflow: hidden; }
.hero-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 24, 82, 0) 25%, rgba(18, 24, 82, .45) 100%); pointer-events: none; }
.hero-int { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; }
.hero-grande .hero-int { min-height: 740px; padding-top: 180px; padding-bottom: 90px; }
.hero-chica .hero-int { min-height: 470px; padding-top: 190px; padding-bottom: 70px; }
.hero-texto { max-width: 580px; }
.hero h1 { font-family: var(--f-tit); font-weight: 700; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.08; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 14px; color: #fff; }
.hero-chica h1 { font-size: clamp(30px, 3.4vw, 46px); }
.hero-ante { font-family: var(--f-tit); font-weight: 700; font-size: 17px; color: #8fbaff; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 8px; }
.hero-lead { font-size: 18px; line-height: 1.45; text-transform: uppercase; margin: 0 0 8px; }
.hero-p { font-size: 18px; line-height: 1.5; font-weight: 700; margin: 0; }
.hero-tel { display: inline-block; font-family: var(--f-tit); font-weight: 700; font-size: 32px; letter-spacing: 1px; color: #fff; margin: 22px 0 16px; }
.hero-tel:hover { color: #bcd6ff; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-chica .hero-btns { margin-top: 22px; }

/* ---------- Intro (texto + 2 fotos) ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-texto { max-width: 520px; margin-left: auto; }
.intro-texto p { font-size: 17px; }
.intro-texto .btn { margin-top: 10px; }
.intro-fotos { position: relative; height: 560px; }
.intro-fotos img { position: absolute; width: 46%; border-radius: 6px; box-shadow: var(--sombra); }
.intro-f1 { left: 0; top: 0; }
.intro-f2 { right: 0; top: 70px; }
.logos-fotos { display: grid; gap: 22px; }
.logos-fotos img { width: 100%; max-width: 440px; border-radius: 8px; box-shadow: var(--sombra); }
.logos-fotos img:last-child { margin-left: auto; }
.intro-logos .botones { margin-top: 8px; }

/* ---------- Herramientas ---------- */
.sec-herr { padding-top: 40px; }
.herr-grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.herr { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 580 / 380; background: var(--azul-osc); }
.herr img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.herr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 39, 106, 0) 35%, rgba(29, 39, 106, .75)); }
.herr span { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; font-family: var(--f-tit); font-weight: 700; font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.herr:hover img { transform: scale(1.06); }

/* ---------- Llamadas (foto + texto + lista) ---------- */
.llamadas { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: start; }
.llamadas-foto { position: relative; border-radius: 8px; overflow: hidden; }
.llamadas-foto img { display: block; width: 100%; }
.llamadas-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 39, 106, 0) 50%, rgba(38, 36, 120, .8)); }
.llamadas-foto .btn { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1; }
.llamadas-texto p { font-size: 15.5px; }
.lista-ok { list-style: none; padding: 0; margin: 6px 0 0; }
.lista-ok li { display: flex; gap: 10px; align-items: flex-start; margin: 5px 0; line-height: 1.5; }
.lista-ok .ico { width: 18px; height: 18px; color: var(--azul-osc); margin-top: 2px; }

/* ---------- Banda de llamada a la acción ---------- */
.banda { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; background: linear-gradient(120deg, #2c52c6 0%, #1d276a 100%); color: #fff; }
.banda-texto { position: relative; display: flex; align-items: center; padding: 70px 40px 70px 190px; }
.banda-texto::before { content: ""; position: absolute; left: 30px; top: 0; width: 130px; height: 100%; background-image: radial-gradient(rgba(255, 255, 255, .65) 1.6px, transparent 1.9px); background-size: 20px 20px; opacity: .55; }
.banda-int { position: relative; max-width: 470px; margin-left: auto; margin-right: 10px; }
.banda .ante { color: #6aa6ff; }
.banda-tit { font-family: var(--f-tit); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; text-transform: uppercase; margin: 0 0 26px; color: #fff; }
.banda-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Planes ---------- */
.sec-planes { background: #fff; }
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.planes-centro { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.planes-centro .plan { flex: 0 1 calc((100% - 60px) / 3); }
.plan { position: relative; text-align: center; padding: 36px 26px 30px; border-radius: 10px; background: #fff; border: 1px solid #e4e7f3; }
.plan-dest { border: 2px solid var(--azul); box-shadow: var(--sombra); }
.plan-cinta { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--azul); color: #fff; font-family: var(--f-tit); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; padding: 5px 18px; border-radius: 20px; white-space: nowrap; }
.plan-ante { font-family: var(--f-tit); font-weight: 700; color: var(--azul); text-transform: uppercase; margin: 0; letter-spacing: .6px; }
.plan-nombre { font-family: var(--f-tit); font-weight: 700; font-size: 40px; color: var(--azul-osc); text-transform: uppercase; margin: 0; line-height: 1.05; }
.plan-sub { color: #777; font-size: 14px; margin: 4px 0 12px; }
.plan-precio { font-family: var(--f-tit); font-weight: 700; font-size: 42px; color: var(--verde); margin: 0 0 20px; line-height: 1; }
.plan-precio small { display: block; font-family: var(--f-txt); font-weight: 400; font-size: 13px; color: #777; margin-top: 6px; }
.plan-cotizar { font-size: 30px; }
.plan-items { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; border-top: 1px solid #c9cde3; }
.plan-items li { border-bottom: 1px solid #c9cde3; }
.plan-items summary, .plan-fila { display: flex; align-items: center; gap: 10px; padding: 12px 2px; font-family: var(--f-tit); font-weight: 700; font-size: 16.5px; line-height: 1.15; color: var(--azul-osc); }
.plan-items summary { cursor: pointer; list-style: none; }
.plan-items summary::-webkit-details-marker { display: none; }
.plan-items summary span, .plan-fila span { flex: 1; }
.plan-items summary:hover { color: var(--azul); }
.ico-check { width: 18px; height: 18px; color: var(--azul-osc); }
.ico-mas { width: 18px; height: 18px; transition: transform .25s; }
details[open] > summary .ico-mas { transform: rotate(45deg); }
.plan-items details p { margin: 0 0 14px 28px; font-size: 14.5px; line-height: 1.55; color: var(--texto); }
.plan-btn { min-width: 170px; }
.plan-nota { font-size: 13px; color: #888; margin: 12px 0 0; }

/* ---------- Cifras ---------- */
.cifras { background: var(--azul-osc); color: #fff; padding: 56px 0; }
.cifras-grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.cifra-num { font-family: var(--f-tit); font-weight: 700; font-size: 54px; line-height: 1; margin: 0; color: #fff; }
.cifra-txt { font-family: var(--f-tit); font-weight: 600; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: #c9d4ff; margin: 8px 0 0; line-height: 1.3; }

/* ---------- Carrusel de logos ---------- */
.sec-portafolio, .sec-logos-res { background: var(--gris); }
.carrusel { position: relative; margin: 0 auto 26px; }
.carrusel-pista { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 4px 18px; overscroll-behavior-x: contain; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel-item { margin: 0; scroll-snap-align: start; }
.carrusel-ver { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 10px 30px rgba(29, 39, 106, .12); }
.carrusel-ver img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.carrusel-ver:hover img { transform: scale(1.04); }
.carrusel-flecha { position: absolute; top: calc(50% - 16px); transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--azul-osc); box-shadow: 0 6px 20px rgba(0, 0, 0, .16); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.carrusel-flecha:hover { background: var(--azul); color: #fff; }
.carrusel-flecha .ico { width: 26px; height: 26px; }
.carrusel-ant { left: -20px; }
.carrusel-sig { right: -20px; }
.carrusel-puntos { display: flex; justify-content: center; gap: 8px; }
.carrusel-puntos button { width: 9px; height: 9px; border-radius: 5px; border: 0; padding: 0; background: #c3c9e2; cursor: pointer; transition: width .25s, background .25s; }
.carrusel-puntos button.activo { width: 26px; background: var(--azul); }
.sec-logos-res .btn { margin-top: 8px; }

.visor { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); overflow: visible; }
.visor::backdrop { background: rgba(10, 14, 40, .88); }
.visor img { display: block; width: 100%; height: auto; border-radius: 10px; }
.visor-cerrar { position: absolute; top: -48px; right: -4px; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; }
.visor-cerrar .ico { width: 30px; height: 30px; }
.visor-pie { color: #fff; text-align: center; margin: 12px 0 0; font-family: var(--f-tit); font-weight: 600; font-size: 19px; }

/* ---------- Beneficios y proceso (Diseño de logos) ---------- */
.beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.beneficio { background: #fff; border: 1px solid #e4e7f3; border-radius: 10px; padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.beneficio:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--azul); }
.beneficio-num { font-family: var(--f-tit); font-weight: 700; font-size: 42px; line-height: 1; color: var(--azul); }
.beneficio h3 { font-family: var(--f-tit); font-weight: 700; font-size: 22px; line-height: 1.15; text-transform: uppercase; color: var(--azul-osc); margin: 12px 0 8px; }
.beneficio p { margin: 0; font-size: 15.5px; }

.sec-proceso { background: linear-gradient(120deg, #2c52c6 0%, #1d276a 100%); color: #fff; }
.proceso { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; }
.proceso li { counter-increment: paso; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; padding: 28px 22px; }
.proceso li::before { content: counter(paso); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--azul); font-family: var(--f-tit); font-weight: 700; font-size: 23px; margin-bottom: 14px; }
.proceso h3 { font-family: var(--f-tit); font-weight: 700; font-size: 23px; text-transform: uppercase; margin: 0 0 8px; color: #fff; }
.proceso p { margin: 0; font-size: 15px; color: #dfe6ff; }

/* ---------- Formulario ---------- */
.sec-form { padding-bottom: 0; }
.sec-form .titulo { margin-bottom: 26px; }
.form-zona { position: relative; padding: 40px 0 70px; background: #fff url("../img/formulario-fondo.webp") right center / cover no-repeat; }
.form-tarjeta { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(29, 39, 106, .16); padding: 34px; max-width: 700px; }
.form-tit { font-family: var(--f-tit); font-weight: 700; font-size: 25px; color: var(--azul-osc); text-transform: uppercase; margin: 0; line-height: 1.2; }
.form-bajada { font-size: 14px; color: #777; margin: 2px 0 18px; }
.form-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.campo { display: block; margin: 0 0 14px; }
.form-grilla .campo { margin: 0; }
.campo input, .campo select, .campo textarea, .form-sus input {
    width: 100%; background: #f5f6fa; border: 1px solid #e3e6ef; border-radius: 8px; padding: 14px 16px;
    font: 15px/1.4 var(--f-txt); color: var(--negro); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d276a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 40px; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); background-color: #fff; box-shadow: 0 0 0 3px rgba(60, 138, 255, .18); }
.campo.con-error input, .campo.con-error select { border-color: #d63638; background-color: #fff6f6; }
.campo-error { display: block; color: #b32d2e; font-size: 13px; margin-top: 4px; }
.btn-form { width: 100%; border-radius: 30px; padding: 15px 20px; font-size: 17px; }
.btn-form[disabled] { opacity: .7; cursor: wait; }
.form-estado { margin: 12px 0 0; font-weight: 700; }
.form-estado:empty { display: none; }
.form-estado.ok { color: #0a7a3d; }
.form-estado.mal { color: #b32d2e; }
.form-nota { font-size: 12.5px; color: #888; text-align: center; margin: 12px 0 0; }
.form-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #eef4ff; border: 1px solid #cfe0ff; color: var(--azul-osc); border-radius: 8px; padding: 8px 10px 8px 14px; margin-bottom: 14px; font-size: 14.5px; }
.form-plan[hidden] { display: none; }
.form-plan button { background: none; border: 0; color: var(--azul-osc); cursor: pointer; width: 28px; height: 28px; padding: 4px; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-exito { text-align: center; padding: 26px 6px; }
.form-exito .ico { width: 64px; height: 64px; color: #12a150; }
.form-exito h4 { font-family: var(--f-tit); font-weight: 700; font-size: 26px; color: var(--azul-osc); text-transform: uppercase; margin: 10px 0 6px; }
.form-exito p { margin: 0 0 16px; }
.form-banda { max-width: 700px; margin-top: 26px; background: var(--azul); color: #fff; text-align: center; padding: 22px 20px; border-radius: 6px; }
.form-banda-iconos { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.form-banda-iconos a { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1d2327; display: flex; align-items: center; justify-content: center; }
.form-banda-iconos a.wa { color: var(--wa); }
.form-banda-iconos .ico { width: 24px; height: 24px; }
.form-banda p { margin: 0; font-size: 14.5px; }
.form-banda p a { color: #fff; }

/* ---------- Preguntas frecuentes ---------- */
.sec-faq { background: var(--gris); }
.faq { border-top: 1px solid var(--borde); }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-family: var(--f-tit); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--azul-osc); }
.faq-item summary .ico-mas { color: var(--azul); width: 22px; height: 22px; }
.faq-item p { margin: 0 4px 22px; }

/* ---------- Blog ---------- */
.blog-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-foto { display: block; aspect-ratio: 380 / 248; overflow: hidden; border-radius: 4px; background: #e9ebf3; }
.blog-foto img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .5s; }
.blog-tarjeta:hover .blog-foto img { filter: none; transform: scale(1.04); }
.blog-tarjeta h3 { font-family: var(--f-tit); font-weight: 700; font-size: 20px; line-height: 1.3; text-transform: uppercase; margin: 18px 0 10px; }
.blog-tarjeta h3 a { color: #111; }
.blog-tarjeta h3 a:hover { color: var(--azul); }
.blog-tarjeta p { font-size: 14.5px; color: #666; margin: 0 0 10px; line-height: 1.6; }
.blog-mas { display: inline-flex; align-items: center; gap: 2px; font-family: var(--f-tit); font-weight: 700; font-size: 16px; }
.blog-mas .ico { width: 18px; height: 18px; }

/* ---------- Contacto ---------- */
.sec-vias { padding: 64px 0 0; }
.vias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.via { display: block; text-align: center; background: #fff; border: 1px solid #e4e7f3; border-radius: 10px; padding: 30px 18px; color: var(--texto); transition: transform .25s, box-shadow .25s, border-color .25s; }
a.via:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--azul); color: var(--texto); }
.via .ico { width: 36px; height: 36px; color: var(--azul); }
.via-wa .ico { color: var(--wa); }
.via h2 { font-family: var(--f-tit); font-weight: 700; font-size: 21px; text-transform: uppercase; color: var(--azul-osc); margin: 12px 0 4px; }
.via p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Artículo y textos largos ---------- */
.articulo { padding-top: 60px; }
.migas { font-size: 14px; color: #888; margin-bottom: 20px; }
.articulo-foto { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 32px; }
.articulo-cuerpo { font-size: 17px; line-height: 1.75; color: #3d3f48; }
.articulo-cuerpo h2 { font-family: var(--f-tit); font-weight: 700; font-size: 29px; line-height: 1.2; color: var(--azul-osc); margin: 38px 0 12px; }
.articulo-cuerpo h3 { font-family: var(--f-tit); font-weight: 700; font-size: 23px; line-height: 1.25; color: var(--azul-osc); margin: 30px 0 10px; }
.articulo-cuerpo ul, .articulo-cuerpo ol { padding-left: 22px; margin: 0 0 20px; }
.articulo-cuerpo li { margin: 6px 0; }
.articulo-cuerpo img { border-radius: 8px; }
.articulo-cuerpo blockquote { margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--azul); background: var(--gris); }
.articulo-cta { background: var(--gris); border-left: 4px solid var(--azul); border-radius: 8px; padding: 30px; margin-top: 44px; }
.articulo-cta h2 { font-family: var(--f-tit); font-weight: 700; font-size: 27px; color: var(--azul-osc); text-transform: uppercase; margin: 0 0 8px; line-height: 1.15; }

/* ---------- Pie ---------- */
.pie { background: var(--pie); color: #d9dcf2; padding-top: 72px; font-size: 15px; }
.pie a { color: #d9dcf2; }
.pie a:hover { color: #fff; }
.pie-cols { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1.3fr; gap: 40px; }
.pie-marca img { width: 220px; height: auto; display: block; }
.pie-marca p { font-size: 14px; margin: 16px 0; }
.pie-tit { font-family: var(--f-tit); font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: .3px; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.pie-lista { list-style: none; margin: 0; padding: 0; }
.pie-lista li { margin: 0 0 8px; }
.pie-contacto { list-style: none; margin: 0; padding: 0; }
.pie-contacto li { display: flex; gap: 12px; margin: 0 0 14px; line-height: 1.45; }
.pie-contacto .ico { width: 22px; height: 22px; color: #48b6c6; margin-top: 2px; }
.pie-contacto small { display: block; color: #fff; font-weight: 700; font-size: 14px; }
.form-sus input { background: #fff; border-radius: 3px; margin-bottom: 12px; }
.form-sus .form-estado.ok { color: #7ee2a8; }
.form-sus .form-estado.mal { color: #ffb3b3; }
.pie-inf { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-top: 54px; padding-top: 20px; padding-bottom: 22px; border-top: 1px solid #3a4bd0; font-size: 13.5px; }
.pie-inf p { margin: 0; }

/* ---------- Botones flotantes ---------- */
.flotantes { position: fixed; right: 18px; bottom: 27px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.flot { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s; }
.flot:hover { transform: scale(1.08); color: #fff; }
.flot .ico { width: 25px; height: 25px; }
/* Mismo degradado diagonal que la burbuja del chat: el color de cada botón se oscurece hacia abajo. */
.flot-tel { background: linear-gradient(135deg, #2f3640 0%, #12151a 100%); }
.flot-wa { background: linear-gradient(135deg, var(--wa) 0%, #0b6b39 100%); }
.flot-mail { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%); }

/* ---------- Animación al aparecer ---------- */
.js [data-rev] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js [data-rev].vis { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-rev] { opacity: 1; transform: none; transition: none; }
    .herr img, .carrusel-ver img, .blog-foto img, .beneficio, .via, .cab.fijo { transition: none; animation: none; }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1180px) {
    .carrusel-ant { left: 4px; }
    .carrusel-sig { right: 4px; }
    .llamadas { grid-template-columns: 340px 1fr; }
    .pie-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .sec { padding: 70px 0; }
    .cab-datos { display: none; }
    .cab-sup { padding-top: 16px; padding-bottom: 12px; }
    .cab-logo img { width: 150px; }
    .cab-boton { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; color: #fff; cursor: pointer; }
    .cab-boton .ico { width: 26px; height: 26px; }
    .cab-fila { display: none; }
    .cab.fijo .cab-sup { display: flex; }
    .cab.fijo .cab-sup::after { display: none; }
    .cab.abierto { position: fixed; background: var(--azul-osc); bottom: 0; overflow-y: auto; }
    .cab.abierto .cab-fila { display: block; }
    .cab.abierto .cab-boton .ico-abrir { display: none; }
    .cab.abierto .cab-boton .ico-cerrar { display: inline-block; }
    .cab-fila-int { flex-direction: column; align-items: stretch; padding-top: 16px; padding-bottom: 30px; }
    .cab-logo-mini, .cab.fijo .cab-logo-mini { display: none; }
    .cab-nav ul { flex-direction: column; gap: 0; }
    .cab-nav li a { display: block; padding: 14px 4px; font-size: 19px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .cab-nav-movil { display: grid; gap: 12px; margin-top: 24px; }
    .cab-nav-movil .btn { width: 100%; padding: 15px; font-size: 17px; }
    .cab-redes { justify-content: center; }

    .hero::after { background: linear-gradient(180deg, rgba(18, 24, 82, .35) 0%, rgba(18, 24, 82, .6) 100%); }
    .hero-int { justify-content: flex-start; }
    .hero-grande .hero-int { min-height: 640px; padding-top: 140px; padding-bottom: 70px; }
    .hero-chica .hero-int { min-height: 380px; padding-top: 140px; padding-bottom: 50px; }
    .intro { grid-template-columns: 1fr; gap: 40px; }
    .intro-texto { max-width: none; margin: 0; }
    .intro-fotos { height: 420px; max-width: 560px; width: 100%; margin: 0 auto; }
    .logos-fotos { grid-template-columns: 1fr 1fr; }
    .logos-fotos img:last-child { margin-top: 40px; }
    .herr-grilla { grid-template-columns: 1fr 1fr; }
    .llamadas { grid-template-columns: 1fr; }
    .llamadas-foto { max-width: 460px; }
    .banda { grid-template-columns: 1fr; }
    .banda-texto { padding: 64px 32px 64px 120px; }
    .banda-int { margin: 0; }
    .banda-texto::before { left: 16px; width: 90px; }
    .banda-foto { height: 240px; }
    .planes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 40px; }
    .planes-centro .plan { flex-basis: 100%; }
    .cifras-grilla { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .carrusel-pista { grid-auto-columns: calc((100% - 24px) / 2); }
    .beneficios { grid-template-columns: 1fr 1fr; }
    .proceso { grid-template-columns: 1fr 1fr; }
    .form-zona { background: var(--gris); padding-top: 24px; }
    .form-tarjeta, .form-banda { max-width: none; }
    .blog-grilla { grid-template-columns: 1fr 1fr; }
    .vias { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .sec { padding: 56px 0; }
    .titulo { margin-bottom: 32px; }
    .hero-grande .hero-int { min-height: 600px; }
    .hero-lead, .hero-p { font-size: 16.5px; }
    .hero-tel { font-size: 28px; }
    .hero-btns .btn { flex: 1 1 100%; }
    .intro-fotos { height: 330px; }
    .logos-fotos { grid-template-columns: 1fr; }
    .logos-fotos img:last-child { margin-top: 0; }
    .herr-grilla { grid-template-columns: 1fr; }
    .herr span { font-size: 23px; }
    .banda-texto { padding: 56px 20px; }
    .banda-texto::before { left: auto; right: 0; width: 80px; opacity: .3; }
    .plan { padding: 34px 18px 26px; }
    .carrusel-pista { grid-auto-columns: 84%; gap: 16px; }
    .carrusel-flecha { display: none; }
    .beneficios, .proceso { grid-template-columns: 1fr; }
    .form-tarjeta { padding: 26px 18px; border-radius: 12px; }
    .form-grilla { grid-template-columns: 1fr; }
    .blog-grilla { grid-template-columns: 1fr; }
    .vias { grid-template-columns: 1fr; }
    .pie-cols { grid-template-columns: 1fr; gap: 34px; }
    .flotantes { right: 12px; bottom: 19px; gap: 10px; }
    .flot { width: 50px; height: 50px; }
    .faq-item summary h3 { font-size: 19px; }
}

/* ---------- Barras del navegador en celeste ----------
 * theme-color pinta la barra de la dirección; con viewport-fit=cover, en los Chrome
 * que dibujan de borde a borde, la franja de abajo (botones del sistema) muestra esta zona. */
html { background: var(--azul); }
.zona-segura { position: fixed; left: 0; right: 0; bottom: 0; height: env(safe-area-inset-bottom, 0px); background: var(--azul); z-index: 130; pointer-events: none; }
.flotantes { bottom: calc(27px + env(safe-area-inset-bottom, 0px)); }
.barra-admin { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.pie-inf { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.contenedor { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
    .flotantes { bottom: calc(19px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Barra "Presiona para guardar esta web" (rectangular, 45 px de alto) ---------- */
.media-luna {
    position: fixed; left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); z-index: 44;
    width: 100%; height: 45px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 16px; border: 0; margin: 0; border-radius: 0;
    background: var(--azul); color: #fff; cursor: pointer;
    font-family: var(--f-tit); font-weight: 700; font-size: 16px; letter-spacing: .3px; line-height: 1.1;
    box-shadow: 0 -4px 16px rgba(29, 39, 106, .2);
    animation: luna-subir .5s ease .6s both;
    transition: background .2s;
}
.media-luna:hover { background: var(--azul-hover); }
.media-luna .ico { width: 20px; height: 20px; flex: none; }
.media-luna[hidden] { display: none; }
@keyframes luna-subir { from { transform: translateY(100%); } to { transform: none; } }

/* Mientras la barra está visible, los botones flotantes y el pie se corren hacia arriba. */
.con-luna .flotantes { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.con-luna .barra-admin { bottom: calc(55px + env(safe-area-inset-bottom, 0px)); }
.con-luna .pie-inf { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

.luna-ayuda {
    position: fixed; left: 50%; bottom: calc(55px + env(safe-area-inset-bottom, 0px)); z-index: 46;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 24px));
    background: #fff; color: var(--negro); border-radius: 14px; padding: 18px 44px 16px 18px;
    box-shadow: 0 14px 40px rgba(29, 39, 106, .28); border-top: 4px solid var(--azul);
}
.luna-ayuda[hidden] { display: none; }
.luna-ayuda-tit { font-family: var(--f-tit); font-weight: 700; font-size: 18px; color: var(--azul-osc); margin: 0 0 6px; text-transform: uppercase; line-height: 1.2; }
.luna-ayuda-txt { margin: 0; font-size: 15px; line-height: 1.5; }
.luna-ayuda-cerrar { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: var(--azul-osc); cursor: pointer; padding: 4px; }
.luna-ayuda-cerrar .ico { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
    .media-luna { animation: none; }
}

/* ---------- Brillo que cruza la barra de izquierda a derecha ---------- */
.media-luna { overflow: hidden; }
.media-luna > * { position: relative; z-index: 1; }
.media-luna::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 140px; z-index: 2;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-200px) skewX(-22deg);
    animation: luna-brillo 3.4s ease-in-out 1.4s infinite;
    pointer-events: none;
}
@keyframes luna-brillo {
    0% { transform: translateX(-200px) skewX(-22deg); }
    55%, 100% { transform: translateX(calc(100vw + 60px)) skewX(-22deg); }
}

/* ---------- Pulso de los botones flotantes ---------- */
.flot-tel { --pulso: 47, 54, 64; }
.flot-wa { --pulso: 37, 211, 102; }
.flot-mail { --pulso: 60, 138, 255; }
.flot { animation: flot-pulso 2.2s ease-out infinite; }
.flot-wa { animation-delay: .35s; }
.flot-mail { animation-delay: .7s; }
.flot:hover, .flot:focus-visible { animation: none; transform: scale(1.08); }
@keyframes flot-pulso {
    0% { transform: scale(1); box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 0 rgba(var(--pulso), .6); }
    35% { transform: scale(1.07); }
    70% { transform: scale(1); box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 16px rgba(var(--pulso), 0); }
    100% { transform: scale(1); box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 0 rgba(var(--pulso), 0); }
}

@media (prefers-reduced-motion: reduce) {
    .media-luna::after { animation: none; display: none; }
    .flot { animation: none; }
}
