/* --- Tema Claro General --- */
body {
    background-color: #F8F8F8; /* Blanco roto para el fondo principal */
    color: #1F2937; /* Gris oscuro para el texto principal */
    font-family: 'Red Hat Display', sans-serif;
    min-height: 100vh;
}
/* Estilos personalizados para el Glassmorphism y Glow */
.font-sans {
    font-family: 'Red Hat Display', sans-serif;
}
.text-gradient {
    background-image: linear-gradient(90deg, #6366f1, #a855f7); /* Indigo a Púrpura */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.header-modern {
    /* Estilo Glassmorphism para el header */
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}
.header-scrolled {
    /* Estilo más compacto al hacer scroll */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.btn-glow {
    background-color: #4f46e5; /* Indigo-600 */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5); /* Sombra de brillo azul */
}
.btn-glow:hover {
    background-color: #6366f1; /* Indigo-500 */
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    transform: translateY(-1px);
}
.tech-capsule {
    background-color: #f3f4f6; /* Gray-100 */
    color: #4b5563; /* Gray-600 */
    transition: background-color 0.3s, transform 0.3s;
}
.tech-capsule:hover {
    background-color: #e5e7eb; /* Gray-200 */
    transform: translateY(-2px);
}
/* Clases de animación inicial para Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilo para Enlaces de Navegación con Underline Animado --- */
.nav-link {
    padding-bottom: 0.25rem; 
    position: relative;
    transition: color 0.2s;
    /* Añade scroll-margin-top para que al hacer clic en el enlace, el header no tape el contenido de la sección */
    scroll-margin-top: 5rem; 
}

/* Pseudo-elemento para la línea animada */
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #7E22CE); 
    transition: width 0.3s ease-out, left 0.3s ease-out;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}


/* --- Botón con Efecto Glow --- */
.btn-glow {
    transition: all 0.4s ease-in-out;
    background: linear-gradient(90deg, #6366F1, #7E22CE); 
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7), 0 0 10px rgba(126, 34, 206, 0.4);
    transform: scale(1.02);
}

/* --- Nuevos Estilos para Animación al Scroll (Fade-Up) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform: 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nuevo estilo para las cápsulas de tecnología */
.tech-capsule {
    border: 1px solid #D1D5DB; /* Borde gris claro */
    color: #4B5563; /* Texto gris oscuro */
    transition: all 0.3s;
}

.tech-capsule:hover {
    border-color: #6366F1;
    color: #6366F1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* Ajuste para que las secciones se vean correctamente al hacer scroll to hash */
section {
    padding-top: 2rem; /* Añade un poco de padding superior para evitar que el contenido se pegue al header */
}