/* ==========================================================================
   Inverchain V4 — sistema de diseño
   Sale de los dos documentos de la agencia (landing de prospectos y landing
   privada del inversor): marfil cálido, titulares en serif fina, la moneda
   como símbolo y un tono que transmite calma. Nada de urgencia ni de cifras
   gritadas: la rentabilidad se enseña por operación, nunca como titular.
   Regla de color: el azul marino manda la acción principal; el dorado firma
   la marca (filetes, iconos, la moneda) y solo es botón en la zona privada.
   ========================================================================== */

@import url("/vendor/fonts/fonts.css");

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("/v4/fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/v4/fonts/cormorant-garamond-italic.woff2") format("woff2");
}

:root {
    --tinta: #2C364B;
    --tinta-700: #3d475c;
    --tinta-500: #5d667a;
    --tinta-300: #8a91a1;
    --oro: #c4a46e;
    --oro-claro: #e9dcc4;
    --oro-texto: #7e6538;   /* el dorado de marca no llega a 4.5:1 sobre marfil */
    --oro-boton: #8a6a36;   /* 5,1:1 con texto blanco */
    --marfil: #FBF8F3;
    --crema: #F4ECE0;
    --papel: #ffffff;
    --linea: #e6ddcc;
    --exito: #2e7d5b;

    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Lato", -apple-system, "Segoe UI", Roboto, sans-serif;

    --t-xs: 0.78rem;
    --t-sm: 0.9rem;
    --t-base: 1.0625rem;
    --t-lg: clamp(1.1rem, 0.35vw + 1rem, 1.25rem);
    --t-h3: clamp(1.45rem, 0.8vw + 1.2rem, 1.75rem);
    --t-h2: clamp(2rem, 2.2vw + 1.3rem, 3rem);
    --t-h1: clamp(2.6rem, 4.2vw + 1.2rem, 4.6rem);

    --ancho: 1180px;
    --radio: 6px;
    --radio-grande: 14px;
    --sombra: 0 1px 2px rgba(44, 54, 75, .05), 0 10px 30px rgba(44, 54, 75, .07);
    --sombra-alta: 0 2px 6px rgba(44, 54, 75, .08), 0 22px 50px rgba(44, 54, 75, .13);
    --transicion: 200ms cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--marfil);
    color: var(--tinta);
    font-family: var(--sans);
    font-size: var(--t-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.005em;
    margin: 0 0 1rem;
    color: var(--tinta);
    text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--oro-texto); }

:focus-visible { outline: 2px solid var(--oro-boton); outline-offset: 3px; border-radius: 2px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .contenedor { padding: 0 32px; } }

.saltar {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--tinta); color: #fff; padding: .7rem 1rem; border-radius: var(--radio);
}
.saltar:focus { left: 1rem; top: 1rem; }

