/* ============================================================
   Landing asesor de seguros
   Paleta: petróleo (confianza) + dorado cálido (acción)
   ============================================================ */

@font-face {
    font-family: 'Jakarta';
    src: url("../fonts/jakarta-O3xqIJy.woff2") format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url("../fonts/fraunces-9IHoOgJ.woff2") format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --tinta: #10292e;
    --petroleo: #135058;
    --petroleo-claro: #1d6d77;
    --menta: #e3efec;
    --dorado: #e9b44c;
    --dorado-oscuro: #d39a2c;
    --fondo: #f7f5f0;
    --arena: #efeae0;
    --superficie: #ffffff;
    --texto: #1d2b2f;
    --suave: #5b6b6e;
    --borde: #e2ddd2;
    --error: #b42318;
    --error-fondo: #fdecea;

    --radio: 14px;
    --radio-grande: 24px;
    --sombra: 0 1px 2px rgb(16 41 46 / .06), 0 8px 24px rgb(16 41 46 / .07);
    --sombra-alta: 0 2px 4px rgb(16 41 46 / .06), 0 20px 48px rgb(16 41 46 / .14);

    --fuente: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fuente-titulo: 'Fraunces', Georgia, serif;
    --alto-cabecera: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

/* El desplazamiento suave se activa tras cargar: al volver de un envío con
   errores (/#contacto) la página aparece directamente en el formulario */
html.listo { scroll-behavior: smooth; }
html {
    scroll-padding-top: calc(var(--alto-cabecera) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--fuente);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--tinta); }
h1, h2 { font-family: var(--fuente-titulo); font-weight: 600; letter-spacing: -.02em; font-variation-settings: 'opsz' 96; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.contenedor { width: min(1160px, 100% - 32px); margin-inline: auto; }
.contenedor--estrecho { width: min(780px, 100% - 32px); }

.visualmente-oculto {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.saltar {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.saltar:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: translateY(0); }
.boton--acento { background: var(--dorado); color: var(--tinta); box-shadow: 0 6px 18px rgb(233 180 76 / .35); }
.boton--acento:hover { background: var(--dorado-oscuro); }
.boton--contorno { border-color: var(--petroleo); color: var(--petroleo); background: transparent; }
.boton--contorno:hover { background: var(--petroleo); color: #fff; }
.boton--claro { background: var(--petroleo); color: #fff; }
.boton--claro:hover { background: var(--petroleo-claro); }
.boton--grande { padding: 1em 1.7em; font-size: 1.05rem; }
.boton--peque { padding: .55em 1.1em; font-size: .92rem; }
.boton--bloque { width: 100%; }
.boton .ico { width: 1.15em; height: 1.15em; }

/* ---------- Cabecera ---------- */
.cabecera {
    position: sticky; top: 0; z-index: 50;
    background: rgb(247 245 240 / .86);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.cabecera.con-sombra { border-color: var(--borde); box-shadow: 0 4px 20px rgb(16 41 46 / .06); }
.cabecera__fila { display: flex; align-items: center; gap: 24px; height: var(--alto-cabecera); }

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca__sello {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--petroleo); color: var(--dorado);
}
.marca__sello .ico { width: 24px; height: 24px; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.2; }
.marca__texto strong { font-size: 1.02rem; color: var(--tinta); }
.marca__texto small { font-size: .8rem; color: var(--suave); }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.boton) {
    text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--suave);
    transition: color .2s;
}
.menu a:not(.boton):hover, .menu a.activo { color: var(--petroleo); }

.cabecera__tel {
    display: none; align-items: center; gap: 8px;
    font-weight: 700; color: var(--petroleo); text-decoration: none;
}
.menu-boton {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: var(--superficie); color: var(--tinta); box-shadow: var(--sombra); cursor: pointer;
    place-items: center;
}
.menu-boton .ico { width: 24px; height: 24px; }
.menu-boton .ico--cerrar { display: none; }
.menu-boton[aria-expanded="true"] .ico--abrir { display: none; }
.menu-boton[aria-expanded="true"] .ico--cerrar { display: block; }

/* ---------- Portada ---------- */
.portada {
    position: relative; overflow: hidden;
    padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.portada::before {
    content: ''; position: absolute; inset: auto -10% -45% 35%; height: 120%;
    background: radial-gradient(closest-side, rgb(29 109 119 / .16), transparent);
    pointer-events: none;
}
.portada__rejilla {
    position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 6vw, 80px); align-items: center;
}
.antetitulo {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 18px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--petroleo);
}
.antetitulo .ico { width: 1.1em; height: 1.1em; }
.portada h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: 22px; }
.portada h1 em { font-style: italic; color: var(--petroleo); }
.portada__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--suave); max-width: 36em; margin-bottom: 32px; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.garantias { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; }
.garantias li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.garantias .ico {
    width: 22px; height: 22px; padding: 4px; border-radius: 50%;
    background: var(--menta); color: var(--petroleo); stroke-width: 3;
}

