/* ===== Root & Color Variables ===== */
:root {
    --primary-pink: #FFB6C1;
    --light-pink: #FFF0F5;
    --lavender: #E6CCFF;
    --cream: #FFF9F9;
    --gold: #D4AF8C;
    --soft-gold: #F0E6D2;
    --dark-text: #8B4970;
    --light-text: #C9A8B8;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--lavender) 100%);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Pétalos Animados ===== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    width: var(--size, 20px);
    height: var(--size, 20px);
    opacity: var(--opacity, 0.7);
    animation: fall linear forwards;
    animation-duration: var(--duration, 8s);
}

@keyframes fall {
    from {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 240, 245, 0.8) 0%, rgba(230, 204, 255, 0.6) 100%);
}

.hero-content {
    max-width: 600px;
}

.typewriter-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--dark-text);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.cursor {
    animation: blink 0.7s infinite;
    margin-left: 5px;
    font-weight: bold;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.name-reveal {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 12vw, 6rem);
    color: var(--primary-pink);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: revealName 1.5s ease-out forwards;
    margin-bottom: 20px;
}

.name-reveal.hidden {
    display: none;
}

@keyframes revealName {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    color: var(--primary-pink);
    animation: slide-down 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes slide-down {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ===== Detalles del Evento ===== */
.event-details {
    padding: 80px 20px;
    z-index: 2;
    position: relative;
}

.event-details h2,
.countdown h2,
.gifts h2,
.rsvp h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.event-details h2::after,
.countdown h2::after,
.gifts h2::after,
.rsvp h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-pink), var(--gold));
    margin: 15px auto 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    backdrop-filter: blur(5px);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    border-color: var(--primary-pink);
}

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

.detail-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.detail-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.detail-card p {
    color: var(--light-text);
    font-size: 1rem;
}

.maps-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-pink), var(--lavender));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.maps-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

/* ===== Countdown ===== */
.countdown {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.5), rgba(230, 204, 255, 0.5));
    z-index: 2;
    position: relative;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.15);
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-pink);
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
}

/* ===== Gifts Section ===== */
.gifts {
    padding: 80px 20px;
    z-index: 2;
    position: relative;
}

.gifts-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.gifts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.gift-item {
    background: white;
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.2);
}

.gift-item.taken {
    opacity: 0.6;
    background: linear-gradient(135deg, var(--light-pink), var(--cream));
}

.gift-item.taken .gift-name {
    text-decoration: line-through;
    color: var(--light-text);
}

.gift-item.taken::after {
    content: '✓ TOMADO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-pink);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.gift-category {
    display: inline-block;
    background: var(--soft-gold);
    color: var(--dark-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gift-name {
    font-size: 1.2rem;
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.gift-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== RSVP Section ===== */
.rsvp {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.5), rgba(230, 204, 255, 0.5));
    z-index: 2;
    position: relative;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.rsvp-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-pink), var(--lavender));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rsvp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
}

.rsvp-btn:active {
    transform: scale(0.98);
}

.heart-emoji {
    display: inline-block;
    animation: heart-beat 0.6s ease-in-out;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}

.rsvp-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.rsvp-confirmation.hidden {
    display: none;
}

.confirmation-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: popUp 0.5s ease-out;
    position: relative;
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-content h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.confirmation-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-pink), var(--lavender));
    color: var(--dark-text);
    z-index: 2;
    position: relative;
}

.footer-flowers {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.footer-message {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.footer-message strong {
    color: var(--primary-pink);
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
}

.footer-subtext {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20BA5E);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 30px 15px;
    }

    .typewriter-text {
        min-height: 100px;
    }

    .details-grid,
    .gifts-container {
        grid-template-columns: 1fr;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .event-details,
    .countdown,
    .gifts,
    .rsvp {
        padding: 60px 15px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .typewriter-text {
        font-size: 1.5rem;
    }

    .name-reveal {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .detail-card,
    .gift-item {
        padding: 20px;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .event-details h2,
    .countdown h2,
    .gifts h2,
    .rsvp h2 {
        font-size: 1.8rem;
    }
}
