/* ============================================================
   Horóscopo Personalizado — AstraLumina
   Dark glassmorphism alineado a la identidad de la home.
   Prefijo hx- para no colisionar con main.css / chatbot-minimal.css
   ============================================================ */

:root {
    --hx-violet: #920CD1;
    --hx-violet-soft: rgba(173, 114, 191, 0.30);
    --hx-glass-bg: rgba(30, 20, 50, 0.55);
    --hx-glass-border: rgba(173, 114, 191, 0.25);
}

body.hx-body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #191B31;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.07) 1px, transparent 0),
        linear-gradient(135deg, #191B31 0%, #281A40 55%, #432B59 100%);
    background-size: 40px 40px, cover;
    background-attachment: fixed, fixed;
    background-repeat: repeat, no-repeat;
    color: #f3f0fa;
}

/* Acento dorado sólido para texto/énfasis del horóscopo */
.hx-accent { color: #c9a866; }

/* Acento dorado para títulos del horóscopo (alineado a tarot-egipcio) */
.hx-gold {
    background: linear-gradient(180deg, #9a7020 0%, #d4af37 45%, #f5e070 50%, #d4af37 55%, #9a7020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Título principal con el mismo dorado que "Liliana Morelli" (gold-title del home) */
.hx-gold-title {
    background: linear-gradient(180deg,
        #7a5810 0%,
        #c9921a 22%,
        #f0d060 48%,
        #e8c040 52%,
        #c9921a 78%,
        #7a5810 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hx-font-display {
    font-family: 'Cinzel', 'Georgia', serif;
    letter-spacing: 0.03em;
}

/* --- Fondo místico: orbes de gradiente ambiental --- */
.hx-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hx-ambient::before,
.hx-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.hx-ambient::before {
    width: 48vw;
    height: 48vw;
    top: -12vw;
    right: -14vw;
    background: radial-gradient(circle, rgba(146, 12, 209, 0.55) 0%, transparent 70%);
    animation: hx-drift 18s ease-in-out infinite alternate;
}

.hx-ambient::after {
    width: 40vw;
    height: 40vw;
    bottom: -10vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(64, 35, 150, 0.6) 0%, transparent 70%);
    animation: hx-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes hx-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-4vw, 3vw, 0) scale(1.12); }
}

/* --- Estrellas titilantes --- */
.hx-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 45% 12%, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 62% 48%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 28%, rgba(255,255,255,0.75) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 74%, rgba(255,255,255,0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 86%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 8% 78%, rgba(255,255,255,0.5) 50%, transparent 51%);
    animation: hx-twinkle 5s ease-in-out infinite alternate;
}

@keyframes hx-twinkle {
    from { opacity: 0.35; }
    to   { opacity: 0.9; }
}

/* --- Barra superior --- */
.hx-topbar {
    background: rgba(18, 10, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(173, 114, 191, 0.15);
}

.hx-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d9c8ef;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid var(--hx-glass-border);
    background: rgba(146, 12, 209, 0.10);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.hx-home-link:hover {
    background: rgba(146, 12, 209, 0.25);
    border-color: rgba(173, 114, 191, 0.45);
    color: #ffffff;
}

.hx-brand-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.hx-brand-name { display: none; }

@media (min-width: 640px) {
    .hx-brand-name { display: inline; }
}

/* --- Panel de vidrio principal --- */
.hx-glass-panel {
    background: var(--hx-glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hx-glass-border);
    border-radius: 1.25rem;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(246, 242, 255, 0.07);
}

/* --- Burbuja de bienvenida --- */
.hx-welcome {
    background: linear-gradient(135deg, rgba(146, 12, 209, 0.18) 0%, rgba(45, 25, 80, 0.45) 100%);
    border: 1px solid rgba(173, 114, 191, 0.30);
    border-radius: 1rem;
}

/* --- Inputs con ícono --- */
.hx-field {
    position: relative;
}

.hx-field > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b48ad6;
    font-size: 0.95rem;
    pointer-events: none;
}

.hx-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    background: rgba(15, 8, 30, 0.55);
    border: 1px solid rgba(120, 90, 160, 0.35);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.hx-input::placeholder { color: rgba(200, 185, 225, 0.45); }

.hx-input:focus {
    outline: none;
    border-color: rgba(190, 120, 235, 0.7);
    background: rgba(20, 11, 40, 0.7);
    box-shadow: 0 0 0 3px rgba(146, 12, 209, 0.25);
}

/* Íconos nativos de date/time en claro */
.hx-input::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(0.3) saturate(3) hue-rotate(230deg);
    cursor: pointer;
}

