/* ================================
   RESET Y CONFIGURACIÓN GENERAL
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #d4af37;
    --color-secondary: #8b7355;
    --color-dark: #2c2c2c;
    --color-light: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-script: 'Great Vibes', cursive;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-base: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--color-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   CONTROL DE MÚSICA
   ================================ */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-btn:hover {
    transform: scale(1.1);
    background: var(--color-primary);
    color: white;
}

/* ================================
   EFECTO PARALLAX
   ================================ */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* ================================
   SECCIÓN HERO (PORTADA)
   ================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    background-attachment: scroll;
    background-position: center -280px;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-light);
    padding: 20px;
    padding-top: 60px;
}

.title-script {
    font-family: var(--font-script);
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.name {
    font-family: var(--font-elegant);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ampersand {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--color-primary);
}

.wedding-date {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    margin: 20px 0 40px;
    letter-spacing: 2px;
}

/* ================================
   NUEVOS ESTILOS MODELO
   ================================ */

/* Título "¡Nos Casamos!" con efecto curvo */
.title-wedding {
    font-family: var(--font-base);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* SVG con texto curvo */
.curved-text {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.curved-wedding-text {
    font-family: var(--font-base);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 6px;
    fill: #ffffff;
    text-transform: uppercase;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Contenedor de nombres en vertical */
.names-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

/* Nombres con fuente script/cursiva */
.name-script {
    font-family: 'Allura', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

/* Ampersand entre los nombres */
.ampersand-script {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

/* ================================
   CONTADOR REGRESIVO
   ================================ */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-elegant);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ================================
   INDICADOR DE SCROLL
   ================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ================================
   TARJETAS DE EVENTOS (NUEVO DISEÑO)
   ================================ */
.events-cards-section {
    padding: 80px 20px;
    background: #f9f9f9;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 3fr auto 1fr;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.event-card {
    background: transparent;
    padding: 30px 20px;
    text-align: center;
    border: none;
    box-shadow: none;
}

.event-card:nth-child(1) {
    grid-column: 2;
}

.event-card:nth-child(2) {
    grid-column: 4;
}

.card-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin: 20px 0 15px;
    color: var(--color-dark);
    font-weight: 600;
}

.card-date {
    font-size: 1rem;
    color: #666;
    margin: 10px 0;
}

.card-time {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 600;
    margin: 5px 0;
}

.card-venue {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    color: var(--color-dark);
    margin: 20px 0 10px;
    font-weight: 500;
}

.card-address {
    font-size: 0.95rem;
    color: #777;
    margin: 10px 0 30px;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.card-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ================================
   SECCIONES DE EVENTOS (ANTIGUAS)
   ================================ */
.event-section {
    padding: 100px 20px;
    text-align: center;
}

.event-section.ceremony {
    background: #f9f9f9;
}

.event-section.party {
    color: var(--color-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.section-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.section-icon.light {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.section-title {
    font-family: var(--font-elegant);
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--color-dark);
}

.section-title.light {
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-details {
    max-width: 600px;
    margin: 0 auto;
}

.event-details.light {
    color: var(--color-light);
}

.venue-name {
    font-family: var(--font-elegant);
    font-size: 2rem;
    margin-bottom: 15px;
}

.address {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.time {
    font-size: 1.2rem;
    margin: 20px 0;
}

.time .icon {
    margin-right: 10px;
}

/* ================================
   BOTONES
   ================================ */
.btn {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-gift {
    background: var(--color-light);
    color: var(--color-dark);
}

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

.btn-submit {
    background: var(--color-primary);
    color: var(--color-light);
    width: 100%;
    font-size: 1.1rem;
    margin-top: 20px;
}

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

/* ================================
   GALERÍA
   ================================ */
.gallery-section {
    padding: 50px 20px;
    background: var(--color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ================================
   GALERÍA MODERNA SIMPLE
   ================================ */
.gallery-title {
    text-align: center;
    font-family: var(--font-base);
    font-size: 2.5rem;
    letter-spacing: 8px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Galería */
.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item-modern {
    position: relative;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ================================
   ANIMACIONES DESKTOP (4 columnas)
   ================================ */

/* Laterales izquierda (columna 1): img1, img5 */
.gallery-item-1,
.gallery-item-5 {
    animation: slideInFromLeft 1.2s ease-out forwards;
}

/* Centro (columnas 2-3): img2, img3, img6, img7 */
.gallery-item-2,
.gallery-item-3,
.gallery-item-6,
.gallery-item-7 {
    animation: fadeInCenter 1.2s ease-out forwards;
}

/* Laterales derecha (columna 4): img4, img8 */
.gallery-item-4,
.gallery-item-8 {
    animation: slideInFromRight 1.2s ease-out forwards;
}

/* Delays desktop */
.gallery-item-1 { animation-delay: 0.2s; }
.gallery-item-2 { animation-delay: 0.4s; }
.gallery-item-3 { animation-delay: 0.6s; }
.gallery-item-4 { animation-delay: 0.2s; }
.gallery-item-5 { animation-delay: 0.8s; }
.gallery-item-6 { animation-delay: 1.0s; }
.gallery-item-7 { animation-delay: 1.2s; }
.gallery-item-8 { animation-delay: 0.8s; }

/* Keyframes Desktop */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInCenter {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item-modern:hover {
    transform: scale(1.08);
    z-index: 10;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.gallery-overlay {
    display: none;
}

/* ================================
   SECCIÓN CÓDIGO DE VESTIMENTA
   ================================ */
.dress-code-section {
    padding: 60px 20px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    transition: background-position 0.8s ease-out;
    will-change: background-position;
}

.dress-code-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 20%,
        rgba(212, 175, 55, 0.8) 50%,
        rgba(212, 175, 55, 0.3) 80%,
        transparent 100%);
    z-index: 10;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.dress-code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(44, 44, 44, 0.65) 50%,
        rgba(0, 0, 0, 0.75) 100%);
}

.dress-code-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.dress-code-title {
    font-family: var(--font-base);
    font-size: 2.5rem;
    letter-spacing: 10px;
    margin-bottom: 35px;
    color: var(--color-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.dress-code-image-frame {
    position: relative;
    max-width: 450px;
    margin: 0 auto 25px;
    padding: 15px;
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        #f4d03f 50%,
        var(--color-primary) 100%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-image-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.4);
}

.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 8px;
    pointer-events: none;
}

.dress-code-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    filter: brightness(1.05) contrast(1.1);
}

.dress-code-text {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    color: var(--color-light);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 15px;
}

/* ================================
   SECCIÓN REGALOS MODERNA
   ================================ */
.gifts-section {
    padding: 50px 20px;
    background: #ffffff;
    min-height: auto;
    display: flex;
    align-items: center;
}

.gifts-content-modern {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.gift-icon {
    color: var(--color-primary);
    margin: 0 auto 20px;
    display: block;
    opacity: 0.9;
}

.gifts-title {
    font-family: var(--font-base);
    font-size: 2rem;
    letter-spacing: 6px;
    margin-bottom: 15px;
    color: var(--color-dark);
    font-weight: 400;
}

.gifts-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.btn-bank-data {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 15px 45px;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.btn-bank-data:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ================================
   MODAL DE DATOS BANCARIOS
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.4s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-title {
    font-family: var(--font-elegant);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-primary);
    text-align: center;
}

.modal-bank-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.modal-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
}

.modal-value {
    color: #555;
    font-size: 1rem;
    text-align: right;
}


/* ================================
   SECCIÓN RSVP MODERNA
   ================================ */
.rsvp-section {
    padding: 150px 20px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.rsvp-section .container {
    position: relative;
    z-index: 2;
}

.rsvp-title {
    font-family: var(--font-base);
    font-size: 2.2rem;
    letter-spacing: 8px;
    margin-bottom: 25px;
    color: var(--color-light);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.rsvp-subtitle {
    font-size: 1.1rem;
    color: var(--color-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-rsvp {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark);
    padding: 18px 50px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-rsvp:hover {
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

/* Modal del formulario RSVP */
.modal-content-large {
    max-width: 700px;
    max-height: none;
    margin: 30px auto 50px;
}

/* ================================
   GOOGLE FORMS CONTAINER
   ================================ */
.google-form-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
}

.google-form-container iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-text {
    font-family: var(--font-base);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 400;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: white;
    margin: 20px 0;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-credit {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4CAF50;
    letter-spacing: 1px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .hero {
        background-position: center 15%;
    }

    .hero-content {
        padding-top: 80px;
    }

    .title-script {
        font-size: 2.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    /* Nuevos estilos responsive */
    .title-wedding {
        font-size: 1.3rem;
        letter-spacing: 8px;
    }

    .curved-text {
        max-width: 400px;
    }

    .curved-wedding-text {
        font-size: 32px;
        letter-spacing: 5px;
    }

    .name-script {
        font-size: 3.5rem;
    }

    .ampersand-script {
        font-size: 2rem;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item {
        padding: 15px 20px;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    /* Tarjetas responsive */
    .cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

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

    .event-card:nth-child(1),
    .event-card:nth-child(2) {
        grid-column: auto;
    }

    .card-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    /* Galería moderna responsive */
    .gallery-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ================================
       ANIMACIONES MÓVIL (2 columnas)
       De a pares desde los lados
       ================================ */

    /* Par 1: img1 (izq) + img2 (der) */
    .gallery-item-1 {
        animation: slideInFromLeftMobile 1s ease-out forwards;
        animation-delay: 0.2s;
    }
    .gallery-item-2 {
        animation: slideInFromRightMobile 1s ease-out forwards;
        animation-delay: 0.2s;
    }

    /* Par 2: img3 (izq) + img4 (der) */
    .gallery-item-3 {
        animation: slideInFromLeftMobile 1s ease-out forwards;
        animation-delay: 0.6s;
    }
    .gallery-item-4 {
        animation: slideInFromRightMobile 1s ease-out forwards;
        animation-delay: 0.6s;
    }

    /* Par 3: img5 (izq) + img6 (der) */
    .gallery-item-5 {
        animation: slideInFromLeftMobile 1s ease-out forwards;
        animation-delay: 1.0s;
    }
    .gallery-item-6 {
        animation: slideInFromRightMobile 1s ease-out forwards;
        animation-delay: 1.0s;
    }

    /* Par 4: img7 (izq) + img8 (der) */
    .gallery-item-7 {
        animation: slideInFromLeftMobile 1s ease-out forwards;
        animation-delay: 1.4s;
    }
    .gallery-item-8 {
        animation: slideInFromRightMobile 1s ease-out forwards;
        animation-delay: 1.4s;
    }

    /* Keyframes para móvil */
    @keyframes slideInFromLeftMobile {
        0% {
            opacity: 0;
            transform: translateX(-100px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInFromRightMobile {
        0% {
            opacity: 0;
            transform: translateX(100px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .gallery-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    /* Código de vestimenta responsive */
    .dress-code-section {
        padding: 60px 20px;
        min-height: 100vh;
    }

    .dress-code-section::after {
        width: 90%;
    }

    .dress-code-title {
        font-size: 1.8rem;
        letter-spacing: 6px;
        margin-bottom: 35px;
    }

    .dress-code-image-frame {
        max-width: 350px;
        padding: 12px;
    }

    .dress-code-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Deshabilitar parallax en móviles para mejor rendimiento */
    .parallax {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center 10%;
    }

    .hero-content {
        padding-top: 60px;
    }

    .music-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .name {
        font-size: 1.5rem;
    }

    .section-icon {
        font-size: 3rem;
    }

    .countdown {
        gap: 5px;
        margin-top: 30px;
    }

    .countdown-item {
        padding: 8px 8px;
        min-width: 50px;
    }

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

    .countdown-label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    /* Nuevos estilos responsive móvil */
    .title-wedding {
        font-size: 1rem;
        letter-spacing: 6px;
    }

    .curved-text {
        max-width: 300px;
    }

    .curved-wedding-text {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .name-script {
        font-size: 2.5rem;
    }

    .ampersand-script {
        font-size: 1.5rem;
    }

    /* Tarjetas móvil */
    .event-card {
        padding: 30px 20px;
    }

    .card-icon svg {
        width: 60px;
        height: 60px;
    }

    .card-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .card-btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    /* Galería moderna móvil */
    .gallery-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    /* Código de vestimenta móvil */
    .dress-code-section {
        padding: 50px 15px;
        min-height: 100vh;
    }

    .dress-code-section::after {
        width: 95%;
        height: 3px;
    }

    .dress-code-title {
        font-size: 1.4rem;
        letter-spacing: 4px;
        margin-bottom: 30px;
    }

    .dress-code-image-frame {
        max-width: 280px;
        padding: 10px;
    }

    .frame-decoration {
        margin: 5px;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .dress-code-text {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
        margin-top: 20px;
    }

    /* Modal móvil */
    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-bank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .modal-value {
        text-align: left;
    }

    .gifts-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .gifts-subtitle {
        font-size: 1rem;
    }

    /* RSVP responsive */
    .rsvp-title {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .rsvp-subtitle {
        font-size: 1rem;
    }

    .btn-rsvp {
        padding: 15px 40px;
        font-size: 0.9rem;
    }

    .modal-content-large {
        max-height: 80vh;
    }

    /* Footer responsive */
    .footer-logo {
        height: 40px;
    }

    .footer-tagline {
        font-size: 1rem;
    }
}

/* ================================
   ANIMACIONES LIGHTBOX
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
