/* ================================================== */
/*        ESTILOS PERSONALIZADOS – AURA AESTHETIC      */
/* ================================================== */

/* Glassmorphism base */
.glassmorphism {
    background: rgba(250, 247, 244, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(184, 149, 106, 0.2);
}

/* Grain overlay (applied to body via class .grain-overlay) */
.grain-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    z-index: 50;
}

/* Animación rebote lento para la flecha del hero */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}
.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

/* Botones personalizados (complementan Tailwind) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Nav link activo opcional (manejado por JS) */
.nav-link.active {
    color: #8a6b3f; /* Tono más intenso */
    font-weight: 600;
}

/* Alineación uniforme de enlaces de navegación */
#mainNav > div {
    align-items: center;
}
#mainNav ul {
    align-items: center;
}
#mainNav li {
    display: flex;
    align-items: center;
}
#mainNav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0.5rem 0;
}
#mainNav .nav-link {
    min-height: 2.7rem;
}

/* Select con apariencia de flecha personalizada (ya se usa 'appearance-none', se puede añadir icono) */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolygon fill='%2390735a' points='6 8 0 0 12 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
}

/* Contadores animados (por JS) */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Ajuste responsive para la tipografía display en móviles */
@media (max-width: 640px) {
    .font-display-xl {
        font-size: 2.8rem !important; /* Aproximación, respetando la fuente */
    }
    .font-headline-lg {
        font-size: 2.2rem !important;
    }
    .font-headline-md {
        font-size: 1.8rem !important;
    }
}

/* Suavizado de transiciones en enlaces móviles */
.mobile-nav-link {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Evita desbordamiento de imágenes en contenedores redondeados */
img {
    display: block;
    max-width: 100%;
}