body {
    font-family: 'Poppins', sans-serif;
    color: #F3F4F6; /* text-gray-100 */
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* --- FONDO CÓSMICO MÁGICO --- */
.body-magic-background {
    background-color: #0d1120;
    background-image: 
        radial-gradient(ellipse at 70% 30%, #4a2d7c44, transparent 50%),
        radial-gradient(ellipse at 30% 70%, #2d7c7c44, transparent 50%);
}

.star-bg {
    background-image: 
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill="%23FFFFFF" fill-opacity="0.2"%3E%3Ccircle cx="50" cy="50" r="0.5"/%3E%3Ccircle cx="10" cy="10" r="0.5"/%3E%3Ccircle cx="90" cy="90" r="0.5"/%3E%3Ccircle cx="10" cy="90" r="0.5"/%3E%3Ccircle cx="90" cy="10" r="0.5"/%3E%3Ccircle cx="30" cy="70" r="0.5"/%3E%3Ccircle cx="70" cy="30" r="0.5"/%3E%3C/g%3E%3C/svg%3E'),
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxMAAAsTAQCanBgAAABnSURBVFhH7c6xCQAgDAVRR9A7E4gX8YJliqu538v7A532AATm2QZMhQk1YUKNGFGDJtSEQTVhQg0ZUYMm1ISBNewfDhMm1ISBNeFDjRhRgwbUhIE1YUKNGFGDJkS9A0aHAl4zr22CAAAAAElFTkSuQmCC'); /* Polvo de estrellas */
    animation: stars 80s linear infinite, dust 120s linear infinite;
}

@keyframes stars {
    from { background-position: 0 0, 0 0; }
    to { background-position: -1000px 500px, 0 0; }
}
@keyframes dust {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 500px 200px; }
}

/* --- COMPONENTES PRINCIPALES --- */
.cta-button {
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    color: #111827;
    font-weight: bold;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

/* --- RUEDA ZODIACAL --- */
.zodiac-wheel-item {
    transition: transform 0.4s ease, filter 0.4s ease;
    text-align: center;
    cursor: pointer;
}
.zodiac-wheel-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px #fbbF24); /* yellow-400 */
}
.zodiac-wheel-item .icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}
.zodiac-wheel-item:hover .icon-wrapper {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: #FBBF24;
}
.zodiac-wheel-item .icon {
    font-size: 2.8rem;
    color: #FBBF24;
    text-shadow: 0 0 10px #fbbf2488;
}
.zodiac-wheel-item .sign-name {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #D1D5DB;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.zodiac-wheel-item.highlighted .icon-wrapper {
    border-color: #FBBF24;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Estilos para el carrusel Swiper.js */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 150px;
    height: 150px;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
}
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* --- MODAL DEL HORÓSCOPO --- */
.modal-card {
    background: #111827; /* Fallback */
    background: radial-gradient(ellipse at center, rgba(31, 41, 55, 1), #111827);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content-wrapper {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.modal-content-wrapper.fade-out {
    opacity: 0;
}

#horoscope-tabs .tab-btn {
    border-color: transparent;
    transition: all 0.3s ease;
    color: #9CA3AF;
    font-weight: 600;
}
#horoscope-tabs .tab-btn.tab-active {
    border-color: #FBBF24;
    color: #FBBF24;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FBBF24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- TARJETA PARA COMPARTIR --- */
#horoscope-share-card {
    width: 540px; 
    height: 960px;
    background-color: #0d1120;
    color: #F3F4F6;
    background-image: 
        radial-gradient(ellipse at 50% 100%, #4a2d7c55, transparent 50%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill="%23FFFFFF" fill-opacity="0.2"%3E%3Ccircle cx="50" cy="50" r="0.5"/%3E%3Ccircle cx="10" cy="10" r="0.5"/%3E%3Ccircle cx="90" cy="90" r="0.5"/%3E%3C/g%3E%3C/svg%3E');
}

#horoscope-share-card .icon-bg {
    color: #FBBF24;
    text-shadow: 0 0 35px #fbbf2499;
}
#horoscope-share-card h2 {
    color: #FFFFFF;
    font-family: 'Cormorant Garamond', serif;
}
#horoscope-share-card .vibe {
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.75rem;
    color: #FFFFFF;
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid #4B5563;
    border-bottom: 1px solid #4B5563;
}
#horoscope-share-card .prediction {
    font-size: 1.15rem;
    line-height: 1.65rem;
    color: #D1D5DB;
}
#horoscope-share-card .prediction strong {
    color: #FBBF24;
}
#horoscope-share-card .watermark {
    opacity: 0.8;
    color: #FBBF24;
    letter-spacing: 0.1em;
    font-family: 'Cormorant Garamond', serif;
}

/* --- FOOTER --- */
.footer-icon {
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-icon:hover {
    color: #FBBF24;
    transform: scale(1.2);
}

#horoscope-share-card {
    width: 540px;
    height: 960px;
    max-width: 540px;
    max-height: 960px;
    overflow: hidden;
}
/* Estilos para los enlaces del footer */
.horoscope-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.horoscope-link:hover {
    background-color: rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}

.horoscope-link:active {
    transform: translateY(0);
}

/* Efecto de carga para enlaces del footer */
.horoscope-link.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    animation: loading-shimmer 1s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animación de entrada para el modal cuando se abre desde footer */
.modal-from-footer {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar la responsive de los enlaces */
@media (max-width: 640px) {
    .horoscope-link {
        font-size: 0.875rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Indicador visual cuando se está cargando */
.footer-loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-loading-indicator .spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
