/* ===================================
   WEDDING WEBSITE - Andrea & Pablo
   Elegant Wedding Invitation Styles
   =================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --color-bg: #FDFBF7;
    --color-bg-alt: #F7F3ED;
    --color-primary: #8B4B62;
    --color-primary-dark: #6D3A4D;
    --color-primary-light: #B87A92;
    --color-secondary: #D4A574;
    --color-secondary-light: #E8C9A8;
    --color-text: #4A4A4A;
    --color-text-light: #7A7A7A;
    --color-white: #FFFFFF;
    --color-success: #5D9A6D;
    --color-error: #C75050;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(139, 75, 98, 0.1);
    --shadow-medium: 0 8px 30px rgba(139, 75, 98, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

/* ===== Intro Overlay - Envelope Animation ===== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E8DDD5;
    /* Matches envelope color to avoid black flash */
    z-index: 1000;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20%;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.intro-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.intro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.envelope-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    perspective: 1500px;
}

.envelope {
    position: relative;
    width: 320px;
    height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Paper Texture - Applied to all envelope parts */
.envelope-back,
.envelope-front,
.envelope-letter,
.envelope-flap {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #E8DDD5;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.envelope-lining {
    position: absolute;
    width: 96%;
    height: 96%;
    top: 2%;
    left: 2%;
    background-color: var(--color-bg);
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
    /* Floral Lining Pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0c8.284 0 15 6.716 15 15s-6.716 15-15 15-15-6.716-15-15S21.716 0 30 0z' fill='%238B4B62' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #F5EDE6;
    clip-path: polygon(0 40%, 50% 100%, 100% 40%, 100% 100%, 0 100%);
    z-index: 5;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: #F5EDE6;
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.envelope-flap-lining {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: #F5EDE6;
    transform-origin: top center;
    transform: rotateX(180deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    /* Floral Lining Pattern - matches inner lining */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0c8.284 0 15 6.716 15 15s-6.716 15-15 15-15-6.716-15-15S21.716 0 30 0z' fill='%238B4B62' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 2;
}

.envelope.open .envelope-flap-lining {
    transform: rotateX(0deg);
    z-index: 7;
    /* Becomes visible on the inside of the flipped flap */
    opacity: 1;
}

.envelope-letter {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 85%;
    background-color: var(--color-white);
    border-radius: 2px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s,
        opacity 0.6s ease 1s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.letter-header {
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
    margin-bottom: 1rem;
}

.envelope.open .envelope-letter {
    transform: translateY(-80px) translate3d(0, 0, 100px);
}

.letter-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.envelope.open .letter-text {
    opacity: 1;
}

/* Organic Wax Seal */
.wax-seal {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 30% 30%, #D4A574 0%, #A67C52 100%);
    /* Irregular Shape */
    border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    animation: seal-pulse 3s ease-in-out infinite;
}

.wax-seal::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes seal-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

.envelope.open .wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.seal-initials {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.tap-hint {
    margin-top: 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fade-pulse 2s infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== Music Toggle ===== */
.music-toggle {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    z-index: 10000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.music-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.music-toggle.playing .music-off {
    display: none;
}

.music-toggle.playing .music-on {
    display: block;
}

/* ===== Navigation ===== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform var(--transition-medium);
}

.nav-bar.visible {
    transform: translateY(0);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* ===== Main Content ===== */
.main-content {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.main-content.visible {
    opacity: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C20 30, 20 70, 50 90 C80 70, 80 30, 50 10' fill='none' stroke='%238B4B62' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.hero-decoration.top-left {
    top: 5%;
    left: 5%;
    transform: rotate(-15deg);
}

.hero-decoration.top-right {
    top: 5%;
    right: 5%;
    transform: rotate(15deg) scaleX(-1);
}

.hero-decoration.bottom-left {
    bottom: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.hero-decoration.bottom-right {
    bottom: 10%;
    right: 5%;
    transform: rotate(-15deg) scaleX(-1);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.hero-title .ampersand {
    font-style: italic;
    font-weight: 300;
    color: var(--color-secondary);
    display: inline-block;
    margin: 0 0.2em;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-serif);
}

.date-day {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.date-month {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary-light);
}

.date-year {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.hero-location {
    font-size: 1rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Countdown Section ===== */
.countdown-section {
    background: var(--color-bg-alt);
    min-height: 50vh;
    /* Reduced from 100vh (inherited from .section) */
    padding: var(--spacing-lg) 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    /* Reduced vertical padding */
    border-radius: var(--radius-md);
    /* Slightly smaller radius */
    box-shadow: var(--shadow-soft);
    min-width: 70px;
    /* Reduced width */
}

.countdown-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.6rem;
    /* Reduced from 0.7rem */
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    /* Reduced from 2rem */
    color: var(--color-primary-light);
    padding: 0 var(--spacing-xs);
}

@media (max-width: 480px) {
    .countdown-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .countdown-separator {
        display: none;
    }

    .countdown-timer {
        gap: var(--spacing-sm);
    }

    .countdown-item {
        min-width: 60px;
        padding: var(--spacing-sm);
    }

    .countdown-value {
        font-size: 1.5rem;
    }
}

/* ===== Venue Section ===== */
.venue-section {
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
    color: var(--color-white);
}

.venue-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.venue-section .container {
    position: relative;
    z-index: 2;
}

.venue-section .section-title {
    color: var(--color-white);
}

.venue-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.venue-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 350px;
    flex: 1;
}

.venue-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-secondary);
}

.venue-icon svg {
    width: 100%;
    height: 100%;
}

.venue-card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.venue-time {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.venue-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.venue-address {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.venue-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.venue-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.venue-btn svg {
    width: 18px;
    height: 18px;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-md);
}

.map-container iframe {
    display: block;
}

.calendar-action {
    text-align: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Gifts Section ===== */
.gifts-section {
    background: var(--color-bg-alt);
    min-height: auto;
    padding: var(--spacing-xl) 0;
}

.gift-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
}

.bank-info {
    text-align: center;
}

.bank-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.bank-number {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    /* Sin break-all: que solo parta por los espacios entre grupos, nunca
       en mitad de un grupo (antes cortaba "2166" como "2" + "166"). */
    word-break: keep-all;
    overflow-wrap: normal;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-bg-alt);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn.copied {
    background: var(--color-success);
    color: var(--color-white);
}

.gift-note {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-primary-light);
}

/* ===== RSVP Section ===== */
.rsvp-section {
    background: var(--color-bg);
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(139, 75, 98, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio & Checkbox Groups */
.radio-group,
.radio-group-vertical,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-alt);
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.checkbox-custom {
    border-radius: var(--radius-sm);
}

.radio-label input:checked~.radio-custom,
.checkbox-label input:checked~.checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.radio-custom::after,
.checkbox-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.checkbox-custom::after {
    width: 6px;
    height: 10px;
    background: transparent;
    border: 2px solid var(--color-white);
    border-top: none;
    border-left: none;
    border-radius: 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
}

.radio-label input:checked~.radio-custom::after,
.checkbox-label input:checked~.checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label input:checked~.checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.radio-label input:checked~span:last-child,
.checkbox-label input:checked~span:last-child {
    color: var(--color-primary);
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    margin-top: var(--spacing-md);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* RSVP Success */
.rsvp-success {
    text-align: center;
    padding: var(--spacing-xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    animation: success-pop 0.5s ease;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.rsvp-success h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.rsvp-success p {
    color: var(--color-text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.footer-content {
    margin-bottom: var(--spacing-md);
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
}

.footer-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.footer-message {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-decoration {
    opacity: 0.3;
}

.footer-wave {
    width: 100px;
    height: 20px;
    margin: 0 auto;
    color: var(--color-white);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: var(--spacing-xs);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .hero-date {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .venue-card {
        padding: var(--spacing-md);
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .envelope {
        width: 240px;
        height: 155px;
    }

    .wax-seal {
        width: 60px;
        height: 60px;
    }

    .seal-initials {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .bank-number {
        font-size: 1.1rem;
    }
}

/* ===== Parallax Sections ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(180deg,
            rgba(139, 75, 98, 0.03) 0%,
            rgba(212, 165, 116, 0.05) 50%,
            rgba(139, 75, 98, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.parallax-bg-alt {
    background: linear-gradient(180deg,
            rgba(212, 165, 116, 0.05) 0%,
            rgba(139, 75, 98, 0.03) 50%,
            rgba(212, 165, 116, 0.05) 100%);
}

.parallax-section .container {
    position: relative;
    z-index: 1;
}

/* ===== Floral Decorations ===== */
.floral-decoration {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.floral-decoration::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Top Left Floral */
.floral-top-left {
    top: -20px;
    left: -20px;
}

.floral-top-left::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%238B4B62' stroke-width='1' opacity='0.6'%3E%3Cpath d='M10 100 Q30 60 70 50 Q50 80 60 120 Q80 90 120 80 Q90 100 100 140 Q120 110 160 100'/%3E%3Cpath d='M20 80 Q40 50 80 40' stroke-width='0.5'/%3E%3Cpath d='M40 120 Q60 90 100 80' stroke-width='0.5'/%3E%3Ccircle cx='70' cy='50' r='8' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='120' cy='80' r='6' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='100' cy='140' r='5' fill='%238B4B62' opacity='0.3'/%3E%3Cpath d='M60 70 Q70 60 80 70 Q90 60 100 70' stroke='%23D4A574' stroke-width='0.8'/%3E%3Cpath d='M90 100 Q100 90 110 100 Q120 90 130 100' stroke='%23D4A574' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Top Right Floral */
.floral-top-right {
    top: -20px;
    right: -20px;
}

.floral-top-right::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%238B4B62' stroke-width='1' opacity='0.6'%3E%3Cpath d='M190 100 Q170 60 130 50 Q150 80 140 120 Q120 90 80 80 Q110 100 100 140 Q80 110 40 100'/%3E%3Cpath d='M180 80 Q160 50 120 40' stroke-width='0.5'/%3E%3Cpath d='M160 120 Q140 90 100 80' stroke-width='0.5'/%3E%3Ccircle cx='130' cy='50' r='8' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='80' cy='80' r='6' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='100' cy='140' r='5' fill='%238B4B62' opacity='0.3'/%3E%3Cpath d='M140 70 Q130 60 120 70 Q110 60 100 70' stroke='%23D4A574' stroke-width='0.8'/%3E%3Cpath d='M110 100 Q100 90 90 100 Q80 90 70 100' stroke='%23D4A574' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Bottom Left Floral */
.floral-bottom-left {
    bottom: -20px;
    left: -20px;
}

.floral-bottom-left::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%238B4B62' stroke-width='1' opacity='0.6'%3E%3Cpath d='M10 100 Q30 140 70 150 Q50 120 60 80 Q80 110 120 120 Q90 100 100 60 Q120 90 160 100'/%3E%3Cpath d='M20 120 Q40 150 80 160' stroke-width='0.5'/%3E%3Cpath d='M40 80 Q60 110 100 120' stroke-width='0.5'/%3E%3Ccircle cx='70' cy='150' r='8' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='120' cy='120' r='6' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='100' cy='60' r='5' fill='%238B4B62' opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Bottom Right Floral */
.floral-bottom-right {
    bottom: -20px;
    right: -20px;
}

.floral-bottom-right::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%238B4B62' stroke-width='1' opacity='0.6'%3E%3Cpath d='M190 100 Q170 140 130 150 Q150 120 140 80 Q120 110 80 120 Q110 100 100 60 Q80 90 40 100'/%3E%3Cpath d='M180 120 Q160 150 120 160' stroke-width='0.5'/%3E%3Cpath d='M160 80 Q140 110 100 120' stroke-width='0.5'/%3E%3Ccircle cx='130' cy='150' r='8' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='80' cy='120' r='6' fill='%23D4A574' opacity='0.4'/%3E%3Ccircle cx='100' cy='60' r='5' fill='%238B4B62' opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Hide decorations on small screens */
@media (max-width: 768px) {
    .floral-decoration {
        width: 120px;
        height: 120px;
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .floral-decoration {
        width: 80px;
        height: 80px;
        opacity: 0.3;
    }
}

/* ===== Dresscode Section ===== */
.dresscode-section {
    background: var(--color-bg);
    min-height: auto;
    padding: var(--spacing-xl) 0;
}

.dresscode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.dresscode-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.dresscode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.dresscode-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.dresscode-icon svg {
    width: 100%;
    height: 100%;
}

.dresscode-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.dresscode-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ===== Enhanced Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animations for children */
.fade-in:nth-child(1) {
    transition-delay: 0s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.5s;
}

/* Card hover effects */
.venue-card,
.countdown-item,
.gift-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.venue-card:hover,
.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.countdown-item:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Button shine effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Smooth scroll indicator pulse */
.scroll-indicator {
    animation: bounce 2s infinite, glow 3s infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Form focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(139, 75, 98, 0.15);
}

/* Success message animation */
.rsvp-success {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Weather Note ===== */
.weather-note {
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-secondary);
}

.weather-icon {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.weather-note p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .weather-note {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}


/* HERO VIDEO BACKGROUND STYLES */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.60);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Force text white for hero section */
.hero-section .hero-subtitle,
.hero-section .hero-title,
.hero-section .hero-title .ampersand,
.hero-section .hero-date,
.hero-section .date-day,
.hero-section .date-month,
.hero-section .date-year,
.hero-section .hero-location,
.hero-section .scroll-indicator {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section .date-month {
    color: #ffffff !important;
}
/* ===== Parking Info ===== */
.parking-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.parking-info svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.parking-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ===== Accommodation Section ===== */
.accommodation-section {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.accommodation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.accommodation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.accommodation-section .container {
    position: relative;
    z-index: 2;
}

.accommodation-section .section-title,
.accommodation-section .section-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.accommodation-card {
    position: relative;
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.accommodation-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.accommodation-card-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg);
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.accommodation-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.accommodation-card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

@media (max-width: 480px) {
    .accommodation-card {
        min-height: 250px;
    }
    
    .accommodation-card-content {
        padding: var(--spacing-md);
    }
    
    .accommodation-card-content h3 {
        font-size: 1.2rem;
    }
}


/* ===== Mobile Navigation Optimization ===== */
@media (max-width: 600px) {
    .nav-bar {
        padding: var(--spacing-xs) 0;
    }
    
    .nav-links {
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-links li {
        flex-shrink: 0;
    }
    
    .nav-links a {
        font-size: 0.65rem;
        padding: var(--spacing-xs);
        white-space: nowrap;
    }
}

/* ===== Performance Optimizations ===== */
.hero-video-bg,
.venue-video-bg,
.intro-video-bg {
    will-change: transform;
}

.section {
    contain: layout style;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-video-bg,
    .venue-video-bg {
        display: none;
    }
}

/* Lazy loading placeholder */
.lazy-bg {
    background-color: var(--color-bg-alt);
    background-size: cover;
    background-position: center;
}


/* ===== Sponsor Section ===== */
.sponsor-section {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    min-height: auto;
    padding: var(--spacing-xl) 0;
}

.sponsor-tagline {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.sponsor-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

.sponsor-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    text-align: center;
}

.sponsor-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.sponsor-logo svg {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

.sponsor-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.sponsor-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.sponsor-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.sponsor-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--color-text);
}

.sponsor-detail svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.sponsor-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text-light);
}

.btn-outline-dark:hover {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

@media (max-width: 480px) {
    .sponsor-card {
        padding: var(--spacing-md);
    }
    
    .sponsor-info h3 {
        font-size: 1.2rem;
    }
    
    .sponsor-detail {
        font-size: 0.75rem;
    }
    
    .sponsor-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .sponsor-actions .btn {
        width: 100%;
    }
}


/* ===== Photo Gallery Section ===== */
.gallery-section {
    background: var(--color-bg);
    min-height: auto;
    padding: var(--spacing-xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md) var(--spacing-sm);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Placeholder styles (remove when adding real photos) */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e0d5cc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--color-text-light);
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

.gallery-note {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .gallery-item-wide {
        grid-column: span 2;
    }
    
    .gallery-item::after {
        font-size: 0.7rem;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item-wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }
}


/* ===== IBAN Collapsible ===== */
.iban-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.iban-toggle:hover {
    background: var(--color-primary-dark);
}

.iban-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.iban-toggle[aria-expanded='true'] .iban-toggle-icon {
    transform: rotate(180deg);
}

.iban-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.iban-content.open {
    max-height: 360px;
    padding-top: var(--spacing-md);
}


/* ===== Button Outline Override ===== */
.btn-outline {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary) !important;
}

.btn-outline:hover {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    transform: translateY(-2px);
}

/* ===== Countdown Mobile Optimization ===== */
@media (max-width: 480px) {
    .countdown-timer {
        gap: var(--spacing-xs);
    }
    
    .countdown-item {
        min-width: 50px;
        padding: var(--spacing-sm);
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .countdown-item {
        min-width: 42px;
        padding: var(--spacing-xs);
    }
    
    .countdown-value {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.5rem;
    }
    
    .countdown-separator {
        font-size: 1rem;
        padding: 0 2px;
    }
}


/* ===== Accommodation Title Enhancement ===== */
.accommodation-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .accommodation-title {
        font-size: 1.4rem;
    }
}

/* ===== IBAN Toggle Mobile ===== */
@media (max-width: 480px) {
    .iban-toggle {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }
    
    .iban-toggle-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .iban-toggle {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }
}


/* ===== Music Icon Fix ===== */
.music-on {
    display: none;
}

.music-toggle.playing .music-off {
    display: none !important;
}

.music-toggle.playing .music-on {
    display: block !important;
}


/* ===== Sponsor Logo Image ===== */
.sponsor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* ===== Countdown Force Single Line ===== */
@media (max-width: 520px) {
    .countdown-timer {
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    
    .countdown-item {
        min-width: 55px !important;
        padding: 10px 5px !important;
    }
    
    .countdown-value {
        font-size: 1.4rem !important;
    }
    
    .countdown-label {
        font-size: 0.55rem !important;
    }
    
    .countdown-separator {
        font-size: 1rem !important;
        padding: 0 2px !important;
    }
}

@media (max-width: 400px) {
    .countdown-item {
        min-width: 48px !important;
        padding: 8px 4px !important;
    }
    
    .countdown-value {
        font-size: 1.2rem !important;
    }
    
    .countdown-label {
        font-size: 0.5rem !important;
    }
    
    .countdown-separator {
        font-size: 0.9rem !important;
        padding: 0 1px !important;
    }
}


/* ===== Polaroid Gallery ===== */
.polaroid-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.polaroid {
    background: #fff;
    padding: 12px 12px 40px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 200px;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.polaroid-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    color: var(--color-text);
    text-align: center;
    margin-top: 10px;
    padding: 0 5px;
}

.polaroid-wide {
    max-width: 320px;
}

.polaroid-wide .polaroid-image {
    width: 300px;
    height: 200px;
}

@media (max-width: 768px) {
    .polaroid {
        max-width: 150px;
        padding: 8px 8px 30px 8px;
    }
    
    .polaroid-image {
        width: 134px;
        height: 134px;
    }
    
    .polaroid-wide {
        max-width: 240px;
    }
    
    .polaroid-wide .polaroid-image {
        width: 224px;
        height: 150px;
    }
    
    .polaroid-caption {
        font-size: 0.85rem;
    }
}

/* ===== Spotify Playlist Section ===== */
.playlist-section {
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    min-height: auto;
    padding: var(--spacing-xl) 0;
}

.playlist-section .section-title,
.playlist-section .section-subtitle {
    color: #ffffff;
}

.playlist-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

.playlist-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.playlist-icon svg {
    width: 100%;
    height: 100%;
    color: #1DB954;
}

.playlist-info {
    flex: 1;
    color: #ffffff;
}

.playlist-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.playlist-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.btn-spotify {
    background: #1DB954;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-spotify:hover {
    background: #1ed760;
    transform: translateY(-2px);
}

.btn-spotify svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .playlist-card {
        flex-direction: column;
        text-align: center;
    }
    
    .playlist-icon {
        width: 60px;
        height: 60px;
    }
}

/* ===== Confetti Animation ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ===== RSVP Floating Button ===== */
.rsvp-float {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(155, 35, 53, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: rsvp-pulse 3s ease-in-out infinite;
}

.rsvp-float svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
}

.rsvp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(155, 35, 53, 0.5);
}

.rsvp-float-text {
    position: absolute;
    left: 60px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.rsvp-float-text::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent var(--color-primary) transparent transparent;
}

.rsvp-float:hover .rsvp-float-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes rsvp-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(155, 35, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(155, 35, 53, 0.7);
    }
}

@media (max-width: 768px) {
    .rsvp-float {
        bottom: var(--spacing-md);
        left: var(--spacing-md);
        width: 45px;
        height: 45px;
    }
    
    .rsvp-float svg {
        width: 20px;
        height: 20px;
    }
    
    .rsvp-float-text {
        left: 55px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ===== Hide RSVP button initially ===== */
.rsvp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.rsvp-float.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}


/* =====================================================
   DESKTOP — estructura vertical tipo móvil (columna centrada)
   La invitación está pensada en vertical. En pantallas anchas la
   mostramos como una columna de ancho móvil centrada, para que no
   se agrande, no se pixelen fotos/vídeos y no se corte el texto.
   (Petición Andrea/Pablo · 5-jun-2026)
   ===================================================== */
@media (min-width: 600px) {
    body {
        background:
            radial-gradient(ellipse 60% 70% at 50% 38%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 55%),
            radial-gradient(ellipse 120% 90% at 50% 50%, rgba(74, 40, 55, 0) 60%, rgba(74, 40, 55, 0.10) 100%),
            linear-gradient(180deg, #EFE6DA 0%, #E7DACA 100%);
        background-attachment: fixed;
    }
    /* La columna se presenta como una papelería enmarcada, no como una caja
       flotante dura: sombra suave + borde finísimo. */
    #main-content {
        max-width: 560px;
        margin: 0 auto;
        position: relative;
        background-color: var(--color-bg);
        border-left: 1px solid rgba(74, 40, 55, 0.06);
        border-right: 1px solid rgba(74, 40, 55, 0.06);
        box-shadow: 0 2px 60px rgba(74, 40, 55, 0.10);
    }
    /* La animación de inicio también en columna, con el mismo marco suave que
       el contenido para que la transición intro→web sea continua. */
    .intro-overlay {
        max-width: 560px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-left: 1px solid rgba(74, 40, 55, 0.06);
        border-right: 1px solid rgba(74, 40, 55, 0.06);
        box-shadow: 0 2px 60px rgba(74, 40, 55, 0.10);
    }
    /* Fuentes que escalaban con el ancho de PANTALLA: las fijamos para que
       quepan en la columna y no corten el texto. */
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .footer-names { font-size: 2.6rem; }
    /* Botones flotantes alineados a la columna, no a los bordes de la pantalla */
    .music-toggle { right: calc(50% - 280px + 16px); }
    .rsvp-float { left: calc(50% - 280px + 16px); }
}

/* Ilustración acuarela de la finca en la tarjeta "El Gran Día" (sustituye al icono) */
.venue-illustration {
    width: 100%;
    margin: 0 auto var(--spacing-sm);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(74, 40, 55, 0.18);
    line-height: 0;
}
.venue-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Vídeo vertical (Protocolo) incrustado en DressCode */
.dresscode-video {
    max-width: 300px;
    margin: var(--spacing-md) auto var(--spacing-lg);
}
.video-embed-vertical {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 vertical */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(74, 40, 55, 0.24);
    background: #000;
}
.video-embed-vertical iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
