/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #5b52e1;
    --accent-color: #93e1fb;
    --success-color: #4facfe;
    --warning-color: #93effb;
    --danger-color: #6ba6ff;
    
   /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1a202c;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #444aa0 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #939afb 0%, #032c3f 100%);
    --bg-gradient-hero: linear-gradient(135deg, #5cb9f2 0%, #0466c8 40%, #002855 100%);

    /* Colores de texto */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgb(255, 255, 255);
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #385db1;
    background-clip: text;
}



/* ===== HEADER MODERNO ===== */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.header-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}


.nav-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 1rem;
}

.cta-nav {
    background: var(--bg-gradient);
    color: var(--text-white) !important;
    box-shadow: var(--shadow-sm);
}

.cta-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== HERO MODERNO ===== */
.hero-modern {
    min-height: 100vh;
    background: var(--bg-gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, #364cf5 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 138, 210, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="mathPattern" width="200" height="200" patternUnits="userSpaceOnUse"><text x="10" y="20" font-family="Arial" font-size="12" fill="rgba(255,255,255,0.1)">+</text><text x="50" y="40" font-family="Arial" font-size="10" fill="rgba(255,255,255,0.08)">-</text><text x="100" y="30" font-family="Arial" font-size="14" fill="rgba(255,255,255,0.1)">=</text><text x="150" y="25" font-family="Arial" font-size="11" fill="rgba(255,255,255,0.08)">x</text><text x="20" y="80" font-family="Arial" font-size="13" fill="rgba(255,255,255,0.1)">√</text><text x="80" y="90" font-family="Arial" font-size="9" fill="rgba(255,255,255,0.08)">÷</text><text x="130" y="85" font-family="Arial" font-size="12" fill="rgba(255,255,255,0.1)">+</text><text x="180" y="95" font-family="Arial" font-size="10" fill="rgba(255,255,255,0.08)">-</text></pattern></defs><rect width="200" height="200" fill="url(%23mathPattern)"/></svg>');
    opacity: 0.4;
    animation: mathPatternMove 20s linear infinite;
}

@keyframes mathPatternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-200px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--text-white);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-welcome {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-main {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.math-symbols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 350px;
    position: relative;
}

.symbol {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-white);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: mathFloat 4s ease-in-out infinite;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.symbol:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.symbol:nth-child(1) { animation-delay: 0s; }
.symbol:nth-child(2) { animation-delay: 0.8s; }
.symbol:nth-child(3) { animation-delay: 1.6s; }
.symbol:nth-child(4) { animation-delay: 2.4s; }
.symbol:nth-child(5) { animation-delay: 3.2s; }
.symbol:nth-child(6) { animation-delay: 0.4s; }
.symbol:nth-child(7) { animation-delay: 1.2s; }
.symbol:nth-child(8) { animation-delay: 2.0s; }

@keyframes mathFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(-3deg); 
    }
    75% { 
        transform: translateY(-20px) rotate(8deg); 
    }
}

/* Símbolos matemáticos adicionales flotantes en el fondo */
.hero-modern .floating-math {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: drift 15s linear infinite;
    pointer-events: none;
}

.hero-modern .floating-math:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.hero-modern .floating-math:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.hero-modern .floating-math:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.hero-modern .floating-math:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 6s; }
.hero-modern .floating-math:nth-child(5) { top: 50%; left: 5%; animation-delay: 8s; }
.hero-modern .floating-math:nth-child(6) { top: 60%; right: 5%; animation-delay: 10s; }

@keyframes drift {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== SECCIÓN ACERCA DE ===== */
/* ===== SECCIÓN ACERCA DE ===== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mathGrid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 0 0 L 100 0 L 100 100 L 0 100 Z" fill="none" stroke="rgba(102,126,234,0.03)" stroke-width="0.5"/><circle cx="25" cy="25" r="1" fill="rgba(102,126,234,0.05)"/><circle cx="75" cy="25" r="1" fill="rgba(102,126,234,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(102,126,234,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(102,126,234,0.05)"/><text x="10" y="15" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">1</text><text x="40" y="15" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">2</text><text x="70" y="15" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">3</text><text x="10" y="35" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">4</text><text x="40" y="35" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">5</text><text x="70" y="35" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.04)">6</text></pattern></defs><rect width="100" height="100" fill="url(%23mathGrid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

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

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 400px;
    height: 400px;
    border-radius: var();
    background: var();
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var();
    position: relative;
  
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ESTILOS CORREGIDOS PARA EL CONTENEDOR DE LA IMAGEN */
.image-placeholder {
    width: 95%; 
    height: 95%;
    overflow: hidden; 
    border-radius: var(--border-radius-xl);
    z-index: 2;
   
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top; 
    display: block; 
}


.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgb(27, 26, 39);
    text-align: justify;
}


