:root {
    /* Paleta de colores basada en #3593d0 (color de la bandera) */
    --primary-color: #3593d0;        /* Azul principal de la bandera */
    --primary-dark: #2a7ba8;         /* Azul oscuro (80% del principal) */
    --primary-darker: #1f5c80;        /* Azul más oscuro (60% del principal) */
    --primary-light: #4da3d8;         /* Azul claro (120% del principal) */
    --primary-lighter: #6bb3e0;       /* Azul muy claro (140% del principal) */
    --secondary-color: #2c7ba6;       /* Azul secundario complementario */
    --accent-color: #f59e0b;          /* Amarillo/Naranja - acento cálido */
    --accent-light: #fbbf24;          /* Amarillo claro */
    
    /* Colores de texto */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Colores de fondo */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-primary-light: #e6f2fa;     /* Fondo azul muy claro basado en #3593d0 */
    --bg-primary-lighter: #f0f8fc;    /* Fondo azul extremadamente claro */
    
    /* Gradientes basados en #3593d0 - solo azules */
    --gradient-primary: linear-gradient(135deg, #3593d0 0%, #2a7ba8 100%);
    --gradient-primary-light: linear-gradient(135deg, #4da3d8 0%, #3593d0 100%);
    --gradient-secondary: linear-gradient(135deg, #2c7ba6 0%, #1f5c80 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-hero: linear-gradient(135deg, #6bb3e0 0%, #4da3d8 25%, #3593d0 50%, #2a7ba8 75%, #1f5c80 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 14px rgba(53, 147, 208, 0.3);
    --shadow-primary-lg: 0 8px 24px rgba(53, 147, 208, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand-link {
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .nav-brand {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-school-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-width 0.4s ease, margin 0.4s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.navbar.scrolled .nav-school-name {
    opacity: 1;
    max-width: 300px;
    margin-left: 0.5rem;
}

@media (max-width: 968px) {
    .nav-school-name {
        font-size: 0.85rem;
    }
    
    .navbar.scrolled .nav-school-name {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .nav-school-name {
        font-size: 0.95rem;
        max-width: 0;
        opacity: 0;
        flex-shrink: 1;
    }
    
    .navbar.scrolled .nav-school-name {
        max-width: calc(100vw - 120px);
        opacity: 1;
        margin-left: 0.3rem;
    }
    
    .hamburger {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 50%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.btn-platform {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.btn-platform::after {
    display: none;
}

.btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white !important;
}

.btn-platform.active {
    box-shadow: 0 4px 12px rgba(53, 147, 208, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6bb3e0 0%, #4da3d8 20%, #3593d0 40%, #2a7ba8 60%, #1f5c80 80%, #3593d0 100%);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(77, 163, 216, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
    will-change: opacity;
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 0%; 
    }
    25% { 
        background-position: 100% 0%; 
    }
    50% { 
        background-position: 100% 100%; 
    }
    75% { 
        background-position: 0% 100%; 
    }
    100% { 
        background-position: 0% 0%; 
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    padding-top: 100px;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both, float 6s ease-in-out infinite;
    will-change: transform;
}

.hero-full-name {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(53, 147, 208, 0.3);
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 0.1s both;
    text-align: center;
    line-height: 1.4;
}

.hero-logo-img {
    width: 600px;
    height: auto;
    max-width: 80vw;
    opacity: 1 !important;
    filter: drop-shadow(0 15px 40px rgba(53, 147, 208, 0.4)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
}

.hero-logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 20px 50px rgba(53, 147, 208, 0.5)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.hero-school-name {
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(53, 147, 208, 0.3);
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-motto {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(53, 147, 208, 0.3);
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease 0.6s both;
    opacity: 0.95;
    max-width: 600px;
    text-align: center;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.5s both;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}


/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.about-image,
.platform-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.05);
}

.image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission & Vision Sections */
.mission {
    background: var(--bg-light);
}

.mission-card,
.vision-card {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.mission-icon,
.vision-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mission-icon svg,
.vision-icon svg {
    width: 40px;
    height: 40px;
}

.mission-content,
.vision-content {
    flex: 1;
}

.mission-content .section-title,
.vision-content .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.mission-content .title-underline,
.vision-content .title-underline {
    margin: 0 0 1.5rem 0;
}

.mission-content p,
.vision-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.vision {
    background: var(--bg-white);
}

.vision-icon {
    background: var(--gradient-secondary);
}

/* Ajustes de color para mejor contraste con la nueva paleta */
.about-text .lead {
    color: var(--primary-color);
}

.stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Platform Section */
.platform {
    background: var(--bg-light);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.platform-text {
    order: 1;
}

.platform-image {
    order: 2;
}

.platform-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-platform-page {
    background: var(--gradient-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-platform-page svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.btn-platform-page:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-platform-page:hover svg {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-logo-img {
        width: 380px;
        opacity: 1 !important;
    }

    .hero-school-name {
        font-size: 3rem;
    }

    .hero-motto {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 45px;
    }

    .about-content,
    .platform-content {
        grid-template-columns: 1fr;
    }

    .platform-image {
        order: 1;
    }

    .platform-text {
        order: 2;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .mission-card,
    .vision-card {
        flex-direction: column;
        text-align: center;
    }

    .mission-content .section-title,
    .vision-content .section-title {
        text-align: center;
    }

    .mission-content .title-underline,
    .vision-content .title-underline {
        margin: 0 auto 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 55px;
    }

    .hero-full-name {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-logo-img {
        width: 320px;
        opacity: 1 !important;
    }

    .hero-school-name {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }

    .hero-motto {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mission-card,
    .vision-card {
        padding: 2rem 1.5rem;
    }
}


