/* Estilos místicos para La Pitonisa */

/* Fuentes */
.mystical-brand, .mystical-title {
    font-family: 'Cinzel', serif;
}

.mystical-text {
    font-family: 'Crimson Text', serif;
}

/* Variables CSS */
:root {
    --mystical-purple: #4a1a4a;
    --mystical-gold: #d4af37;
    --mystical-dark: #1a0a1a;
    --mystical-light: #f4f1e8;
    --mystical-accent: #6b2c91;
    --mystical-gradient: linear-gradient(135deg, #4a1a4a 0%, #1a0a1a 100%);
    --shadow-mystical: 0 10px 30px rgba(74, 26, 74, 0.3);
}

/* Fondo general */
body.mystical-bg {
    background: var(--mystical-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--mystical-light);
    position: relative;
    overflow-x: hidden;
}

/* Partículas místicas de fondo */
.mystical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.mystical-particles::before,
.mystical-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--mystical-gold);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

.mystical-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.mystical-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Navbar */
.mystical-navbar {
    background: rgba(26, 10, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--mystical-gold);
    box-shadow: var(--shadow-mystical);
}

.mystical-brand {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--mystical-gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.brand-text {
    background: linear-gradient(45deg, var(--mystical-gold), #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mystical-navbar .nav-link {
    color: var(--mystical-light) !important;
    transition: all 0.3s ease;
    position: relative;
}

.mystical-navbar .nav-link:hover {
    color: var(--mystical-gold) !important;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.mystical-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mystical-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mystical-navbar .nav-link:hover::after {
    width: 80%;
}

.mystical-credits {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--mystical-gold);
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.5rem;
}

.credits-count {
    font-weight: bold;
    color: var(--mystical-gold);
}

.mystical-btn-outline {
    border: 2px solid var(--mystical-gold) !important;
    color: var(--mystical-gold) !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
}

.mystical-btn-outline:hover {
    background: var(--mystical-gold) !important;
    color: var(--mystical-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Dropdown místico */
.mystical-dropdown {
    background: rgba(26, 10, 26, 0.95) !important;
    border: 1px solid var(--mystical-gold);
    backdrop-filter: blur(10px);
}

.mystical-dropdown .dropdown-item {
    color: var(--mystical-light) !important;
    transition: all 0.3s ease;
}

.mystical-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--mystical-gold) !important;
}

/* Contenedor principal */
.mystical-main {
    padding: 2rem 0;
}

/* Cards místicas */
.mystical-card {
    background: rgba(26, 10, 26, 0.8);
    border: 1px solid var(--mystical-gold);
    border-radius: 15px;
    box-shadow: var(--shadow-mystical);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.mystical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.mystical-card:hover::before {
    left: 100%;
}

.mystical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 26, 74, 0.4);
    border-color: var(--mystical-gold);
}

.mystical-card .card-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid var(--mystical-gold);
    color: var(--mystical-gold);
    font-weight: 600;
}

.mystical-card .card-body {
    color: var(--mystical-light);
}

/* Botones místicos */
.mystical-btn {
    background: var(--mystical-gradient);
    border: 2px solid var(--mystical-gold);
    color: var(--mystical-light);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mystical-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--mystical-gold);
    transition: left 0.3s;
    z-index: -1;
}

.mystical-btn:hover::before {
    left: 0;
}

