/* Paleta de colores */
:root {
    --verde-claro: #d6e2ca;
    --verde-medio-claro: #bfcfab;
    --verde-medio: #a8b98f;
    --verde-medio-oscuro: #8c9d73;
    --verde-oscuro: #7d8e64;
    --verde-muy-oscuro: #68794f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    overflow: hidden;
}

main {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 2px;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--verde-muy-oscuro);
    scroll-behavior: smooth;
    background: var(--verde-claro);
}

/* Contenedor general */
.container {
    width: 100%;
    overflow-x: hidden;
}

/* Header con fondo fijo */
header {
    position: relative;
    height: 100vh;
    background-image: url('../img/foto5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 61, 36, 0.6);
    z-index: 0;
}

header>* {
    position: relative;
    z-index: 1;
}

/* Nombres */
.nombres {
    font-size: 3.5rem;
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.2em;
}

/* Fecha */
.fecha {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1em;
}

/* Contador regresivo */
.contador {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    padding: 0.3em 0;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    font-family: monospace;
    user-select: none;
    margin-bottom: 1.5em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}


/* Texto "Nos casamos" */
.nos-casamos {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    font-family: "Dancing Script", cursive;
    color: var(--verde-oscuro);
    margin: 40px 0 10px;
    text-align: center;
}

.frase {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--verde-medio-oscuro);
    text-align: center;
    margin-bottom: 20px;
}


/* Invitado y pases */
.invitado-info {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--verde-medio-oscuro);
    text-align: center;
    margin-bottom: 60px;
}

/* Secciones siguientes con fondo */
section {
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--verde-muy-oscuro);
    font-size: 2rem;
    padding: 20px;
    text-align: center;
}

.animar-aparicion {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.animar-aparicion.mostrar {
    opacity: 1;
    transform: translateY(0);
}


.bloque-invitado {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 5px solid var(--verde-oscuro);
    border-right: 5px solid var(--verde-oscuro);
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.titulo-invitado {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--verde-muy-oscuro);
    margin-bottom: 15px;
}

.nombre-invitado {
    color: #4b5e3c;
    /* tono elegante complementario al verde */
    font-style: italic;
}

.pases {
    font-size: 1.3rem;
    color: #5f7153;
    margin-bottom: 10px;
}

.agradecimiento {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}


section {
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

.parallax::after {
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateZ(-.5px) scale(1.4);
    background-size: 100%;
    z-index: -3;
}

.bg::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url("../img/foto3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

.bg2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url("../img/foto1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

.no-parallax {
    z-index: 3;
}

/* Responsivo */
@media (max-width: 600px) {
    .nombres {
        font-size: 2rem;
    }

    .contador {
        font-size: 1.5rem;
    }

    .nos-casamos {
        font-size: 3rem;
    }

    .invitado-info {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .parallax, .bg {
    background-attachment: scroll !important;
  }


}

.seccion-recepcion {
    position: relative;
    background-color: #ececec;
    padding: 60px 20px;
}

.caja-recepcion {
    max-width: 600px;
    margin: auto;
    padding: 30px 20px;
    border: 2px solid var(--verde-oscuro);
    text-align: center;
    background-color: transparent;
    /* sin fondo */
}

.titulo-seccion {
    margin-top: -20px;
    font-size: 3.5rem;
    letter-spacing: 0.1em;
    font-family: "Dancing Script", cursive;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
}

.info-recepcion {
    font-size: 1.2rem;
    color: var(--verde-muy-oscuro);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Botón elegante */
.boton-mapa {
    display: inline-block;
    background-color: var(--verde-oscuro);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.boton-mapa:hover {
    background-color: var(--verde-medio-oscuro);
}