/* Sacramento cursiva para nombres */
@font-face {
    font-family: 'Sacramento';
    src: url('font/Sacramento-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} 


/* Montserrat Regular */
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Medium */
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Bold */
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Thin */
@font-face {
    font-family: 'Montserrat';
    src: url('font/Montserrat-Thin.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #A67C52;       /* Mocha Mousse - Pantone 17-1230 TCX */
    --color-secondary: #4F2C1D;     /* Marrón oscuro - PMS 4625 C */
    --color-accent: #722F37;        /* Merlot - Pantone 19-1534 TCX */
    --color-bg: #F7F3E3;            /* Buttercream - Pantone 11-0110 TCX */
    --color-bg-soft: #ffffff;       /* Blanco puro */
    --color-bg-strong: #2D1B1A;     /* Marrón muy oscuro */
    --color-bg-blur: rgba(255, 255, 255, 0.65);
    --color-bg-modal: rgba(0, 0, 0, 0.75);
    --color-text-main: #2f2f2f;     /* Gris oscuro */
    --color-text-light: #fff;
    --color-text-dark: #333;
    --color-text-muted: #666;
    --color-text-soft: #999;
    --color-text-secondary: #555;
    --color-border: #ccc;
    --color-border-primary: #A67C52;
    --color-border-secondary: #722F37;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-light: rgba(0, 0, 0, 0.15);
    --color-shadow-strong: rgba(0, 0, 0, 0.2);
    --color-shadow-card: rgba(0, 0, 0, 0.1);
    --color-wave: rgba(255, 255, 255, 0.4);
    --color-success: #6b8f71;       /* Verde bosque medio */
    --color-error: #9a3b3b;         /* Rojo ladrillo */

    /* Paleta de vestuario */
    --vestuario-1: #F7F3E3;         /* Buttercream - Pantone 11-0110 TCX */
    --vestuario-2: #A67C52;         /* Mocha Mousse - Pantone 17-1230 TCX */
    --vestuario-3: #4F2C1D;         /* Marrón oscuro - PMS 4625 C */
    --vestuario-4: #722F37;         /* Merlot - Pantone 19-1534 TCX */
}

[data-theme="dark"] {
    --color-primary: #A67C52;       /* Mocha Mousse - Pantone 17-1230 TCX */
    --color-secondary: #4F2C1D;     /* Marrón oscuro - PMS 4625 C */
    --color-accent: #722F37;        /* Merlot - Pantone 19-1534 TCX */
    --color-bg: #F7F3E3;            /* Buttercream - Pantone 11-0110 TCX */
    --color-bg-soft: #ffffff;       /* Blanco puro */
    --color-bg-strong: #2D1B1A;     /* Marrón muy oscuro */
    --color-bg-blur: rgba(255, 255, 255, 0.65);
    --color-bg-modal: rgba(0, 0, 0, 0.75);
    --color-text-main: #2f2f2f;     /* Gris oscuro */
    --color-text-light: #fff;
    --color-text-dark: #333;
    --color-text-muted: #666;
    --color-text-soft: #999;
    --color-text-secondary: #555;
    --color-border: #ccc;
    --color-border-primary: #A67C52;
    --color-border-secondary: #722F37;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-light: rgba(0, 0, 0, 0.15);
    --color-shadow-strong: rgba(0, 0, 0, 0.2);
    --color-shadow-card: rgba(0, 0, 0, 0.1);
    --color-wave: rgba(255, 255, 255, 0.4);
    --color-success: #6b8f71;       /* Verde bosque medio */
    --color-error: #9a3b3b;         /* Rojo ladrillo */

    /* Paleta de vestuario */
    --vestuario-1: #F7F3E3;         /* Buttercream - Pantone 11-0110 TCX */
    --vestuario-2: #A67C52;         /* Mocha Mousse - Pantone 17-1230 TCX */
    --vestuario-3: #4F2C1D;         /* Marrón oscuro - PMS 4625 C */
    --vestuario-4: #722F37;         /* Merlot - Pantone 19-1534 TCX */
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #A67C52;       /* Mocha Mousse - Pantone 17-1230 TCX */
        --color-secondary: #4F2C1D;     /* Marrón oscuro - PMS 4625 C */
        --color-accent: #722F37;        /* Merlot - Pantone 19-1534 TCX */
        --color-bg: #F7F3E3;            /* Buttercream - Pantone 11-0110 TCX */
        --color-bg-soft: #ffffff;       /* Blanco puro */
        --color-bg-strong: #2D1B1A;     /* Marrón muy oscuro */
        --color-bg-blur: rgba(255, 255, 255, 0.65);
        --color-bg-modal: rgba(0, 0, 0, 0.75);
        --color-text-main: #2f2f2f;     /* Gris oscuro */
        --color-text-light: #fff;
        --color-text-dark: #333;
        --color-text-muted: #666;
        --color-text-soft: #999;
        --color-text-secondary: #555;
        --color-border: #ccc;
        --color-border-primary: #A67C52;
        --color-border-secondary: #722F37;
        --color-shadow: rgba(0, 0, 0, 0.3);
        --color-shadow-light: rgba(0, 0, 0, 0.15);
        --color-shadow-strong: rgba(0, 0, 0, 0.2);
        --color-shadow-card: rgba(0, 0, 0, 0.1);
        --color-wave: rgba(255, 255, 255, 0.4);
        --color-success: #6b8f71;       /* Verde bosque medio */
        --color-error: #9a3b3b;         /* Rojo ladrillo */
    
        /* Paleta de vestuario */
        --vestuario-1: #F7F3E3;         /* Buttercream - Pantone 11-0110 TCX */
        --vestuario-2: #A67C52;         /* Mocha Mousse - Pantone 17-1230 TCX */
        --vestuario-3: #4F2C1D;         /* Marrón oscuro - PMS 4625 C */
        --vestuario-4: #722F37;         /* Merlot - Pantone 19-1534 TCX */
    }
}

/* Reset y fuentes */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-light);
    background-color: #f7f5fb;
    scroll-behavior: smooth;
}

