* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    padding-top: 50px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: clamp(200px, 28vw, 480px);
    height: clamp(200px, 30vh, 400px);
    background: url("../iconos/logo.png") no-repeat center / contain;
    pointer-events: none;
    z-index: -1;
}

.container {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #569350;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    transition: 0.3s;
    background-color: #f9f9f9;
}

input:focus,
select:focus {
    border-color: #63aa5d;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.nota {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f4f5f7;
    border: 1px solid #d6d9de;
    border-left: 5px solid #8a8f98;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background-color: #569350;
    color: #fff;
    font-size: 1.05rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    border: none; 
}

button:hover {
    background-color: #63aa5d;
    box-shadow: 0 5px 15px rgba(99,102,241,0.3);
}

.requisitos-contenido {
    position: relative;
    margin-bottom: 20px;
}

.btn-secundario {
    background-color: #f1f5f9;
    color: #569350;
    border: 1px solid #569350;
    padding: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-secundario:hover {
    background-color: #e2e8f0;
}

.footer {
    width: 100%;
    background: #ffffff;
    padding: 16px 20px;
    margin-top: 40px;
    border-top: 3px solid #569350;
    box-shadow: 0 -3px 10px rgba(86,147,80,0.08);
}

.footer-contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-aviso-texto {
    font-size: 0.9rem;
    color: #569350;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-aviso-texto:hover {
    color: #569350;
    text-decoration: underline;
    opacity: 0.85;
}

.panel-requisitos {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 100;
}

.contacto-lateral-texto {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    text-align: center;
}

.contacto-lateral-texto h2 {
    text-align: center;
    color: #569350;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.item-requisito {
    border-bottom: 1px solid #e2e8f0;
}

.header-requisito {
    background: #f8fafc;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    transition: 0.3s;
    border-radius: 8px;
}

.header-requisito:hover {
    background: #edf2f7;
}

.lista-requisito {
    display: none;
    padding: 15px;
    background: #ffffff;
}

.lista-requisito ul {
    list-style: none;
    padding-left: 5px;
}

.lista-requisito li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #64748b;
    position: relative;
    padding-left: 15px;
}

