/* Tipografías y fondo */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* slate-50 */
    /* Se ha suavizado el color del patrón de fondo para que sea menos distractor */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0f2fe' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* Modo oscuro básico */
.dark body {
    background-color: #0f172a; /* slate-900 */
    background-image: none;
}

/* Gradiente de texto actualizado con la nueva paleta de colores */
.gradient-text {
    background: linear-gradient(90deg, #2563EB, #0891B2, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

/* Color del subrayado del enlace de navegación actualizado */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #2563EB; /* blue-600 */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

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

/* Colores de fondo de sección más sutiles y consistentes */
.section-bg-odd {
    background-color: #f8fafc; /* slate-50 */
}

.section-bg-even {
    background-color: #f0f9ff; /* sky-50 */
}

/* Variantes en oscuro */
.dark .card {
    background: rgba(15, 23, 42, 0.9); /* slate-900 */
    border: 1px solid rgba(51, 65, 85, 0.6); /* slate-600 */
}

.dark .section-bg-odd {
    background-color: #0f172a; /* slate-900 */
}

.dark .section-bg-even {
    background-color: #0b1220; /* near slate-950 */
}

/* Toggle de tema */
#theme-toggle button,
#theme-toggle-mobile button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.5); /* slate-400 */
    color: #334155; /* slate-700 */
    background: #ffffff;
}

.dark #theme-toggle button,
.dark #theme-toggle-mobile button {
    border-color: rgba(71, 85, 105, 0.8); /* slate-600 */
    color: #cbd5e1; /* slate-300 */
    background: #0f172a; /* slate-900 */
}

#theme-toggle button.is-active,
#theme-toggle-mobile button.is-active {
    background: #2563eb; /* blue-600 */
    color: #ffffff;
    border-color: #2563eb;
}
/*
 Vibe Coding Educativo - Estilos
 Licencia del código: GPL-3.0 (ver LICENSE.txt)
 Copyright (c) 2025 Juan José de Haro
*/