.hx-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e9defa;
}

.hx-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: rgba(200, 185, 225, 0.55);
}

/* --- Botones de acción (misma fórmula glass que btn-glass-violet) --- */
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(173, 114, 191, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.hx-btn-primary {
    background: linear-gradient(180deg, rgba(123, 40, 165, 0.50) 0%, rgba(78, 30, 110, 0.40) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(246, 242, 255, 0.08);
}

.hx-btn-primary:hover {
    background: linear-gradient(180deg, rgba(150, 55, 200, 0.55) 0%, rgba(95, 38, 135, 0.45) 100%);
    border-color: rgba(190, 130, 220, 0.45);
    box-shadow: 0 10px 28px rgba(70, 10, 110, 0.5), inset 0 1px 0 rgba(246, 242, 255, 0.10);
    transform: translateY(-2px);
}

.hx-btn-secondary {
    background: linear-gradient(180deg, rgba(60, 45, 140, 0.45) 0%, rgba(38, 28, 95, 0.38) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(246, 242, 255, 0.07);
}

.hx-btn-secondary:hover {
    background: linear-gradient(180deg, rgba(75, 58, 170, 0.50) 0%, rgba(48, 36, 115, 0.42) 100%);
    border-color: rgba(150, 130, 230, 0.45);
    box-shadow: 0 10px 28px rgba(30, 18, 90, 0.5), inset 0 1px 0 rgba(246, 242, 255, 0.10);
    transform: translateY(-2px);
}

.hx-btn:active { transform: translateY(0) scale(0.98); }

/* --- Zona de resultados / chat --- */
.hx-chat {
    background: rgba(10, 5, 22, 0.40);
    border: 1px solid rgba(120, 90, 160, 0.18);
    border-radius: 1rem;
    min-height: 0;
}

.hx-chat:empty { display: none; }

/* Animación de entrada para los mensajes que inyecta horoscopo.js */
.hx-chat > div {
    animation: hx-fade-up 0.45s ease both;
}

@keyframes hx-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Spinner de carga --- */
.hx-loading {
    text-align: center;
    padding: 1.25rem 0;
}

.hx-spinner {
    display: inline-block;
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid rgba(173, 114, 191, 0.25);
    border-top-color: #c465f0;
    border-radius: 50%;
    animation: hx-spin 0.9s linear infinite;
    margin-bottom: 0.6rem;
}

@keyframes hx-spin {
    to { transform: rotate(360deg); }
}

/* --- Título con brillo sutil --- */
.hx-title-glow {
    text-shadow:
        0 0 18px rgba(201, 168, 102, 0.45),
        0 0 42px rgba(146, 12, 209, 0.30);
}

/* --- Tira decorativa de glifos zodiacales --- */
.hx-zodiac-strip {
    color: rgba(180, 138, 214, 0.55);
    font-size: 1rem;
    letter-spacing: 0.45em;
    margin-bottom: 1rem;
    user-select: none;
}

/* --- Panel "La Luna hoy" --- */
.hx-moon-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .hx-moon-panel { grid-template-columns: 1fr; }
}

.hx-moon-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: var(--hx-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hx-glass-border);
    border-radius: 1rem;
}

.hx-moon-emoji {
    flex-shrink: 0;
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(196, 101, 240, 0.45));
}

/* La fase actual se dibuja como SVG (consistente entre dispositivos) */
.hx-moon-emoji svg {
    width: 2.6rem;
    height: 2.6rem;
    display: block;
}

.hx-moon-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(200, 185, 225, 0.6);
}

.hx-moon-value {
    font-weight: 600;
    color: #f3eaff;
}

.hx-moon-next {
    font-size: 0.78rem;
    color: rgba(217, 200, 239, 0.7);
    margin-top: 0.15rem;
}

.hx-moon-bar {
    margin-top: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(120, 90, 160, 0.25);
    overflow: hidden;
}

.hx-moon-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #920CD1 0%, #c465f0 100%);
    transition: width 0.8s ease;
}

/* Ritual de la fase: card a lo ancho del panel, texto en tono de lectura */
.hx-moon-ritual { grid-column: 1 / -1; }

.hx-moon-ritual-texto {
    font-weight: 400;
    font-size: 0.92rem;
    color: #e3dcf0;
    line-height: 1.55;
}

.hx-moon-meta {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(200, 185, 225, 0.55);
}

/* --- Calendario lunar del mes --- */
.hx-cal-panel {
    background: var(--hx-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hx-glass-border);
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1rem;
}

