:root {
    --primary-color: #bfa05a;
    /* Gold */
    --secondary-color: #a3b1c8;
    /* Soft Blue/Silver */
    --bg-color: #f9f7f2;
    /* Off-white base */
    --bg-light: #fdfbf7;
    /* Light cream */
    /* Slightly darker warm tone */
    --bg-accent: #EAE6DE;
    --text-color: #5a5a5a;
    --heading-font: 'Pinyon Script', cursive;
    --body-font: 'Cormorant Garamond', serif;
    --transition-speed: 0.6s;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(#d4c5a9 0.5px, transparent 0.5px),
        radial-gradient(#d4c5a9 0.5px, var(--bg-color) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
}

body.noscroll {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Curtain / Cover Section */
.curtain-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('imagenes/back.jpg');
    background-size: cover;
    background-position: center;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* CSS Transition for smooth reveal */
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(0);
}

.curtain-open {
    transform: translateY(-100%);
}

.curtain-title {
    font-family: var(--body-font);
    /* Cormorant Garamond per image inspiration */
    font-weight: 600;
    font-size: 4.5rem;
    color: var(--primary-color);
    margin: 20px 0 40px;
    letter-spacing: -2px;
}

.curtain-subtitle {
    font-family: var(--body-font);
    font-size: 1rem;
    color: #7D8C94;
    /* Slate Blue/Grey from var or custom */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
}

.swipe-indicator {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    color: #7D8C94;
    animation: bounce 2s infinite;
}

.swipe-indicator p {
    font-family: var(--body-font);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}




.bounce-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Site Content Wrapper */
#site-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-padding {
    padding: 80px 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-accent {
    background-color: var(--bg-accent);
}

/* Global Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.divider {
    color: var(--secondary-color);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.divider::before,
.divider::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background: var(--bg-accent);
    vertical-align: middle;
    margin: 0 15px;
}

/* Ensure Welcome section is centered */
.welcome {
    text-align: center;
}

/* Section Backgrounds */
.welcome {
    background-image: radial-gradient(#d4c5a9 0.5px, transparent 0.5px), radial-gradient(#d4c5a9 0.5px, var(--bg-color) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.events,
.gallery,
.rsvp {
    background-color: #ffffff;
}

.parents,
.godparents,
.gifts {
    background-color: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('imagenes/imagen.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.intro-text {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.baby-name {
    font-size: 4.5rem;
    margin: 10px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Countdown */
.countdown-container {
    margin-top: 40px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-unit {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span:first-child {
    font-size: 2rem;
    font-weight: 600;
}

.time-unit .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.time-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Welcome Section */
.icon-decorative {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    color: #666;
}

/* Events Section */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: white;
    padding: 50px 30px;
    border-radius: 10px;
    /* Slightly sharper corners */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.event-card h3 {
    font-family: var(--body-font);
    /* Cormorant Garamond */
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.event-card .time {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card .location-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #555;
}

.event-card .address {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 30px;
}

.icon-box,
.card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Button Location - Text Link Style */
.btn-location {
    display: inline-block;
    padding-bottom: 2px;
    background: transparent;
    color: var(--primary-color);
    /* Gold */
    text-decoration: none;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-location:hover {
    color: #a38646;
    border-bottom-color: #a38646;
    letter-spacing: 2px;
}

/* Godparents & Parents */
.godparents-grid,
.parents-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.godparent-card,
.parent-card {
    text-align: center;
}

/* Compatibility classes included */
.img-frame,
.parent-img-frame,
.godparent-img-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--bg-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-frame img,
.parent-img-frame img,
.godparent-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery */
/* Gallery Stack */
.gallery-stack-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 450px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.gallery-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 15px;
    padding-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    transform-origin: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border: 1px solid #eee;
}

/* Stack Effect */
.gallery-card:nth-child(1) {
    z-index: 3;
    transform: rotate(-2deg);
}

.gallery-card:nth-child(2) {
    z-index: 2;
    transform: rotate(3deg) scale(0.98);
}

.gallery-card:nth-child(3) {
    z-index: 1;
    transform: rotate(-4deg) scale(0.95);
}

/* Interaction Classes */
.gallery-card.swiped-left {
    transform: translateX(-120%) rotate(-20deg) !important;
    opacity: 0;
}

.gallery-card.swiped-right {
    transform: translateX(120%) rotate(20deg) !important;
    opacity: 0;
}

.swipe-instruction {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--secondary-color);
    font-family: var(--body-font);
}

.swipe-instruction i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

/* Gifts */
.gifts {
    text-align: center;
}

.gift-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gift-box {
    text-align: center;
}

.gift-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* RSVP */
.rsvp {
    text-align: center;
}

.btn-whatsapp,
.btn-rsvp {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.btn-whatsapp:hover,
.btn-rsvp:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 20px;
}

.footer-text {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 10px;
}


/* Desktop layout adjustment to move text to right */
@media (min-width: 1024px) {
    .hero {
        justify-content: flex-end;
        padding-right: 5%;
    }

    .hero-content {
        max-width: 500px;
    }

    .baby-name {
        font-size: 7rem;
    }
}

/* --- New Features --- */

/* 1. Add to Calendar Button */
.btn-calendar {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-calendar:hover {
    background: white;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 2. Music Player Control (Floating) */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    border: none;
    outline: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1) rotate(10deg);
}

.music-playing {
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% {
        box-shadow: 0 0 0 0 rgba(191, 160, 90, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(191, 160, 90, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(191, 160, 90, 0);
    }
}

/* 3. Micro-interactions for Photos */
.img-frame {
    transition: all 0.5s ease;
    border: 5px solid white;
    position: relative;
    overflow: hidden;
}

.img-frame img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effect: Zoom Image & Gold Border Glow */
.parent-card:hover .img-frame,
.godparent-card:hover .img-frame {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(191, 160, 90, 0.3);
    transform: translateY(-5px);
}

.parent-card:hover .img-frame img,
.godparent-card:hover .img-frame img {
    transform: scale(1.1);
}

/* --- Section Backgrounds - Alternating Pattern --- */
.welcome,
.godparents,
.gifts {
    background-color: #ffffff;
    /* White */
}

.parents {
    background-color: #ffffff;
}

.events,
.gallery,
.rsvp {
    background-color: var(--bg-light);
    /* Cream/Light */
}

/* Event Typography Update */
.event-card-overlay h3 {
    font-family: var(--heading-font);
    /* Pinyon Script */
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2 !important;
    /* Force priority */
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: none;
}

/* --- Events Redesign (Overlapping Cards) --- */
.events-redesign-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.event-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.event-item.reverse {
    justify-content: flex-end;
}

.event-img-container {
    width: 60%;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

.event-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-item:hover .event-img-container img {
    transform: scale(1.05);
}

.event-card-overlay {
    position: absolute;
    width: 45%;
    background: #fff;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    right: 10%;
    /* Default layout: Card on right overlapping */
    text-align: left;
    min-width: 320px;
}

.event-item.reverse .event-card-overlay {
    right: auto;
    left: 10%;
    /* Reverse layout: Card on left overlapping */
}

/* Event Typography */
.event-time {
    display: inline-block;
    background: transparent;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Note: Removed duplicate H3 rule here to allow the Pinyon Script rule above to win */

.event-location-title {
    font-family: sans-serif;
    /* Clean sans */
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.divider-small {
    width: 40px;
    height: 2px;
    background: #ddd;
    margin-bottom: 20px;
}

.event-address {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-gps {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 12px 25px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-gps:hover {
    background: var(--primary-color);
    color: #333;
    /* Dark text for better contrast on gold */
    box-shadow: 0 5px 15px rgba(191, 160, 90, 0.4);
}

.btn-gps i {
    margin-right: 8px;
}

.icon-floating-center {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-top: -40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
    opacity: 0.5;
}

/* Response for Mobile */
@media (max-width: 768px) {

    /* Curtain Section */
    .curtain-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
        padding: 0 20px;
    }

    .curtain-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Hero Section */
    .baby-name {
        font-size: 2.5rem;
        padding: 0 20px;
    }

    .intro-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .date-badge {
        font-size: 0.9rem;
    }

    .time-unit {
        min-width: 60px;
        padding: 10px;
    }

    .time-unit span:first-child {
        font-size: 1.5rem;
    }

    .time-unit .label {
        font-size: 0.7rem;
    }

    /* Section Padding */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Typography */
    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Welcome Section */
    .icon-decorative {
        font-size: 2rem;
    }

    .welcome-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Parents & Godparents Grid */
    .parents-grid,
    .godparents-grid {
        flex-direction: column;
        gap: 30px;
    }

    .parent-card,
    .godparent-card {
        max-width: 100%;
    }

    .img-frame,
    .parent-img-frame,
    .godparent-img-frame {
        width: 250px;
        height: 250px;
        margin: 0 auto 20px;
    }

    .img-frame img,
    .parent-img-frame img,
    .godparent-img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Events Section */
    .events-redesign-container {
        padding: 0 15px;
    }

    .event-item,
    .event-item.reverse {
        flex-direction: column;
        display: block;
        margin-bottom: 50px;
    }

    .event-img-container {
        width: 100%;
        height: 250px;
    }

    .event-card-overlay,
    .event-item.reverse .event-card-overlay {
        position: relative;
        width: 90%;
        margin: -50px auto 0;
        right: auto;
        left: auto;
        padding: 25px;
        min-width: auto;
    }

    .event-card-overlay h3 {
        font-size: 2rem;
    }

    .event-time {
        font-size: 0.8rem;
    }

    .event-location-title {
        font-size: 1rem;
    }

    .event-address {
        font-size: 0.85rem;
    }

    /* Gallery */
    .gallery-stack-container {
        max-width: 320px;
        height: 400px;
    }

    .gallery-card {
        padding: 12px;
        padding-bottom: 35px;
    }

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .swipe-instruction {
        font-size: 0.85rem;
        bottom: -40px;
    }

    /* Gifts Section */
    .gift-box {
        padding: 30px 20px;
    }

    /* RSVP Section */
    .rsvp-card {
        padding: 40px 25px;
    }

    .btn-whatsapp {
        font-size: 0.9rem;
        padding: 12px 25px;
    }

    /* Calendar Button */
    .btn-calendar {
        font-size: 0.8rem;
        padding: 10px 20px;
    }

    /* Music Control */
    .music-control {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
}