/* --- Botones ------------------------------------------------------------ */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .75rem 1.5rem;
    border-radius: var(--radio); border: 1px solid transparent;
    font-family: var(--sans); font-size: .98rem; font-weight: 700; letter-spacing: .01em;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background var(--transicion), color var(--transicion), border-color var(--transicion), transform var(--transicion);
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton:active { transform: translateY(1px); }
.boton-primario { background: var(--tinta); color: var(--marfil); }
.boton-primario:hover { background: #1f2738; }
.boton-secundario { background: transparent; color: var(--tinta); border-color: rgba(44, 54, 75, .35); }
.boton-secundario:hover { border-color: var(--tinta); background: rgba(44, 54, 75, .04); }
.boton-oro { background: var(--oro-boton); color: #fff; }
.boton-oro:hover { background: #75592b; }
.boton-claro { background: var(--marfil); color: var(--tinta); }
.boton-claro:hover { background: #fff; }
.boton-borde-claro { background: transparent; color: var(--marfil); border-color: rgba(251, 248, 243, .45); }
.boton-borde-claro:hover { border-color: var(--marfil); }
.boton-ancho { width: 100%; }

/* --- Cabecera ------------------------------------------------------------ */
.cabecera {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 248, 243, .92);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transicion), box-shadow var(--transicion);
}
.cabecera.fija { border-bottom-color: var(--linea); box-shadow: 0 6px 20px rgba(44, 54, 75, .05); }
.cabecera-fila { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.marca img { width: 158px; height: auto; }
.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0 auto; padding: 0; }
.menu a {
    text-decoration: none; font-size: .95rem; color: var(--tinta-700);
    padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color var(--transicion), color var(--transicion);
}
.menu a:hover { color: var(--tinta); border-bottom-color: var(--oro); }
.acciones { display: flex; gap: .6rem; align-items: center; }
.acciones .boton { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.enlace-inversor {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .9rem; font-weight: 700; color: var(--tinta-700); text-decoration: none; padding: .5rem .25rem;
}
.enlace-inversor svg { width: 17px; height: 17px; color: var(--oro-texto); }
.enlace-inversor:hover { color: var(--tinta); }
.hamburguesa {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--tinta);
    border-radius: var(--radio); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 980px) {
    .hamburguesa { display: inline-flex; }
    .acciones .boton-primario { display: none; }
    .menu {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; margin: 0; padding: .5rem 16px 1rem;
        background: var(--marfil); border-bottom: 1px solid var(--linea); box-shadow: 0 14px 30px rgba(44, 54, 75, .08);
        display: none;
    }
    .menu.abierto { display: flex; }
    .menu a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--linea); }
    .menu li:last-child a { border-bottom: 0; }
    .acciones { order: 2; }
    .hamburguesa { order: 3; margin-left: 0; }
    .cabecera-fila { gap: .75rem; }
    .marca { margin-right: auto; }
}
@media (max-width: 420px) {
    .marca img { width: 132px; }
    .enlace-inversor span { display: none; }
}

/* --- Firma de marca: I N V E R C H A I N + filete + lema ----------------- */
.firma { margin: 1.4rem 0 1.6rem; }
.firma-nombre {
    display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem;
    letter-spacing: .55em; text-transform: uppercase; color: var(--tinta);
}
.firma-filete { display: block; width: 56px; height: 1px; background: var(--oro); margin: .9rem 0; }
.firma-lema {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .28em;
    text-transform: uppercase; color: var(--oro-texto);
}

.antetitulo {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--oro-texto); margin-bottom: 1rem;
}

/* --- Héroe ------------------------------------------------------------ */
.heroe {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(196, 164, 110, .16), transparent 55%),
        linear-gradient(180deg, var(--marfil) 0%, var(--crema) 100%);
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.heroe-rejilla { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.heroe h1 { margin-bottom: 0; max-width: 11ch; }
.heroe-texto { font-size: var(--t-lg); color: var(--tinta-700); max-width: 34rem; margin-bottom: 2rem; }
.heroe-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.heroe-datos {
    display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 2.2rem 0 0;
    font-size: .9rem; color: var(--tinta-500);
}
.heroe-datos li { display: flex; align-items: center; gap: .5rem; }
.heroe-datos svg { width: 16px; height: 16px; color: var(--oro-texto); flex: none; }

@media (max-width: 860px) {
    .heroe-rejilla { grid-template-columns: 1fr; }
    .heroe h1 { max-width: none; }
}

@media (max-width: 520px) {
    .heroe-cta .boton { width: 100%; }
}

/* --- Aviso de riesgo ----------------------------------------------------- */
.aviso {
    background: var(--tinta); color: rgba(251, 248, 243, .82);
    font-size: .84rem; line-height: 1.55; padding: 1rem 0;
}
.aviso .contenedor { display: flex; gap: .8rem; align-items: flex-start; }
.aviso svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: var(--oro); }
.aviso p { margin: 0; }
.aviso strong { color: var(--marfil); }

/* --- Secciones ---------------------------------------------------------- */
.seccion { padding: clamp(4rem, 8vw, 7rem) 0; }
.seccion-crema { background: var(--crema); }
.seccion-papel { background: var(--papel); }
.seccion-tinta { background: var(--tinta); color: rgba(251, 248, 243, .86); }
.seccion-tinta h2, .seccion-tinta h3 { color: var(--marfil); }
.seccion-tinta h2 em { color: var(--oro); }
.seccion-tinta .antetitulo { color: var(--oro); }