.hx-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hx-cal-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.hx-cal-nav {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
    border: 1px solid var(--hx-glass-border);
    background: rgba(146, 12, 209, 0.10);
    color: #d9c8ef;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.hx-cal-nav:hover {
    background: rgba(146, 12, 209, 0.25);
    border-color: rgba(173, 114, 191, 0.45);
    color: #ffffff;
}

.hx-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(200, 185, 225, 0.55);
    margin-bottom: 0.4rem;
}

.hx-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.hx-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.1rem 0.35rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
}

.hx-cal-day svg {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
}

.hx-cal-num {
    font-size: 0.72rem;
    color: rgba(217, 200, 239, 0.8);
}

.hx-cal-day.is-hoy {
    border-color: rgba(190, 130, 220, 0.55);
    background: rgba(146, 12, 209, 0.18);
    box-shadow: 0 0 12px rgba(146, 12, 209, 0.30);
}

.hx-cal-day.is-hoy .hx-cal-num {
    color: #ffffff;
    font-weight: 700;
}

.hx-cal-day.is-evento {
    background: rgba(146, 12, 209, 0.10);
    border-color: rgba(173, 114, 191, 0.28);
}

/* Reserva la altura aunque el día no tenga evento (mantiene la grilla pareja) */
.hx-cal-evento {
    min-height: 0.85rem;
    font-size: 0.58rem;
    line-height: 1.3;
    text-align: center;
    color: rgba(217, 200, 239, 0.75);
}

.hx-cal-leyenda {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(200, 185, 225, 0.55);
}

@media (max-width: 480px) {
    .hx-cal-evento { display: none; }
    .hx-cal-panel { padding: 1rem 0.6rem 0.8rem; }
    .hx-cal-day svg { width: 1.3rem; height: 1.3rem; }
}

/* --- Botón de geolocalización junto al campo de ciudad actual --- */
.hx-btn-locate {
    flex-shrink: 0;
    width: 3rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(120, 90, 160, 0.35);
    background: rgba(146, 12, 209, 0.14);
    color: #d9c8ef;
    font-size: 1rem;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.hx-btn-locate:hover {
    background: rgba(146, 12, 209, 0.30);
    border-color: rgba(190, 120, 235, 0.5);
    color: #ffffff;
}

.hx-btn-locate:disabled {
    opacity: 0.55;
    cursor: wait;
}

.hx-locating i {
    animation: hx-spin 0.9s linear infinite;
}

/* --- Badge inline de signo detectado --- */
.hx-sign-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #e9defa;
    background: rgba(146, 12, 209, 0.16);
    border: 1px solid rgba(204, 182, 212, 0.33);
    box-shadow: 0 0 8px rgba(173, 114, 191, 0.13);
    animation: hx-fade-up 0.4s ease both;
}

.hx-sign-badge strong { color: #ffffff; }

/* El display:inline-flex pisa el [hidden] del preflight de Tailwind */
.hx-sign-badge[hidden] { display: none; }

.hx-sign-badge + .hx-sign-badge { margin-left: 0.5rem; }

.hx-sign-symbol {
    font-size: 1.1rem;
    color: #CCB6D4;
}

/* --- Header de la lectura generada --- */
.hx-reading-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(146, 12, 209, 0.22) 0%, rgba(45, 25, 80, 0.50) 100%);
    border: 1px solid rgba(173, 114, 191, 0.30);
}

/* Botón de tarjeta compartible, alineado a la derecha del header */
.hx-btn-share {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(150, 55, 200, 0.55) 0%, rgba(95, 38, 135, 0.45) 100%);
    border: 1px solid rgba(190, 130, 220, 0.5);
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.hx-btn-share:hover {
    background: linear-gradient(180deg, rgba(170, 70, 220, 0.6) 0%, rgba(110, 45, 155, 0.5) 100%);
    box-shadow: 0 6px 18px rgba(70, 10, 110, 0.45);
    transform: translateY(-1px);
}

.hx-btn-share:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* En móvil queda solo el ícono para no apretar el header */
@media (max-width: 480px) {
    .hx-btn-share span { display: none; }
    .hx-btn-share { padding: 0.5rem 0.7rem; }
}

.hx-reading-meta {
    font-size: 0.85rem;
    color: rgba(217, 200, 239, 0.75);
    text-transform: capitalize;
}

/* --- Frase-mood destacada (patrón Co-Star/CHANI) --- */
.hx-mood {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f3eaff;
    padding: 1.4rem 1rem 1.1rem;
    text-shadow: 0 0 16px rgba(146, 12, 209, 0.45);
}