.mystical-btn:hover {
    color: var(--mystical-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Formularios místicos */
.mystical-form {
    background: rgba(26, 10, 26, 0.9);
    border: 1px solid var(--mystical-gold);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-mystical);
    backdrop-filter: blur(10px);
}

.mystical-form .form-control {
    background: rgba(244, 241, 232, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--mystical-light);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.mystical-form .form-control:focus {
    background: rgba(244, 241, 232, 0.15);
    border-color: var(--mystical-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    color: var(--mystical-light);
}

.mystical-form .form-control::placeholder {
    color: rgba(244, 241, 232, 0.6);
}

.mystical-form .form-label {
    color: var(--mystical-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Hero section */
.mystical-hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.mystical-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--mystical-gold), #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 1rem;
}

.mystical-hero .lead {
    font-size: 1.3rem;
    color: var(--mystical-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Pitonisas cards */
.pitonisa-card {
    background: rgba(26, 10, 26, 0.9);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.pitonisa-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--mystical-gold), var(--mystical-accent), var(--mystical-gold));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pitonisa-card:hover::before {
    opacity: 1;
}

.pitonisa-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(74, 26, 74, 0.5);
}

.pitonisa-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--mystical-gold);
    object-fit: cover;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.pitonisa-rating {
    color: var(--mystical-gold);
}

.pitonisa-specialty {
    background: rgba(212, 175, 55, 0.2);
    color: var(--mystical-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Alertas místicas */
.mystical-alert {
    background: rgba(26, 10, 26, 0.9);
    border: 1px solid var(--mystical-gold);
    color: var(--mystical-light);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.mystical-alert.alert-success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.mystical-alert.alert-danger {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Footer */
.mystical-footer {
    background: rgba(26, 10, 26, 0.95);
    border-top: 2px solid var(--mystical-gold);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--mystical-light);
}

/* Responsive */
@media (max-width: 768px) {
    .mystical-hero h1 {
        font-size: 2.5rem;
    }
    
    .mystical-hero .lead {
        font-size: 1.1rem;
    }
    
    .mystical-card {
        margin-bottom: 1rem;
    }
    
    .pitonisa-card {
        margin-bottom: 1.5rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de carga */
.mystical-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--mystical-gold);
    animation: spin 1s ease-in-out infinite;
}

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

/* Consulta de tarot */
.tarot-consultation {
    background: rgba(26, 10, 26, 0.95);
    border: 2px solid var(--mystical-gold);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.tarot-consultation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: mystical-glow 4s ease-in-out infinite;
}

@keyframes mystical-glow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.tarot-card {
    background: var(--mystical-gradient);
    border: 2px solid var(--mystical-gold);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    color: var(--mystical-light);
    margin: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tarot-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarot-card:hover::before {
    opacity: 1;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--mystical-gold);
    margin-bottom: 0.5rem;
}

.card-position {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilo para mensajes de respuesta */
.tarot-response {
    background: rgba(244, 241, 232, 0.05);
    border-left: 4px solid var(--mystical-gold);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    margin: 1rem 0;
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    position: relative;
}

.tarot-response::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: var(--mystical-gold);
    font-family: 'Cinzel', serif;
}

/* ========================================
   MEJORAS DE LEGIBILIDAD
   ======================================== */

/* Sobrescribir Bootstrap text-muted para mejor legibilidad */
.text-muted {
    --bs-text-opacity: 1;
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Sobrescribir variables Bootstrap problemáticas */
:root {
    --bs-secondary-color: rgba(244, 241, 232, 0.85) !important;
}

/* Texto muted específico para componentes místicos */
.mystical-text.text-muted {
    color: rgba(244, 241, 232, 0.8) !important;
}

/* Texto pequeño muted más legible */
.small.text-muted,
small.text-muted {
    color: rgba(244, 241, 232, 0.9) !important;
    font-weight: 400;
}

/* Enlaces en texto muted */
.text-muted a,
a.text-muted {
    color: var(--mystical-gold) !important;
    text-decoration: none;
}

.text-muted a:hover,
a.text-muted:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

/* Formularios - texto de ayuda más legible */
.form-text.text-muted {
    color: rgba(244, 241, 232, 0.7) !important;
}

/* Badges y labels más legibles */
.badge.text-muted {
    background-color: rgba(244, 241, 232, 0.2) !important;
    color: var(--mystical-light) !important;
}

/* Mejorar contraste en cards */
.mystical-card .text-muted {
    color: rgba(244, 241, 232, 0.8) !important;
}

.mystical-card .small.text-muted,
.mystical-card small.text-muted {
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Texto de disclaimer más legible */
.disclaimer-text,
.text-muted.mystical-text {
    color: rgba(244, 241, 232, 0.8) !important;
    line-height: 1.4;
}

/* Poderes místicos más legibles */
.mystical-powers-text {
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Información de fecha/hora más legible */
.datetime-text {
    color: rgba(244, 241, 232, 0.8) !important;
}

/* Especialidades de pitonisas */
.pitonisa-specialty {
    background: rgba(212, 175, 55, 0.25) !important;
    color: var(--mystical-gold) !important;
}

/* Texto de ayuda en formularios */
.help-text {
    color: rgba(244, 241, 232, 0.75) !important;
    font-size: 0.875rem;
}

/* ========================================
   MEJORAS ESPECÍFICAS POR CONTEXTO
   ======================================== */

/* Footer - disclaimer */
.mystical-footer .text-muted {
    color: rgba(244, 241, 232, 0.7) !important;
}

/* Pitonisas - poderes místicos */
.pitonisa-card .mystical-text.text-muted {
    color: rgba(244, 241, 232, 0.85) !important;
    font-weight: 400;
}

/* Consultas - información adicional */
.consultation-info .text-muted {
    color: rgba(244, 241, 232, 0.8) !important;
}

/* Historial - fechas y detalles */
.history-details .text-muted {
    color: rgba(244, 241, 232, 0.75) !important;
}

/* Debug y desarrollo */
.debug-info .text-muted {
    color: #666 !important;
}

/* ========================================
   FORZAR COLORES EN TODOS LOS CONTEXTOS
   ======================================== */

/* Asegurar que TODOS los elementos con .text-muted se vean bien */
*[class*="text-muted"],
*.text-muted,
.text-muted * {
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Texto muted en listas */
ul.text-muted li,
ol.text-muted li,
.text-muted ul li,
.text-muted ol li {
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Texto muted en párrafos */
p.text-muted,
.text-muted p {
    color: rgba(244, 241, 232, 0.85) !important;
    line-height: 1.5;
}

/* Overrides específicos para Bootstrap */
.text-secondary {
    color: rgba(244, 241, 232, 0.85) !important;
}

/* Asegurar que los spans dentro de text-muted se vean */
.text-muted span,
span.text-muted {
    color: inherit !important;
}

/* ========================================
   OVERRIDES SUPER AGRESIVOS PARA BOOTSTRAP
   ======================================== */

/* Forzar todos los posibles selectores de Bootstrap */
.text-muted,
.text-secondary,
.text-black-50,
.text-body-secondary,
.text-body-tertiary,
*.text-muted,
*[class*="text-muted"],
*[class*="text-secondary"] {
    color: rgba(244, 241, 232, 0.9) !important;
    opacity: 1 !important;
}

/* Overrides para elementos específicos pequeños */
small,
.small,
.form-text,
.help-text,
.footnote,
.disclaimer {
    color: rgba(244, 241, 232, 0.9) !important;
}

/* Combinaciones problemáticas */
small.text-muted,
.small.text-muted,
small[class*="text-"],
.small[class*="text-"],
.form-text.text-muted,
.help-text.text-muted {
    color: rgba(244, 241, 232, 0.95) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Bootstrap 5 utility classes problemáticas */
.opacity-25,
.opacity-50,
.opacity-75 {
    opacity: 1 !important;
}

/* Texto de disclaimer específico */
.disclaimer-text,
.footer-text,
.legal-text {
    color: rgba(244, 241, 232, 0.9) !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Forzar colores en cualquier contexto */
body .text-muted,
html .text-muted,
.container .text-muted,
.card .text-muted,
.mystical-card .text-muted {
    color: rgba(244, 241, 232, 0.9) !important;
}

/* Elementos inline con color problemático */
*[style*="color: #6c757d"],
*[style*="color: #5e6c6e"],
*[style*="color: gray"],
*[style*="color: grey"] {
    color: rgba(244, 241, 232, 0.9) !important;
}
