/* 
   Escuela Moderna San Juan - Modern UI/UX 2026
*/

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

:root {
    /* Modern Palette */
    --brand-dark: #003366;
    /* Deep Blue */
    --brand-primary: #2563EB;
    /* Electric Blue */
    --brand-cyan: #06B6D4;
    /* Cyan */
    --brand-accent: #FFC107;
    /* Gold/Yellow (More vibrant) */

    --bg-light: #F8FAFC;
    /* Light Slate */
    --bg-white: #ffffff;

    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* UX Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Resets */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Utility Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Components */

/* Glass Cards */
.card-modern {
    background: white;
    border-radius: 1.5rem;
    /* Rounded 2xl */
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
    /* Blue glow */
    border-color: rgba(37, 99, 235, 0.2);
}

/* Gradients */
.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
}

.text-gradient-gold {
    background: linear-gradient(to right, #F59E0B, #FCD34D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(to right, #2563EB, #06B6D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-modern:hover::after {
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Menu Overlay Rewrite */
#mobile-menu-drawer {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Reveal on Scroll (Legacy support + enhancement) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Overlay - New Modern Gradient */
.hero-overlay-modern {
    background: linear-gradient(90deg,
            rgba(0, 5, 20, 0.98) 0%,
            /* Almost black-blue */
            rgba(0, 30, 80, 0.9) 50%,
            /* Dark Blue */
            rgba(0, 0, 0, 0.6) 100%
            /* Significant tint even at the end */
        );
}

.text-shadow-hero {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7);
}

.hero-text-box {
    background-color: rgba(0, 15, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}