/* Variables de colores y breakpoints */
:root {
    --primary-color: #1a237e; /* Azul oscuro */
    --secondary-color: #3949ab; /* Azul medio */
    --accent-color: #5c6bc0; /* Azul claro */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-light: #f5f5f5;
    --background-dark: #1a237e;
    --nav-background: #ffffff; /* Nuevo color para el navbar */
    --menu-hover: #e8eaf6; /* Color para hover del menú */
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
    --gradient-hero: linear-gradient(135deg, #1a237e 0%, #283593 25%, #3949ab 50%, #5c6bc0 75%, #7986cb 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenedor general */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Estilos del navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    padding: 0.75rem 1rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Aumentado para dar más espacio al logo */
}

.logo {
    display: flex;
    align-items: center;
    max-width: 50%; /* Para asegurar que el logo no empuje el menú fuera de la vista */
}

.logo a {
    display: block;
}

.logo-img {
    height: 120px; /* Aumentado significativamente para el logo horizontal */
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain; /* Asegura que el logo mantenga su proporción */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .logo-img {
    height: 100px;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(26, 35, 126, 0.2));
}

/* Botón de menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Navegación principal */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    background-color: var(--menu-hover);
    transform: translateY(-2px);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
}

.nav-links a:hover::before {
    opacity: 0.08;
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    transform: translateY(-1px);
}

.nav-links a.active::before {
    opacity: 1;
}

.nav-links a.active::after {
    width: 0;
    height: 0;
}

.nav-links a.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
}

/* Estilos del hero */
.hero {
    background: var(--gradient-hero);
    color: var(--light-text);
    padding: 4rem 1rem;
    margin-top: 0;
    overflow: hidden;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Fondo matemático */
.math-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

.math-symbol {
    position: absolute;
    color: var(--light-text);
    font-size: 3.5rem;
    opacity: 0.6;
    animation: float-symbol 15s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Posicionamiento optimizado de los símbolos */
.math-symbol:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; }
.math-symbol:nth-child(2) { right: 8%; top: 20%; animation-delay: -2s; }
.math-symbol:nth-child(3) { left: 12%; bottom: 25%; animation-delay: -4s; }
.math-symbol:nth-child(4) { right: 15%; bottom: 20%; animation-delay: -6s; }
.math-symbol:nth-child(5) { left: 3%; top: 50%; animation-delay: -8s; }
.math-symbol:nth-child(6) { right: 5%; top: 45%; animation-delay: -10s; }
.math-symbol:nth-child(7) { left: 8%; bottom: 40%; animation-delay: -12s; }
.math-symbol:nth-child(8) { right: 10%; bottom: 35%; animation-delay: -14s; }
.math-symbol:nth-child(9) { left: 15%; top: 30%; animation-delay: -1s; }
.math-symbol:nth-child(10) { right: 12%; top: 35%; animation-delay: -3s; }
.math-symbol:nth-child(11) { left: 20%; bottom: 15%; animation-delay: -5s; }
.math-symbol:nth-child(12) { right: 18%; bottom: 30%; animation-delay: -7s; }
.math-symbol:nth-child(13) { left: 6%; top: 80%; animation-delay: -9s; }
.math-symbol:nth-child(14) { right: 7%; top: 75%; animation-delay: -11s; }
.math-symbol:nth-child(15) { left: 18%; top: 65%; animation-delay: -13s; }

/* Animaciones para los símbolos */
@keyframes float-symbol {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(8px, -8px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(0, -15px) rotate(180deg) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translate(-8px, -8px) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* Contenedor principal del hero */
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-image-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1), rgba(57, 73, 171, 0.1));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-image-container:hover::before {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Estilos para la página Nosotros */
.about-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.about-text {
    grid-column: 1;
    grid-row: 1;
}

.about-programs {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 100px;
}

.about-team {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2rem;
}

/* Secciones de Nosotros */
.about-intro, .about-achievements, .about-programs, .about-team {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.about-intro:hover, .about-achievements:hover, .about-programs:hover, .about-team:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 35, 126, 0.15);
}

/* Títulos y texto */
.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Lista de logros */
.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievements-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.achievements-list li:hover {
    transform: translateX(10px) scale(1.02);
    background: #e8eaf6;
    box-shadow: var(--shadow-sm);
    border-left-color: var(--primary-color);
}

.achievements-list li:hover::before {
    transform: scaleY(1);
}

/* Grid de programas */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.program-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 35, 126, 0.05);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 35, 126, 0.2);
}

