:root {
    /* Color Palette - Refinada, Más Rica y Contrastante */
    --c-ivory: #FDFCF9;
    /* Un blanco roto más limpio y brillante */
    --c-champagne: #F5EEE6;
    /* Un champaña un poco más cálido */
    --c-soft-pink: #E6D2CA;
    /* Un toque de rosa perlado/dusty rose */
    --c-soft-gold: #D4AF37;
    /* Oro metálico premium (más rico que el anterior) */
    --c-soft-gold-dark: #AA8C2C;
    /* Oro profundo para un mejor hover y contraste */
    --c-warm-gray: #7A7571;
    /* Taupe gris oscuro, muy elegante para subtítulos */
    --c-dark-text: #2B2A29;
    /* Gris grafito/charcoal para texto, menos duro que negro puro */

    /* Fonts */
    --f-title: 'Great Vibes', cursive;
    --f-heading: 'Playfair Display', serif;
    --f-text: 'Lora', serif;

    /* Spacing & Sizes */
    --section-padding: 120px 0;
}

html {
    scroll-behavior: smooth;
    background-color: #e6dfd8; /* Fondo sutil para pantallas grandes */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--f-text);
    color: var(--c-dark-text);
    background-color: var(--c-ivory);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Constraint for Desktop */
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    min-height: 100vh;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-heading);
    font-weight: 400;
}

.text-center {
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    /* Better padding on sides */
}

.section-padding {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--c-champagne);
}

a {
    text-decoration: none;
    color: inherit;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-gold {
    color: var(--c-soft-gold-dark);
}

/* Typography Utilities */
.italic-serif {
    font-family: var(--f-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--c-soft-gold);
}

.sub-heading-italic {
    font-family: var(--f-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--c-warm-gray);
    display: block;
    margin-bottom: -15px;
}

.title-wrapper {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-ornament {
    margin-top: 15px;
    width: 90px;
}

/* Section Titles */
.section-title {
    font-family: var(--f-title);
    font-size: 5rem;
    color: var(--c-soft-gold);
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.02);
}

.section-subtitle {
    font-family: var(--f-text);
    font-size: 1.3rem;
    color: var(--c-warm-gray);
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 1px;
}

/* Buttons */
.btn-elegant {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--c-soft-gold);
    color: #fff;
    font-family: var(--f-heading);
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    /* richer shadow */
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: all 0.5s ease;
    transform: skewX(-15deg);
}

.btn-elegant:hover::before {
    left: 100%;
}

.btn-elegant:hover {
    background-color: var(--c-soft-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-elegant-outline {
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: var(--c-soft-gold-dark);
    border: 1px solid var(--c-soft-gold);
    font-family: var(--f-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.5s ease;
}

.btn-elegant-outline:hover {
    background-color: var(--c-soft-gold);
    color: #fff;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Animaciones Base (Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-slow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.appear,
.fade-in-up.appear,
.fade-in-left.appear,
.fade-in-slow.appear {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Intro Screen / Envelope Wrapper */
.envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--c-champagne);
    z-index: 9999;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    overflow: hidden;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope-screen.hide-intro {
    opacity: 0;
    visibility: hidden;
}

.envelope {
    position: relative;
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 4 / 3;
    background-color: #DFD5C2;
    /* Deep envelope inside color */
    transform-style: preserve-3d;
    box-shadow: 0 30px 80px rgba(43, 42, 41, 0.2);
}

/* Paper Inside */
.envelope-paper {
    position: absolute;
    bottom: -15%;
    /* hidden initially partially */
    left: 10%;
    width: 80%;
    height: 110%;
    /* Taller than screen so it slides up nicely */
    background-color: var(--c-ivory);
    border-radius: 4px;
    z-index: 2;
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
    /* Slower, elegant slide */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20%;
}

.envelope.open .envelope-paper {
    transform: translateY(-80%);
    /* Slide UP */
}

/* Internal paper content styling */
.paper-ornament {
    margin-bottom: 20px;
    width: clamp(60px, 15vw, 100px);
}

.paper-greeting {
    font-size: clamp(0.75rem, 2.5vw, 1.3rem);
    color: var(--c-warm-gray);
    letter-spacing: clamp(1px, 1.5vw, 3px);
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}

.paper-names {
    font-family: var(--f-title);
    font-size: clamp(2.8rem, 8vw, 5rem);
    color: var(--c-soft-gold);
    line-height: 1.1;
    text-align: center;
}

/* Front Flaps Layer */
.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 -5px 20px rgba(0, 0, 0, 0.1));
}

.flap-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F0E8DA;
    /* Slightly darker than champagne */
    clip-path: polygon(0 0, 50% 50%, 0 100%);
}

.flap-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #EBE1D0;
    clip-path: polygon(100% 0, 100% 100%, 50% 50%);
}