.cabeza { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cabeza-centro { margin-left: auto; margin-right: auto; text-align: center; }
.cabeza p { font-size: var(--t-lg); color: var(--tinta-700); }
.seccion-tinta .cabeza p { color: rgba(251, 248, 243, .78); }

.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.dos-col-invertida > :first-child { order: 2; }
@media (max-width: 860px) {
    .dos-col { grid-template-columns: 1fr; }
    .dos-col-invertida > :first-child { order: 0; }
    .foto-marco { max-width: 480px; }
}
.texto-largo p { font-size: var(--t-lg); color: var(--tinta-700); }
.frase {
    font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem);
    line-height: 1.3; color: var(--tinta); border-left: 2px solid var(--oro); padding-left: 1.2rem; margin: 2rem 0 0;
}

.foto-marco { position: relative; }
.foto-marco-apaisada img { aspect-ratio: 4 / 3; }
.foto-nota { font-size: var(--t-xs); color: var(--tinta-500); margin-top: .7rem; }

/* --- Cómo funciona: cinco pasos ------------------------------------------ */
.pasos {
    list-style: none; margin: 0; padding: 0; counter-reset: paso;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative;
}
.pasos::before {
    content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--oro) 12%, var(--oro) 88%, transparent);
}
.paso { position: relative; text-align: center; padding: 0 .25rem; counter-increment: paso; }
.paso-num {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.1rem;
    background: var(--marfil); border: 1px solid var(--oro);
    font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--oro-texto);
}
.paso-num::before { content: counter(paso); }
.paso h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.paso p { font-size: .95rem; color: var(--tinta-500); margin: 0; }
.paso-ultimo .paso-num { background: var(--tinta); border-color: var(--tinta); color: var(--oro); }

@media (max-width: 980px) {
    .pasos { grid-template-columns: 1fr; gap: 0; max-width: 34rem; }
    .pasos::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto;
        background: linear-gradient(180deg, var(--oro), var(--oro)); }
    .paso { display: grid; grid-template-columns: 56px 1fr; gap: 0 1.1rem; text-align: left; padding: 0 0 1.8rem; }
    .paso-num { grid-row: span 2; margin: 0; }
    .paso h3 { margin-top: .6rem; }
}

.bajo-pasos { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 3rem; }

/* --- No tienes que confiar a ciegas -------------------------------------- */
.puedes { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; }
.puedes li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 700; color: var(--tinta); }
.puedes svg { width: 22px; height: 22px; flex: none; color: var(--oro-texto); margin-top: .1rem; }
@media (max-width: 520px) { .puedes { grid-template-columns: 1fr; } }

/* --- Oportunidades (tarjetas desde la plataforma) ------------------------ */
.rejilla-activos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .rejilla-activos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rejilla-activos { grid-template-columns: 1fr; } }

.tarjeta {
    display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--linea);
    border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra);
    transition: transform var(--transicion), box-shadow var(--transicion);
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.tarjeta-foto { position: relative; aspect-ratio: 8 / 5; background: var(--crema); overflow: hidden; }
.tarjeta-foto::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
    background-size: 220% 100%; animation: esqueleto 1.4s linear infinite;
}
.tarjeta-foto.lista::after { display: none; }
@keyframes esqueleto { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.tarjeta-foto img.cargada { opacity: 1; }
.portada-sin-foto {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-family: var(--display); font-size: 4rem; color: var(--oro-texto);
}
.estado-activo {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(251, 248, 243, .94); color: var(--tinta); padding: .3rem .65rem; border-radius: 999px;
}
.estado-activo.abierta { background: var(--tinta); color: var(--marfil); }
.estado-activo.cerrada { background: var(--exito); color: #fff; }
.tarjeta-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.tarjeta h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.tarjeta-sitio { display: flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--tinta-500); margin: 0 0 1rem; }
.tarjeta-sitio svg { width: 15px; height: 15px; color: var(--oro-texto); flex: none; }
.tarjeta-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 0 0 1.2rem; padding: .9rem 0 0; border-top: 1px solid var(--linea); }
.tarjeta-datos dt { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-500); }
.tarjeta-datos dd { margin: .15rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.barra { height: 4px; border-radius: 4px; background: var(--crema); overflow: hidden; margin: 0 0 1.2rem; }
.barra span { display: block; height: 100%; background: var(--oro); }
.tarjeta .boton { margin-top: auto; }
.nota-activos { font-size: var(--t-sm); color: var(--tinta-500); max-width: 52rem; margin: 2rem auto 0; text-align: center; }

/* --- La plataforma -------------------------------------------------------- */
.plataforma-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(251, 248, 243, .14);
    border: 1px solid rgba(251, 248, 243, .14); border-radius: var(--radio-grande); overflow: hidden; }
