/*
 * ========================================
 * INVITACIÓN DE BODA - MÓNICA & CARLOS
 * ========================================
 * 
 * Archivo: styles.css
 * Descripción: Estilos principales del sitio web
 * 
 * ESTRUCTURA:
 * 1. Estilos Base
 * 2. Fondo General
 * 3. Media Queries - Background Responsivo
 * 4. Animaciones
 * 5. Hero Section
 * 6. Contador
 * 7. Eventos (Ceremonia y Fiesta)
 * 8. Sección Fiesta
 * 9. Modales
 * 10. Botón Música
 * 11. Sección Regalos
 * 12. Media Queries Responsivas (Consolidadas)
 * 
 * ========================================
 */

/* ===== ESTILOS BASE ===== */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff;
}

/* ===== FONDO GENERAL ===== */
.main-background {
    position: relative;
    z-index: 0;
    background-image: url("../images/Invitacion_1_Iconos.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    will-change: transform;
    transform: translateZ(0);
}

.main-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: -1;
}

.main-background > * {
    position: relative;
    z-index: 1;
}

/* ===== MEDIA QUERIES PARA BACKGROUND RESPONSIVO ===== */
@media (max-width: 1200px) {
    .main-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        min-height: auto;
    }
}

@media (max-width: 1024px) {
    .main-background {
        background-attachment: scroll;
        background-size: contain;
        background-position: center top;
        background-repeat: repeat-y;
        min-height: auto;
        background-color: #f9f7f3;
    }
}

@media (max-width: 768px) {
    .main-background {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .main-background {
        padding: 15px 0;
    }
}

@media (max-width: 320px) {
    .main-background {
        padding: 10px 0;
    }
}

/* Soporte para dispositivos iOS/Safari y landscape */
@supports (-webkit-touch-callout: none) {
    .main-background {
        background-attachment: scroll;
        background-size: contain;
        background-position: center center;
        background-repeat: repeat-y;
        min-height: auto;
        background-color: #f9f7f3;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .main-background {
        background-attachment: scroll;
        background-size: contain;
        background-position: center center;
        background-repeat: repeat-y;
        min-height: auto;
        background-color: #f9f7f3;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/fondo.jpeg") center / cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #333;
    font-family: 'Great Vibes', cursive;
    animation: fadeInUp 1.5s ease;
    max-width: 600px;
}

/* Texto superior */
.texto-invitacion {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #2f2f2f;
}

.frase-biblica {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* Nombres */
.nombres-nuevos {
    font-family: 'Great Vibes', cursive;
    font-size: 3.3rem;
    line-height: 1.1;
    color: #2f2f2f;
    margin: 10px 0;
}

.nombres-nuevos span {
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    font-weight: 300;
    color: #3b3b3b;
}

/* Fecha */
.detalles-fecha {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 15px;
}

.col {
    text-align: center;
}

.etiqueta {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #3b3b3b;
}

.valor {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
}

/* Lugar y cierre */
.lugar {
    font-family: 'Poppins', sans-serif;
    margin-top: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #333;
}

.despedida {
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2b2b2b;
}

/* ===== CONTADOR ===== */
.contador-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    /*background: #faf7f3;*/
}

.contador-box {
    display: inline-block;
    background: white;
    border-radius: 50%;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: fadeInUp 1.5s ease;
}

.contador-box::before {
    content: "";
    position: absolute;
    inset: -20px;
    border: 3px solid #999;
    border-radius: 50%;
    z-index: -1;
}

.contador-titulo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #777;
}

.contador {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-weight: 600;
}

.contador div {
    text-align: center;
}

.contador span {
    display: block;
    font-size: 2rem;
    color: #2f4858;
    animation: pulse 2s infinite;
}

.contador small {
    font-size: 0.9rem;
    color: #777;
}

.icono-corazon {
    margin-top: 20px;
    font-size: 2rem;
    color: #e63946;
    animation: pulse 1.5s infinite;
}

/* ===== CEREMONIA Y FIESTA ===== */
.eventos {
    padding: 40px 20px;
    text-align: center;
    /*background: #faf7f3;*/
}

.eventos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    animation: fadeInUp 1.5s ease;
}

.evento {
    flex: 1 1 280px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.icono {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #2f4858;
}

.titulo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #2f4858;
    text-align: center;
    margin: 25px 0 30px 0;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    text-shadow: none;
    font-weight: normal;
}

.evento p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #444;
}

.evento strong {
    display: block;
    margin-top: 8px;
    color: #2f4858;
}

.boton {
    display: inline-block;
    color: #ffffff;
    margin-top: 8px;
    padding: 6px 16px;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    background: #6e837d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.boton:hover {
    background: #6e837d;
    transform: scale(1.05);
    color: #ffffff;
    text-decoration: none;
}

.boton:visited,
.boton:focus,
.boton:active {
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

/* ===== FIESTA EXTRA ===== */
.fiesta-section {
    padding: 60px 20px;
    text-align: center;
    /*background: #faf7f3;*/
}

.fiesta-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2f4858;
    animation: fadeInUp 1.5s ease;
}

