/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --color-bg:        #f4f1ee;
    --color-text:      #3a2a1e;
    --color-acento:    #8C715A;
    --color-acento-dark: #6d5a47;
    --color-rojo:      #6F333D;
    --color-divider:   rgba(143, 137, 142, 0.4);
    --color-tag:       #B4ABA8;

    --espacio-xs:   20px;
    --espacio-sm:   40px;
    --espacio-md:   60px;
    --espacio-lg:   100px;
    --espacio-xl:   120px;

    --radio:        10px;
    --max-contenido: 500px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html { scroll-behavior: smooth; }

/* ===========================
   FUENTES PERSONALIZADAS
   =========================== */
@font-face {
    font-family: "FuenteSoage";
    src: url("../Sources/Soage PersonalUseOnly.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AstonScript";
    src: url("../Sources/Aston Script.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   LAYOUT BASE
   =========================== */
.hero2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Secciones con ritmo vertical uniforme */
.seccion {
    padding-top: var(--espacio-md);
    padding-bottom: var(--espacio-xs);
}

.seccion-centrada {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===========================
   DIVISOR
   =========================== */
.divisor {
    width: 75%;
    height: 1px;
    background-color: var(--color-divider);
    margin: var(--espacio-md) auto 0;
}

/* ===========================
   PORTADA / VIDEO HERO
   =========================== */
.heroVideo {
    position: relative;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.subtitulo-nombres {
    letter-spacing: 5px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 200;
}

.titulo-mediano {
    font-family: "AstonScript";
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 28px;
}

/* ===========================
   INPUT & BOTÓN ABRIR
   =========================== */
.input-mediano {
    padding: 12px 30px;
    width: 320px;
    max-width: 90vw;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(5px);
    border-radius: var(--radio);
    text-align: center;
    font-size: 14px;
}

::-webkit-input-placeholder { color: rgb(200, 200, 200); }

.btn-abrir {
    margin-top: 4px;
    padding: 12px 36px;
    background: rgba(202,202,202,0.18);
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(1px);
    border-radius: var(--radio);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.btn-abrir:hover {
    background: white;
    color: var(--color-text);
}

/* ===========================
   FOTO PORTADA (FECHA)
   =========================== */
.heroFoto {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-fecha {
    width: 100%;
    aspect-ratio: unset;      /* quita el aspect-ratio fijo */
    height: 95svh;           /* ocupa toda la pantalla */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 150px;
    position: relative;
}

.hero-fotos {
    width: 90%;
    aspect-ratio: unset;      /* quita el aspect-ratio fijo */
    height: 500px;           /* ocupa toda la pantalla */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 48px;
    position: relative;
    border-radius: 8px;
    margin-top: 30px;
}


.hero-fecha-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.hero-fecha-small {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 1.4rem;
    letter-spacing: 0.4em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-fecha-grande {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 3.3rem;
    letter-spacing: 0.1em;
    text-shadow: 1px 2px 16px rgba(0,0,0,0.5);
    line-height: 1;
}

.hero-texto-grande {
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 150;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    line-height: 1;
}

/* ===========================
   COUNTDOWN
   =========================== */
.contador {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: var(--espacio-sm);
}

.contador div {
    background-color: var(--color-tag);
    color: white;
    width: 78px;
    height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radio);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    animation: fadeIn 1.5s ease-in-out;
}

.contador span {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1;
}

.contador small {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   TIPOGRAFÍA CONTENIDO
   =========================== */
.frase-inicio-AstonScript {
    font-family: "AstonScript";
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--color-acento);
    margin-bottom: var(--espacio-xs);
}

.frase-AstonScript-peque{
    font-family: "AstonScript";
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--color-acento);
 margin-top: var(--espacio-xs);

}

.invitacionPara {
    font-size: 1.1rem;
    line-height: 1.75;
    letter-spacing: 1.5px;
    color: var(--color-text);
    max-width: var(--max-contenido);
    text-align: center;
    padding: 0 var(--espacio-xs);
}

.dinero {
    font-size: 0.8rem;
    line-height: 1.75;
    letter-spacing: 1.5px;
    color: var(--color-text);
    max-width: var(--max-contenido);
    text-align: center;
    padding: 0 var(--espacio-xs);
}

/* ===========================
   INVITADOS
   =========================== */
.divInvitados {
    color: white;
    background: var(--color-acento);
    padding: 32px 40px;
    border-radius: var(--radio);
    min-width: 300px;
    max-width: 80%;
    margin-top: var(--espacio-xs);
}

.parsonaInvitada {
    display: block;
    margin-top: 10px;
    font-family: 'FuenteSoage', cursive;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 3px;
}

/* ===========================
   ITINERARIO
   =========================== */
.itinerario-container {
    width: 100%;
    max-width: 420px;
    padding: var(--espacio-xs) var(--espacio-xs) 0;
}

.itinerario-item {
    display: flex;
    align-items: center;
    min-height: 100px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(79, 80, 79, 0.25);
}

.icono {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-left: 12px;
}

.hora {
    font-size: 1rem;
    color: var(--color-rojo);
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
}

.evento {
    font-family: 'FuenteSoage', cursive;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: var(--color-text);
    line-height: 1.25;
    max-width: 260px;
    text-align: left;
}

/* ===========================
   BOTONES
   =========================== */
.boton-invitacion {
    display: inline-block;
    margin-top: var(--espacio-xs);
    padding: 10px 44px;
    background-color: var(--color-acento);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    border: none;
    border-radius: var(--radio);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    text-align: center;
}

.boton-invitacion:hover {
    background-color: var(--color-acento-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.botones-asistencia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: var(--espacio-sm);
}

.boton-asistencia {
    padding: 14px 0;
    width: min(380px, 90vw);
    background-color: var(--color-acento);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    border: none;
    border-radius: var(--radio);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.boton-asistencia:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    filter: brightness(0.92);
}

.boton-declinar {
    background-color: var(--color-rojo);
}

/* ===========================
   CARRUSEL
   =========================== */
.carousel-container {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    margin-top: var(--espacio-xs);
}

.carousel-container:active { cursor: grabbing; }

.carousel-track {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: scroll;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide { flex: 0 0 auto; }

.carousel-slide img {
    height: 60vh; 
    width: auto;
    display: block;
    border-radius: 8px;
    pointer-events: none;
    object-fit: cover;
    -webkit-user-drag: none;
}

/* ===========================
   ANIMACIONES REVEAL
   =========================== */
.revelar {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.revelar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   BOTÓN MÚSICA
   =========================== */
#music-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: none;
    border: 1px solid var(--color-acento);
    color: var(--color-acento);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

#music-btn:hover {
    background: var(--color-acento);
    color: white;
}