.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===== SECCIÓN OBJETIVOS ===== */
.objectives-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.objective-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.objective-card.mission {
    background: linear-gradient(135deg, #475aaf 0%, #3382ea 100%);
    color: var(--text-white);
}

.objective-card.vision {
    background: linear-gradient(135deg, #475aaf 0%, #3382ea  100%);
    color: var(--text-white);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(217, 220, 222, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.card-icon i {
    font-size: 2rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    text-align: justify;
}

.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* ===== SECCIÓN DOCENTES ===== */
.teachers-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.teacher-image {
    position: relative;
    height: 250px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.teacher-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0;
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

.teacher-info {
    padding: 2rem;
}

.teacher-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.teacher-specialty {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: justify;
}

.teacher-experience {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.teacher-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== SECCIÓN CARACTERÍSTICAS ===== */
.features-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><defs><pattern id="mathCircles" width="120" height="120" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="15" fill="none" stroke="rgba(102,126,234,0.02)" stroke-width="1"/><circle cx="90" cy="30" r="12" fill="none" stroke="rgba(102,126,234,0.02)" stroke-width="1"/><circle cx="30" cy="90" r="18" fill="none" stroke="rgba(102,126,234,0.02)" stroke-width="1"/><circle cx="90" cy="90" r="14" fill="none" stroke="rgba(102,126,234,0.02)" stroke-width="1"/><circle cx="60" cy="60" r="20" fill="none" stroke="rgba(102,126,234,0.02)" stroke-width="1"/><text x="25" y="35" font-family="Arial" font-size="8" fill="rgba(102,126,234,0.03)">°</text><text x="85" y="35" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.03)">°</text><text x="25" y="95" font-family="Arial" font-size="10" fill="rgba(102,126,234,0.03)">°</text><text x="85" y="95" font-family="Arial" font-size="7" fill="rgba(102,126,234,0.03)">°</text><text x="55" y="65" font-family="Arial" font-size="12" fill="rgba(102,126,234,0.03)">°</text></pattern></defs><rect width="120" height="120" fill="url(%23mathCircles)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SECCIÓN CTA ===== */
.cta-section {
    padding: 6rem 0;
    background: var(--bg-gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><pattern id="mathDots" width="150" height="150" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="125" cy="25" r="2.5" fill="rgba(255,255,255,0.12)"/><circle cx="25" cy="75" r="1.8" fill="rgba(255,255,255,0.09)"/><circle cx="75" cy="75" r="2.2" fill="rgba(255,255,255,0.11)"/><circle cx="125" cy="75" r="1.6" fill="rgba(255,255,255,0.07)"/><circle cx="25" cy="125" r="2.1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="125" r="1.9" fill="rgba(255,255,255,0.08)"/><circle cx="125" cy="125" r="2.3" fill="rgba(255,255,255,0.12)"/><text x="10" y="40" font-family="Arial" font-size="8" fill="rgba(255,255,255,0.05)">+</text><text x="60" y="50" font-family="Arial" font-size="6" fill="rgba(255,255,255,0.04)">-</text><text x="110" y="45" font-family="Arial" font-size="7" fill="rgba(255,255,255,0.05)">×</text><text x="15" y="90" font-family="Arial" font-size="5" fill="rgba(255,255,255,0.04)">÷</text><text x="65" y="100" font-family="Arial" font-size="8" fill="rgba(255,255,255,0.05)">=</text><text x="115" y="95" font-family="Arial" font-size="6" fill="rgba(255,255,255,0.04)">±</text></pattern></defs><rect width="150" height="150" fill="url(%23mathDots)"/></svg>');
    opacity: 0.6;
    animation: mathDotsMove 25s linear infinite;
}

@keyframes mathDotsMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-150px) translateY(-150px); }
}
.cta-section {
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    height: 100vh;             /* Ocupa toda la altura de la pantalla */
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
    text-align: center;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr;  /* Solo una columna (puedes volver a 1fr 1fr si luego agregas imagen) */
    gap: 2rem;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.cta-text {
    color: var(--text-white);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: justify; 
}
.cta-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-decoration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}
/* ===== SECCIÓN DEL MANUAL DE USUARIO ===== */
#manual-usuario {
  position: relative;
  padding: 100px 10%;
  background: linear-gradient(135deg, #f8f9ff, #e8edff);
  overflow: hidden;
  text-align: center;
}

/* ===== SECCIÓN DEL MANUAL DE USUARIO ===== */
#manual-usuario {
  position: relative;
  padding: 100px 10%;
  background: linear-gradient(135deg, #f8f9ff, #e8edff);
  overflow: hidden;
  text-align: center;
}

/* ===== CONTENIDO PRINCIPAL ===== */
#manual-usuario .cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#manual-usuario .cta-text {
  max-width: 700px;
}

#manual-usuario .cta-title {
  font-size: 2.2rem;
  color: #1e3c72;
  font-weight: 800;
}

#manual-usuario .cta-subtitle {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  margin-top: 10px;
}