.flap-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-champagne);
    clip-path: polygon(0 100%, 50% 50%, 100% 100%);
}

/* Top Flap (The one that opens) */
.envelope-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5EFE6;
    clip-path: polygon(0 0, 100% 0, 50% 50%);
    z-index: 4;
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0s 0.75s;
}

.envelope.open .envelope-flap-top {
    transform: rotateX(180deg);
    z-index: 1;
    /* Drop behind paper once opened */
}

/* Wax Seal - interactive */
.wax-seal {
    position: absolute;
    top: 50%;
    /* center intersection point */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #CFA356, #AA8C2C);
    /* Gorgeous Gold Seal */
    border-radius: 50%;
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 4px 10px rgba(255, 255, 255, 0.4);
    z-index: 5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #CCA051;
}

.wax-seal::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.wax-seal span {
    font-family: var(--f-title);
    font-size: 2.2rem;
    color: #FDFCF9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    z-index: 2;
}

/* Random rough edges for wax using pseudo elements */
.wax-seal::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 48% 52% 47% 53% / 54% 49% 51% 46%;
    /* Organic blob shape */
    background: radial-gradient(circle at 40% 40%, #B89633, #8F7220);
    z-index: -1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.wax-seal:hover::before {
    border-radius: 53% 47% 52% 48% / 46% 51% 49% 54%;
}

.envelope.open .wax-seal {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.5);
}

.instruction-text {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-text);
    color: var(--c-warm-gray);
    font-style: italic;
    letter-spacing: 2.5px;
    font-size: 1.1rem;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s;
    animation: pulse 2s infinite;
    text-align: center;
    width: 100%;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.envelope.open~.instruction-text {
    opacity: 0;
}

/* Hero Section (Parallax) */
.hero {
    position: relative;
    height: 100vh;
    background: url('img/DSCF3350_websize.JPG.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    /* Parallax Magic */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 20, 15, 0.4), rgba(20, 15, 10, 0.7));
    /* Darker overlay for better contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--c-ivory);
    max-width: 900px;
    padding: 40px 20px;
}

.hero-subtitle {
    margin-bottom: 10px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle .italic-serif {
    color: var(--c-ivory);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--f-title);
    font-size: 6.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.1;
    color: var(--c-ivory);
    /* Ensuring high contrast over image */
}

.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    width: 60%;
}

.hero-separator .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-soft-gold), transparent);
}

.hero-separator svg {
    margin: 0 15px;
}