/* CSS UTIL*/

.custom-btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    border: 1px solid #6a1b9a; /* ← aquí corregido */
}

.custom-btn:hover {
    background-color: #eee;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* HEDER HERO*/

.hero {
    position: relative;
    height: 100vh;
    background-image: url('images/portada.JPG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 2s ease-out;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 2;
    animation: fadeInDown 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.5rem;
    z-index: 2;
}

.hero-versiculo {
    margin-top: 2rem;
    max-width: 700px;
    text-align: left;
}

.hero-versiculo p {
    font-size: 1rem !important;
    z-index: 2;
}

.hero-versiculo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-versiculo-text em {
    font-style: italic;
    font-weight: 500;
}

.hero-versiculo-cita {
    display: block;
    text-align: end;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Encabezado */

.hero-date {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-names {
    font-family: 'Sacramento', cursive;
    font-size: 4rem;
    line-height: 1;
}

.hero-names .amp {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0.5rem;
}

/* Cuenta regresiva */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
    margin-top: 1rem;
}

.count-item {
    text-align: center;
}

.count-item .label {
    display: block; 
    font-size: 0.75rem;
}


/* RESPONSIVE HERO*/
@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: 100vh;
        background-attachment: scroll; /* en tablet o laptop que no soporte fixed */
    }

    .hero-content {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .countdown {
        gap: 1.5rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 2.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 1.6rem;
    }

    .count-item {
        min-width: 60px;
    }

    .custom-btn {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}


/* BTN MUSICAL */
.music-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    box-shadow: 0 8px 20px var(--color-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}

.music-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.note {
    width: 100%;
    height: 100%;
    animation: none;
    z-index: 1;
    fill: currentColor;
    color: var(--color-primary);
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    border: 2px solid var(--color-wave);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.music-button.playing .note {
    animation: floatNote 3s ease-in-out infinite;
}

.music-button.playing .wave1 {
    width: 60px;
    height: 60px;
    animation: pulse 2.5s ease-out infinite;
    animation-delay: 0s;
}

.music-button.playing .wave2 {
    width: 80px;
    height: 80px;
    animation: pulse 2.5s ease-out infinite;
    animation-delay: 0.5s;
}

.music-button.playing .wave3 {
    width: 100px;
    height: 100px;
    animation: pulse 2.5s ease-out infinite;
    animation-delay: 1s;
}

/* Keyframes */
@keyframes floatNote {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

/* INVITACION */

.event-invitation {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(106, 27, 154, 0.3);
}


.event-invitation.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-invitation:hover {
    transform: perspective(1000px) rotateX(0.5deg) rotateY(0.5deg);
    transition: transform 0.5s ease;
}

.event-invitation h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-family: 'Sacramento', cursive;
}

.event-detail h3,
.event-dresscode h3 {
    font-size: 1.8rem;
    color: black;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.event-dresscode p {
    color: #121212;
}

.event-time, .event-place {
    font-size: 1.1rem;
    color: #444;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

.event-invitation.visible .event-time,
.event-invitation.visible .event-place {
    opacity: 1;
    transform: translateY(0);
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--color-secondary);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease 0.4s;
}

.event-invitation.visible .color-palette {
    opacity: 1;
    transform: scale(1);
}

.color-sample {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.event-confirm {
    margin-top: 2.5rem;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-invitation .custom-btn,
.event-invitation .custom-btn.large {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-secondary);
}

.event-invitation .custom-btn:hover,
.event-invitation .custom-btn.large:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

/* Responsive - Invitación Detalle del Evento */

@media (max-width: 767px) {
    .event-invitation {
        padding: 2rem 1rem 2rem 1rem;
        background-color: var(--color-bg); /* Fondo igual al HTML */
        box-shadow: none;
        border: none;
        border-radius: 0; /* Sin bordes redondeados */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .event-invitation h2 {
        font-size: 1.8rem;
    }

    .event-detail h3,
    .event-dresscode h3 {
        font-size: 1.4rem;
    }

    .event-time, .event-place {
        font-size: 1rem;
        flex-direction: column;
        gap: 4px;
    }

    .custom-btn.large {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .color-sample {
        width: 28px;
        height: 28px;
    }

    .event-dresscode p {
        color: #121212; /* Para que "Formal Elegante" se vea bien */
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}


/* GALERIA */
#galeria {
    background-color: white;
    padding-top: 60px;
    padding-bottom: 60px;
}

.gallery-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-subtitle {
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    color: #444;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 16px;
    /* Eliminar la animación CSS */
    /* animation: scroll 30s linear infinite;  QUITAR */
    will-change: transform;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
}

.gallery-track:active {
    cursor: grabbing;
}

.photo-card {
    flex: 0 0 28%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    height: 400px;
    transform: rotate(calc(var(--rotation, 0deg)));
}

.photo-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(0.95) saturate(0.95);
}

.photo-title {
    margin-top: 8px;
    font-family: 'Sacramento', cursive;
    font-size: 1.4rem;
    color: #444;
    text-align: center;
    line-height: 1.2;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive mejoras */
@media (max-width: 1024px) {
    .photo-card {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 1rem;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .gallery-subtitle {
        font-size: 0.8rem;
    }

    .photo-card {
        flex: 0 0 80%;
        height: 360px;
    }

    .photo-card img {
        height: 280px;
    }
}



/* MAPA COMO LLEGAR*/
.map-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.map-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.map-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.map-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.map-modal-content iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
}

.map-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

/* Spinner */
.map-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}


.map-modal-content iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
    display: none; /* Ocultamos hasta que cargue */
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* CELEBRACION SECTION */
/* CELEBRACION SECTION */
.celebracion-section {
    background: #f7f5fb;
    padding: 4rem 1rem;
    border-radius: 16px;
    text-align: center;
}

.celebracion-title {
    font-family: 'Sacramento', cursive;
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.celebracion-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.celebracion-cards {
    gap: 2rem;
}

.celebracion-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.celebracion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.celebracion-icon {
    margin-bottom: 1rem;
    height: 80px;
}

.celebracion-icon img,
.celebracion-icon svg {
    max-height: 80px;
    max-width: 80px;
    transition: transform 0.5s ease-in-out;
    color: var(--color-primary);
    fill: currentColor;
    animation: iconPulse 2.5s infinite ease-in-out;
}

.celebracion-card:hover .celebracion-icon img,
.celebracion-card:hover .celebracion-icon svg {
    transform: scale(1.1) rotate(5deg);
}

@keyframes iconPulse {
    0%   { transform: scale(1) rotate(0deg); opacity: 1; }
    50%  { transform: scale(1.05) rotate(3deg); opacity: 0.85; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.celebracion-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.celebracion-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.celebracion-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.celebracion-btn:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
}

.celebracion-icon svg {
    fill: currentColor;
    color: var(--color-primary);
}

.note-svg {
    fill: currentColor;
    color: var(--color-primary);
}

/* General styles (como ya tienes) */
/* Aquí NO repito el CSS que ya me diste, solo te doy las media queries que le faltan */

/* Responsive - Tablet */
@media (max-width: 991.98px) {
    .celebracion-section {
        padding: 3rem 1rem;
    }

    .celebracion-title {
        font-size: 2.5rem;
    }

    .celebracion-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .celebracion-card {
        width: 240px;
        padding: 1.8rem 1.2rem;
    }

    .celebracion-card h3 {
        font-size: 1.4rem;
    }

    .celebracion-card p {
        font-size: 0.95rem;
    }

    .celebracion-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Responsive - Móvil (grande) */
@media (max-width: 767.98px) {
    .celebracion-section {
        padding: 2.5rem 0.8rem;
    }

    .celebracion-title {
        font-size: 2.2rem;
    }

    .celebracion-subtitle {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .celebracion-cards {
        flex-direction: column !important; /* Forzamos columna en móviles */
        align-items: center;
    }

    .celebracion-card {
        width: 90%;
        max-width: 320px;
        padding: 1.6rem 1rem;
        margin-bottom: 1.5rem;
        transform: translateY(30px);
    }

    .celebracion-card h3 {
        font-size: 1.3rem;
    }

    .celebracion-card p {
        font-size: 0.95rem;
    }

    .celebracion-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Responsive - Móvil pequeño (iPhone SE, Android pequeño) */
@media (max-width: 480px) {
    .celebracion-title {
        font-size: 2rem;
    }

    .celebracion-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .celebracion-card {
        width: 95%;
        padding: 1.4rem 0.8rem;
        
    }

    .celebracion-card h3 {
        font-size: 1.2rem;
    }

    .celebracion-card p {
        font-size: 0.9rem;
    }
}


/* FOOTER */
.boda-footer {
    background-color: var(--color-bg-strong);
    padding: 4rem 1rem;
    text-align: center;
    color: var(--color-text-light);
    font-family: 'Sacramento', cursive;
    position: relative;
    border-top: 2px solid var(--color-primary);
    overflow: hidden;
}

.boda-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.boda-footer.footer-visible .footer-inner {
    opacity: 1;
    transform: translateY(0);
}

.boda-footer .footer-names {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.boda-footer .footer-icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
    color: var(--color-secondary);
    animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.boda-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.boda-footer .footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.4s ease;
}

.boda-footer .footer-links a:hover {
    color: var(--color-secondary);
}

.scroll-top-btn {
    margin-top: 2rem;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 30px;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px var(--color-shadow);
}

.scroll-top-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* Responsive - Tablet y arriba */
@media (min-width: 768px) {
    .boda-footer .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .boda-footer .footer-links a {
        margin: 0 1rem;
        font-size: 1.2rem;
    }

    .boda-footer .footer-names {
        font-size: 3.5rem;
    }

    .scroll-top-btn {
        font-size: 1.1rem;
    }
}

/* Responsive - Móvil pequeño (iPhone SE / Android pequeño) */
@media (max-width: 480px) {
    .boda-footer {
        padding: 3rem 1rem;
    }

    .boda-footer .footer-names {
        font-size: 2.5rem;
        flex-direction: column;
    }

    .boda-footer .footer-links {
        gap: 0.8rem;
        font-size: 1rem;
    }

    .scroll-top-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }
}




/* MODAL DE CONFIRMACION */
.confirm-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.confirm-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.confirm-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.confirm-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

.form-group {
    text-align: left;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary);
    outline: none;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D%22%236a1b9a%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary);
    outline: none;
}

/* Animaciones reusadas */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


/*Modal*/
/* Modal Confirmar Asistencia */
.confirm-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.confirm-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.confirm-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.confirm-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.confirm-modal-content label {
    display: block;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #333;
}

.confirm-modal-content input,
.confirm-modal-content select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.confirm-modal-content input:focus,
.confirm-modal-content select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 6px var(--color-secondary);
    outline: none;
}

/* Modal Éxito */
.success-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.success-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.success-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.success-modal-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Modal Error */
.error-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.error-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.error-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.error-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.error-modal-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Animaciones */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}





/* Modal Inspiración */

.inspiracion-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.inspiracion-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.inspiracion-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    padding: 2rem 2rem 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    position: relative;
}

.inspiracion-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.inspiracion-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.inspiracion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding-top: 1rem;
}

.inspiracion-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1; /* SIEMPRE cuadradas */
    object-fit: cover;   /* que la imagen se recorte si es necesario */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}


.inspiracion-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Botón cerrar */
.inspiracion-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    transition: background 0.3s ease, transform 0.3s ease;
}

.inspiracion-modal-close:hover {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(90deg);
}

.inspiracion-modal-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tablet */
@media (max-width: 991px) {
    .inspiracion-modal-content {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }

    .inspiracion-modal-content h2 {
        font-size: 2.2rem;
    }

    .inspiracion-gallery {
        gap: 12px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .inspiracion-modal-content {
        max-width: 95%;
        padding: 1.2rem 1rem 1.8rem 1rem;
    }

    .inspiracion-modal-content h2 {
        font-size: 2rem;
    }

    .inspiracion-subtitle {
        font-size: 1rem;
    }

    .inspiracion-gallery {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
}


.inspiracion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding-top: 1rem;
}

.inspiracion-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Fuerza cuadrado */
    object-fit: cover;   /* Que se recorte */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.inspiracion-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .inspiracion-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* Botones de los modales y Google Maps */
.confirm-modal .custom-btn,
.success-modal .custom-btn,
.error-modal .custom-btn,
#openInMapsBtn.custom-btn {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-secondary);
}

.confirm-modal .custom-btn:hover,
.success-modal .custom-btn:hover,
.error-modal .custom-btn:hover,
#openInMapsBtn.custom-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.hero .custom-btn {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-secondary);
}

.hero .custom-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

/* Modal Video */
.video-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.video-modal.show {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.video-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    padding: 2rem 2rem 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    position: relative;
}

.video-modal-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.video-modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.video-modal-content video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Ícono de video */
.video-svg {
    fill: currentColor;
    color: var(--color-primary);
}


/* Sección de video (YouTube Shorts vertical) */
.video-section {
    background: #fff;
    padding: 3rem 1rem;
}

.video-embed {
    width: 100%;
    max-width: 420px;
}

.video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-phrase {
    font-family: 'Sacramento', cursive;
    font-size: 2rem;
    color: var(--color-primary);
    line-height: 1.3;
}

@media (min-width: 992px) {
    .video-embed { max-width: 480px; }
    .video-phrase { font-size: 2.2rem; }
}




