

/* ==========================
   INTRODUCCIÓN
========================== */

.eneagrama-intro-layout{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;

    align-items:center;

    max-width:1200px;
    margin:0 auto;

    padding:40px 20px;
}

.eneagrama-intro-info{

    display:flex;
    flex-direction:column;
    gap:24px;
}


.eneagrama-intro-info h1{

    font-size:48px;
    line-height:1.05;
    font-style: italic;

    margin:0;

    color:#111;
}

.eneagrama-intro-info p{

    font-size:16px;
    line-height:1.2;

    color:#333;

    margin:0;
}

.eneagrama-aviso{

    background:#F7F7F7;

    border-left:4px solid #5cba3c;

    padding:20px 24px;

    border-radius:12px;

    font-size:16px;
    line-height:1.6;
}

#eneagrama-continuar{

    background:#000;

    color:#fff;

    border:none;

    border-radius:14px;

    padding:18px 34px;

    font-size:16px;
    font-weight:600;

    width:max-content;

    cursor:pointer;

    transition:.25s;
}

#eneagrama-continuar:hover{

    transform:translateY(-2px);
}

/* ==========================
   ESCALA DERECHA
========================== */

.eneagrama-escala-preview{

    background:#FCFCFC;

    border:1px solid #c9c9c9;

    border-radius:24px;

    padding:35px;
}

.eneagrama-escala-preview h3{

    margin:0 0 24px;

    color:#111;

    font-size:18px;

    letter-spacing:2px;

    text-transform:uppercase;
}

.escala-item{

    display:flex;

    align-items:center;

    gap:10px;

    padding:8px 8px;

    border:1px solid #e5e5e5;

    border-radius:14px;

    margin-bottom:14px;

    background:#fff;

    transition:.25s;
}

.escala-item:hover{

    border-color:#5cba3c;

    transform:translateX(4px);
}

.escala-item .numero{

    width:34px;

    font-size:28px;

    font-weight:700;

    color:#5cba3c;

    text-align:center;
}


@media(max-width:768px){

    .eneagrama-intro-layout{

        grid-template-columns:1fr;

        gap:30px;
    }

    .eneagrama-intro-info h1{

        font-size:42px;
    }

    .eneagrama-intro-info p{

        font-size:18px;
    }

    .eneagrama-escala-preview{

        padding:20px;
    }

}


/* ==================================================
   formulario de ingreso
================================================== */

.eneagrama-vh{

    padding:60px 30px;
}

.eneagrama-layout{

    max-width:1200px;

    margin:0 auto;

    display:grid;

    grid-template-columns:1fr 520px;

    gap:80px;

    align-items:center;
}

.eneagrama-info h1{

    font-size:48px;
    font-style: italic;
    line-height:1.05;
    margin-bottom:24px;
    color:#111;
}

.eneagrama-step{

    display:block;

    margin-bottom:20px;

    color:#5cba3c;

    font-size:12px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;
}

.eneagrama-info p{

    font-size:18px;

    line-height:1.8;

    color:#444;

    margin-bottom:35px;
}

.eneagrama-beneficios{

    list-style:none;

    padding:0;

    margin:0;
}

.eneagrama-beneficios li{

    margin-bottom:18px;

    padding-left:30px;

    position:relative;
}

.eneagrama-beneficios li::before{

    content:"✓";

    position:absolute;

    left:0;

    color:#5cba3c;

    font-weight:700;
}

.eneagrama-form-wrapper{

    background:#FCFCFC;

    border:1px solid #c9c9c9;

    border-radius:20px;

    padding:35px;
}

.enea-reg{

    display:flex;

    flex-direction:column;

    gap:18px;
}

.eneagrama-row{

    display:grid;

    grid-template-columns:180px 1fr;

    gap:15px;
}

.enea-reg label{

    display:block;

    margin-bottom:8px;

    font-size:13px;

    font-weight:600;

    color:#444;

    text-transform:uppercase;

    letter-spacing:.5px;
}

.enea-reg input,
.enea-reg select{

    width:100%;

    height:54px;

    border:1px solid #c9c9c9;

    border-radius:12px;

    padding:0 15px;

    background:#fff;
}

.enea-reg button{

    height:60px;

    border:none;

    border-radius:12px;

    background:#000;

    color:#fff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.enea-reg button:hover{

    background:#5cba3c;
}

.enea-genero{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:0;

    background:#e9e9e9;

    border-radius:12px;

    overflow:hidden;

    height:54px;
}

.enea-genero-item{

    margin:0 !important;

    cursor:pointer;
}

.enea-genero-item input{

    display:none;
}