.plataforma-item { background: var(--tinta); padding: 1.8rem 1.6rem; }
.plataforma-item svg { width: 30px; height: 30px; color: var(--oro); margin-bottom: 1rem; }
.plataforma-item h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.plataforma-item p { font-size: .95rem; margin: 0; color: rgba(251, 248, 243, .72); }
@media (max-width: 860px) { .plataforma-rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plataforma-rejilla { grid-template-columns: 1fr; } }
.plataforma-pie { margin-top: 2.2rem; font-size: var(--t-sm); color: rgba(251, 248, 243, .66); text-align: center; }
.plataforma-pie a { color: var(--oro); }

/* --- La moneda ------------------------------------------------------------ */
.moneda-grande {
    width: min(260px, 60vw); aspect-ratio: 1; margin: 0 auto 2rem; border-radius: 50%;
    box-shadow: 0 0 0 10px var(--marfil), 0 0 0 11px var(--oro-claro), 0 30px 60px rgba(126, 101, 56, .28);
}
.moneda-grande img { width: 100%; height: 100%; border-radius: 50%; }
.dos-monedas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.dos-monedas div { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-grande); padding: 1.4rem; }
.dos-monedas b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--oro-texto); margin-bottom: .3rem; }
.dos-monedas p { margin: 0; color: var(--tinta-700); }
@media (max-width: 520px) { .dos-monedas { grid-template-columns: 1fr; } }

/* --- Prueba y confianza -------------------------------------------------- */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cifra { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-grande); padding: 1.6rem 1.4rem; }
.cifra strong { display: block; font-family: var(--display); font-size: clamp(2.1rem, 2vw + 1.4rem, 2.8rem); font-weight: 600; line-height: 1; color: var(--tinta); margin-bottom: .6rem; }
.cifra span { font-size: .95rem; color: var(--tinta-500); }
@media (max-width: 860px) { .cifras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .cifras { grid-template-columns: 1fr; } }

.hito {
    display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center;
    margin-top: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radio-grande);
    background: var(--tinta); color: rgba(251, 248, 243, .85);
}
.hito svg { width: 40px; height: 40px; color: var(--oro); }
.hito h3 { color: var(--marfil); font-size: 1.5rem; margin: 0 0 .2rem; }
.hito p { margin: 0; font-size: .95rem; }

