* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 50%, #ffe8f0 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Pétalos de sakura flotantes */
.petal {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(ellipse at center, #ffb3d9 0%, #ffc9e3 50%, transparent 70%);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

h1 {
    font-size: 3rem;
    color: #d4819f;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(212, 129, 159, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: #b36680;
    font-style: italic;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease;
}

.zodiac-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 129, 159, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffd6e8 0%, #ffe8f0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.zodiac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 129, 159, 0.3);
    border-color: #ffb3d9;
}

.zodiac-card.active {
    background: linear-gradient(135deg, #ffd6e8 0%, #ffe8f0 100%);
    border-color: #d4819f;
    transform: scale(1.05);
}

.zodiac-card>* {
    position: relative;
    z-index: 1;
}

.zodiac-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #ffd6e8, #ffe8f0);
    padding: 10px;
    transition: transform 0.3s ease;
}

.zodiac-card:hover .zodiac-icon {
    transform: scale(1.1) rotate(5deg);
}

.zodiac-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.zodiac-name {
    font-size: 1.3rem;
    color: #d4819f;
    font-weight: 600;
    margin-bottom: 5px;
}

.zodiac-dates {
    font-size: 0.9rem;
    color: #b36680;
}

.horoscope-display {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(212, 129, 159, 0.2);
    min-height: 300px;
    animation: fadeIn 1.5s ease;
    border: 3px solid #ffd6e8;
}

.horoscope-display.hidden {
    display: none;
}

.horoscope-title {
    text-align: center;
    font-size: 2rem;
    color: #d4819f;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.horoscope-title-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd6e8, #ffe8f0);
    padding: 10px;
}

.horoscope-title-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.horoscope-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a4a52;
    text-align: justify;
}

.horoscope-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9fc 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid #ffb3d9;
}

.horoscope-section h3 {
    color: #b36680;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4819f 0%, #b36680 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 129, 159, 0.3);
}

.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 129, 159, 0.4);
}

.placeholder {
    text-align: center;
    color: #b36680;
    font-size: 1.2rem;
    padding: 60px 20px;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #b36680;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .zodiac-icon {
        width: 100px;
        height: 100px;
    }

    .horoscope-display {
        padding: 25px;
    }

    .horoscope-title {
        font-size: 1.5rem;
    }

    .horoscope-title-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .zodiac-grid {
        grid-template-columns: 1fr;
    }
}