/* =========================================================
   VERTICAL /compatibilidad-signos/ — estilos del hub y hojas
   ========================================================= */

.cabecera {
    height: 100% !important;
}

/* --- Hero --- */
.hero-hub {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

.hero-hub .subtitulo {
    text-align: center;
}

.btn-cta {
    display: inline-block;
    margin: 26px auto 0;
    padding: 15px 34px;
    background: linear-gradient(135deg, #9333ea, #6366f1);
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

/* --- Bloque CTA intermedio --- */
.cta-calculadora {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 30px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(185, 131, 255, 0.35);
    background: linear-gradient(160deg, rgba(147, 51, 234, 0.15), rgba(99, 102, 241, 0.08));
    box-sizing: border-box;
}

.cta-calculadora p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* --- Tarjetas SEO de los 12 signos --- */
.grid-tarjetas-signos {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
    padding: 0 4px;
}

.tarjeta-signo {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
    text-align: left;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tarjeta-signo:hover {
    transform: translateY(-3px);
    border-color: rgba(185, 131, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(147, 51, 234, 0.2);
}

.tarjeta-signo-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tarjeta-signo-cabecera img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.tarjeta-signo-nombre {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #d9b8ff;
}

.tarjeta-signo-fechas {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
}

.tarjeta-signo-rasgos {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 200;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.tarjeta-signo-datos {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.tarjeta-signo-datos li {
    margin-bottom: 4px;
}

.tarjeta-signo-datos strong {
    color: #d9b8ff;
    font-weight: 600;
}

.tarjeta-signo-compatibles {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
}

.tarjeta-signo-compatibles a {
    color: #d9b8ff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.tarjeta-signo-compatibles a:hover {
    color: #ffffff !important;
}

.btn-tarjeta-signo {
    display: block;
    margin-top: auto;
    padding: 11px 14px;
    background: linear-gradient(135deg, #9333ea, #6366f1);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-tarjeta-signo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

/* --- Tabla de fechas --- */
.tabla-signos-wrap {
    max-width: 700px;
    margin: 30px auto 0;
    overflow-x: auto;
}

.tabla-signos {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.tabla-signos th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: #d9b8ff;
    background: rgba(147, 51, 234, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-signos td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
}

.tabla-signos tr:last-child td {
    border-bottom: none;
}

.tabla-signos td a {
    color: #d9b8ff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.tabla-signos td a:hover {
    color: #ffffff !important;
}

/* --- Resúmenes de los 12 signos --- */
.resumen-signo {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
}

.resumen-signo h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 600;
    color: #d9b8ff;
}

.resumen-signo p {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.enlace-signo {
    font-size: 14px;
    font-weight: 600;
    color: #d9b8ff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.enlace-signo:hover {
    color: #ffffff !important;
}

/* --- Interpretación de porcentajes --- */
.lista-porcentajes {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lista-porcentajes li {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    font-weight: 200;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.lista-porcentajes strong {
    color: #d9b8ff;
    font-weight: 600;
}

/* --- Enlaces relacionados --- */
.grid-relacionados {
    max-width: 900px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.grid-relacionados a {
    display: block;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.grid-relacionados a:hover {
    transform: translateY(-3px);
    border-color: #b983ff;
    background: rgba(185, 131, 255, .15);
}

/* =========================================================
   HOJAS DE SIGNO (/compatibilidad-signos/{signo}/)
   ========================================================= */

/* --- Hero del signo --- */
.hero-signo {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 30px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(185, 131, 255, 0.18);
    box-sizing: border-box;
}

.hero-signo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.hero-signo-nombre {
    margin: 10px 0 2px;
    font-size: 30px;
    font-weight: 700;
    color: #d9b8ff;
}

.hero-signo-fechas {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
}

.hero-signo-datos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.hero-signo-datos li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(185, 131, 255, 0.35);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-signo-datos strong {
    color: #d9b8ff;
    font-weight: 600;
}

/* --- Estrellas --- */
.estrellas {
    color: #f5c542;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* --- Fortalezas y debilidades --- */
.grid-fortalezas {
    max-width: 900px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.box-fortalezas,
.box-debilidades {
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.box-fortalezas {
    border: 1px solid rgba(70, 209, 158, 0.35);
}

.box-debilidades {
    border: 1px solid rgba(245, 197, 66, 0.35);
}

.box-fortalezas h3,
.box-debilidades h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
}

.box-fortalezas h3 { color: #46d19e; }
.box-debilidades h3 { color: #f5c542; }

.box-fortalezas ul,
.box-debilidades ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.box-fortalezas li,
.box-debilidades li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.box-fortalezas li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: #46d19e;
    font-weight: 700;
}

.box-debilidades li::before {
    content: "\26A0";
    position: absolute;
    left: 0;
    color: #f5c542;
}

/* --- Tarjetas de compatibilidad con cada signo --- */
.grid-tarjetas-compat {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 4px;
}

.tarjeta-compat {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
    text-align: left;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tarjeta-compat:hover {
    transform: translateY(-3px);
    border-color: rgba(185, 131, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(147, 51, 234, 0.2);
}

.tarjeta-compat-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tarjeta-compat-nombre {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #d9b8ff;
}

.badge-compat {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-alta {
    color: #46d19e;
    background: rgba(70, 209, 158, 0.12);
    border: 1px solid rgba(70, 209, 158, 0.4);
}

.badge-media {
    color: #f5c542;
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid rgba(245, 197, 66, 0.4);
}

.badge-exigente {
    color: #ff9d9d;
    background: rgba(255, 138, 138, 0.12);
    border: 1px solid rgba(255, 138, 138, 0.4);
}

.tarjeta-compat-texto {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 200;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.tarjeta-compat .enlace-signo {
    margin-top: auto;
}

/* =========================================================
   HOJAS DE COMBINACIÓN (/compatibilidad-signos/{a}/{b}/)
   ========================================================= */

/* --- Hero de pareja --- */
.hero-pareja {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 30px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(185, 131, 255, 0.18);
    box-sizing: border-box;
}

.hero-pareja-signos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
}

.hero-pareja-signo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-pareja-signo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hero-pareja-signo span {
    font-size: 17px;
    font-weight: 600;
    color: #d9b8ff;
}

.hero-pareja-corazon {
    font-size: 30px;
}

.hero-pareja-veredicto {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
}

.hero-pareja-porcentaje {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    color: #f5c542;
    line-height: 1.1;
}

.hero-pareja .estrellas {
    display: block;
    font-size: 20px;
    margin: 6px 0 18px;
}

.hero-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-cta-secundario {
    display: inline-block;
    margin-top: 26px;
    padding: 13px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn-cta-secundario:hover {
    transform: translateY(-2px);
    border-color: #b983ff;
    background: rgba(185, 131, 255, .15);
}

/* --- Compatibilidad rápida (porcentajes) --- */
.stats-rapidas {
    max-width: 900px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-rapida {
    padding: 16px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-sizing: border-box;
}

.stat-rapida-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
}

.stat-rapida-valor {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #d9b8ff;
}

.stat-rapida-global .stat-rapida-valor {
    color: #f5c542;
}

/* --- Compatibilidad por áreas --- */
.grid-areas {
    max-width: 1000px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.tarjeta-area {
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
}

.tarjeta-area h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #d9b8ff;
}

.tarjeta-area p {
    margin: 0;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .grid-tarjetas-signos {
        grid-template-columns: 1fr;
    }

    .grid-tarjetas-compat {
        grid-template-columns: 1fr;
    }

    .tabla-signos th,
    .tabla-signos td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero-signo-nombre {
        font-size: 26px;
    }

    .hero-pareja-signos {
        gap: 14px;
    }

    .hero-pareja-signo img {
        width: 56px;
        height: 56px;
    }

    .hero-pareja-porcentaje {
        font-size: 38px;
    }

    .grid-areas {
        grid-template-columns: 1fr;
    }

    .stats-rapidas {
        grid-template-columns: repeat(2, 1fr);
    }
}