/* --- Preguntas ------------------------------------------------------------ */
.preguntas { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--linea); }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.25rem 0; cursor: pointer; list-style: none;
    font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--tinta);
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
    content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
    border-right: 1.5px solid var(--oro-texto); border-bottom: 1.5px solid var(--oro-texto);
    transform: rotate(45deg) translateY(-3px); transition: transform var(--transicion);
}
.pregunta[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.pregunta .respuesta { padding: 0 0 1.4rem; color: var(--tinta-700); }
.pregunta .respuesta p:last-child { margin-bottom: 0; }

/* --- Conoce Inverchain (formulario) --------------------------------------- */
.conoce-rejilla { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .conoce-rejilla { grid-template-columns: 1fr; } }
.contacto-directo { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contacto-directo a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.contacto-directo a:hover { color: var(--oro-texto); }
.contacto-directo svg { width: 20px; height: 20px; color: var(--oro-texto); }

.formulario { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-grande); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sombra); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.campo-ancho { grid-column: 1 / -1; }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } }
.campo label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .35rem; color: var(--tinta); }
.campo label small { font-weight: 400; color: var(--tinta-500); }
.campo input, .campo select, .campo textarea {
    width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--tinta);
    background: var(--marfil); border: 1px solid #d8ccb6; border-radius: var(--radio);
    transition: border-color var(--transicion), box-shadow var(--transicion);
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none; border-color: var(--oro-boton); box-shadow: 0 0 0 3px rgba(196, 164, 110, .25);
}
.casilla { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--tinta-700); margin: 1.2rem 0; }
.casilla input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--tinta); flex: none; }
.casilla a { color: var(--tinta); }
.form-botones { display: flex; flex-wrap: wrap; gap: .7rem; }
.form-botones .boton { flex: 1 1 200px; }
.info-legal { font-size: .76rem; line-height: 1.5; color: var(--tinta-500); margin: 1.1rem 0 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estado { margin: 1rem 0 0; font-weight: 700; min-height: 1.2em; }
.estado.ok { color: var(--exito); }
.estado.error { color: #a4442b; }

/* --- Banda «ya soy inversor» ---------------------------------------------- */
.banda-inversor { background: var(--crema); border-top: 1px solid var(--linea); padding: 2.4rem 0; }
.banda-inversor .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.banda-inversor p { margin: 0; font-family: var(--display); font-size: 1.6rem; color: var(--tinta); }
.banda-inversor p small { display: block; font-family: var(--sans); font-size: .95rem; color: var(--tinta-500); }

/* --- Pie ------------------------------------------------------------------- */
.pie { background: #232b3c; color: rgba(251, 248, 243, .7); padding: 4rem 0 2.2rem; font-size: .92rem; }
.pie-rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); margin: 0 0 1rem; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pie a, .pie button { color: rgba(251, 248, 243, .8); text-decoration: none; }
.pie a:hover, .pie button:hover { color: var(--marfil); }
.pie-lema { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--marfil); margin: 1rem 0 .6rem; }
.pie-legal { border-top: 1px solid rgba(251, 248, 243, .12); margin-top: 3rem; padding-top: 1.5rem; font-size: .8rem; line-height: 1.6; color: rgba(251, 248, 243, .55); }

/* --- Revelado --------------------------------------------------------------- */
.revelar { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } }

/* ==========================================================================
   Zona privada del inversor (inversor.html)
   ========================================================================== */
.cabecera-privada .cabecera-fila { justify-content: space-between; }
.ayuda { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: .9rem; color: var(--tinta-700); line-height: 1.25; }
.ayuda svg { width: 26px; height: 26px; color: var(--oro-texto); flex: none; }
.ayuda b { display: block; color: var(--tinta); }
@media (max-width: 420px) { .ayuda span { display: none; } }

.heroe-privado .heroe-texto { margin-bottom: 1.2rem; }
.heroe-privado .heroe-cta { flex-direction: column; align-items: flex-start; max-width: 25rem; }
.heroe-privado .heroe-cta .boton { width: 100%; justify-content: space-between; }
.compromiso { display: flex; gap: .7rem; align-items: center; margin-top: 2rem; font-size: .88rem; color: var(--tinta-500); }
.compromiso svg { width: 28px; height: 28px; color: var(--oro-texto); flex: none; }
.compromiso b { display: block; color: var(--tinta); }

.accesos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .accesos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .accesos { grid-template-columns: 1fr; } }
.acceso {
    display: flex; flex-direction: column; gap: .4rem; text-decoration: none;
    background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-grande); padding: 1.6rem 1.4rem;
    transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.acceso:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: var(--oro-claro); }
.acceso svg { width: 30px; height: 30px; color: var(--oro-texto); margin-bottom: .6rem; }
.acceso h3 { font-size: 1.45rem; margin: 0; }
.acceso p { font-size: .93rem; color: var(--tinta-500); margin: 0; }
.acceso .flecha { margin-top: auto; padding-top: .8rem; font-size: .88rem; font-weight: 700; color: var(--oro-texto); }
.recordatorio { text-align: center; font-size: var(--t-sm); color: var(--tinta-500); margin: 1.8rem auto 0; max-width: 40rem; }