.hero-date {
    font-family: var(--f-heading);
    font-size: 1.6rem;
    letter-spacing: 4px;
    margin-bottom: 45px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero-location {
    font-family: var(--f-text);
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: none;
    font-style: italic;
    color: var(--c-soft-gold);
}

.reveal-text,
.reveal-text-delay,
.reveal-text-delay-2,
.reveal-btn {
    opacity: 0;
    transform: translateY(20px);
}

.start-anim .reveal-text {
    animation: fadeInSoft 1.5s forwards 0.2s;
}

.start-anim .reveal-text-delay {
    animation: fadeInSoft 1.5s forwards 0.5s;
}

.start-anim .reveal-text-delay-2 {
    animation: fadeInSoft 1.5s forwards 0.8s;
}

.start-anim .reveal-btn {
    animation: fadeInSoft 1.5s forwards 1.1s;
}

/* Elegant Separator */
.elegant-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.elegant-separator .line-fade {
    border: none;
    height: 1px;
    width: 35%;
    background: linear-gradient(to right, transparent, var(--c-soft-gold));
}

.elegant-separator .line-fade.right {
    background: linear-gradient(to left, transparent, var(--c-soft-gold));
}

.elegant-separator .sep-icon {
    margin: 0 20px;
    width: 28px;
    height: 28px;
}

/* Countdown */
.lux-icon {
    font-size: 2.8rem;
    color: var(--c-soft-gold);
    margin-bottom: 15px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.count-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 4px;
    min-width: 140px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* More visible gold border */
    position: relative;
    transition: transform 0.3s ease;
}

.count-box:hover {
    transform: translateY(-5px);
}

.count-box::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.count-box span {
    font-family: var(--f-heading);
    font-weight: 500;
    font-size: 3.5rem;
    color: var(--c-soft-gold);
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.count-box p {
    font-size: 0.9rem;
    color: var(--c-dark-text);
    /* Higher contrast */
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
}

/* Nuestra Historia Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1.5px;
    /* Slightly thicker */
    background: linear-gradient(to bottom, transparent, var(--c-soft-gold), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.75px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 70px 90px;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--c-soft-gold);
    top: 50px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 5px var(--c-champagne), 0 0 0 7px var(--c-soft-gold);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.right::after {
    left: -10px;
}

.image-hover-lux {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Sophisticated shadow */
    position: relative;
}

.image-hover-lux::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
    /* Inner rim */
    pointer-events: none;
}

.image-hover-lux img {
    width: 100%;
    height: 420px;
    /* Slightly taller */
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.5s;
    display: block;
    filter: sepia(0.15) contrast(1.05);
    /* Lighter sepia mask */
}

.image-hover-lux:hover img {
    transform: scale(1.06);
    filter: sepia(0) contrast(1.1);
}

.timeline-title {
    font-family: var(--f-heading);
    font-size: 2.2rem;
    color: var(--c-dark-text);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content p {
    color: var(--c-warm-gray);
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Event Details (Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Richer border */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--c-soft-gold);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    border-radius: 4px;
    z-index: -1;
}

.card.hover-lux:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card.hover-lux:hover::before {
    opacity: 0.4;
    transform: scale(1);
}

.card-icon-wrapper {
    width: 85px;
    height: 85px;
    background-color: var(--c-ivory);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    border: 1px solid var(--c-champagne);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--c-soft-gold);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--c-dark-text);
}

.venue-name {
    font-family: var(--f-heading);
    font-size: 1.15rem;
    color: var(--c-dark-text);
    margin-bottom: 5px;
}

.venue-loc {
    color: var(--c-warm-gray);
    font-size: 1rem;
}

.gold-line-small {
    width: 50px;
    height: 1.5px;
    background-color: var(--c-soft-gold);
    margin: 25px auto;
    opacity: 0.6;
}

.card-time {
    font-family: var(--f-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-soft-gold-dark);
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
}

.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-overlay-lux {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(212, 175, 55, 0.15);
    /* Gold rim shadow */
}

/* Cronograma */
.schedule-timeline {
    max-width: 650px;
    margin: 80px auto 0;
    position: relative;
    padding-bottom: 20px;
}

.schedule-timeline::after {
    content: '';
    position: absolute;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--c-soft-gold), transparent);
    top: 0;
    bottom: 0;
    left: 140px;
}

.s-item {
    position: relative;
    padding-left: 210px;
    margin-bottom: 60px;
    min-height: 50px;
}

.s-time {
    position: absolute;
    left: 0;
    top: 3px;
    width: 110px;
    text-align: right;
    font-family: var(--f-heading);
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--c-soft-gold);
    font-size: 1.25rem;
}

.s-dot-lux {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--c-ivory);
    border: 1.5px solid var(--c-soft-gold);
    border-radius: 50%;
    left: 126.5px;
    /* (140 - 14) */
    top: 3px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
}

.s-item:hover .s-dot-lux {
    transform: scale(1.15) rotate(45deg);
}

.s-dot-inner {
    width: 10px;
    height: 10px;
    background-color: var(--c-soft-gold);
    border-radius: 2px;
}

/* Diamond shape rotation */

.s-desc h4 {
    font-size: 1.6rem;
    color: var(--c-dark-text);
    margin-bottom: 5px;
    font-style: italic;
}

.s-detail {
    font-size: 1.05rem;
    color: var(--c-warm-gray);
    letter-spacing: 0.5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.g-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4/5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.g-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.g-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.5s;
    filter: sepia(0.12) brightness(0.95);
}

.g-item:hover .g-img-wrapper img {
    transform: scale(1.08);
    filter: sepia(0) brightness(1);
}

.g-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(40, 30, 20, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 2px;
}

.g-overlay-content {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.g-item:hover .g-overlay {
    opacity: 1;
}

.g-item:hover .g-overlay-content {
    transform: translateY(0);
}

.lux-plus {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 300;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 12, 10, 0.96);
    /* Darker backdrop */
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 2px;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.15);
    /* Soft gold glow */
    animation: zoom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: var(--c-soft-gold);
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* RSVP Section */
.rsvp-sub {
    margin-bottom: 50px;
    color: var(--c-warm-gray);
    font-size: 1.15rem;
    line-height: 1.8;
}

