/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fcf2e7;
    color: #333;
}


/* =====================================================
   HEADER
===================================================== */

header {
    background: #502522;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 10%;

    position: sticky;
    top: 0;

    z-index: 1000;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: white;
    font-weight: normal;
}


/* =====================================================
   MENÚ
===================================================== */

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;

    transition: 0.3s;
}

nav a:hover {
    color: #FFD369;
}


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.menu-toggle {
    display: none;

    font-size: 35px;
    color: white;

    cursor: pointer;
    user-select: none;

    transition: 0.3s;
}

.menu-toggle:hover {
    color: #FFD369;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    background-image: url("images/portada.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    position: relative;
}


/* Oscurecer ligeramente la imagen */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.25);
}


/* Contenido encima del fondo */

.hero-text {
    position: relative;

    color: white;

    max-width: 700px;

    padding: 20px;

    text-align: center;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    width: 300px;
    height: auto;

    object-fit: cover;

    margin-bottom: 25px;
}


/* =====================================================
   TÍTULO HERO
===================================================== */

.hero-text h1 {
    font-family: 'Playfair Display', serif;

    font-size: 95px;

    color: #FFD369;

    font-weight: 700;

    margin-bottom: 15px;

    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-text h2 {
    font-size: 32px;

    color: white;

    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* =====================================================
   BOTONES
===================================================== */

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

.boton {
    display: inline-block;
    background: #d4a373;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.boton:hover {
    background: #b57b4b;
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Estilo especial para el botón de aniversario */
.boton-aniversario {
    background: #502522;
    border: 2px solid #FFD369;
    color: #FFD369;
}

.boton-aniversario:hover {
    background: #FFD369;
    color: #502522;
}


/* =====================================================
   SECCIONES
===================================================== */

section {
    padding: 90px 10%;
}

section h2 {
    text-align: center;

    margin-bottom: 30px;

    color: #5c3d2e;

    font-size: 35px;
}


/* =====================================================
   ANIMACIÓN AL HACER SCROLL
===================================================== */

/*
   Las secciones comienzan invisibles
   y ligeramente abajo.
*/

.reveal {
    opacity: 0;

    transform: translateY(60px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}


/*
   Cuando JavaScript agrega .visible,
   la sección aparece.
*/

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   GALERÍA
===================================================== */

.galeria {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.galeria img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 12px;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


/* Animación al pasar el mouse */

.galeria img:hover {
    transform: scale(1.04);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2);
}


/* =====================================================
   NOSOTROS
===================================================== */

#nosotros p {
    text-align: center;

    max-width: 900px;

    margin: 20px auto;

    line-height: 1.8;

    font-size: 18px;
}


/* =====================================================
   UBICACIÓN
===================================================== */

#ubicacion {
    text-align: center;
}

.texto-centro {
    margin-bottom: 30px;
}

.mapa {
    text-align: center;
}


/* =====================================================
   CONTACTO
===================================================== */

#contacto {
    text-align: center;

    line-height: 2;
}

.contactos {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;

    margin-top: 30px;
}

.contacto {
    background: #502522;

    color: white;

    text-decoration: none;

    padding: 15px 30px;

    border-radius: 30px;

    font-size: 18px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.contacto:hover {
    background: #d4a373;

    transform: translateY(-5px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #502522;

    color: white;

    text-align: center;

    padding: 25px;
}


/* =====================================================
   ANIMACIONES INICIALES DEL HERO
===================================================== */

@keyframes aparecer {
    from {
        opacity: 0;

        transform: translateY(30px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* Logo */

.hero-text .logo {
    animation:
        aparecer 1s ease forwards;
}


/* Título */

.hero-text h1 {
    opacity: 0;

    animation:
        aparecer 1s ease 0.2s forwards;
}


/* Subtítulo */

.hero-text h2 {
    opacity: 0;

    animation:
        aparecer 1s ease 0.4s forwards;
}


/* Texto */

.hero-text p {
    opacity: 0;

    animation:
        aparecer 1s ease 0.6s forwards;
}


/* Botón */

.hero-text .boton {
    opacity: 0;

    animation:
        aparecer 1s ease 0.8s forwards;
}


/* =====================================================
   RESPONSIVE / CELULAR
===================================================== */

@media (max-width: 768px) {

    header {
        padding: 15px 20px;

        flex-direction: row;

        justify-content: space-between;

        align-items: center;
    }


    /* Mostrar hamburguesa */

    .menu-toggle {
        display: block;

        z-index: 1001;
    }


    /* Menú cerrado */

    nav {
        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        background: #502522;

        display: flex;

        flex-direction: column;

        align-items: center;

        max-height: 0;

        overflow: hidden;

        gap: 0;

        transition:
            max-height 0.4s ease,
            padding 0.4s ease;

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.2);
    }


    /* Menú abierto */

    nav.active {
        max-height: 500px;

        padding: 20px 0;
    }


    nav a {
        width: 100%;

        padding: 15px;

        text-align: center;

        font-size: 18px;
    }


    /* Hero */

    .hero {
        min-height: 100vh;
    }


    .hero-text {
        width: 90%;

        margin: auto;
    }


    /* Logo */

    .logo {
        width: 220px;
    }


    /* Título */

    .hero-text h1 {
        font-size: 65px;
    }


    .hero-text h2 {
        font-size: 25px;
    }


    .hero-text p {
        font-size: 17px;
    }


    /* Secciones */

    section {
        padding: 70px 20px;
    }


    section h2 {
        font-size: 30px;
    }


    /* =================================================
       GALERÍA HORIZONTAL EN CELULAR
    ================================================= */

    .galeria {
        display: flex;

        flex-wrap: nowrap;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        gap: 15px;

        padding: 10px 0 15px;

        -webkit-overflow-scrolling: touch;
    }


    .galeria img {
        flex: 0 0 90%;

        width: 90%;

        height: 250px;

        scroll-snap-align: center;

        border-radius: 15px;
    }


    /* Ocultar scrollbar */

    .galeria::-webkit-scrollbar {
        display: none;
    }

    .galeria {
        scrollbar-width: none;
    }


    /* Contactos */

    .contactos {
        flex-direction: column;

        align-items: center;
    }

    .contacto {
        width: 80%;
    }
}


/* =====================================================
   REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .hero-text .logo,
    .hero-text h1,
    .hero-text h2,
    .hero-text p,
    .hero-text .boton {
        opacity: 1;

        animation: none;
    }
}
/* =====================================================
   ANIMACIÓN DEL GLOBO DE ANIVERSARIO
===================================================== */

.globo-aniversario {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #FFE89C, #FFD369, #C8952A);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: #502522;
    z-index: 2000;
    pointer-events: none;
    animation: flotarGlobo 4s ease-out forwards;
}

/* Nudo del globo */
.globo-aniversario::before {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 10px;
    background: #C8952A;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

/* Cuerda del globo */
.globo-aniversario::after {
    content: "";
    position: absolute;
    bottom: -68px;
    width: 2px;
    height: 60px;
    background: rgba(80, 37, 34, 0.5);
}

/* Trayectoria de elevación y flotación */
@keyframes flotarGlobo {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translateX(-50%) rotate(-5deg);
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translateX(-40%) rotate(6deg);
    }
    75% {
        transform: translateX(-60%) rotate(-4deg);
    }
    100% {
        bottom: 80vh;
        opacity: 0;
        transform: translateX(-50%) rotate(3deg);
    }
}
/* MAPA RESPONSIVO */

#ubicacion {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#ubicacion iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
}
@media (max-width: 768px) {

    #ubicacion {
        padding-left: 20px;
        padding-right: 20px;
    }

    #ubicacion iframe {
        width: 100%;
        height: 300px;
        border-radius: 12px;
    }

}