/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Snap (Efecto Diapositiva) */
html {
    scroll-snap-type: y mandatory;
}
section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* =========================================
   ANIMACIONES Y EFECTOS
   ========================================= */

/* Entrada Fade Up (Para textos) */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   COMPONENTES DE UI
   ========================================= */

/* BOTONES POWER */
.btn-power {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
}
.btn-power:hover {
    background-color: #0D2B4E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(13, 43, 78, 0.5);
    color: white;
}
/* Variante Footer */
#contacto .btn-power:hover {
    background-color: #0D2B4E;
    color: white;
}

/* ENLACES DE NAVEGACIÓN */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0D2B4E;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

/* NAVBAR BLUR */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* PLACEHOLDER IMÁGENES */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* Evitar layout shift en el toggle de idioma */
#hero-phrase {
    min-height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-subtitle {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lang-toggle {
    min-width: 3rem;
    text-align: center;
}

.metodologia-card-desc {
    min-height: 5rem;
}
