/* src/css/custom.css */
/* Estilos que Tailwind no puede manejar inline */

/* =========================================
   SCROLLBAR PERSONALIZADA
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #001F3F;
    border-radius: 4px;
}

/* =========================================
   ANIMACIONES - Estado inicial opacity 0
   ========================================= */
.animate-fade-in-up,
.animate-fade-in-up-delay-1,
.animate-fade-in-up-delay-2,
.animate-fade-in-up-delay-3,
.animate-fade-in-up-delay-4 {
    opacity: 0;
}

/* =========================================
   PSEUDO-ELEMENTOS PARA CARDS
   ========================================= */

/* Role card top bar (teacher) */
.role-card-teacher::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #001F3F;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* Role card top bar (student) */
.role-card-student::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #FFD700;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.role-card-teacher:hover::before,
.role-card-student:hover::before {
    transform: scaleX(1);
}

/* Step connector line */
.step-connector::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #FFD700 0%, transparent 100%);
}

/* =========================================
   HERO BACKGROUND GRADIENTS
   ========================================= */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, #F8F9FA 100%);
    pointer-events: none;
}

/* =========================================
   CTA FINAL PULSE BACKGROUND
   ========================================= */
.cta-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* =========================================
   NAV LINK UNDERLINE
   ========================================= */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   FOCUS VISIBLE (ACCESIBILIDAD)
   ========================================= */
:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}