.opciones-soporte { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .8rem; }
.opciones-soporte li { display: flex; gap: .8rem; align-items: center; }
.opciones-soporte svg { width: 22px; height: 22px; color: var(--oro-texto); flex: none; }
.opciones-soporte a { font-weight: 700; text-decoration: none; }
.opciones-soporte a:hover { color: var(--oro-texto); }

.cierre { text-align: center; }
.cierre blockquote {
    margin: 0 auto 2.2rem; max-width: 46rem; font-family: var(--display); font-weight: 500;
    font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.4rem); line-height: 1.25; color: var(--marfil);
}
.cierre .heroe-cta { justify-content: center; }

/* --- Aviso de cookies ------------------------------------------------------
   Lo inyecta /js/consent.js, común a todo el sitio; sus estilos viven en cada
   hoja. Mismo comportamiento que en la V3: tarjeta flotante en escritorio y
   hoja inferior en móvil, que es donde llega el pulgar. */
#cookiebanner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
    max-width: 720px; margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem;
    padding: 1.3rem 1.4rem; background: var(--papel);
    border: 1px solid var(--linea); border-radius: var(--radio-grande);
    box-shadow: 0 10px 40px rgba(44, 54, 75, .22);
}
.cookiebanner-texto { flex: 1 1 340px; }
.cookiebanner-texto p { margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--tinta-700); }
.cookiebanner-texto p:first-child { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--tinta); margin-bottom: .2rem; }
.cookiebanner-texto a { color: var(--tinta); font-weight: 700; }
.cookiebanner-botones { display: flex; gap: .6rem; flex: 0 0 auto; }
#cookiebanner button {
    min-height: 48px; padding: .75rem 1.4rem; font-family: var(--sans); font-size: var(--t-sm); font-weight: 700;
    border-radius: var(--radio); border: 1px solid rgba(44, 54, 75, .35); background: transparent; color: var(--tinta);
    cursor: pointer; white-space: nowrap; transition: background var(--transicion), color var(--transicion);
}
#cookiebanner button:hover { background: var(--crema); }
#cookiebanner button.cookie-aceptar { background: var(--tinta); border-color: var(--tinta); color: var(--marfil); }
#cookiebanner button.cookie-aceptar:hover { background: #1f2738; }
@media (max-width: 700px) {
    #cookiebanner {
        left: 0; right: 0; bottom: 0; border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
        padding: 1.1rem 16px calc(1.1rem + env(safe-area-inset-bottom, 0px)); gap: .8rem;
    }
    .cookiebanner-texto { flex: 1 1 100%; }
    .cookiebanner-texto p { font-size: var(--t-xs); }
    .cookiebanner-texto p:first-child { font-size: 1.15rem; }
    .cookiebanner-botones { width: 100%; }
    #cookiebanner button { flex: 1 1 0; min-width: 0; padding: .75rem .4rem; white-space: normal; line-height: 1.2; }
}

/* Rentabilidad en su propia línea: dato de la operación, no titular. */
.tarjeta-rent { font-size: .86rem; color: var(--tinta-500); margin: -.4rem 0 1.1rem; }
.tarjeta-rent b { color: var(--tinta); }

/* --- Portada a sangre (maquetas de la agencia) ------------------------------
   La foto ocupa la derecha y se funde con el crema hacia el texto con una
   máscara; el fondo de la sección es el color del borde de la propia foto
   para que no se vea el corte. En móvil la foto va arriba y se funde hacia abajo. */
.heroe-sangre {
    position: relative; display: flex; align-items: center;
    min-height: clamp(560px, 44vw, 700px);
    background: #F1E7DB; padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.heroe-privado.heroe-sangre { background: #EFE6D6; }
.heroe-lienzo { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; pointer-events: none; }
.heroe-lienzo picture, .heroe-lienzo img { display: block; width: 100%; height: 100%; }
.heroe-lienzo img {
    object-fit: cover; object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 38%);
}
.heroe-privado .heroe-lienzo img {
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 10%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 10%, #000 24%);
}
.heroe-sangre .heroe-rejilla { position: relative; z-index: 1; grid-template-columns: minmax(0, 540px) 1fr; }
.heroe-sangre h1 { max-width: 12ch; }
.heroe-privado.heroe-sangre .heroe-rejilla { grid-template-columns: minmax(0, 480px) 1fr; }
.heroe-privado .heroe-lienzo { width: 60%; }
.heroe-privado .heroe-texto { max-width: 27rem; }
.heroe-privado .heroe-rejilla > div:first-child { grid-column: 1; grid-row: 1; }

