/* ================================================================================
   SISTEMA INTEGRAL TAROT FRACTAL - ESTILOS ASTROLOGÍA KABALÍSTICA (7 PLANETAS)
   Archivo: /css/astrologia.css
   Identidad visual Portal PC (Blanco / Morado / Verde) + Árbol SVG Interactivo
   ================================================================================ */

.astro-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 4px 0 18px 0;
    box-sizing: border-box;
    color: #2B1838;
}

.astro-header-intro {
    text-align: center;
    margin-bottom: 20px;
}

.astro-subtitulo-kicker {
    color: #6C3483;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.astro-desc-intro {
    color: #5B4A66;
    font-size: 14px;
    margin: 0;
}

/* SELECTOR DE 3 MODOS (A, B, C) */
.astro-modos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.astro-modo-card {
    background: #FFFFFF;
    border: 1.5px solid #E8DAEF;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 3px 10px rgba(91, 44, 111, 0.05);
}

.astro-modo-card:hover {
    border-color: #8E44AD;
    background: #FAF5FC;
}

.astro-modo-card.activo {
    background: #FAF5FC;
    border: 2px solid #8E44AD;
    box-shadow: 0 6px 18px rgba(108, 52, 131, 0.14);
}

.astro-modo-icono {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.astro-modo-textos h3 {
    font-size: 15px;
    font-weight: 800;
    color: #3B124D;
    margin: 0 0 4px 0;
}

.astro-modo-textos p {
    font-size: 12.5px;
    color: #5B4A66;
    line-height: 1.45;
    margin: 0;
}

/* FORMULARIO DE ENTRADA */
.astro-form-card {
    background: #FAF5FC;
    border: 1.5px solid #E8DAEF;
    border-radius: 16px;
    padding: 24px 22px;
    max-width: 760px;
    margin: 0 auto;
}

.astro-form-titulo {
    font-size: 18px;
    font-weight: 800;
    color: #3B124D;
    margin-bottom: 4px;
    text-align: center;
}

.astro-form-sub {
    font-size: 13.5px;
    color: #5B4A66;
    text-align: center;
    margin-bottom: 18px;
}

.astro-submodo-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.astro-submodo-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #E8DAEF;
    background: #FFFFFF;
    color: #5B4A66;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.astro-submodo-btn.activo {
    background: #6C3483;
    border-color: #6C3483;
    color: #FFFFFF;
}

.astro-campos-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.astro-campo-grupo {
    text-align: left;
}

.astro-campo-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #3B124D;
    margin-bottom: 5px;
}

.astro-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1.5px solid #E8DAEF;
    background: #FFFFFF;
    color: #2B1838;
    font-size: 14px;
    box-sizing: border-box;
    color-scheme: light;
}

.astro-input:focus {
    outline: none;
    border-color: #8E44AD;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.14);
}

.astro-coste-aviso {
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
    color: #6C3483;
    margin-top: 8px;
}

.astro-coste-nota {
    text-align: center;
    font-size: 12px;
    color: #5B4A66;
    margin-bottom: 16px;
}

.btn-astro-calcular {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #5B2C6F 0%, #3B124D 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 18, 77, 0.25);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn-astro-calcular:hover:not(:disabled) {
    filter: brightness(1.08);
}

.btn-astro-calcular:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* RESULTADO: CABECERA Y BLOQUES DE LOS 4 PASOS */
.astro-resultado-cabecera {
    text-align: center;
    background: #FAF5FC;
    border: 1.5px solid #E8DAEF;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.astro-resultado-cabecera h2 {
    font-size: 22px;
    font-weight: 800;
    color: #3B124D;
    margin: 0 0 4px 0;
}

.astro-resultado-meta {
    font-size: 13px;
    font-weight: 700;
    color: #6C3483;
}

.astro-paso-card {
    background: #FFFFFF;
    border: 1.5px solid #E8DAEF;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(91, 44, 111, 0.06);
}

.astro-paso-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #3B124D;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #F5EEF8;
}

.astro-paso-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6C3483;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* PASO 1: EJE CENTRAL */
.astro-eje-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.astro-eje-box {
    background: #FAF5FC;
    border: 1.5px solid #E8DAEF;
    border-radius: 10px;
    padding: 13px 15px;
}

.astro-eje-box strong {
    display: block;
    font-size: 14px;
    color: #3B124D;
    margin-bottom: 4px;
}

.astro-eje-box p {
    font-size: 13px;
    color: #5B4A66;
    line-height: 1.5;
    margin: 0;
}

.astro-eje-interaccion {
    background: #F4FBF7;
    border: 1.5px solid #A9DFBF;
    border-left: 5px solid #1E824C;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13.5px;
    font-weight: 600;
    color: #145A32;
    line-height: 1.5;
}

/* PASO 2: EQUILIBRIO DE LOS 3 PILARES */
.astro-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.astro-pilar-item {
    background: #FAF5FC;
    border: 1.5px solid #E8DAEF;
    border-radius: 10px;
    padding: 12px 14px;
}

