@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* ========================================
   Hero - Fondo con gradiente animado
   ======================================== */
.hero-bg {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0369a1, #0f172a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Glass Card (efecto glassmorphism)
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Gráfica animada - barras que crecen
   ======================================== */
@keyframes grow-bar {
    0% {
        height: 0%;
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-grow {
    animation: grow-bar 1.5s ease-out forwards;
    transform-origin: bottom;
}

/* ========================================
   Metric Cards (sección Perfil)
   ======================================== */
.metric-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

/* ========================================
   Menú Hamburguesa (mobile)
   ======================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 60;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación de X al abrir */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú móvil desplegable */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 55;
    padding: 80px 32px 32px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background-color: #f1f5f9;
    color: #1d4ed8;
}

/* Overlay detrás del menú */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.menu-overlay.active {
    display: block;
}

@media (max-width: 767px) {
    .hamburger-btn {
        display: flex;
    }
}

/* ========================================
   Formulario - Estados de feedback
   ======================================== */
.form-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 12px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Botón loading state */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}