/* ============================
   VARIABLES & THEME
   Colors: Sage Green, Lavender, Gold
   Theme: Jardín / Bosque Encantado
   ============================ */

:root {
    --sage: #7a9a6d;
    --sage-dark: #4a6b45;
    --sage-darker: #2a4528;
    --lavender: #b8a9c8;
    --lavender-light: #d4c5e2;
    --gold: #a08520;
    --gold-light: #c9a832;
    --gold-pale: #d9bb40;
    --cream: #faf8f5;
    --warm-white: #f5f2ed;
    --text-dark: #3a3530;
    --text-mid: #5a5550;
    --text-light: #7a7570;
    --bg-main: #f0ede8;
}

/* ============================
   BASE STYLES
   ============================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(122,154,109,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 15%, rgba(122,154,109,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 80%, rgba(122,154,109,0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 85%, rgba(122,154,109,0.09) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(200,210,195,0.06) 0%, transparent 60%);
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   ENTRANCE OVERLAY
   ============================ */

#entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--sage-darker) 0%, #1e3520 60%, #152818 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#entrance-overlay.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.entrance-content {
    text-align: center;
    color: var(--cream);
    animation: fadeInUp 1.2s ease;
}

.entrance-florals {
    margin-bottom: 20px;
}

.entrance-flower {
    width: 100px;
    height: 100px;
    animation: floatSlow 4s ease-in-out infinite;
}

.entrance-family {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    font-style: italic;
    color: white;
    margin-bottom: 20px;
    min-height: 0;
}

.entrance-family:empty {
    display: none;
}

.entrance-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lavender-light);
    margin-bottom: 8px;
}

.entrance-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.entrance-name {
    font-family: 'Great Vibes', cursive;
    font-size: 52px;
    color: white;
    margin-bottom: 30px;
}

.btn-open {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-darker);
    background: var(--gold-light);
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-open:hover {
    background: var(--gold-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 50, 0.3);
}

/* ============================
   AUDIO CONTROL
   ============================ */

.audio-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--sage);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.audio-btn:hover {
    background: white;
    transform: scale(1.05);
}

.audio-btn.playing .audio-icon {
    animation: pulse 1s ease-in-out infinite;
}

.audio-icon {
    font-size: 18px;
    color: var(--sage-dark);
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        170deg,
        var(--sage-darker) 0%,
        #2d4a2d 40%,
        #1e3520 100%
    );
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(122, 154, 109, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(184, 169, 200, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 90%, rgba(201, 168, 50, 0.05) 0%, transparent 30%);
}

.hero-florals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 12px;
}

.hero-name {
    font-family: 'Great Vibes', cursive;
    font-size: 72px;
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(201, 168, 50, 0.2);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--sage-dark);
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    color: var(--sage-dark);
    opacity: 0.85;
    font-size: 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================
   SECTIONS (general)
   ============================ */

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(122,154,109,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 15% 80%, rgba(122,154,109,0.05) 0%, transparent 35%),
        #faf8f5;
}

.section:nth-child(odd) {
    background:
        radial-gradient(ellipse at 10% 30%, rgba(122,154,109,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 70%, rgba(122,154,109,0.06) 0%, transparent 35%),
        var(--bg-main);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--sage-darker);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* ============================
   COUNTDOWN
   ============================ */

#countdown {
    background: var(--sage-darker);
    padding: 60px 0;
}

#countdown .section-title {
    color: var(--cream);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-item {
    text-align: center;
    min-width: 70px;
}

.countdown-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--lavender-light);
    margin-top: 6px;
}

/* ============================
   MESSAGE CARD
   ============================ */

.message-card {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(122, 154, 109, 0.15);
    position: relative;
}

.quote-mark {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    color: var(--gold-light);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
}

.message-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-mid);
    line-height: 1.8;
    position: relative;
}

.message-signature {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--sage-dark);
}

/* ============================
   EVENT DETAILS
   ============================ */

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(122, 154, 109, 0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
}

.detail-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--sage-darker);
    margin-bottom: 10px;
}

.detail-main {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.detail-sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================
   PADRINOS
   ============================ */

.padrinos-card {
    background: linear-gradient(135deg, var(--sage-darker), #1e3520);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 30px;
}

.padrinos-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    line-height: 1.8;
}

/* ============================
   TIMELINE / ITINERARY
   ============================ */

.timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-light), var(--sage));
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-time {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--sage-darker);
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-mid);
}

/* ============================
   RSVP FORM
   ============================ */

.rsvp-form {
    max-width: 420px;
    margin: 0 auto;
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(122, 154, 109, 0.3);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122, 154, 109, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-mid);
}

.radio-label input[type="radio"] {
    accent-color: var(--sage);
    width: 16px;
    height: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--sage-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--sage-darker);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 69, 40, 0.2);
}

.rsvp-success {
    text-align: center;
    padding: 40px;
    margin-top: 30px;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.rsvp-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--sage-darker);
}

.success-sub {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: var(--text-light) !important;
    margin-top: 8px;
}

/* ============================
   PHOTO SHARE
   ============================ */

.photo-share-card {
    text-align: center;
    margin-top: 30px;
}

.qr-placeholder {
    margin: 0 auto 24px auto;
}

.qr-frame {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(122, 154, 109, 0.15);
}

.photo-instructions {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 30px;
}

.photo-upload-area {
    margin: 20px auto;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: white;
    border: 2px dashed var(--sage);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: var(--sage-dark);
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: rgba(122, 154, 109, 0.05);
    border-color: var(--sage-dark);
}

.upload-icon {
    font-size: 20px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.photo-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================
   LOCATION / MAP
   ============================ */

.map-container {
    margin-top: 30px;
}

.map-placeholder {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(122, 154, 109, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.map-placeholder p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.map-address {
    font-size: 13px !important;
    font-weight: 300 !important;
    color: var(--text-light) !important;
    margin-bottom: 20px !important;
}

.btn-map {
    display: inline-block;
    padding: 12px 28px;
    background: var(--sage-dark);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: var(--sage-darker);
    transform: translateY(-1px);
}

/* ============================
   FOOTER
   ============================ */

.footer {
    background: var(--sage-darker);
    padding: 60px 0;
    text-align: center;
    color: var(--cream);
}

.footer-name {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-text {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lavender-light);
    margin-bottom: 16px;
}

.footer-thanks {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-style: italic;
    color: rgba(255,255,255,0.7);
}

/* ============================
   ANIMATIONS
   ============================ */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 600px) {
    .hero-name {
        font-size: 52px;
    }

    .entrance-name {
        font-size: 40px;
    }

    .entrance-title {
        font-size: 36px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-item {
        min-width: 55px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .message-card {
        padding: 36px 24px;
    }

    .message-text {
        font-size: 17px;
    }

    .padrinos-names {
        font-size: 20px;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .text-content {
        padding: 40px 30px;
    }
}