.astro-pilar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #3B124D;
    margin-bottom: 4px;
}

.astro-pilar-sub {
    font-size: 11.5px;
    color: #5B4A66;
    margin-bottom: 8px;
}

.astro-barra-fondo {
    width: 100%;
    height: 10px;
    background: #E8DAEF;
    border-radius: 999px;
    overflow: hidden;
}

.astro-barra-relleno {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.astro-barra-izq { background: linear-gradient(90deg, #3498DB, #2471A3); }
.astro-barra-cen { background: linear-gradient(90deg, #D4AF37, #8E44AD); }
.astro-barra-der { background: linear-gradient(90deg, #2ECC71, #1E824C); }

.astro-pilares-diag {
    background: #FAF5FC;
    border-left: 5px solid #6C3483;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 13.5px;
    color: #2B1838;
    line-height: 1.5;
}

/* PASO 3: ÁRBOL DE LA VIDA SVG INTERACTIVO + CARTA ASTRAL (ESTÉTICA CLARA PC) */
.astro-arbol-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 20px;
    align-items: start;
}

.astro-svg-caja {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FC 100%);
    border: 1.8px solid #D2B4DE;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(91, 44, 111, 0.08);
}

.astro-svg-titulo-caja {
    font-size: 12px;
    font-weight: 800;
    color: #6C3483;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.astro-svg-leyenda {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #F5EEF8;
    font-size: 11.5px;
    font-weight: 700;
    color: #3B124D;
}

.astro-leyenda-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 4px;
}

.astro-svg-arbol {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none;
}

.astro-nodo-sefira {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.astro-nodo-sefira:hover {
    opacity: 0.9;
}

.astro-sendero-activo {
    cursor: pointer;
}

.astro-inspector-panel {
    background: #FAF5FC;
    border: 1.8px solid #E8DAEF;
    border-radius: 14px;
    padding: 18px;
}

.astro-inspector-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.astro-badge-p { background: #E8F8F0; color: #145A32; border: 1px solid #A9DFBF; }
.astro-badge-c { background: #EBF5FB; color: #1B4F72; border: 1px solid #AED6F1; }
.astro-badge-n { background: #FDEDEC; color: #922B21; border: 1px solid #F5B7B1; }

.astro-inspector-titulo {
    font-size: 19px;
    font-weight: 800;
    color: #3B124D;
    margin: 0 0 4px 0;
}

.astro-inspector-sub {
    font-size: 13px;
    font-weight: 700;
    color: #6C3483;
    margin-bottom: 12px;
}

.astro-inspector-texto {
    font-size: 14px;
    color: #2B1838;
    line-height: 1.6;
    margin-bottom: 12px;
}

.astro-inspector-cualidad {
    background: #FFFFFF;
    border: 1px solid #E8DAEF;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1E824C;
    font-weight: 700;
}

.astro-lista-esferas-rapida {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.astro-chip-sefira {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    border: 1.5px solid #E8DAEF;
    background: #FFFFFF;
    color: #3B124D;
    cursor: pointer;
}

.astro-chip-sefira.activo {
    background: #6C3483;
    border-color: #6C3483;
    color: #FFFFFF;
}

.astro-senderos-lista {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.astro-sendero-card {
    background: #FFFFFF;
    border: 1.5px solid #E8DAEF;
    border-left-width: 5px;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12.5px;
    cursor: pointer;
}

.astro-sendero-card.armonia { border-left-color: #1E824C; }
.astro-sendero-card.tikun { border-left-color: #C0392B; }

.astro-sendero-card strong {
    display: block;
    color: #3B124D;
    margin-bottom: 2px;
}

.astro-sendero-card span {
    color: #5B4A66;
    line-height: 1.45;
}

/* PASO 4: SÍNTESIS Y TIKÚN */
.astro-sintesis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.astro-sintesis-box {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.55;
}

.astro-sintesis-puerta {
    background: #F4FBF7;
    border: 1.5px solid #A9DFBF;
    color: #145A32;
}

.astro-sintesis-calma {
    background: #FEF9E7;
    border: 1.5px solid #F9E79F;
    color: #7D6608;
}

.astro-sintesis-consejo {
    background: #FAF5FC;
    border: 1.5px solid #D2B4DE;
    border-left: 5px solid #6C3483;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #3B124D;
    line-height: 1.55;
}

/* BOTONES DE ACCIÓN FINALES */
.astro-acciones-finales {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-astro-enviar {
    background: linear-gradient(135deg, #1E824C 0%, #145A32 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(30, 130, 76, 0.25);
}

.btn-astro-nueva {
    background: #FAF5FC;
    color: #6C3483;
    border: 1.5px solid #6C3483;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 900px) {
    .astro-campos-fila,
    .astro-eje-grid,
    .astro-pilares-grid,
    .astro-arbol-layout,
    .astro-sintesis-grid {
        grid-template-columns: 1fr;
    }
}