.program-card:hover::before {
    transform: scaleY(1);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.program-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* Equipo */
.about-team p {
    line-height: 1.8;
}

/* Estilos de la página Servicios */
.services-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(26, 35, 126, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 1.05rem;
    list-style: none;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../img/Icono_check.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.service-card li:hover::before {
    transform: translateY(-50%) scale(1.1);
    transition: transform 0.2s ease;
}

/* Estilos de la página Contacto */
.contact-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 35, 126, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 35, 126, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
    background: white;
    transform: translateY(-2px);
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Estilos del footer */
footer {
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 3rem 1rem 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--light-text);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-links a:hover::before {
    left: 0;
}

.social-links a span {
    font-size: 1rem;
}

.copyright {
    text-align: center;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .logo-img {
        height: 100px;
    }

    .math-symbol {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero-image-container {
        transform: perspective(1000px) rotateX(3deg);
    }

    .logo-img {
        height: 90px;
    }

    .math-symbol {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-programs, .about-team {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--nav-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.show {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

.nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-align: center;
    border-radius: 10px;
    margin: 0.3rem 0;
}

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-img {
        height: 80px;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-image-container {
        transform: perspective(1000px) rotateX(2deg);
    }

    .navbar {
        padding: 0.8rem;
    }

    .math-symbol {
        font-size: 2.5rem;
    }

    /* Ajustar posiciones en móvil */
    .math-symbol:nth-child(odd) { left: 5%; }
    .math-symbol:nth-child(even) { right: 5%; }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-intro, .about-achievements, .about-programs, .about-team {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-text,
    .about-programs,
    .about-team {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }

    .about-programs {
        order: 3;
    }

    .about-team {
        order: 2;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-image-container {
        transform: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .logo-img {
        height: 60px; /* Ajustado para móviles */
    }

    .navbar {
        padding: 0.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .math-symbol {
        font-size: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.slide-up-fade {
    animation: slideUpFade 1.2s ease-out 0.6s forwards, float 6s ease-in-out infinite;
    opacity: 0;
}

/* Scroll reveal animations - Mejoradas para evitar desplazamientos */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Prevenir desplazamiento durante la carga */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-scale {
    min-height: 1px; /* Evita colapso de altura */
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 100px; /* Altura del navbar */
        left: 0;
        right: 0;
        background-color: var(--nav-background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
    }

    .nav-links a::after {
        bottom: 5px;
    }

    /* Animación del botón de menú */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Ajustes adicionales para móviles */
    .logo-img {
        height: 60px;
    }

    main {
        margin-top: 100px;
    }
}

/* Ajuste global para el contenido principal */
main {
    margin-top: 120px; /* Altura del navbar + espacio extra */
    min-height: calc(100vh - 120px);
}

/* Estilos para páginas internas */
.page-header {
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-content {
    padding: 2rem 0;
}

/* Media Queries */
@media (max-width: 992px) {
    main {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 90px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    main {
        margin-top: 80px;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Estilos para la sección de profesores */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.teacher-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(26, 35, 126, 0.2);
}

.teacher-card:hover::before {
    opacity: 0.03;
}

.teacher-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    align-items: center;
}

.teacher-card.featured .teacher-image {
    width: 100%;
    height: 400px;
    margin: 0;
    border-radius: 10px;
}

.teacher-card.featured .teacher-info {
    padding: 0;
    text-align: left;
}

.teacher-card.featured h3,
.teacher-card.featured p {
    color: white;
}

.teacher-image {
    width: 100%;
    height: 350px;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
}

.teacher-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.teacher-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-specialty {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.teacher-courses {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Media queries para la sección de profesores */
@media (max-width: 992px) {
    .teacher-card.featured {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .teacher-card.featured .teacher-image {
        height: 350px;
    }

    .teacher-card.featured .teacher-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .teacher-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .teacher-image {
        height: 250px;
    }
    
    .teacher-card.featured .teacher-image {
        height: 300px;
    }
}

/* Sección de Talleres Actuales */
.current-workshops {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(57, 73, 171, 0.1));
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workshop-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.workshop-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(26, 35, 126, 0.2);
}

.workshop-card:hover::before {
    transform: scaleX(1);
}

.workshop-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workshop-content {
    padding: 1.5rem;
}

.workshop-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.workshop-details {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workshop-details h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.workshop-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workshop-details ul li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.workshop-details ul li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.workshop-details ul li ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.workshop-details ul li ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    position: relative;
}

.workshop-details ul li ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.workshop-details .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.workshop-details .btn:hover {
    background-color: var(--secondary-color);
}

.workshop-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.workshop-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.workshop-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.workshop-cta:hover::before {
    width: 300px;
    height: 300px;
}

.workshop-location {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workshop-location h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.workshop-location p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.workshop-location i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workshop-details {
        padding: 1.5rem;
    }

    .workshop-details h2 {
        font-size: 1.5rem;
    }

    .workshop-details ul li {
        font-size: 1rem;
    }

    .workshop-location {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .workshop-location h3 {
        font-size: 1.3rem;
    }

    .workshop-location p {
        font-size: 1rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float:active {
    transform: scale(1.05) rotate(0deg);
}

.whatsapp-float i {
    font-size: 2rem;
}

/* Animación de pulso para WhatsApp */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

/* Media Queries */
@media (max-width: 768px) {
    .workshops-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.75rem;
    }
}

/* Estilos adicionales para Talleres Actuales */
.workshop-details ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.workshop-details ul li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.workshop-details ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.workshop-location {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.workshop-location h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.workshop-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.workshop-location p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

/* Ajustes responsivos para los nuevos elementos */
@media (max-width: 768px) {
    .workshop-location {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .workshop-location h3 {
        font-size: 1.3rem;
    }

    .workshop-location p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.map-container {
    margin-top: 2rem;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

.map-legend {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-legend p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.map-legend p:last-child {
    margin-bottom: 0;
}

.map-legend i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Estilos para la sección de noticias */
.news-section {
    padding: 2rem 0;
    background-color: #ffffff;
    max-width: 100%;
}

.news-grid {
    display: grid;
    gap: 4rem;
    margin: 0;
    max-width: 100%;
}

.news-card.featured {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.news-card.featured:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: rgba(26, 35, 126, 0.2);
}

.news-card.featured .news-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.news-image {
    width: 100%;
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card.featured:hover .news-image {
    transform: scale(1.05);
}

.news-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.news-images-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.news-images-grid.two-columns-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.news-images-left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-images-left-column .featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    flex: 1;
}

.news-images-right-column {
    display: flex;
    align-items: stretch;
}

.news-images-right-column .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .news-images-grid.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-images-grid.two-columns-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-images-grid.three-columns {
        grid-template-columns: 1fr;
    }
    
    .news-images-grid.two-columns-layout {
        grid-template-columns: 1fr;
    }
    
    .news-images-left-column {
        flex-direction: column;
    }
}

.news-images-grid .featured-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.news-card.featured:hover .news-images-grid .featured-image {
    transform: scale(1.05);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.news-signature {
    margin-top: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.news-text {
    background: #1a237e;
    border-radius: 12px;
    padding: 2rem;
    color: white;
    height: fit-content;
}

.news-card.featured h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.news-card.featured p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.achievement-list li {
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .news-card.featured .news-content {
        grid-template-columns: 1fr 350px;
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .news-card.featured .news-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 800px;
    }

    .news-text {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 1rem;
    }

    .news-card.featured .news-content {
        padding: 1rem;
    }

    .news-text {
        padding: 1.5rem;
    }

    .news-card.featured h2 {
        font-size: 1.8rem;
    }
}

.news-meta {
    margin-top: auto;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 600;
}

.news-meta i {
    color: #FFD700;
    font-size: 1.2rem;
}

.instagram-feed {
    padding: 4rem 0;
    background-color: #f8f9fa;
    width: 100%;
}

.instagram-feed .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.instagram-feed .section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.instagram-feed .section-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.instagram-embed {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instagram-feed-container {
    width: 100%;
    min-height: 600px;
    border-radius: 10px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-feed-container iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1200px) {
    .instagram-feed .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .instagram-feed {
        padding: 3rem 0;
    }

    .instagram-embed {
        padding: 1rem;
    }

    .instagram-feed .section-title {
        font-size: 2rem;
    }

    .instagram-feed-container {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .instagram-feed {
        padding: 2rem 0;
    }

    .instagram-feed .container {
        padding: 0 1rem;
    }

    .instagram-feed .section-title {
        font-size: 1.8rem;
    }

    .instagram-feed-container {
        min-height: 400px;
    }
}

/* Animación para el menú móvil */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* ====== ESTILOS PARA admision.html ====== */

.admision-header {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #fff;
    text-align: center;
    padding: 2.5rem 1rem 1.2rem 1rem;
    margin-bottom: 2rem;
}
.admision-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.admision-header p {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.95;
}

.admision-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.admision-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 35, 126, 0.05);
    position: relative;
}

.admision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.admision-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(26, 35, 126, 0.2);
}

.admision-card:hover::before {
    transform: scaleX(1);
}
.admision-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1.2rem;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30,58,138,0.06);
}
.admision-card h2 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.7rem;
    text-align: center;
}
.admision-card p {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.3rem;
    text-align: left;
}
.admision-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.admision-card a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.admision-card a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admision-card a:hover::before {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    .admision-header h1 {
        font-size: 1.5rem;
    }
    .admision-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .admision-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
} 