/* --- Chips circulares de íconos (mismo patrón que la home) --- */
.hx-icon-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.15rem;
    background: rgba(146, 12, 209, 0.16);
    border: 1px solid rgba(204, 182, 212, 0.33);
    box-shadow: 0 0 8px rgba(173, 114, 191, 0.13);
}

.hx-icon-chip-lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.7rem;
    color: #CCB6D4;
}

/* --- Cards de secciones de la lectura --- */
.hx-card {
    background: rgba(31, 22, 50, 0.50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 90, 160, 0.28);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.hx-card:hover {
    border-color: rgba(190, 120, 235, 0.40);
    box-shadow: 0 8px 28px rgba(70, 10, 110, 0.30);
}

.hx-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(90deg, rgba(146, 12, 209, 0.16) 0%, rgba(45, 25, 80, 0.20) 100%);
    border-bottom: 1px solid rgba(120, 90, 160, 0.22);
}

/* Título en degradé, mismo patrón que las cards de Especialidades de la home */
.hx-grad-title {
    font-size: 1.05rem;
    font-weight: 700;
    background-image: linear-gradient(180deg, #9a7020 0%, #d4af37 45%, #f5e070 50%, #d4af37 55%, #9a7020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hx-card-body {
    padding: 1.1rem 1.35rem;
    color: #e3dcf0;
    line-height: 1.75;
    font-size: 0.95rem;
}

.hx-card-body p + p { margin-top: 0.55rem; }

.hx-bullet {
    color: #c465f0;
    margin-right: 0.15rem;
}

/* --- Pestañas de la lectura (Hoy/Mañana y General/Amor/Trabajo/Salud) --- */
.hx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.1rem 0 0.9rem;
}

.hx-tabs-days {
    justify-content: center;
    margin-top: 1.25rem;
}

.hx-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d9c8ef;
    background: rgba(146, 12, 209, 0.10);
    border: 1px solid rgba(173, 114, 191, 0.28);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.hx-tab:hover {
    background: rgba(146, 12, 209, 0.22);
    color: #ffffff;
}

.hx-tab.is-active {
    background: linear-gradient(180deg, rgba(150, 55, 200, 0.55) 0%, rgba(95, 38, 135, 0.45) 100%);
    border-color: rgba(190, 130, 220, 0.55);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(70, 10, 110, 0.35);
}

/* --- Chips de elementos mágicos --- */
.hx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hx-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #e9defa;
    background: rgba(146, 12, 209, 0.14);
    border: 1px solid rgba(204, 182, 212, 0.30);
}

/* Chips de "Hacé / Evitá" (patrón Do/Don't de Co-Star) */
.hx-chip-do {
    background: rgba(60, 160, 90, 0.16);
    border-color: rgba(110, 210, 140, 0.38);
    color: #cdeed9;
}

.hx-chip-dont {
    background: rgba(200, 60, 80, 0.14);
    border-color: rgba(235, 120, 140, 0.38);
    color: #f4ccd4;
}

/* --- Aparición escalonada de secciones --- */
.hx-reveal {
    animation: hx-fade-up 0.5s ease both;
}

/* --- Link "borrar mis datos" en la bienvenida de regreso --- */
.hx-forget {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.35rem;
    color: rgba(200, 185, 225, 0.65);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color .25s ease;
}

.hx-forget:hover {
    color: #ffffff;
}

/* --- Botones deshabilitados durante la consulta --- */
.hx-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* --- Accesibilidad: sin animaciones si el usuario lo pide --- */
@media (prefers-reduced-motion: reduce) {
    .hx-ambient::before,
    .hx-ambient::after,
    .hx-stars,
    .hx-chat > div,
    .hx-reveal,
    .hx-sign-badge {
        animation: none;
    }
    .hx-btn,
    .hx-btn:hover {
        transform: none;
    }
}

/* === Compatibilidad de signos === */
.hx-vinculo-chips {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hx-vinculo-chip {
    cursor: pointer;
}

.hx-vinculo-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hx-vinculo-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #e3dcf0;
    background: rgba(146, 12, 209, 0.10);
    border: 1px solid rgba(173, 114, 191, 0.28);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hx-vinculo-chip:hover span {
    background: rgba(146, 12, 209, 0.18);
}

.hx-vinculo-chip input:checked + span {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(150, 55, 200, 0.55) 0%, rgba(95, 38, 135, 0.45) 100%);
    border-color: rgba(190, 130, 220, 0.55);
    box-shadow: 0 0 14px rgba(146, 12, 209, 0.35);
}

