/* Base Variables */
:root {
    --bg-color: #faf9f6;
    /* Crema/Blanco roto */
    --text-primary: #333333;
    --text-secondary: #666666;
    --theme-color: #d4af37;
    --theme-color-dark: #b5952f;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

/* Tipografía Compartida */
h1,
h2,
h3,
.names,
.quote,
.section-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--theme-color);
}

.icon-gold {
    color: var(--theme-color);
    font-size: 2rem;
}

/* Botones */
.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--theme-color);
    color: #fff;
}

.btn-solid-gold {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--theme-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.btn-solid-gold:hover {
    background-color: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.btn-link {
    color: var(--theme-color);
    text-decoration: underline;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--theme-color-dark);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

.hero-overlay h4 {
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-overlay .names {
    font-size: 3.5rem;
    color: var(--theme-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-overlay .date {
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Quote Section */
.quote-section {
    padding: 5rem 2rem;
}

.quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto;
}

.author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-color);
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
    padding: 1.5rem;
    border: 1px solid #eee;
    min-width: 100px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.time-box .number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--theme-color);
    line-height: 1;
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Locations */
.locations-section {
    padding: 5rem 2rem;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.location-card {
    background: #fff;
    padding: 3rem 2rem;
    border-top: 4px solid var(--theme-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2rem;
    color: var(--theme-color);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-time {
    color: var(--theme-color);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-place {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-address {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Gallery Timeline */
.gallery-section {
    padding: 4rem 2rem;
    background: #fff;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

/* Gifts */
.gifts-section {
    padding: 5rem 2rem;
}

.gifts-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.gifts-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hidden-details {
    display: none;
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 5px;
}

.hidden-details.active {
    display: block;
    animation: fadeInDown 0.4s ease;
}

/* RSVP */
.rsvp-section {
    padding: 6rem 2rem;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1200') center/cover no-repeat fixed;
    position: relative;
    color: #fff;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.rsvp-section>* {
    position: relative;
    z-index: 1;
}

.rsvp-section .section-title,
.rsvp-section .rsvp-text {
    color: #fff;
}

/* Footer */
.inv-footer {
    padding: 4rem 2rem 2rem;
    background: #1a1a1a;
    color: #fff;
}

.inv-footer h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--theme-color);
}

.inv-footer .credits {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2rem;
}

.inv-footer a {
    color: #888;
    text-decoration: none;
}

/* Animaciones y Clases Utilitarias */
.fade-in {
    animation: fadeIn 1.5s ease both;
}

.slide-up {
    animation: slideUp 1.5s ease both;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

/* Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MEDIA QUERIES (Mobile First enfocado a tablet/desktop si es necesario) */
@media (min-width: 768px) {
    .cards-container {
        flex-direction: row;
        justify-content: center;
    }

    .location-card {
        flex: 1;
        max-width: 400px;
    }
}