.lista-requisito li::before {
    content: "•";
    color: #569350;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.layout-principal {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

.modal-contacto {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-contacto.show {
    display: flex;
}

.show {
    display: block !important;
}

.modal-contenido {
    background: #ffffff;
    width: 100%;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: aparecer 0.25s ease;
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
}

.modal-tamaño {
    max-width: 700px;
    padding: 30px;
}

@keyframes aparecer {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.cerrar-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
}

.modal-contenido h2 {
    text-align: center;
    color: #569350;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.btn-entendido {
    background-color: #569350;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(86, 147, 80, 0.2);
}

.btn-entendido:hover {
    background-color: #467a41;
    transform: translateY(-2px);
}

.btn-entendido:active {
    transform: translateY(0);
}

.contenedor-checkbox {
    margin: 0px 0 20px 0;
    padding: 12px 15px;
    background-color: #f9f9f9; 
    border: 1px solid #d1d5db; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.contenedor-checkbox:hover {
    background-color: #ffffff;
    border-color: #569350; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.checkbox-personalizado {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
    user-select: none;
    margin-bottom: 0; 
}

.checkbox-personalizado input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #569350; 
}

.grid-asesores {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tarjeta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #569350;
    background-color: #ffffff;
}

.nombre-asesor {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.dato-contacto {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 5px;
}

.acciones-contacto {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 350px; 
    margin-top: 15px;
}

.btn-wsp, .btn-mail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    padding: 8px 12px; 
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease, filter 0.2s ease;
}

.btn-wsp { 
    background-color: #26d367;
}

.btn-mail {
    background-color: #5e9356;
}

.btn-wsp img, .btn-mail img {
    width: 18px;
    height: 18px;
}

.btn-wsp:hover {
    background-color: #1faf54;
    filter: brightness(1.1);
}

.btn-mail:hover {
    background-color: #4a7544; 
    filter: brightness(1.1);
}

.btn-wsp:hover, .btn-mail:hover {
    transform: none !important;
}

.mensaje, .mensaje-error {
    padding: 10px;
    max-width: 460px;
    margin: 5px auto 15px;
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
}

.mensaje { 
    background-color: #07d344; 
}

.mensaje-error { 
    background-color: #e70202; 
}

.resultados-diagnostico {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.resultados-diagnostico h3 {
    color: #569350;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
}

.tabla-resultados {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.85rem;
}

.tabla-resultados th {
    background-color: #569350;
    color: #ffffff;
    padding: 12px 8px;
    text-align: center;
}

.tabla-resultados td {
    padding: 12px 8px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.btn-contacto {
    position: fixed;
    bottom: 30px;
    height: 60px;
    padding: 0 18px;
    background-color: #569350;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-izquierda {
    left: 30px;
}

.btn-derecha {
    right: 30px;
}

button[name="btnLimpiar"] {
    margin-top: 15px; 
}

button[name="btnPDF"] {
    margin-bottom: 17px; 
}


.icono-contacto {
    width: 24px;
    height: 24px;
}

.texto-contacto {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.btn-contacto:hover {
    transform: scale(1.05);
    background-color: #63aa5d;
}

.menu-promociones {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 300px;
    display: none;
    z-index: 1001;
}

.menu-promociones.show {
    display: block;
}

.contenido-promociones {
    background: linear-gradient(135deg, #ffffff, #f5f7f9);
    padding: 20px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(86,147,80,0.25);
    position: relative;
    animation: slideUp .35s ease;
}

.contenido-promociones h4 {
    color: #569350;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.contenido-promociones ul {
    padding-left: 20px;
    margin: 0;
}

.contenido-promociones li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.4;
}

.cerrar-promociones {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    transition: .2s;
}

.cerrar-promociones:hover {
    color: #ef4444;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1300px) {
    .layout-principal {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .contacto-lateral-texto {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 30px;
        order: -1;
        text-align: center;
        width: 100%;
    }
    .container {
        margin-top: 220px;
        max-width: 90%;
    }
    body::before {
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
        height: 240px;
        transform: none;
        background: url("../iconos/logo.png") no-repeat center / contain;
    }
}

@media (max-width: 1024px) {
    .layout-principal {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }
    .panel-requisitos {
        position: relative;
        left: 0;
        width: 100%;
        max-width: 480px;
        margin: 10px auto;
    }
    .container {
        margin-top: 220px;
        max-width: 550px;
        position: relative;
        z-index: 10;
    }
    .menu-promociones {
        width: 260px;
        bottom: 100px;
        left: 20px;
    }

    .contenido-promociones {
        padding: 18px;
    }

    .contenido-promociones h4 {
        font-size: 1rem;
    }

    .contenido-promociones li {
        font-size: 0.85rem;
    }
    body::before {
        top: 20px;
        height: 220px;
        background-position: center 20px;
    }
}

@media (max-width: 768px) {
    .nombre-asesor {
        font-size: 1.1rem;
    }
    .container {
        margin-top: 210px;
    }
    .texto-contacto {
        font-size: 0.75rem;
    }
    .btn-contacto {
        padding: 0 14px;
        height: 55px;
    }
    .dato-contacto {
        font-size: 0.9rem;
    }
    .menu-promociones {
        width: 240px;
        bottom: 95px;
        left: 18px;
    }
    .contenido-promociones {
        padding: 16px;
        border-radius: 16px;
    }
    .contenido-promociones li {
        font-size: 0.82rem;
    }
    body::before {
        top: 20px;
        height: 200px;
        background-size: auto 180px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 20px;
    }
    .tabla-resultados thead {
        display: none;
    }
    .container {
        padding: 20px 15px;
        border-radius: 15px;
        margin-top: 190px;
    }
    .container h1 {
        font-size: 1.5rem;
    }
    .tabla-resultados,
    .tabla-resultados tbody,
    .tabla-resultados tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    .tabla-resultados thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .tabla-resultados tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    .tabla-resultados td {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 18px 14px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-bottom: 1px solid #e2e8f0;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
        position: relative;
        word-break: break-word;
        font-size: 0.95rem;
    }
    .tabla-resultados td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: #569350;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    .btn-contacto {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }
    .btn-izquierda {
        left: 20px;
        right: auto;
    }
    .btn-derecha {
        right: 20px;
        left: auto;
    }
    .menu-promociones {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 90px;
    }
    .contenido-promociones {
        padding: 16px 18px;
    }
    .contenido-promociones h4 {
        font-size: 0.95rem;
    }
    .contenido-promociones li {
        font-size: 0.8rem;
    }
    .texto-contacto {
        display: none;
    }
    .icono-contacto {
        width: 26px;
        height: 26px;
    }
    .contenedor-checkbox {
        padding: 12px;
    }
    body::before {
        top: 15px;
        height: 180px;
        background-size: contain;
    }
}

@media (max-width: 360px) {
    .container h1 {
        font-size: 1.3rem;
    }
    .acciones-contacto {
        flex-direction: column;
    }
    .btn-wsp,
    .btn-mail {
        width: 100%;
    }
    .menu-promociones {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 80px;
    }
    .contenido-promociones li {
        font-size: 0.78rem;
    }
    .nombre-asesor {
        font-size: 1rem;
    }
    .container {
        margin-top: 160px;
    }
}

@media (min-width: 1921px) {
    .layout-principal {
        max-width: 1600px;
        margin: 0 auto;
    }
    body::before {
        background-position: 80% center;
    }
}

@media (max-width: 480px) {
    .menu-promociones {
        width: calc(100% - 30px);
        left: 15px;
        bottom: 85px;
    }
    .contenido-promociones {
        padding: 14px 16px;
    }
    .cerrar-promociones {
        font-size: 16px;
        top: 8px;
        right: 10px;
    }
    .modal-tamaño {
        padding: 20px;
        width: 90%;
    }
}