.enea-genero-item span{

    display:flex;

    align-items:center;

    justify-content:center;

    height:54px;

    font-weight:700;

    transition:.25s;
}

.enea-genero-item input:checked + span{

    background:#5cba3c;

    color:#fff;
}

.enea-genero-item:hover span{

    background:#dfead8;
}

@media(max-width:768px){

    .eneagrama-layout{

        grid-template-columns:1fr;

        gap:40px;
    }

    .eneagrama-info h1{

        font-size:40px;
    }

    .eneagrama-row{

        grid-template-columns:1fr;
    }
}

.enea-hermanos{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:10px;

    margin-top:8px;
}

.enea-hermanos-item{

    margin:0 !important;

    cursor:pointer;
}

.enea-hermanos-item input{

    display:none;
}

.enea-hermanos-item span{

    display:flex;

    align-items:center;

    justify-content:center;

    height:52px;

    border:1px solid #c9c9c9;

    border-radius:12px;

    background:#fff;

    font-weight:600;

    transition:.25s;
}

.enea-hermanos-item:hover span{

    border-color:#5cba3c;

    background:#f7fff3;
}

.enea-hermanos-item input:checked + span{

    background:#5cba3c;

    border-color:#5cba3c;

    color:#fff;
}

@media(max-width:768px){

    .enea-hermanos{

        grid-template-columns:repeat(3,1fr);

    }

}

/*==================================================
RESULTADO
==================================================*/

.eneagrama-resultado{

    max-width:1100px;
    margin:60px auto;
    padding:40px;
    background:#FCFCFC;
    border:1px solid #d9d9d9;
    border-radius:22px;
    box-shadow:0 20px 60px rgba(0,0,0,.06);

}

.eneagrama-hero{

    text-align:center;
    margin-bottom:45px;

}

.eneagrama-badge{

    display:inline-block;
    padding:8px 18px;
    background:#5cba3c;
    color:#fff;
    border-radius:30px;
    font-size:.85rem;
    font-weight:700;
    letter-spacing:.08em;
    margin-bottom:20px;

}

.eneagrama-numero-principal{

    font-size:90px;
    line-height:1;
    font-weight:800;
    color:#111;
    margin-bottom:15px;

}

.eneagrama-hero h1{

    margin:0;
    font-size:38px;
    color:#111;

}

.eneagrama-hero h2{

    margin:10px 0 25px;
    font-size:20px;
    color:#5cba3c;
    font-weight:600;

}

.eneagrama-descripcion{

    max-width:760px;
    margin:auto;
    color:#666;
    line-height:1.8;

}

/*=========================
RESUMEN
=========================*/

.eneagrama-resumen{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    margin:45px 0;

}

.eneagrama-card{

    background:#fff;
    border:1px solid #e7e7e7;
    border-radius:18px;
    padding:28px;
    text-align:center;

}

.titulo-card{

    display:block;
    font-size:.85rem;
    color:#999;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:12px;

}

.eneagrama-card strong{

    font-size:28px;
    color:#111;

}

/*=========================
SECCIONES
=========================*/

.eneagrama-seccion{

    margin:45px 0;

}

.eneagrama-seccion h3{

    font-size:28px;
    margin-bottom:20px;
    color:#111;

}

/*=========================
LISTAS
=========================*/

.eneagrama-lista{

    list-style:none;
    padding:0;
    margin:0;

}

.eneagrama-lista li{

    position:relative;
    padding:14px 18px 14px 52px;
    margin-bottom:14px;
    background:#fafafa;
    border-radius:14px;

}

.fortalezas li:before{

    content:"✓";
    position:absolute;
    left:20px;
    color:#5cba3c;
    font-weight:700;

}

.retos li:before{

    content:"•";
    position:absolute;
    left:24px;
    color:#ff9800;
    font-size:26px;

}

/*=========================
TOP 3
=========================*/

.eneagrama-top3{

    padding-left:24px;

}

.eneagrama-top3 li{

    margin-bottom:15px;
    font-size:18px;

}

/*=========================
BOTONES
=========================*/

.eneagrama-acciones{

    display:flex;
    gap:20px;
    justify-content:center;
    margin-top:50px;
    flex-wrap:wrap;

}

.eneagrama-btn{

    border:none;
    background:#111;
    color:#fff;
    padding:16px 34px;
    border-radius:14px;
    cursor:pointer;
    font-size:16px;
    transition:.25s;

}

.eneagrama-btn:hover{

    transform:translateY(-2px);

}

.eneagrama-btn.secundario{

    background:#5cba3c;
    text-decoration:none;
    color:#fff;

}

/*=========================
RESPONSIVE
=========================*/

