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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    /* Prevenir scroll horizontal */
    width: 100%;
    max-width: 100vw !important;
}

body {
    position: relative;
}

.font-tam1 {
    font-size: 3.5rem;
}

.font-tam2 {
    font-size: 2.5rem;
}

.font-tam3 {
    font-size: 1.5rem;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* Sin padding para el video */
}

video {
    width: 100%;
    max-width: 100%;
}


/* Contenedor principal para limitar todo el contenido */

.main-container {
    max-width: 500px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}


/* Forzar que todos los elementos dentro del contenedor principal respeten el límite */

.main-container * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Media query específica para pantallas grandes */

@media (min-width: 769px) {
    .main-container {
        max-width: 500px !important;
    }
    /* Ajustes específicos para secciones problemáticas en desktop */
    .mesa-regalos-container {
        max-width: 700px !important;
        margin: 0 auto !important;
    }
    .confirmacion-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
    }
    /* Mejorar el formulario de confirmación en desktop */
    .confirmacion-container .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .confirmacion-container .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    .confirmacion-container .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    /* Mejorar las columnas de mesa de regalos */
    .mesa-regalos-container .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .mesa-regalos-container .card {
        max-width: 400px !important;
        width: 100% !important;
    }
    /* Mejorar el espaciado en estas secciones */
    .confirmacion-container .card-body {
        padding: 3rem !important;
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    .confirmacion-container .g-3>* {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .confirmacion-container .btn {
        min-height: 60px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 15px !important;
    }
    .confirmacion-container .row.g-3.mb-4 {
        margin-bottom: 2rem !important;
    }
    .confirmacion-container .form-control,
    .confirmacion-container .form-select {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
}

.allura-regular {
    font-family: "Allura", cursive;
    font-weight: 400;
    font-style: normal;
}

.prata-regular {
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
}

.custom-max-width {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /* Agregar padding lateral */
    box-sizing: border-box;
    /* Incluir padding en el ancho */
    overflow-x: hidden;
    /* Centrar */
}


/* Botones de confirmación de asistencia */

.btn-wedding-gold {
    background: linear-gradient(135deg, #d4af37, #f4e27a);
    border: none;
    color: #2c2c2c;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-wedding-gold:hover {
    background: linear-gradient(135deg, #b8941f, #d4af37);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-confirmation-yes {
    background: linear-gradient(135deg, #28a745, #34ce57);
    border: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-confirmation-yes:hover {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: white;
    transform: translateY(-2px);
}

.btn-confirmation-no {
    background: linear-gradient(135deg, #6c757d, #868e96);
    border: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-confirmation-no:hover {
    background: linear-gradient(135deg, #545b62, #6c757d);
    color: white;
    transform: translateY(-2px);
}

.image-border {
    border: 10px solid white;
    /* Ajusta el grosor del marco */
    border-radius: 5px;
    /* Opcional: redondea las esquinas */
    margin-top: 20px;
    /* Espacio superior */
}

.text-justify {
    text-align: justify;
}

.contenedor_txt {
    background-color: #ffffff;
    width: 100%;
    margin: auto;
}

.f_izquierda {
    float: left;
    margin-left: 0;
    /* Cambiar de -80px a 0 para evitar overflow */
    /* Ajusta este valor según sea necesario */
}

.f_derecha {
    float: right;
    margin-right: 0;
    /* Cambiar de -80px a 0 para evitar overflow */
    /* Ajusta este valor según sea necesario */
}

.conteneitor {
    width: 350px;
    /* Ancho fijo */
    height: 350px;
    /* Alto fijo */
    background-color: #333;
    /* Color de fondo */
    position: relative;
    /* Fijo en la pantalla */
}


/* Animaciones de scroll reveal */

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.scroll-reveal-fade.revealed {
    opacity: 1;
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}


/* Estilos para el temporizador */

.countdown-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item {
    padding: 25px 30px;
    margin: 10px 5px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 110px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    line-height: 1;
    display: block;
    min-width: 50px;
}

.countdown-label {
    font-size: 1rem;
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: center;
    white-space: nowrap;
}


/* Responsive para el temporizador */

@media (max-width: 768px) {
    .countdown-number {
        font-size: 1.8rem;
        min-width: 35px;
    }
    .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    .countdown-container {
        margin: 20px auto;
        padding: 20px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .countdown-item {
        padding: 15px 10px;
        margin: 5px 2px;
        min-height: 80px;
        min-width: 70px;
    }
}

@media (max-width: 576px) {
    .countdown-number {
        font-size: 1.5rem;
        min-width: 30px;
    }
    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
    .countdown-item {
        padding: 12px 8px;
        min-height: 70px;
        min-width: 60px;
        margin: 3px 1px;
    }
}


/* Estilos para el código de vestimenta */

.dress-code-image-container {
    max-width: 300px;
    margin: 0 auto;
    padding: 10px;
}

.dress-code-image {
    width: 100%;
    height: auto;
    border: 3px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}


/* Responsive para código de vestimenta */

@media (max-width: 768px) {
    .dress-code-image-container {
        max-width: 250px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .dress-code-image-container {
        max-width: 200px;
    }
}


/* Estilos para el botón de la boda */

.btn-wedding {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
    color: #2c1810;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-wedding::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-wedding:hover::before {
    left: 100%;
}

.btn-wedding:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8c 50%, #d4af37 100%);
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-wedding:active {
    transform: translateY(-1px);
}

.btn-wedding i {
    margin-right: 8px;
    font-size: 1rem;
}


/* Texto dorado elegante */

.text-gold {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}


/* Fallback para navegadores que no soporten background-clip */

@supports not (-webkit-background-clip: text) {
    .text-gold {
        color: #d4af37;
        text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.5);
    }
}


/* Responsive para el botón */

@media (max-width: 768px) {
    .btn-wedding {
        padding: 10px 25px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-wedding {
        padding: 8px 20px;
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }
}


/* Estilos para iframes responsivos */

.iframe-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    display: block;
    margin: 0;
    padding: 0;
}


/* Asegurar que las imágenes no causen overflow */

img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box !important;
}


/* Control específico para imágenes dentro de contenedores w-100 */

.w-100 img {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Regla de emergencia para prevenir cualquier overflow */

* {
    box-sizing: border-box;
    max-width: 100%;
}

*:not(html):not(body) {
    max-width: 100% !important;
}


/* Contenedor para imagen ajustada al contenedor padre */

.full-width-image {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}


/* Asegurar que todos los elementos no excedan el ancho */

* {
    box-sizing: border-box;
    max-width: 100%;
}


/* Contenedores principales */

.container,
.container-fluid,
.row {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* Control específico para elementos w-100 */

.w-100 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* Control específico para filas de Bootstrap */

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}


/* Control específico para columnas de Bootstrap */

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    box-sizing: border-box;
}


/* Asegurar que ningún elemento cause overflow */

div,
section,
article,
aside,
nav,
header,
footer {
    max-width: 100%;
    overflow-wrap: break-word;
}


/* Responsive para el contenedor principal */

@media (max-width: 768px) {
    .main-container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    .custom-max-width {
        padding: 0 15px;
        /* Menos padding en pantallas pequeñas */
    }
    .font-tam1 {
        font-size: 2.5rem;
        /* Reducir tamaño de fuente */
    }
    .font-tam2 {
        font-size: 1.8rem;
        /* Reducir tamaño de fuente */
    }
}

@media (max-width: 576px) {
    .main-container {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    .custom-max-width {
        padding: 0 10px;
        /* Aún menos padding en pantallas muy pequeñas */
    }
    .font-tam1 {
        font-size: 2rem;
        /* Reducir más el tamaño de fuente */
    }
    .font-tam2 {
        font-size: 1.5rem;
        /* Reducir más el tamaño de fuente */
    }
}


/* Estilos para la galería en pantalla completa */

.gallery-lightbox {
    display: none;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    animation: lightboxFadeIn 0.3s ease;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-lightbox.active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.lightbox-content {
    position: relative !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: lightboxContentIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 !important;
    padding: 0 !important;
}

.lightbox-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: lightboxImageIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.3s ease;
}


/* Botón de cerrar del lightbox */

.lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 30px !important;
    background: transparent !important;
    border: none !important;
    font-size: 40px !important;
    font-weight: bold !important;
    color: white !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    z-index: 10000 !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
    color: white !important;
}


/* Cursor pointer para las imágenes de galería */

.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    overflow: hidden;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1) contrast(1.05);
}


/* Prevenir overflow en contenedores de galería */

.row .col-12,
.row .col-6,
.row .col-md-4,
.row .col-md-6 {
    overflow: hidden;
}


/* Animaciones del lightbox */

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes lightboxContentIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes lightboxImageIn {
    from {
        opacity: 0;
        transform: scale(0.85) rotate(1deg);
        filter: blur(2px);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95) rotate(0deg);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes lightboxContentOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

@keyframes lightboxImageOut {
    from {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    to {
        opacity: 0;
        transform: scale(0.85) rotate(-1deg);
        filter: blur(2px);
    }
}

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

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


/* Indicador de audio */

.audio-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-indicator:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.audio-indicator i {
    font-size: 16px;
}

.audio-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Estilos para la sección de estatus de invitación */
.estatus-container {
    animation: fadeInUp 0.8s ease-out;
}

.estatus-container .card {
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.estatus-container .card:hover {
    transform: translateY(-5px);
}

.estatus-container .card-body {
    border-radius: 20px;
}

.estatus-container .alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.estatus-container .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.estatus-container .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 5px solid #ffc107;
}

.estatus-container .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* Animación para la aparición del estatus */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para móviles */

@media (max-width: 768px) {}

@media (max-width: 480px) {}