html {
    scroll-behavior: smooth;
}

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

html,
body {
    min-height: 100%;
    overflow-x: clip;
}

:root {
    --color-primario: #000000;
    --color-secundario: #ffffff;
    --color-terciario: #ffcc00;
    --btn-primario: #FFFFFF;
    --btn-ltr-primario: #060606;
    --btn-secundario: #000000;
    --btn-ltr-secundario: #FFFFFF;
    --btn-terciario: #f5f5f5;
    --btn-ltr-terciario: #000000;
    --btn-radio: 8px;
    --btn-ltr-fontsize: 1.5rem;
    --shadow-px: 4px 6px 10px 0 rgba(255, 255, 255, 0.252);
    --shadow-px-2: 4px 6px 10px 0 rgba(0, 0, 0, 0.18);
}

/* En el contenedor global (por ejemplo body o .hero) */



/*  ESTILOS DEL NAV */
header {
    width: 100%;
    height: auto;
    min-height: 100px;
    background-color: var(--color-primario);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: padding 0.35s ease, background-color 0.35s ease,
                box-shadow 0.35s ease, min-height 0.35s ease;
}

header.scrolled {
    min-height: 68px;
    padding: 0px 20px;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(255, 204, 0, 0.15);
}

header.scrolled .logo img {
    width: 52px;
}

header.scrolled .logo p {
    font-size: 1.1rem;
}

header.scrolled .aniversario-10 img {
    width: 82px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    z-index: 101;
}

.logo img {
    width: 82px;
    height: auto;
    max-width: 100%;
    transition: width 0.35s ease;
}

.logo p {
    color: var(--color-secundario);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    white-space: nowrap;
    transition: font-size 0.35s ease;
}

.aniversario-10 {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.aniversario-10 img {
    width: 115px;
    height: auto;
    max-width: 100%;
    transition: width 0.35s ease;
}

/* El resto del CSS se mantiene igual */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 0;
}

/* Link base */
nav ul li a,
nav ul li button {
    text-decoration: none;
    color: var(--color-secundario);
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: color 0.3s ease;
}

/* Línea oculta por defecto */
nav ul li a::after,
nav ul li button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: var(--color-terciario);
    transition: width 0.3s ease;
}

/* Mostrar línea al hacer hover/focus */
nav ul li a:hover::after,
nav ul li a:focus-visible::after,
nav ul li button:hover::after,
nav ul li button:focus-visible::after {
    width: 100%;
}

/* Mantener línea en el link activo */
nav ul li a.activo::after,
nav ul li button.activo::after {
    width: 100%;
}

/* Botón especial para el último link */
nav ul li .ultimo {
    border: 2px solid var(--color-terciario);
    border-radius: 25px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--color-secundario);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s ease;
}

/* ❌ Eliminar la animación de subrayado en el último link */
nav ul li .ultimo::after {
    content: none;
}

nav ul li .ultimo:hover {
    background-color: var(--color-terciario);
    color: var(--color-primario);
    box-shadow: 0 4px 18px rgba(255, 204, 0, 0.45);
    transform: translateY(-2px);
}

/*editando el menu en moviles*/
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
    z-index: 101;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-secundario);
    margin: 4px 0;
    transition: 0.4s;
}

/* Animación para el menú hamburguesa cuando está activo */
.menu-icon.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
/*  FIN DE ESTILOS DEL NAV */
/*////////////////////////////////////////////////*/
/*////////////////////////////////////////////////*/

/*////////////////////////////////////////////////*/
/*////////////////////////////////////////////////*/

/* ============================================================
   BOTÓN CON GLOW — utilidad reutilizable
   Requisitos del botón: position: relative; overflow: hidden;
   Agregar <div class="btn-glow"></div> como hijo del botón.
   ============================================================ */

.btn-glow {
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

*:hover > .btn-glow {
    width: 350px;
    height: 350px;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* Animaciones */
/* ANIMACIONES FADE - Agregar al final de tu archivo CSS */

/* Clases base para animaciones fade */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones de fade con diferentes direcciones */
.fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-down.visible {
    opacity: 1;
    transform: translateY(0);
    color: white;
}

/* Animación con escala */
.fade-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animación con rotación */
.fade-rotate {
    opacity: 0;
    transform: rotateY(45deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-rotate.visible {
    opacity: 1;
    transform: rotateY(0deg);

}



/* Animación para elementos que aparecen al cargar la página */
.fade-on-load {
    animation: fadeInOnLoad 1s ease-out forwards;
    opacity: 0;
}

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

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

.fade-left,
.fade-right,
.fade-up,
.fade-down,
.fade-scale,
.fade-rotate {
    will-change: opacity, transform;
}

/* Animación especial para estadísticas */
.contador {
    opacity: 0;
    transform: scale(0.5);
}

.contador.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animación de pulso suave  UTILIZADO EN EL CTA-*/
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.pulse {
    animation: pulse 2s infinite;
}

.pulse:hover {
    animation-play-state: paused;
}

/* Desktop/Tablet horizontal */
@media screen and (max-width: 1024px) {
    /* Navegación */
    nav ul {
        gap: 15px;
    }
    
    nav ul li a {
        font-size: 1rem;
    }
    
    .logo p {
        font-size: 1.3rem;
    }
}

/* Tablet vertical/Mobile horizontal */
@media screen and (max-width: 768px) {
    /* Header */
    header {
        justify-content: space-between;
        padding: 15px;
        height: 90px;
    }

    .logo {
        margin-left: 0;
    }

    .logo p {
        font-size: 1rem;
    }


    .aniversario-10 img {
        width: 100px;
    }

    /* Menú móvil */
    nav ul {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: #111;
        border-top: 1px solid rgba(255, 204, 0, 0.2);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 48px;
        gap: 32px;
        transition: left 0.4s ease;
        z-index: 1000;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li a,
    nav ul li:last-child a {
        color: var(--color-secundario);
        font-size: 1.1rem;
    }

    nav ul li .ultimo {
        border-color: var(--color-terciario);
        color: var(--color-terciario);
    }

    .menu-icon {
        display: flex;
    }
    
}
@media screen and (min-width: 769px) {
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    /* Header */
    header {
        padding: 10px 15px;
        height: 80px;
    }

    .logo p {
        display: none;
    }

    .aniversario-10 img {
        display: none;
    }
}

/* Mobile muy pequeño */
@media screen and (max-width: 400px) {
    /* Header */
    header {
        width: 100%;
        flex-direction: row;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }

    .logo {
        margin-right: auto;
    }
}