.fiesta-section p {
    color: #666;
    margin-bottom: 40px;
    animation: fadeIn 2s ease;
}

.fiesta-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 280px;
    max-width: 300px;
    transition: transform 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2f4858;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #444;
}

.card button {
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    background: #6e837d;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.card button:hover {
    background: #7b8f89;
    color: #ffffff;
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
    overflow-y: auto;
    max-height: 85vh;
    padding-top: 50px;
}

.modal-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2f4858;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.galeria {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.galeria img {
    width: 30%;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.05);
}

.cerrar {
    position: sticky;
    top: 10px;
    right: 15px;
    align-self: flex-end;
    font-size: 2rem;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    padding: 4px 10px;
    cursor: pointer;
    z-index: 1002;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: color 0.3s;
}

.cerrar:hover {
    color: #000;
}

.modal-content {
    width: 95%;
    padding: 20px;
    max-height: 80vh;
}

.cerrar {
    top: 8px;
    right: 8px;
    font-size: 1.8rem;
}

/* ===== BOTÓN DE MÚSICA ===== */
#btnMusica {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 1000;
}

#btnMusica:hover {
    transform: scale(1.1);
    background-color: #f7f7f7;
}

/* Sección de regalos */
.regalos {
    /*background-color: #FAF7F3;*/
    text-align: center;
    padding: 60px 20px;
}

.regalos-titulo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #2f4858;
    margin-bottom: 10px;
}

.regalos-texto {
    font-family: 'Poppins', sans-serif;
    color: #2f4858;
    font-size: 1rem;
    margin-bottom: 25px;
}

.regalo-icono {
    font-size: 3rem;
    color: #7b8f89;
    margin-bottom: 25px;
}

.regalo-icono i {
    font-size: 3rem;
    color: #7b8f89;
    margin-bottom: 25px;
    animation: giftPulse 2s infinite ease-in-out;
}

@keyframes giftPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Botón */
.boton-regalos {
    display: inline-block;
    background: #fff;
    border: 2px solid #7b8f89;
    color: #7b8f89;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boton-regalos:hover {
    background: #7b8f89;
    color: #fff;
    transform: scale(1.05);
}

/* ===== ANIMACIÓN EMOJI 💍 ===== */
.icono {
    font-size: 2.6rem;
    color: #6e837d;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: anilloPulse 3s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));

}

@keyframes anilloPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.95;
    }
}

/* Estilo del botón */
.btn-confirmar {
    background-color: #6e837d;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-confirmar:hover {
    background-color: #5b6f68;
    transform: scale(1.05);
}

/* Fondo del modal */
.modal1 {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Contenido del modal */
.modal1-contenido {
    background: #f9f7f3;
    padding: 30px 40px;
    border-radius: 50%;
    text-align: center;
    position: relative;
    width: 340px;
    height: 340px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
}

/* Cerrar modal */
.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #6e837d;
    cursor: pointer;
}

/* Icono */
.icono-fiesta {
    font-size: 40px;
    background: #6e837d;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Título */
.modal1-contenido h2 {
    color: #5b6f68;
    font-family: 'Great Vibes', cursive;
    margin-bottom: 20px;
}

/* Opciones */
.opciones {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    color: #333;
}

/* Inputs */
.modal1-contenido input[type="text"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 15px;
    background: transparent;
    text-align: center;
}

/* Botón enviar */
.btn-enviar {
    background: #6e837d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover {
    background: #5b6f68;
    transform: scale(1.05);
}

/* ===== MEDIA QUERIES RESPONSIVAS ===== */

/* Tablets y dispositivos medianos */
@media (max-width: 768px) {
    /* Hero Section */
    .nombres-nuevos {
        font-size: 2.5rem;
    }

    .nombres-nuevos span {
        font-size: 1rem;
    }

    .texto-invitacion {
        font-size: 0.9rem;
    }

    .frase-biblica {
        font-size: 0.8rem;
    }

    .valor {
        font-size: 1.1rem;
    }

    .lugar {
        font-size: 0.8rem;
    }

    /* Contador */
    .nombres {
        font-size: 2.5rem;
    }

    .contador-box {
        padding: 25px;
    }

    .contador span {
        font-size: 1.5rem;
    }

    /* Eventos */
    .eventos-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Fiesta Section */
    .fiesta-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 0 15px;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Móviles grandes */
@media (max-width: 640px) {
    .fiesta-section {
        padding: 40px 15px;
    }
    
    .fiesta-section h2 {
        font-size: 2rem;
    }
    
    .fiesta-cards {
        padding: 0 10px;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
        max-width: 100%;
    }
}

/* Móviles estándar */
@media (max-width: 480px) {
    .fiesta-section {
        padding: 30px 10px;
    }
    
    .fiesta-section h2 {
        font-size: 1.8rem;
    }
    
    .fiesta-section p {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .fiesta-cards {
        padding: 0 5px;
        gap: 15px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    .card button {
        width: 100%;
        padding: 12px 20px;
    }
}