:root {
    --primary: #b79a6b;
    --secondary: #2f3e46;
    --accent: #d6c29c;
    --bg-light: #f9f7f2;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-heading: "Playfair Display", serif;
    --font-body: "Montserrat", sans-serif;
    --font-script: "Alex Brush", "Great Vibes", cursive;
    --section-padding: 80px 0;
    --border-radius: 12px;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 30px;
    position: relative;
}

.rsvp-alert {
    background: #f8f5f0;
    border: 1px solid #e0d6c8;
    color: #6b5b4b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px); /* Pequeño levantamiento */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirmar {
    background-color: #f0f0f0;
    color: #333;
    margin-bottom: 15px; /* Margen inferior para el siguiente botón */
}

.btn-confirmar:hover {
    background-color: #e0e0e0;
}

.btn-declinar {
    background-color: #f0f0f0;
    color: #333;
}

.btn-declinar:hover {
    background-color: #e0e0e0;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

.w-100 {
    width: 100%;
}

.response-message {
    text-align: center;
    padding: 20px 0;
    display: none; /* Oculto por defecto */
}

.response-message.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon {
    font-size: 3rem;
    color: #333; /* Color oscuro y sofisticado */
    margin-bottom: 20px;
}

.success-text p {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
    line-height: 1.5;
}

.music-player {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.music-player p {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary);
    display: none;
}

#music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#music-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(183, 154, 107, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(183, 154, 107, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(183, 154, 107, 0);
    }
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/f113221376.jpeg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-intro {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-names {
    font-family: var(--font-script);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-names .amp {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    display: block;
    margin: -10px 0;
}

.hero-date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-date-box .line {
    width: 40px;
    height: 1px;
    background: var(--white);
}

.date-highlight-section {
    padding-top: 10px;
    padding-bottom: 80px;
    background: var(--white);
    text-align: center;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    margin: 40px 0;
}

.date-side {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--secondary);
    width: fit-content;
    padding: 10px 0;
}

.date-side::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 8px auto 0;
}

.date-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.day-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary);
    margin: 0;
}

.month-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 5px;
    color: var(--secondary);
    text-transform: uppercase;
}

.calendar-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.agendar-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.cal-link {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8rem;
    padding: 10px 15px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: white;
    min-width: 100px;
    transition: var(--transition);
}

.cal-link:hover {
    background: var(--accent);
    color: white;
}

.countdown-section {
    padding-top: 40px;
    padding-bottom: 20px;
    background: var(--bg-light);
    text-align: center;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.timer-item span {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
}

.timer-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: var(--text-muted);
}

