/* Design System & Variables */
:root {
    /* Colors */
    --color-bg: #faf9f6;
    /* Off-white/Cream */
    --color-surface: #ffffff;
    --color-primary: #d4a5a5;
    /* Soft Pink */
    --color-primary-dark: #b58585;
    --color-secondary: #a3b18a;
    /* Sage Green */
    --color-text-main: #5a4a42;
    /* Warm Charcoal */
    --color-text-light: #8b6f68;
    --color-accent: #d4a5a5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Radius */
    --radius-card: 12px;
    --radius-btn: 50px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    text-underline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

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

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

/* Header / Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6)), url('lagones.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: var(--spacing-md);
}

/* Disable parallax on mobile to fix glitch */
/* Disable parallax on mobile to fix glitch - using max-width for better reliability */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-position: center center;
    }
}

.hero-content {
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 800px;
    width: 100%;
}

.celebration-text {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    display: block;
}

.hero-names {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero-names span {
    color: var(--color-primary);
    font-style: italic;
    font-size: 0.8em;
}

.hero-date {
    font-size: 1.5rem;
    margin-top: var(--spacing-md);
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Countdown Section */
.countdown-section {
    background-color: var(--color-surface);
    padding: var(--spacing-lg) 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

/* Sections General */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-main);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

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

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.location-info {
    padding: var(--spacing-md);
    padding-top: 0;
    /* Reduce gap between title and text */
}

#ubicacion .section-title {
    margin-bottom: var(--spacing-md);
}

.location-name {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.location-address {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.location-image {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.location-image:hover {
    transform: scale(1.02);
}

/* Transport Section */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.transport-card {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-card);
    border: 1px solid rgba(212, 165, 165, 0.2);
    text-align: center;
}

.transport-title {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
}

.transport-text {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Gift Section */
.gift-card {
    background: var(--color-surface);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(212, 165, 165, 0.2);
}

#regalo .section-title {
    margin-bottom: var(--spacing-md);
}

.iban-box {
    background: var(--color-bg);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    border: 1px dashed var(--color-primary);
}

.iban-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--color-text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* RSVP Section */
.rsvp-section {
    text-align: center;
    background-color: var(--color-surface);
}

/* Footer */
.footer {
    background-color: var(--color-text-main);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

    .hero-names {
        font-size: 3rem;
    }

    .celebration-text {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .nav-list {
        gap: var(--spacing-sm);
        font-size: 0.9rem;
        padding: 0 var(--spacing-sm);
        flex-wrap: wrap;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

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

    .location-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .iban-box {
        flex-direction: column;
        width: 100%;
    }

    .iban-text {
        font-size: 1rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .hero-names {
        font-size: 2.5rem;
    }

    .countdown-grid {
        gap: var(--spacing-sm);
    }

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

    .transport-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns as requested */
        gap: var(--spacing-sm);
    }

    .transport-card {
        padding: var(--spacing-sm);
        /* Reduce padding to fit */
    }

    .transport-title {
        font-size: 1.2rem;
        /* Smaller title */
        margin-bottom: 0.25rem;
    }

    .transport-text {
        font-size: 0.9rem;
        /* Smaller text */
        line-height: 1.4;
    }
}