.portada__visual { position: relative; padding: 28px 28px 40px; }
.tarjeta-agente {
    position: relative; border-radius: var(--radio-grande); overflow: hidden;
    background: var(--superficie); box-shadow: var(--sombra-alta);
    transform: rotate(1.5deg);
}
.tarjeta-agente__foto {
    display: grid; place-items: center; aspect-ratio: 4 / 4.4;
    background:
        radial-gradient(circle at 30% 20%, rgb(233 180 76 / .35), transparent 45%),
        linear-gradient(160deg, var(--petroleo-claro), var(--tinta));
}
.tarjeta-agente__foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-agente__foto span {
    font-family: var(--fuente-titulo); font-size: clamp(4rem, 9vw, 7rem); font-weight: 500; color: rgb(255 255 255 / .9);
}
.tarjeta-agente__pie { display: flex; flex-direction: column; padding: 18px 22px; }
.tarjeta-agente__pie strong { font-size: 1.1rem; color: var(--tinta); }
.tarjeta-agente__pie span { font-size: .9rem; color: var(--suave); }

.chapa {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radio);
    background: var(--superficie); box-shadow: var(--sombra-alta);
    font-size: .85rem; color: var(--suave); line-height: 1.25;
    animation: flotar 6s ease-in-out infinite;
}
.chapa strong { display: block; font-size: 1.05rem; color: var(--tinta); }
.chapa > .ico {
    width: 40px; height: 40px; padding: 9px; border-radius: 12px;
    background: var(--menta); color: var(--petroleo);
}
.chapa--1 { top: 12%; left: -6%; }
.chapa--2 { bottom: 4%; right: -4%; animation-delay: -3s; }
.chapa--2 > .ico { background: #fbf0d8; color: var(--dorado-oscuro); }

@keyframes flotar { 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(64px, 9vw, 112px) 0; }
.seccion--tono { background: var(--arena); }
.seccion--oscura { background: var(--tinta); color: #d5e2e0; }
.seccion--oscura h2, .seccion--oscura h3 { color: #fff; }
.seccion--oscura .antetitulo { color: var(--dorado); }

.seccion__cabecera { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.seccion__cabecera h2, .sobre h2, .contacto h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 14px; }
.seccion__cabecera p:last-child { color: var(--suave); font-size: 1.1rem; margin: 0; }

/* ---------- Tarjetas de seguros ---------- */
.seguros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.seguro {
    display: flex; flex-direction: column; padding: 28px 24px;
    background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-grande);
    text-decoration: none; color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.seguro:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); border-color: transparent; }
.seguro h3 { margin-bottom: 8px; }
.seguro p { color: var(--suave); font-size: .95rem; flex: 1; }
.seguro__icono {
    display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
    border-radius: 16px; background: var(--menta); color: var(--petroleo);
    transition: background-color .25s, color .25s;
}
.seguro__icono .ico { width: 28px; height: 28px; }
.seguro:hover .seguro__icono { background: var(--petroleo); color: var(--dorado); }
.seguro__enlace {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
    font-weight: 700; font-size: .92rem; color: var(--petroleo);
}
.seguro__enlace .ico { transition: transform .25s; }
.seguro:hover .seguro__enlace .ico { transform: translateX(4px); }
.seguro--otro {
    background: var(--petroleo); border-color: var(--petroleo); justify-content: flex-end;
}
.seguro--otro h3 { color: #fff; font-family: var(--fuente-titulo); font-size: 1.45rem; font-weight: 600; }
.seguro--otro p { color: #cfe2df; flex: 0 0 auto; }
.seguro--otro .seguro__enlace { color: var(--dorado); }
/* Si "¿Buscas otra cosa?" queda sola en su fila, ocupa la fila entera */
.seguros > .seguro--otro:nth-child(4n + 1) { grid-column: 1 / -1; }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.sobre__foto {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5;
    border-radius: var(--radio-grande);
    background:
        radial-gradient(circle at 70% 15%, rgb(233 180 76 / .3), transparent 40%),
        linear-gradient(200deg, var(--petroleo-claro), var(--tinta));
    box-shadow: var(--sombra-alta);
}
.sobre__foto img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sobre__foto > span { font-family: var(--fuente-titulo); font-size: 6rem; color: rgb(255 255 255 / .9); }
.sobre__dato {
    position: absolute; right: -18px; bottom: 28px;
    padding: 14px 20px; border-radius: var(--radio);
    background: var(--dorado); color: var(--tinta); font-weight: 600; font-size: .9rem; line-height: 1.2;
    box-shadow: var(--sombra-alta);
}
.sobre__dato strong { display: block; font-family: var(--fuente-titulo); font-size: 2rem; }
.sobre__texto > p:not(.antetitulo) { color: var(--suave); font-size: 1.07rem; }

.ventajas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; padding: 0; margin: 32px 0 0; list-style: none; }
.ventajas li { display: flex; gap: 14px; }
.ventajas .ico {
    width: 44px; height: 44px; padding: 10px; border-radius: 12px;
    background: var(--superficie); color: var(--petroleo); box-shadow: var(--sombra);
}
.ventajas strong { display: block; color: var(--tinta); }
.ventajas span { font-size: .92rem; color: var(--suave); }

/* ---------- Pasos ---------- */
.pasos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    padding: 0; margin: 0; list-style: none; counter-reset: paso;
}
.paso {
    position: relative; padding: 34px 28px 30px;
    background: var(--superficie); border-radius: var(--radio-grande); border: 1px solid var(--borde);
}
.paso__num {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
    border-radius: 50%; background: var(--tinta); color: var(--dorado);
    font-family: var(--fuente-titulo); font-size: 1.5rem; font-weight: 600;
}
.paso h3 { margin-bottom: 10px; font-size: 1.2rem; }
.paso p { margin: 0; color: var(--suave); }
.paso:not(:last-child)::after {
    content: ''; position: absolute; top: 59px; left: calc(28px + 52px + 14px); right: -12px;
    border-top: 2px dashed var(--borde);
}

/* ---------- Opiniones ---------- */
.opiniones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opinion {
    display: flex; flex-direction: column; margin: 0; padding: 30px 28px;
    border-radius: var(--radio-grande); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
}
.opinion__estrellas { display: flex; gap: 3px; margin-bottom: 16px; color: var(--dorado); }
.opinion__estrellas .ico { width: 18px; height: 18px; fill: currentColor; }
.opinion blockquote { flex: 1; margin: 0 0 22px; font-size: 1.05rem; line-height: 1.6; color: #eef4f3; }
.opinion figcaption strong { display: block; color: #fff; }
.opinion figcaption span { font-size: .88rem; color: #9fb7b4; }

/* ---------- Preguntas ---------- */
.preguntas { display: grid; gap: 12px; }
.pregunta {
    background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
    transition: box-shadow .2s;
}
.pregunta[open] { box-shadow: var(--sombra); }
.pregunta summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; font-weight: 700; color: var(--tinta); cursor: pointer; list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta__signo {
    position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--menta);
}
.pregunta__signo::before, .pregunta__signo::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
    background: var(--petroleo); border-radius: 2px; transform: translate(-50%, -50%);
    transition: transform .25s;
}
.pregunta__signo::after { transform: translate(-50%, -50%) rotate(90deg); }
.pregunta[open] .pregunta__signo::after { transform: translate(-50%, -50%) rotate(0); }
.pregunta p { margin: 0; padding: 0 24px 22px; color: var(--suave); }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contacto__info > p:not(.antetitulo) { color: var(--suave); font-size: 1.07rem; }
.canales { display: grid; gap: 12px; padding: 0; margin: 28px 0 0; list-style: none; }
.canales a, .canales div {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    background: var(--superficie); border-radius: var(--radio); text-decoration: none;
    font-weight: 700; color: var(--tinta); overflow-wrap: anywhere;
    transition: box-shadow .2s, transform .2s;
}
.canales a:hover { box-shadow: var(--sombra); transform: translateX(3px); }
.canales .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--menta); color: var(--petroleo); }
.canales small { display: block; font-size: .8rem; font-weight: 600; color: var(--suave); }