.events-section {
    padding: var(--section-padding);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.event-card {
    background: var(--white);
    padding: 50px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.event-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.event-details {
    margin-bottom: 20px;
}

.event-details .time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.event-details .place {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 10px 0;
}

.event-details .address {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 7. ITINERARIO (TIMELINE) - Restaurado Diseño Alternado */
.itinerary-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 40px;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 5px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-time {
    font-family: var(--font-body);
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.timeline-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
}

.dress-code-section {
    padding: var(--section-padding);
    background: var(--white);
    text-align: center;
}

.qr-label {
    margin-bottom: 20px;
}

.dress-code-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    border: 3px double var(--accent); /* Línea doble elegante en color Champaña */
    box-shadow: var(--shadow);
}

.gender-block {
    margin: 20px 0;
}

.elegant-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    color: var(--accent);
}

.elegant-divider span {
    height: 1px;
    background: var(--accent);
    flex-grow: 1;
    opacity: 0.5;
}

.style-name {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.dress-description {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

.main-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.color-list {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.color-list li {
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.gallery-section {
    padding: 50px 0;
    background: var(--white);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacio entre fotos */
    padding: 0 15px;
}

/* Fotos horizontales: ocupan el 100% */
.photo-wide {
    width: 100%;
    height: 250px; /* Ajusta la altura a tu gusto */
    overflow: hidden;
    border-radius: 4px;
}

/* Contenedor para las dos fotos verticales */
.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide en dos columnas iguales */
    gap: 10px;
}

.photo-vertical {
    width: 100%;
    height: 300px; /* Altura mayor para el efecto vertical */
    overflow: hidden;
    border-radius: 4px;
}

/* Asegura que las imágenes llenen el espacio sin deformarse */
.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Efecto sutil al pasar el dedo/mouse */
.gallery-container img:active {
    transform: scale(0.98);
}

.color-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.gifts-section {
    padding: var(--section-padding);
    background: var(--bg-light);
    text-align: center;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.label {
    color: #666;
    font-size: 0.85rem;
}

.number {
    font-weight: 600;
    color: #333;
}

/* El botón de copiar pequeño y elegante */
.copy-btn {
    background: none;
    border: none;
    color: #e16939; /* Tu color terracota */
    cursor: pointer;
    padding: 5px;
    font-size: 0.85rem; /* Tamaño reducido */
    transition:
        transform 0.2s ease,
        color 0.2s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: #c4562c;
    transform: scale(1.1);
}

.copy-btn i {
    pointer-events: none;
}

/* Alineación vertical para el cuadro derecho */
.gift-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    min-height: 220px; /* Asegura una altura mínima igual en ambos */
    display: flex;
    flex-direction: column;
}

.gift-item.v-center {
    justify-content: center; /* Centrado vertical mágico */
}

.icon-main {
    font-size: 1.5rem;
    color: #b89a6b; /* Color dorado/beige de tu logo */
    margin-bottom: 10px;
}

.owner {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thank-you-msg {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary);
}

.adults-only-section {
    padding: 60px 0;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.message-box {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

.qr-section {
    padding: var(--section-padding);
    background: var(--white);
    text-align: center;
}

.qr-container {
    margin: 30px auto;
    width: 200px;
    height: 200px;
    padding: 10px;
    border: 2px solid var(--accent);
}

.rsvp-section {
    padding-top: 20px;
    padding-bottom: 40px;
    background: var(--bg-light);
}

.rsvp-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-family: var(--font-body);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    color: #888;
}

.pases-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.footer {
    padding: 80px 0 40px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.footer-names {
    font-family: var(--font-script);
    display: flex;
    flex-direction: column; /* Apila en 3 líneas para móvil */
    align-items: center;
    gap: 5px;
    font-size: 3rem; /* Ajuste de tamaño para móvil */
    margin-bottom: 20px;
}

.footer-names .amp {
    font-size: 1.8rem; /* El ampersand un poco más pequeño */
    font-family: var(--font-script);
}

.footer-date {
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.7rem;
    opacity: 0.5;
}

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

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

.hidden {
    display: none;
}

/* Estado RSVP */
.rsvp-status {
    text-align: center;
    margin-bottom: 25px;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #f3f3f3;
    color: #666;
}

/* Inputs más elegantes */
.form-group input,
.form-group textarea {
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.form-group textarea:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(183, 154, 107, 0.1);
    outline: none;
}

/* Botones mejorados */
.btn-confirmar {
    background: var(--primary);
    color: white;
    margin-bottom: 12px;
}

.btn-confirmar:hover {
    background: var(--secondary);
}

.btn-declinar {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-declinar:hover {
    background: #f5f5f5;
}

/* Success */
.success-box {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.success-sub {
    font-size: 0.9rem;
    color: #777;
}

/* =========================================
   SOBRE ANIMADO (RESPONSIVE + PRO)
   ========================================= */
.envelope-overlay {
    position: fixed;
    inset: 0;
    background: #fdfaf7;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition:
        opacity 0.8s ease,
        visibility 0.8s;
}

/* Contenedor principal - AHORA CREMA MARFIL */
.envelope-wrapper {
    position: relative;
    width: min(90vw, 360px);
    aspect-ratio: 3 / 2;
    background-color: #fffdf5;
    border-radius: 8px; /* Bordes más finos */
    /* Sombra más suave y difuminada */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    overflow: hidden;
    /* Borde dorado sutil en todo el sobre */
    border: 1px solid #e9dcc9;
}

/* Solapa superior */
.envelope-flap {
    position: absolute;
    top: 0;
    width: 100%;
    height: 50%;
    /* Un tono crema ligeramente diferente para contraste */
    background: #fef8dc;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 0.7s ease;
    z-index: 3;
    /* Borde inferior de la solapa en oro suave */
    border-bottom: 2px solid #d4af37;
}

/* Laterales (efecto sobre real) */
.envelope-wrapper::before,
.envelope-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    /* Sombra interna para dar profundidad al pliegue */
    background: #fdf8e6;
    z-index: 2;
}

.envelope-wrapper::before {
    left: 0;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.envelope-wrapper::after {
    right: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Sello de cera (Sin cambios de color, solo ajuste de posición) */
.wax-seal {
    position: absolute;
    top: 50%; /* Centrado exacto verticalmente */
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(60px, 18vw, 80px); /* Un poco más grande para lucirse */
    height: clamp(60px, 18vw, 80px);
    /* Mantener el radial gradient de lujo */
    background: radial-gradient(circle, #b19451 0%, #8c733a 100%);
    border-radius: 50%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra más realista para cera */
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease;
}

.wax-seal span {
    font-family: var(--font-heading);
    /* Color texto sello: Oro pálido */
    color: #f3e5ab;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: bold;
    letter-spacing: 2px;
    /* Sombra de texto suave */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Texto inferior (Toca el sello...) */
.envelope-text {
    position: absolute;
    bottom: -45px; /* Un poco más abajo */
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    /* Color gris cálido sutil */
    color: #88837a;
    font-weight: 300;
}

/* Animación apertura (Mantenida) */
.envelope-wrapper.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-wrapper.open .wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
}

/* Fade final */
.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("../img/f113221376-movil.jpeg") no-repeat center center;
        background-size: cover;
        z-index: -1;
    }

    .color-list {
        gap: 1px;
    }

    .color-list li {
        gap: 5px;
    }

    .date-highlight-section {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .date-center {
    }

    .date-center::after {
        content: "";
        display: block;
        width: 180px;
        height: 1px;
        background: var(--accent);
        margin: 8px auto 0;
    }

    .date-center::before {
        content: "";
        display: block;
        width: 180px;
        height: 1px;
        background: var(--accent);
        margin: 8px auto 0;
    }

    .day-number {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .dress-code-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .itinerary-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .events-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .gifts-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .gifts-grid {
        display: grid;
        gap: 20px;
    }

    .gift-item {
        min-height: auto;
        padding: 20px;
    }

    .qr-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .countdown-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .rsvp-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .month-name {
        padding-bottom: 20px;
    }

    .date-display {
        flex-direction: column;
        gap: 0px;
        margin-top: 0px;
    }

    .date-side {
    }

    .date-side::after {
        display: none;
    }

    .side-left {
        font-size: 1.8rem;
    }

    .side-right {
        font-size: 2.4rem;
    }

    .nav-links {
        display: none;
    }

    .timer-item span {
        font-size: 2rem;
    }

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

    .rsvp-card {
        padding: 30px 20px;
    }
}

@media (min-width: 768px) {
    .music-player p {
        display: block;
    }

    .date-display {
        flex-direction: row;
        gap: 40px;
    }

    .date-side {
        padding: 0;
        margin: 0;
    }

    .date-side::after {
        display: none;
    }

    .date-side.side-left {
        border-right: 1px solid var(--accent);
        padding-right: 40px;
    }

    .date-side.side-right {
        border-left: 1px solid var(--accent);
        padding-left: 40px;
    }

    .day-number {
        font-size: 6rem;
    }

    .footer-names {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        font-size: 4rem;
    }

    .footer-names .amp {
        font-size: 2.5rem;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Contenedor de partículas */
.confetti-particle {
    position: fixed; /* Para que use toda la pantalla */
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    pointer-events: none; /* No bloquea clics */
    z-index: 11000; /* Por encima de todo */
    border-radius: 2px;
}

@keyframes bang {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }

    100% {
        /* El destino final se inyecta por JS, aquí solo aseguramos la desaparición */
        opacity: 0;
    }
}

.Slide-Image1 {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.Slide-Image2 {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.SlideImage1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/f116858880.jpeg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.SlideImage2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/f114323200.jpeg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.SlideImage3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/f105535488.jpg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

@media (max-width: 768px) {
    .SlideImage1 {
        background: url("../img/f114323200.jpeg") no-repeat center center;
    }
    .SlideImage2 {
        background: url("../img/f114323200.jpeg") no-repeat center center;
    }
    .SlideImage3 {
        background: url("../img/f105535488-movil.jpg") no-repeat center center;
    }
}

/* --- MODAL DE GALERÍA --- */
.gallery-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 20000; /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modal-caption {
    margin-top: 15px;
    color: #ccc;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Cursor para indicar que las fotos son clickeables */
.gallery-container img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-container img:hover {
    opacity: 0.8;
}