.rsvp-form {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 70px 60px;
    border-radius: 4px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.form-group {
    margin-bottom: 35px;
    position: relative;
}

.form-input-lux input,
.form-input-lux select,
.form-input-lux textarea {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--f-text);
    font-size: 1.05rem;
    outline: none;
    color: var(--c-dark-text);
    transition: border-color 0.3s;
    border-radius: 0;
    /* Reset for iOS */
    -webkit-appearance: none;
    /* Reset for iOS */
    appearance: none;
}

.form-input-lux select {
    -webkit-appearance: menulist;
    /* retain arrow */
    appearance: menulist;
}

.form-input-lux textarea {
    resize: vertical;
    min-height: 100px;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--c-soft-gold);
    transition: 0.4s ease;
}

.form-input-lux input:focus~.focus-border,
.form-input-lux select:focus~.focus-border,
.form-input-lux textarea:focus~.focus-border {
    width: 100%;
    left: 0;
}

.form-input-lux input::placeholder,
.form-input-lux textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Regalos */
.lux-icon-large {
    margin-bottom: 30px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.gift-icon {
    font-size: 4.5rem;
    color: var(--c-soft-gold);
}

.gift-text {
    font-size: 1.15rem;
    color: var(--c-warm-gray);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.9;
}

/* Footer Section (Parallax) */
.footer-section {
    background: url('img/hero_bg.webp') center/cover no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    color: #fff;
    margin-top: 60px;
}

.footer-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 15, 12, 0.85), rgba(40, 30, 20, 0.4));
}

.padding-large {
    padding: 160px 20px;
    position: relative;
    z-index: 2;
}

.footer-message {
    font-family: var(--f-title);
    font-size: 4.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.footer-separator {
    margin: 30px auto;
}

.footer-separator svg {
    opacity: 0.8;
    width: 24px;
    height: 24px;
}

.footer-names {
    font-family: var(--f-heading);
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--c-ivory);
}

.footer-date {
    font-family: var(--f-text);
    font-size: 1.2rem;
    color: var(--c-soft-gold);
    letter-spacing: 2.5px;
    font-style: italic;
}

/* ========================================================= */
/* EXTENDED MOBILE RESPONSIVE QUERIES FOR MAXIMUM UX */
/* ========================================================= */

@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 4rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .timeline::after {
        left: 40px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 60px 100px;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 30px !important;
    }
}

@media screen and (max-width: 768px) {

    /* Prevent parallax jank on touch/smaller screens */
    .hero,
    .footer-section {
        background-attachment: scroll;
    }

    .section-padding {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .intro-names {
        font-size: 4.5rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-date {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .hero-subtitle .italic-serif {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .countdown-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid */
        gap: 20px;
    }

    .count-box {
        min-width: unset;
        padding: 25px 15px;
    }

    .count-box span {
        font-size: 3rem;
    }

    .count-box p {
        font-size: 0.8rem;
    }

    .schedule-timeline::after {
        left: 35px;
    }

    .s-item {
        padding-left: 90px;
        margin-bottom: 50px;
    }

    .s-time {
        top: -35px;
        left: 90px;
        text-align: left;
        width: auto;
    }

    .s-dot-lux {
        left: 21.5px;
    }

    /* (35 - 14) */

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rsvp-form {
        padding: 40px 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-message {
        font-size: 3.2rem;
    }

    .footer-names {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .intro-names {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .timeline-item {
        padding: 0 0 60px 70px;
    }

    .timeline-item::after {
        left: 30px !important;
        width: 16px;
        height: 16px;
        top: 52px;
    }

    .count-box {
        padding: 20px 10px;
    }

    .count-box span {
        font-size: 2.5rem;
    }

    .s-item {
        padding-left: 70px;
    }

    .s-time {
        left: 70px;
    }

    .schedule-timeline::after {
        left: 25px;
    }

    .s-dot-lux {
        left: 11.5px;
        width: 24px;
        height: 24px;
    }

    .section-title {
        font-size: 3rem;
    }

    .sub-heading-italic {
        font-size: 1.2rem;
    }

    .btn-elegant {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .footer-message {
        font-size: 2.5rem;
    }

    .padding-large {
        padding: 100px 20px;
    }
}