/* 
   Fuentes importadas:
   - 'Dancing Script': Cursiva legible y elegante (Títulos y nombres)
   - 'Cinzel': Encabezados secundarios
   - 'Montserrat': Texto secundario de lectura rápida
*/
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Dancing+Script:wght@600;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
    /* Fondo Aperlado Base */
    --fondo-aperlado: #F9F8F6;
    
    /* Verde Esmeralda Suave para Recuadros y Botones */
    --verde-recuadro: #CBE4D6; 
    --verde-oscuro-hover: #a2cbb2; 

    /* Borde Doble Oro Elegante */
    --borde-oro: #D4AF37;

    /* Textos en Negro y Blanco */
    --texto-negro: #121212;
    --texto-blanco: #FFFFFF;

    /* FUENTES CURSIVAS Y LEGIBLES */
    --fuente-cursiva: 'Dancing Script', cursive; 
    --fuente-titulo: 'Cinzel', serif;           
    --fuente-texto: 'Montserrat', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONDO BLANCO APERLADO - TAMAÑO BASE REDUCIDO */
html, body {
    background-color: var(--fondo-aperlado);
    background-image: linear-gradient(135deg, #F9F8F6 0%, #EFECE6 100%);
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
    color: var(--texto-negro);
    font-family: var(--fuente-texto);
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem; /* Reducido de 1.25rem a 1rem global */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-padding {
    padding: 50px 20px;
}

/* EFECTO FLOTANTE DE ENTRADA */
[data-aos] {
    transition-property: transform, opacity !important;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

[data-aos="fade-up"],
[data-aos="zoom-in"] {
    transform: translateY(40px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate,
[data-aos="zoom-in"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* CARRUSEL A ANCHO COMPLETO */
.galeria-hero {
    width: 100%;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 4px double var(--borde-oro);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--texto-negro) !important;
}

.swiper-pagination-bullet-active {
    background: var(--verde-recuadro) !important;
}

/* PORTADA DE ESCRITORIO (BASE) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6)), url('img/img1.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    border-bottom: 4px double var(--borde-oro);
}

.hero-content .pre-titulo {
    font-family: var(--fuente-cursiva);
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: var(--texto-negro);
    font-weight: 700;
}

.hero-content .nombre {
    font-family: var(--fuente-cursiva);
    font-size: 3.8rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--texto-blanco);
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.7);
}

.hero-content .quinceanera {
    font-family: var(--fuente-titulo);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--texto-negro);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Banner de Invitación */
.banner-invitacion {
    background-color: var(--verde-recuadro);
    width: 100%;
    padding: 40px 20px;
    border: none !important;
    box-shadow: none;
    text-align: center;
}

.banner-invitacion .pre-titulo {
    font-family: var(--fuente-cursiva);
    font-size: 1.5rem;
    color: var(--texto-negro);
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-weight: 400;
    line-height: 1.5;
}

.banner-invitacion .icono-corazon {
    font-size: 1.8rem;
    color: var(--texto-blanco);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* FECHA EN LA PORTADA */
.hero-content .fecha {
    font-family: var(--fuente-titulo);
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: inline-block;
    padding: 8px 20px;
    color: var(--texto-negro) !important;
    font-weight: 700;
}

/* RECUADROS GENERALES */
.cuadro-honor, 
.dresscode-box, 
.sobres-box, 
.card {
    background: var(--fondo-aperlado);
    border: 4px double var(--borde-oro);
    border-radius: 16px;
    padding: 30px 20px;
    margin: 25px auto;
    max-width: 520px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.honor-seccion h4, 
.dresscode h2, 
.sobres-box h2, 
.card-body h3 {
    font-family: var(--fuente-cursiva);
    color: var(--texto-negro);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ubicaciones h2 {
    font-family: var(--fuente-cursiva);
    font-style: italic;
    font-size: 2.4rem;
    color: var(--texto-negro);
    margin-bottom: 20px;
    font-weight: 700;
}

.honor-seccion p, 
.dresscode-box p, 
.sobres-box p, 
.card-body p {
    font-size: 1rem;
    color: var(--texto-negro);
    font-weight: 600;
}

.honor-divisor {
    height: 2px;
    background: var(--borde-oro);
    margin: 15px 0;
}

/* BOTONES */
.btn-audio, 
.btn, 
.btn-amarillo, 
.btn-rosa {
    background-color: var(--verde-recuadro) !important;
    border: 2px solid var(--borde-oro) !important;
    color: var(--texto-negro) !important;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--fuente-texto);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
}

.btn-audio:hover, 
.btn:hover, 
.btn-amarillo:hover, 
.btn-rosa:hover {
    background-color: var(--verde-oscuro-hover) !important;
    transform: translateY(-2px);
}

/* CUENTA REGRESIVA */
.contador {
    position: relative;
    background-image: url('img/fondo2.jpg');
    background-repeat: no-repeat;
    background-position: center top !important;
    background-size: cover;
    padding: 0;
}

.contador-overlay {
    background: rgba(249, 248, 246, 0.85);
    padding: 50px 20px;
    width: 100%;
    height: 100%;
}

.contador h2 {
    font-family: var(--fuente-cursiva);
    font-size: 2.5rem;
    color: var(--texto-negro);
    margin-bottom: 20px;
    font-weight: 700;
}

.reloj {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tiempo-box {
    background: var(--verde-recuadro);
    padding: 12px 10px;
    border-radius: 12px;
    min-width: 70px;
    border: 3px double var(--borde-oro);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.tiempo-box span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--texto-negro); 
}

.tiempo-box p {
    font-size: 0.75rem;
    color: var(--texto-negro);
    text-transform: uppercase;
    font-weight: 700;
}

/* TARJETAS DE UBICACIÓN */
.ubicaciones {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.card {
    max-width: 400px;
    overflow: hidden;
    padding: 0;
}

.card-img-container {
    width: 100%;
    height: 200px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px 15px;
}

.icon-dresscode, 
.icon-sobre {
    margin-bottom: 10px;
    font-size: 2.8rem;
    color: var(--texto-negro);
}

.img-dresscode {
    width: 65px;        
    height: auto;        
    object-fit: contain;
}

.estilo-tag {
    font-family: var(--fuente-titulo);
    color: var(--texto-negro);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.1rem;
    margin: 10px 0;
}

.confirmacion h2 {
    font-family: var(--fuente-cursiva);
    color: var(--texto-negro);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* BANNER AGRADECIMIENTO */
.banner-agradecimiento {
    position: relative;
    background: url('img/marmol.jpeg') no-repeat center center/cover;
    border-top: 4px double var(--borde-oro);
    border-bottom: 4px double var(--borde-oro);
}

.agradecimiento-overlay {
    background: rgba(249, 248, 246, 0.82);
    padding: 50px 20px;
    text-align: center;
}

.agradecimiento-overlay h2 {
    font-family: var(--fuente-cursiva);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--texto-negro);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    font-weight: 700;
}

/* GALERÍA EXTRA */
.galeria-extra {
    font-family: var(--fuente-cursiva);
    font-size: 1.8rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.galeria-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.galeria-item {
    flex: 1 1 280px;
    max-width: 340px;
    display: flex;
    justify-content: center;
}

.img-completa {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px double var(--borde-oro);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* PIE DE PÁGINA */
.footer-creditos {
    background-color: var(--verde-recuadro); 
    color: var(--texto-negro);
    text-align: center;
    padding: 20px 15px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 4px double var(--borde-oro);
}

.footer-creditos p {
    margin: 0;
    font-weight: 600;
}

.link-autor {
    color: var(--texto-negro);
    font-size: 1.1rem;
    font-weight: 700;
}


/* ========================================================
   REDUCCIÓN EXTREMA PARA PANTALLAS MÓVILES (Menores a 768px)
   ======================================================== */
@media (max-width: 768px) {
    html, body {
        font-size: 0.85rem !important; /* Texto base hiper compacto */
    }

    .swiper {
        height: 45vh;
    }

    /* Portada en Celular */
    .hero-content .pre-titulo {
        font-size: 1.3rem !important;
    }

    .hero-content .nombre {
        font-size: 2.2rem !important; /* El nombre ya no ocupará toda la pantalla */
    }

    .hero-content .quinceanera {
        font-size: 0.9rem !important;
        letter-spacing: 1px;
    }

    .hero-content .fecha {
        font-size: 0.85rem !important;
        padding: 5px 12px !important;
    }

    /* Títulos en Cursiva */
    .ubicaciones h2,
    .contador h2,
    .confirmacion h2 {
        font-size: 1.6rem !important;
    }

    .honor-seccion h4, 
    .dresscode h2, 
    .sobres-box h2, 
    .card-body h3 {
        font-size: 1.4rem !important;
    }

    .banner-invitacion .pre-titulo,
    .agradecimiento-overlay h2 {
        font-size: 1rem !important;
    }

    /* Párrafos */
    .honor-seccion p, 
    .dresscode-box p, 
    .sobres-box p, 
    .card-body p {
        font-size: 0.82rem !important;
    }

    /* Cajas y Contenedores */
    .cuadro-honor, 
    .dresscode-box, 
    .sobres-box, 
    .card {
        padding: 18px 12px !important;
        margin: 15px auto !important;
        max-width: 90% !important;
    }

    /* Reloj en Celular */
    .reloj {
        gap: 5px !important;
    }

    .tiempo-box {
        min-width: 50px !important;
        padding: 6px 4px !important;
    }

    .tiempo-box span {
        font-size: 1.1rem !important;
    }

    .tiempo-box p {
        font-size: 0.6rem !important;
    }

    /* Botones */
    .btn-audio, 
    .btn, 
    .btn-amarillo, 
    .btn-rosa {
        padding: 8px 16px !important;
        font-size: 0.7rem !important;
    }
}