/* Tarjeta flotante de la zona privada: los tres espacios, sin datos del activo. */
.heroe-tarjeta {
    grid-column: 1 / -1; grid-row: 1; align-self: end; justify-self: end; margin: 0 0 -1.5rem; width: min(100%, 660px);
    list-style: none; padding: 1.1rem 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: rgba(251, 248, 243, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 221, 204, .9); border-radius: var(--radio-grande); box-shadow: var(--sombra-alta);
}
.heroe-tarjeta li { display: flex; gap: .6rem; align-items: flex-start; padding: .2rem .9rem; font-size: .8rem; line-height: 1.4; color: var(--tinta-500); }
.heroe-tarjeta li + li { border-left: 1px solid var(--linea); }
.heroe-tarjeta svg { width: 24px; height: 24px; flex: none; color: var(--tinta); }
.heroe-tarjeta b { display: block; font-size: .86rem; color: var(--tinta); margin-bottom: .15rem; }

@media (max-width: 860px) {
    .heroe-sangre { display: block; min-height: 0; padding: 0 0 3rem; }
    .heroe-lienzo { position: relative; width: auto; height: auto; margin-bottom: -4.5rem; }
    .heroe-lienzo img {
        height: auto; max-height: 62vh; object-position: 60% 40%;
        -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    }
    .heroe-sangre .heroe-rejilla, .heroe-privado.heroe-sangre .heroe-rejilla { grid-template-columns: 1fr; }
    .heroe-privado .heroe-lienzo { width: auto; }
    .heroe-privado .heroe-lienzo img {
        object-position: 50% 50%;
        -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    }
    .heroe-tarjeta, .heroe-privado .heroe-rejilla > div:first-child { grid-column: auto; grid-row: auto; }
    .heroe-sangre h1 { max-width: none; }
    .heroe-tarjeta { justify-self: stretch; width: 100%; margin: 2rem 0 0; grid-template-columns: 1fr; padding: .6rem 1rem; }
    .heroe-tarjeta li { padding: .8rem 0; }
    .heroe-tarjeta li + li { border-left: 0; border-top: 1px solid var(--linea); }
}

/* Portada más comercial (feedback de la agencia, 28/09): la oferta y el botón a
   las operaciones van justo bajo el titular; la causa y la firma, debajo. */
.heroe-sub {
    font-family: var(--display); font-size: clamp(1.45rem, 1.1vw + 1.1rem, 1.9rem); line-height: 1.25;
    color: var(--tinta); margin: 1.1rem 0 1.6rem; max-width: 26ch;
}
.heroe-texto-bajo { font-size: var(--t-base); margin: 1.8rem 0 0; }
.heroe-sangre .firma { margin-bottom: 0; }
.dato-rent { color: var(--oro-texto); }
.dato-rent small { margin-left: .3rem; font-family: var(--sans); font-size: .72rem; font-weight: 400; color: var(--tinta-500); }

/* WhatsApp siempre a mano. Lo pinta v4.js solo si hay número configurado. */
.whatsapp-flotante {
    position: fixed; right: 18px; bottom: 18px; z-index: 150;
    display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: 0 1.1rem 0 .9rem;
    border-radius: 999px; background: #25D366; color: #0b3d20; text-decoration: none; font-weight: 700; font-size: .95rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: transform var(--transicion);
}
.whatsapp-flotante:hover { transform: translateY(-2px); }
.whatsapp-flotante svg { width: 28px; height: 28px; }
@media (max-width: 520px) {
    .whatsapp-flotante { padding: 0; width: 56px; justify-content: center; }
    .whatsapp-flotante span { display: none; }
}