.contacto__form {
    padding: clamp(24px, 4vw, 40px); background: var(--superficie);
    border-radius: var(--radio-grande); box-shadow: var(--sombra-alta);
}

/* ---------- Formulario ---------- */
.formulario { display: grid; gap: 18px; }
.formulario__par { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.formulario__nota { margin: -10px 0 0; font-size: .85rem; color: var(--suave); }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label, .campo legend { font-weight: 700; font-size: .92rem; color: var(--tinta); }
.campo .opcional { font-weight: 500; color: var(--suave); }
.campo fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.campo legend { padding: 0; margin-bottom: 8px; }
.campo input:not([type="radio"]):not([type="checkbox"]), .campo select, .campo textarea {
    width: 100%; padding: 13px 15px;
    font: inherit; font-size: 1rem; color: var(--texto);
    background: var(--fondo); border: 1.5px solid var(--borde); border-radius: 12px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.campo select {
    appearance: none; padding-right: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135058' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.campo textarea { resize: vertical; min-height: 92px; }
.campo input::placeholder, .campo textarea::placeholder { color: #98a3a4; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none; border-color: var(--petroleo); background: #fff; box-shadow: 0 0 0 4px rgb(19 80 88 / .12);
}
.campo.campo--error input:not([type="radio"]):not([type="checkbox"]), .campo.campo--error select, .campo.campo--error textarea { border-color: var(--error); background: #fffafa; }
.campo__error { margin: 0; font-size: .87rem; font-weight: 600; color: var(--error); }

.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcion span {
    display: block; padding: 9px 16px; border-radius: 999px;
    border: 1.5px solid var(--borde); background: var(--fondo);
    font-size: .92rem; font-weight: 600; color: var(--suave);
    transition: all .2s;
}
.opcion input:checked + span { border-color: var(--petroleo); background: var(--petroleo); color: #fff; }
.opcion input:focus-visible + span { outline: 3px solid var(--dorado); outline-offset: 2px; }

.casilla { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: .92rem; color: var(--texto) !important; cursor: pointer; }
.casilla input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--petroleo); cursor: pointer; }
.casilla a { color: var(--petroleo); font-weight: 700; }
.campo--casilla.campo--error .casilla input { outline: 2px solid var(--error); outline-offset: 2px; }
.formulario__rgpd { margin: -8px 0 0; font-size: .75rem; line-height: 1.45; color: var(--suave); text-align: center; }
.formulario__rgpd a { color: inherit; }

.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.formulario__privado {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: -4px 0 0; font-size: .85rem; color: var(--suave); text-align: center;
}
.formulario__privado .ico { width: 16px; height: 16px; color: var(--petroleo); }
.formulario.enviando [data-enviar] { opacity: .7; pointer-events: none; }

.aviso { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.aviso--error { background: var(--error-fondo); color: var(--error); }

/* ---------- Pie ---------- */
.pie { padding: 40px 0; background: var(--tinta); color: #9fb7b4; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.marca--pie .marca__sello { background: rgb(255 255 255 / .08); }
.marca--pie strong { color: #fff; }
.marca--pie small { color: #9fb7b4; }
.pie__enlaces { display: flex; gap: 24px; }
.pie__enlaces a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.pie__enlaces a:hover { color: #fff; }
.pie__copy { margin: 0; font-size: .85rem; }

/* ---------- Barra fija móvil ---------- */
.barra-movil { display: none; }

/* ---------- Página de gracias ---------- */
.gracias { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.gracias__tarjeta {
    width: min(560px, 100%); padding: clamp(32px, 6vw, 56px); text-align: center;
    background: var(--superficie); border-radius: var(--radio-grande); box-shadow: var(--sombra-alta);
}
.gracias__icono {
    display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px;
    border-radius: 50%; background: var(--menta); color: var(--petroleo);
}
.gracias__icono .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.gracias h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 14px; }
.gracias p { color: var(--suave); }
.gracias__urgente { margin-top: 28px; font-weight: 700; color: var(--tinta) !important; }
.gracias__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.gracias__volver { font-weight: 700; color: var(--petroleo); text-decoration: none; }

/* ---------- Animación de entrada ---------- */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html, html.listo { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .revelar { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .seguros { grid-template-columns: repeat(2, 1fr); }
    .seguros > .seguro--otro:nth-child(4n + 1) { grid-column: auto; }
    .seguros > .seguro--otro:nth-child(2n + 1) { grid-column: 1 / -1; }
    .menu { gap: 20px; }
}

@media (max-width: 920px) {
    :root { --alto-cabecera: 64px; }

    .menu-boton { display: grid; }
    .cabecera__tel { display: none; }
    .menu {
        position: fixed; inset: var(--alto-cabecera) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 20px; background: var(--fondo); border-bottom: 1px solid var(--borde);
        box-shadow: 0 20px 40px rgb(16 41 46 / .12);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .menu.abierto { transform: none; opacity: 1; visibility: visible; }
    .menu a:not(.boton) { padding: 14px 4px; border-bottom: 1px solid var(--borde); font-size: 1.05rem; color: var(--tinta); }
    .menu__cta { margin-top: 16px; padding: 14px; font-size: 1rem; }

    .portada__rejilla, .sobre, .contacto { grid-template-columns: 1fr; }
    .portada__visual { max-width: 420px; width: 100%; margin: 0 auto; }
    .sobre__foto { max-width: 380px; width: 100%; margin: 0 auto; }
    .pasos { grid-template-columns: 1fr; }
    .paso:not(:last-child)::after { display: none; }
    .opiniones { grid-template-columns: 1fr; }

    /* Barra inferior: hueco para que no tape el pie */
    body { padding-bottom: 76px; }
    .barra-movil {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--borde);
        transition: transform .3s;
    }
    .barra-movil.oculta { transform: translateY(110%); }
    .barra-movil a {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        min-height: 48px; border-radius: 12px; text-decoration: none;
        font-weight: 700; font-size: .92rem; color: var(--petroleo); background: var(--menta);
    }
    .barra-movil .ico { width: 20px; height: 20px; }
    .barra-movil__principal { background: var(--dorado) !important; color: var(--tinta) !important; }
    .gracias { min-height: calc(100vh - 76px); }
    .pagina-gracias { padding-bottom: 0; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .marca__sello { width: 38px; height: 38px; }
    .marca__texto strong { font-size: .95rem; }
    .portada__acciones .boton { flex: 1 1 100%; }
    .chapa { padding: 10px 12px; font-size: .78rem; }
    .chapa > .ico { width: 34px; height: 34px; padding: 7px; }
    .chapa--1 { left: -2%; }
    .chapa--2 { right: -2%; }
    .seguros { grid-template-columns: 1fr; gap: 14px; }
    .seguro { padding: 22px 20px; }
    .ventajas { grid-template-columns: 1fr; }
    .sobre__dato { right: 12px; }
    .formulario__par { grid-template-columns: 1fr; }
    .pie__fila { flex-direction: column; align-items: flex-start; }
}

/* ---------- Páginas legales ---------- */
.legal__cabecera { padding: 22px 0; background: var(--tinta); }
.legal__volver { font-weight: 700; color: #fff; text-decoration: none; }
.legal { padding: clamp(36px, 6vw, 64px) 0; background: var(--superficie); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--texto); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--petroleo); overflow-wrap: anywhere; }
.legal__falta { padding: 1px 6px; border-radius: 4px; background: var(--error-fondo); color: var(--error); font-weight: 600; }
.legal__pie { padding: 24px 0; font-size: .9rem; color: var(--suave); }
.legal__pie a, .pie__copy a { color: inherit; }