/* ===== BOTÓN DE USUARIO ===== */
.cta-user-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cta-user-btn i {
  font-size: 1.4rem;
}

.cta-user-btn:hover {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

/* Efecto de brillo al pasar el cursor */
.cta-user-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  border-radius: 50px;
}

.cta-user-btn:hover::after {
  left: 130%;
}

/* ===== DECORACIÓN DE ELEMENTOS FLOTANTES ===== */
#decoracion-manual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

#elementos-flotantes .element {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(30, 60, 114, 0.15);
  animation: flotar 6s ease-in-out infinite alternate;
}

.element-1 { top: 20%; left: 15%; }
.element-2 { top: 50%; right: 20%; }
.element-3 { bottom: 25%; left: 25%; }
.element-4 { bottom: 10%; right: 10%; }

.floating-math {
  position: absolute;
  font-size: 1.8rem;
  color: rgba(30, 60, 114, 0.1);
  animation: flotar 8s ease-in-out infinite alternate;
}

.floating-math:nth-child(1) { top: 10%; left: 50%; }
.floating-math:nth-child(2) { bottom: 20%; right: 40%; }
.floating-math:nth-child(3) { top: 30%; right: 10%; }
.floating-math:nth-child(4) { bottom: 10%; left: 15%; }
.floating-math:nth-child(5) { top: 60%; left: 60%; }
.floating-math:nth-child(6) { bottom: 5%; right: 25%; }

/* ===== ANIMACIÓN ===== */
@keyframes flotar {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }
  to {
    transform: translateY(-20px);
    opacity: 1;
  }
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

.element-1 { top: 20%; left: 20%; animation-delay: 0s; }
.element-2 { top: 20%; right: 20%; animation-delay: 1s; }
.element-3 { bottom: 20%; left: 20%; animation-delay: 2s; }
.element-4 { bottom: 20%; right: 20%; animation-delay: 3s; }

/* Elementos matemáticos adicionales en CTA */
.cta-section .floating-math {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.08);
    animation: ctaDrift 20s linear infinite;
    pointer-events: none;
    font-weight: bold;
}

.cta-section .floating-math:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.cta-section .floating-math:nth-child(2) { top: 25%; right: 8%; animation-delay: 3s; }
.cta-section .floating-math:nth-child(3) { bottom: 35%; left: 12%; animation-delay: 6s; }
.cta-section .floating-math:nth-child(4) { bottom: 25%; right: 5%; animation-delay: 9s; }
.cta-section .floating-math:nth-child(5) { top: 45%; left: 2%; animation-delay: 12s; }
.cta-section .floating-math:nth-child(6) { top: 55%; right: 3%; animation-delay: 15s; }

@keyframes ctaDrift {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.08; }
    90% { opacity: 0.08; }
    100% { transform: translateY(-80vh) rotate(180deg); opacity: 0; }
}

/* ===== FOOTER MODERNO ===== */
.footer-modern {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 400px;
}

.footer-logo {
        display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#log {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
        display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-modern .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-modern {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link span {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        width: 300px;
        height: 300px;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-stats {
        justify-content: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .math-symbols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-elements {
        width: 200px;
        height: 200px;
    }
    
    .element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== PARTÍCULAS MATEMÁTICAS GLOBALES ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="globalMath" width="200" height="200" patternUnits="userSpaceOnUse"><text x="20" y="30" font-family="Arial" font-size="10" fill="rgba(102,126,234,0.02)">+</text><text x="80" y="25" font-family="Arial" font-size="8" fill="rgba(102,126,234,0.015)">-</text><text x="140" y="35" font-family="Arial" font-size="12" fill="rgba(102,126,234,0.02)">×</text><text x="30" y="80" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.015)">÷</text><text x="90" y="85" font-family="Arial" font-size="14" fill="rgba(102,126,234,0.02)">=</text><text x="150" y="90" font-family="Arial" font-size="9" fill="rgba(102,126,234,0.015)">±</text><text x="25" y="130" font-family="Arial" font-size="11" fill="rgba(102,126,234,0.02)">√</text><text x="85" y="135" font-family="Arial" font-size="7" fill="rgba(102,126,234,0.015)">²</text><text x="145" y="140" font-family="Arial" font-size="13" fill="rgba(102,126,234,0.02)">³</text><text x="40" y="180" font-family="Arial" font-size="8" fill="rgba(102,126,234,0.015)">%</text><text x="100" y="185" font-family="Arial" font-size="10" fill="rgba(102,126,234,0.02)">°</text><text x="160" y="190" font-family="Arial" font-size="6" fill="rgba(102,126,234,0.015)">∠</text></pattern></defs><rect width="200" height="200" fill="url(%23globalMath)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    animation: globalMathMove 30s linear infinite;
}

@keyframes globalMathMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-200px); }
}

/* Aplicar animaciones a elementos cuando son visibles */
.about-content,
.objectives-grid,
.teachers-grid,
.features-grid {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ESTADOS DE CARGA ===== */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}