.hx-vinculo-chip input:focus-visible + span {
    outline: 2px solid rgba(190, 130, 220, 0.8);
    outline-offset: 2px;
}

.hx-compat-result {
    text-align: center;
    padding-top: 0.5rem;
}

.hx-compat-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 1rem;
}

.hx-compat-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: #ffffff;
}

.hx-compat-sign strong {
    font-size: 1.05rem;
}

.hx-compat-sign small {
    color: rgba(217, 200, 239, 0.75);
    font-size: 0.78rem;
}

.hx-compat-glifo {
    font-size: 2.6rem;
    line-height: 1;
    color: #CCB6D4;
    text-shadow: 0 0 18px rgba(146, 12, 209, 0.55);
}

.hx-compat-plus {
    font-size: 1.7rem;
}

.hx-compat-pct {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 22px rgba(146, 12, 209, 0.5);
    margin-bottom: 0.4rem;
}

.hx-compat-pct span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(217, 200, 239, 0.8);
}

.hx-compat-bar {
    max-width: 340px;
    margin: 0 auto 0.75rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.hx-compat-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #920CD1, #c465f0);
    transition: width 1.1s ease;
}

.hx-compat-aspecto {
    color: #e3dcf0;
    font-size: 0.92rem;
    max-width: 560px;
    margin: 0 auto 1.25rem;
    line-height: 1.55;
}

.hx-compat-aspecto strong {
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .hx-compat-bar-fill {
        transition: none;
    }
}

/* === Páginas SEO por signo (/horoscopo/) === */
.hx-breadcrumb {
    font-size: 0.8rem;
    color: rgba(217, 200, 239, 0.65);
}

.hx-breadcrumb a {
    color: rgba(217, 200, 239, 0.85);
    text-decoration: none;
    transition: color .25s ease;
}

.hx-breadcrumb a:hover {
    color: #ffffff;
}

.hx-sign-glifo-hero {
    display: block;
    font-size: 4.5rem;
    line-height: 1;
    color: #CCB6D4;
    text-shadow: 0 0 30px rgba(146, 12, 209, 0.6);
    margin-bottom: 0.75rem;
}

.hx-ficha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.hx-ficha-item {
    background: var(--hx-glass-bg);
    border: 1px solid var(--hx-glass-border);
    border-radius: 1rem;
    padding: 0.9rem 0.5rem;
    text-align: center;
}

.hx-ficha-item dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(217, 200, 239, 0.7);
    margin-bottom: 0.25rem;
}

.hx-ficha-item dd {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.hx-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.6rem;
}

.hx-sign-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.8rem 0.4rem;
    border-radius: 1rem;
    background: rgba(146, 12, 209, 0.08);
    border: 1px solid rgba(173, 114, 191, 0.22);
    color: #e3dcf0;
    text-decoration: none;
    text-align: center;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.hx-sign-link:hover {
    background: rgba(146, 12, 209, 0.18);
    border-color: rgba(190, 130, 220, 0.45);
    transform: translateY(-2px);
}

.hx-sign-link.is-actual {
    background: rgba(146, 12, 209, 0.20);
    border-color: rgba(190, 130, 220, 0.55);
}

.hx-sign-link-glifo {
    font-size: 1.6rem;
    line-height: 1;
    color: #CCB6D4;
}

.hx-sign-link strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.hx-sign-link small {
    font-size: 0.68rem;
    color: rgba(217, 200, 239, 0.7);
}

a.hx-chip-enlace {
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease;
}

a.hx-chip-enlace:hover {
    background: rgba(146, 12, 209, 0.25);
    border-color: rgba(190, 130, 220, 0.55);
}

.hx-enlace-inline {
    color: #d9a8f5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .25s ease;
}

.hx-enlace-inline:hover {
    color: #ffffff;
}

a.hx-btn-enlace {
    display: inline-flex;
    text-decoration: none;
}

.hx-pie-link {
    color: rgba(217, 200, 239, 0.85);
    text-decoration: none;
    transition: color .25s ease;
}

.hx-pie-link:hover {
    color: #ffffff;
}

a.hx-card-signo {
    display: block;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.hx-card-signo:hover {
    transform: translateY(-3px);
    border-color: rgba(190, 130, 220, 0.5);
    box-shadow: 0 10px 28px rgba(70, 10, 110, 0.4);
}

.hx-card-signo-fechas {
    font-size: 0.78rem;
    color: rgba(217, 200, 239, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .hx-sign-link:hover,
    a.hx-card-signo:hover {
        transform: none;
    }
}
