*{
    font-family: "Inter", Arial, sans-serif;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #eef1f5;
    color: #333;
}
a {
    color: #4f4898;
    text-decoration: none;
    font-weight: 600;
}
p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

/* TITULO */
.titulo {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #333;
    letter-spacing: 0px;
    text-transform: uppercase;

    margin-top: 10px;
    margin-bottom: 10px;

}




.no-click {
    pointer-events: none;
}



/* CONTENEDOR PRINCIPAL */
#container {
    max-width: 430px;
    margin: auto;
    padding: 20px;
    min-height: 800px;
}

/* PROGRESO */
#progress {
    width: 100%;
    height: 6px;
    background: #d2e7e4; /* tono suave */
    border-radius: 20px;
    margin-bottom: 10px;
}
#progress div {
    width: 0%;
    height: 100%;
    background: #23b2a3; /* color corporativo */
    border-radius: 20px;
    transition: .3s;
}

#progress-percent {
    text-align: right;
    margin-top: -15px;
    font-size: 13px;
    font-weight: 600;
    color: #4f4898;
}


/* TARJETAS */
#cards {
    position: relative;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 35px rgba(35,178,163,0.15);
    margin-bottom: 50px;
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    transition: .35s ease;
    display: none;
}

.card.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

h2 {
    font-weight: 600;
    color: #4f4898; /* secundario */
    margin-bottom: 5px;
    margin-top: 15px;
}

/* ICONOS */
.icon {
    width: 90px;
    display: block;
    margin: 0 auto 20px auto;
}

/* BOTONES DE OPCIÓN */
.options button {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    border-radius: 12px;
    border: 0;
    background: #e8f7f5; /* verde suave */
    color: #333;
    font-size: 17px;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
}

.options button:hover {
    background: #23b2a3;
    color: #fff;
}


.option-selected {
    background: #23b2a3 !important;
    color: #fff !important;
    border: none !important;
}


/* BOTÓN VOLVER */
.volver-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #4f4898;
    opacity: 0.8;
}
.volver-link:hover {
    opacity: 1;
}


/* BOTÓN SIGUIENTE */
#nextBtn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #4f4898; /* secundario */
    color: white;
    padding: 18px;
    border: none;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
}


/* GRID RESULTADOS: siempre 2 columnas, también en móvil */
.resultados-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Columna izquierda */
.resultados-texto {
    flex: 2;
    min-width: 0;
}

/* Columna derecha */
.resultados-imagen {
    flex: 1;
    text-align: right;
}

/* Imagen del ebook */
.resultados-imagen img {
    width: 100%;
    max-width: 120px;
    border-radius: 10px;
    object-fit: contain;
}

/* IMPORTANTE: eliminar colapso en móvil */
@media (max-width: 480px) {
    .resultados-grid {
        flex-direction: row; /* forzamos horizontal siempre */
        align-items: flex-start;
    }

    .resultados-imagen img {
        max-width: 100px; /* un poco más pequeño en móvil para que encaje */
    }
}




/* Agrupar inputs, evitar que se salgan */
.input-group {
    width: 100%;
    margin-bottom: 5px;
}

/* Inputs más compactos */
input[type="text"], input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    border: 2px solid #cde8e5;
    font-size: 16px;
    outline: none;
    transition: .2s;
    box-sizing: border-box;
}

input:focus {
    border-color: #23b2a3;
    box-shadow: 0 0 6px rgba(35,178,163,0.35);
}

/* RGPD */

#texto_general,
#texto_comunicaciones {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.5;
    flex-wrap: wrap;
}

#texto_general label,
#texto_general span,
#texto_comunicaciones label,
#texto_comunicaciones span {
    display: block;
    flex: 1;
    margin-top: 8px !important;
}


#texto_general input,
#texto_comunicaciones input {
    position: relative;
    width: 18px;
    height: 18px;
    top: 5px;
}

#texto_comunicaciones2 {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 12px;
    color: #444;
}

/* BOTÓN ENVIAR FIJO, IGUAL QUE NEXT */
#submitBtnFixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #23b2a3;
    color: #fff;
    padding: 18px;
    border: none;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 999;
}

#submitBtnFixed:hover {
    background: #1d9287;
}

#submitBtnFixed {
    display: none;
}

/* ===== MODAL EBOOK ===== */

.modal-ebook {
    display: none; 
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.modal-img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: #23b2a3;
}

/* cursor pointer en la imagen del card */
.resultados-imagen img {
    cursor: pointer;
    transition: transform .2s;
}

.resultados-imagen img:hover {
    transform: scale(1.05);
}

/* BOTÓN DESCARGAR GUÍA */
.btn-descarga-guia {
    display: block;
    margin: 20px auto 0 auto;

    padding: 16px 20px;
    text-align: center;

    background: linear-gradient(90deg, #23b2a3, #4f4898);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    border-radius: 14px;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(79,72,152,0.25);
    transition: all 0.25s ease;
}

.btn-descarga-guia:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79,72,152,0.35);
    color: #ffffff;
}

.btn-descarga-guia:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(79,72,152,0.25);
}


/* ===== BANNER COOKIES PROPIO ===== */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #333;
    padding: 16px 18px 24px;
    z-index: 999999;
    box-sizing: border-box;
    font-size: 13px;
}

.cookies-text {
    line-height: 1.4;
    margin-bottom: 14px;
}

.cookies-text a {
    color: #bdb7ff;
    text-decoration: underline;
}

/* Botones */
.cookies-buttons {
    display: flex;
    gap: 10px;
}

.cookies-buttons button {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

/* ACEPTAR */
#cookies-accept {
    background: #4f4898;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,72,152,0.4);
}

/* RECHAZAR */
#cookies-decline {
    background: #e0e0e0;
    color: #111;
}

/* Móvil */
@media (max-width: 768px) {
    .cookies-buttons {
        flex-direction: row;
    }
}


/* gracias  */
    .gracias-card {
        margin-top: 17px;
    }


/* Botón ENVIAR inline (debajo de checks) */
.submit-inline-wrapper {
    margin-top: 20px;
    text-align: center;
}

.submit-inline-btn {
    width: 100%;
    padding: 16px 0;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #23b2a3;
    //background: linear-gradient(90deg, #4f4898, #23b2a3);
    color: #ffffff;

    box-shadow: 0 6px 18px rgba(79,72,152,0.35);
    transition: all 0.25s ease;
}

.submit-inline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,72,152,0.45);
}
``