@media(max-width:768px){

.eneagrama-resultado{

    padding:25px;
    margin:20px;

}

.eneagrama-numero-principal{

    font-size:65px;

}

.eneagrama-hero h1{

    font-size:30px;

}

.eneagrama-resumen{

    grid-template-columns:1fr;

}

.eneagrama-acciones{

    flex-direction:column;

}

.eneagrama-btn,
.eneagrama-btn.secundario{

    width:100%;
    text-align:center;

}

}

/* ==================================================
   PREGUNTAS
================================================== */

.eneagrama-pregunta{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
    transition:.3s;
}

.eneagrama-pregunta:hover{
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.eneagrama-pregunta p{
    font-size:18px;
    line-height:1.6;
    font-weight:600;
    color:#1f2937;
    margin-bottom:20px;
}

/* ==================================================
   OPCIONES DE RESPUESTA
================================================== */


.eneagrama-opciones input[type="radio"]{
    display:none;
}

.eneagrama-opciones {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

.eneagrama-opcion {
    /* ya no necesita flex ni min-width, el grid se encarga */
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .25s;
    padding: 8px 4px;
    text-align: center;
}

/* Tablet / móvil grande: 3 columnas x 2 filas */
@media (max-width: 768px) {
    .eneagrama-opciones {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* En pantallas muy pequeñas, reduce el gap y el padding para que no se apriete */
@media (max-width: 380px) {
    .eneagrama-opciones {
        gap: 6px;
    }
    .eneagrama-opcion {
        min-height: 60px;
        padding: 6px 2px;
    }
}

.eneagrama-opcion:hover{
    border-color:#83A829;
    transform:translateY(-2px);
}

.eneagrama-opcion.seleccionada{
    background:#83A829;
    color:#fff;
    border-color:#83A829;
    box-shadow:0 8px 20px rgba(131,168,41,.25);
}

.eneagrama-numero{
    font-size:24px;
    font-weight:700;
    line-height:1;
    margin-bottom:8px;
}

.eneagrama-texto{
    font-size:12px;
    text-align:center;
    line-height:1.3;
}

/* ==================================================
   GRAFICO
================================================== */

.eneagrama-chart-container{
    max-width:700px;
    margin:30px auto;
}

/* ==================================================
   BOTONES
================================================== */

.eneagrama-acciones{
    text-align:center;
    margin-top:40px;
}

.eneagrama-btn{
    background:#83A829;
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

.eneagrama-btn:hover{
    transform:translateY(-2px);
    opacity:.9;
}


.eneagrama-error{
    border:2px solid #dc2626 !important;
    background:#fef2f2;
}

/* ==================================================
   IMPRESION
================================================== */


@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .site-header,
    .site-footer,
    .elementor-location-header,
    .elementor-location-footer,
    #eneagrama-imprimir,
    .eneagrama-acciones {

        display: none !important;

    }

    html,
    body {

        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;

        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .eneagrama-resultado {

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 10px !important;

        box-shadow: none !important;
        border: none !important;
    }

    .eneagrama-resultado h1 {

        font-size: 20px !important;
        margin-bottom: 10px !important;

    }

    .eneagrama-resultado h2 {

        font-size: 16px !important;
        margin-bottom: 5px !important;

    }

    .eneagrama-resultado h3 {

        font-size: 14px !important;
        margin-top: 10px !important;
        margin-bottom: 5px !important;

    }

    .eneagrama-resultado p,
    .eneagrama-resultado li {

        font-size: 11px !important;
        line-height: 1.3 !important;

    }

    .eneagrama-chart-container {
        
        width: 500px !important;
        margin: 0 auto !important;

    }

    canvas {

        max-width: 280px !important;
        max-height: 280px !important;

    }

    ul,
    ol {

        margin: 5px 0 !important;
        padding-left: 20px !important;

    }

    * {

        page-break-inside: avoid;

    }

}

.eneagrama-bloque-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:30px;

    padding-bottom:15px;

    border-bottom:1px solid #ddd;
}

.eneagrama-footer-bloque{

    margin-top:30px;

    display:flex;
    justify-content:flex-end;
}

.eneagrama-sidebar{

    position:sticky;

    top:30px;

    height:fit-content;
}


/* ==================================
   LAYOUT DEL TEST
================================== */

.eneagrama-test-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
    align-items:start;
}

.eneagrama-sidebar{
    position:sticky;
    top:30px;
}

.eneagrama-test-label{
    display:block;
    color:#b36b21;
    font-size:12px;
    letter-spacing:2px;
    margin-bottom:20px;
}

.eneagrama-sidebar h2{
    font-size:42px;
    line-height:1.1;
    margin-bottom:30px;
    font-style:italic;
}

.eneagrama-progreso-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-size:14px;
}

.eneagrama-progreso-barra{
    height:4px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}

.eneagrama-progreso-fill{
    height:100%;
    background:#5cba3c;
}

.eneagrama-bloques-lista{
    margin-top:40px;
}

.eneagrama-bloques-lista h4{
    margin-bottom:15px;
}

.bloque-item{
    padding:8px 0;
    color:#999;
}

.bloque-item.activo{
    color:#5cba3c;
    font-weight:700;
}

.eneagrama-main{
    background:#FCFCFC;
    border:1px solid #c9c9c9;
    border-radius:24px;
    padding:30px;
}

.eneagrama-main button{
    
    height:60px;

    border:none;

    border-radius:12px;

    background:#000;

    color:#fff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.eneagrama-main button:hover{

    background:#5cba3c;
}


    .eneagrama-mobile-progress{

    display:none;

    }


@media (max-width: 991px){

    .eneagrama-test-layout{
        grid-template-columns:1fr;
    }

    .eneagrama-sidebar{
        position:relative;
        top:auto;
    }

    .eneagrama-sidebar h2{
        font-size:32px;
    }

}

@media (max-width:768px){

    .eneagrama-sidebar{
        display:none;
    }

    .eneagrama-mobile-progress{
        
        display:block;

        position:sticky;
        top:0;
        z-index:999;

        background:#FCFCFC;

        padding:16px;

        border-bottom:1px solid #e5e5e5;

        box-shadow:0 3px 12px rgba(0,0,0,.05);
        
        border-radius: 10px;
        
        margin-bottom: 30px;

    }

    .eneagrama-mobile-label{

        display:block;

        color:#c67a1c;

        font-size:11px;

        letter-spacing:2px;

        text-transform:uppercase;

        margin-bottom:8px;

    }

    .eneagrama-mobile-progress h3{

        font-size:28px;

        font-style:italic;

        line-height:1.1;

        margin:0 0 15px;

    }

    .eneagrama-mobile-header{

        display:flex;

        justify-content:space-between;

        font-size:14px;

        margin-bottom:8px;

    }

    .eneagrama-mobile-bar{

        height:6px;

        background:#e5e5e5;

        border-radius:50px;

        overflow:hidden;

    }

    .eneagrama-mobile-fill{

        height:100%;

        background:#5cba3c;

    }
    
    .eneagrama-kpis{

    grid-template-columns:repeat(2,1fr);

}

}

/*=========================
BARRAS
=========================*/

.eneagrama-barras{

    margin-top:30px;

}

.eneagrama-barra-item{

    margin-bottom:24px;

}

.eneagrama-barra-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;

}

.eneagrama-barra-header strong{

    font-size:22px;
    color:#5cba3c;

}

.eneagrama-barra-header span{

    font-weight:700;
    color:#444;

}

.eneagrama-barra{

    height:14px;
    background:#ececec;
    border-radius:20px;
    overflow:hidden;

}

.eneagrama-barra-fill{

    height:100%;
    border-radius:20px;
    background:linear-gradient(
        90deg,
        #5cba3c,
        #7ed957
    );

    transition:width .8s ease;

}

/*=========================================
PORTADA DEL INFORME
=========================================*/

.eneagrama-portada{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

    margin-bottom:35px;

}

.eneagrama-logo img{

    width:230px;

    height:auto;

}

.eneagrama-informe{

    text-align:right;

}

.eneagrama-informe span{

    display:block;

    color:#5cba3c;

    font-weight:700;

    letter-spacing:.12em;

    font-size:13px;

    margin-bottom:8px;

}

.eneagrama-informe h2{

    margin:0;

    font-size:30px;

    color:#111;

}

.eneagrama-informe small{

    color:#888;

    font-size:14px;

}

.eneagrama-separador{

    height:1px;

    background:#e5e5e5;

    margin:35px 0;

}

.eneagrama-portada{

    flex-direction:column;

    text-align:center;

}

.eneagrama-informe{

    text-align:center;

}

.eneagrama-logo img{

    width:190px;

}

/*=========================================
KPIs
=========================================*/

.eneagrama-kpis{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

    margin:45px 0;

}

.eneagrama-kpi{

    background:#fff;

    border:1px solid #e6e6e6;

    border-radius:18px;

    padding:28px;

    text-align:center;

    transition:.25s;

}

.eneagrama-kpi:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.eneagrama-kpi span{

    display:block;

    color:#888;

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:.08em;

    margin-bottom:12px;

}

.eneagrama-kpi strong{

    display:block;

    font-size:28px;

    color:#111;

    font-weight:700;

}

@media(max-width:480px){

.eneagrama-kpis{
    grid-template-columns:1fr;

}

}