/* Estilos generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --gray: #95a5a6;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: #780c19;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #780c19;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0, 0, 0);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #3a3436;
}

/* Menú de navegación */
.menu ul {
    display: flex;
    list-style: none;
}

.menu li {
    position: relative;
    margin-left: 25px;
}

.menu a {
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #780c1a;
}

.menu .active a {
    color: #780c1a;
    position: relative;
}

.menu .active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

:root {
    --primary-color: #3a3436; /* Ejemplo: #333 */
}

/* Submenú */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 5px;
    z-index: 1000;
}

.dropdown:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.submenu .active a {
    color: var(--secondary-color);
    background-color: #f5f5f5;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

/* Page header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6));
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
}

.page-header p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease;
}

/* About section */
.about {
    padding: 80px 0;
    background-color: #ededed;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Estilos para las imágenes de modalidades */
.modalidad-imagen {
    width: 320px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

.modalidad-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .modalidad-imagen {
        width: 140px;
        height: 140px;
    }
}

.about-item h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* News section */
.news {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: #780c19;
    color: var(--white);
    padding: 60px 0 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto 40px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: white;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 10px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #3a3436;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Us page */
.about-us {
    padding: 60px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}


.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Values section */
.values {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.values h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* History page */
.history {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Founders section */
.founders {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.founders h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.founder-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
}

.founder-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.founder-card h3 {
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.founder-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Mission & Vision page */
.mission-vision {
    padding: 80px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.mv-card {
    padding: 40px;
    border-radius: 10px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.mission {
    background: url('../img/card_mision.png') no-repeat center center/cover;
}

.vision {
    background: url('../img/card_vision.png') no-repeat center center/cover;
}

.mv-card h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Objectives section */
.objectives {
    padding: 80px 0;
}

.objectives h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.objective-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-10px);
}

.objective-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.objective-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #780c1a;
}

/* Philosophy section */
.philosophy {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.philosophy h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.philosophy-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-img img {
    width: 568px;
    height: 400px;
    display: block;
    transition: transform 0.5s ease;
}

.philosophy-img:hover img {
    transform: scale(1.05);
}

.philosophy-text {
    flex: 1;
}

.philosophy-text p {
    margin-bottom: 20px;
}

.philosophy-text ul {
    margin-bottom: 30px;
    list-style: none;
}

.philosophy-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.philosophy-text li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #780c1a;
}

/* Academia page */
.academic-programs {
    padding: 80px 0;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.program-overlay h3 {
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.program-content {
    padding: 20px;
    text-align: center;
}

.program-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Academic approach section */
.academic-approach {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.academic-approach h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.approach-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.approach-text {
    flex: 1;
}

.approach-text p {
    margin-bottom: 20px;
}

.approach-text ul {
    margin-bottom: 30px;
    list-style: none;
}

.approach-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.approach-text li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
}

.approach-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.approach-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.approach-img:hover img {
    transform: scale(1.05);
}

/* Academic results section */
.academic-results {
    padding: 80px 0;
}

.academic-results h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.result-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    color: #780c19;
    margin-bottom: 10px;
}

.result-text {
    color: var(--text-light);
}

/* Preschool page */
.preschool {
    padding: 80px 0;
}

.preschool-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.preschool-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preschool-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.preschool-img:hover img {
    transform: scale(1.05);
}

.preschool-content {
    flex: 1;
}

.preschool-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.preschool-content p {
    margin-bottom: 20px;
}

.preschool-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background-color: #3333330c;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: #780c19;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Preschool approach section */
.preschool-approach {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.preschool-approach h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.approach-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
}

.approach-icon {
    width: 80px;
    height: 80px;
    background-color: #3333330c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.approach-icon i {
    font-size: 2rem;
    color: #780c19;
}

.approach-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Requirements section */
.requirements {
    padding: 80px 0;
}

.requirements h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.requirements-content {
    display: flex;
    gap: 50px;
}

.requirements-list {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.requirements-list h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.requirements-list h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #780c19;
}

.requirements-list ul {
    list-style: none;
}

.requirements-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.requirements-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #780c19;
}

.requirements-process {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.requirements-process h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.requirements-process h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #780c19;
}

.requirements-process ol {
    list-style: none;
    counter-reset: step-counter;
}

.requirements-process li {
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    counter-increment: step-counter;
}

.requirements-process li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #780c19;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.requirements-process .btn {
    margin-top: 20px;
}

/* Daily routine section */
.daily-routine {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.daily-routine h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.routine-timeline {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.routine-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.routine-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.routine-time {
    width: 100px;
    font-weight: 600;
    color: var(--secondary-color);
}

.routine-activity {
    flex: 1;
}

/* Elementary page */
.elementary {
    padding: 80px 0;
}

.elementary-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.elementary-content {
    flex: 1;
}

.elementary-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.elementary-content p {
    margin-bottom: 20px;
}

.elementary-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.elementary-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.elementary-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.elementary-img:hover img {
    transform: scale(1.05);
}

/* Academic program section */
.academic-program {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.academic-program h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.program-tabs {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #780c19cb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-contents {
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tab-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 10px;
}

/* Highschool page */
.highschool {
    padding: 80px 0;
}

.highschool-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.highschool-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highschool-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.highschool-img:hover img {
    transform: scale(1.05);
}

.highschool-content {
    flex: 1;
}

.highschool-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.highschool-content p {
    margin-bottom: 20px;
}

.highschool-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Academic tracks section */
.academic-tracks {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.academic-tracks h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

.academic-tracks .subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.track-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.track-card:hover {
    transform: translateY(-10px);
}

.track-icon {
    width: 80px;
    height: 80px;
    background-color: #3333330c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.track-icon i {
    font-size: 2rem;
    color: #780c19;
}

.track-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.track-card ul {
    list-style: none;
    text-align: left;
}

.track-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.track-card li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #780c19;
}

/* University prep section */
.university-prep {
    padding: 80px 0;
}

.university-prep h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.prep-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.prep-text {
    flex: 1;
}

.prep-text p {
    margin-bottom: 20px;
}

.prep-text ul {
    margin-bottom: 30px;
    list-style: none;
}

.prep-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.prep-text li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #780c19;
}

.prep-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prep-img img {
    width: 100%;
    height: 500px;
    display: block;
    transition: transform 0.5s ease;
}

.prep-img:hover img {
    transform: scale(1.05);
}

/* School life page */
.school-life {
    padding: 80px 0;
}

.life-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.life-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.life-intro p {
    margin-bottom: 0;
}

/* Activities section */
.activities {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.activities h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.activity-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.activity-content li {
    margin-bottom: 5px;
}

.activity-content p {
    color: var(--text-light);
}

/* Gallery section */
.gallery {
    padding: 80px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

.gallery .subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* Events section */
.events {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.events h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.events-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.events-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.event-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50%;
}

.event-item:nth-child(even) {
    padding-left: 0;
    padding-right: 50%;
}

.event-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 1;
}

.event-item:nth-child(even) .event-date {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.event-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Community service section */
.community-service {
    padding: 80px 0;
}

.community-service h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-text {
    flex: 1;
}

.service-text p {
    margin-bottom: 20px;
}

.service-text ul {
    margin-bottom: 30px;
    list-style: none;
}

.service-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.service-text li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
}

.service-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-img:hover img {
    transform: scale(1.05);
}

/* Admissions page */
.admissions-process {
    padding: 80px 0;
}

.admissions-process h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.step {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50%;
}

.step:nth-child(even) {
    padding-left: 0;
    padding-right: 50%;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.step:nth-child(even) .step-number {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.step-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Admissions form section */
.admissions-form {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.admissions-form h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

.admissions-form p {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.form-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-container > div {
    flex: 1;
}

#admissionForm {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-card p {
    text-align: left;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Tuition section */
.tuition {
    padding: 80px 0;
}

.tuition h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.tuition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tuition-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.tuition-card:hover {
    transform: translateY(-10px);
}

.tuition-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tuition-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #780c19;
    margin-bottom: 20px;
}

.tuition-amount span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-light);
}

.tuition-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.tuition-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tuition-card li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #780c19;
}

.financial-aid {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.financial-aid h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.financial-aid p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.financial-aid ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.financial-aid li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.financial-aid li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .about-flex,
    .philosophy-content,
    .approach-content,
    .service-content,
    .prep-content,
    .preschool-flex,
    .elementary-flex,
    .highschool-flex {
        flex-direction: column;
    }
    
    .requirements-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .form-container {
        flex-direction: column;
    }
    
    .timeline::before,
    .timeline-year,
    .timeline-item:nth-child(even) .timeline-content {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .events-timeline::before,
    .event-date,
    .event-item:nth-child(even) .event-date {
        left: 30px;
    }
    
    .event-item {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .event-item:nth-child(even) {
        padding-right: 0;
    }
    
    .process-steps::before,
    .step-number,
    .step:nth-child(even) .step-number {
        left: 30px;
    }
    
    .step {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .step:nth-child(even) {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu ul {
        flex-direction: column;
        width: 100%;
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu a {
        display: block;
        padding: 15px;
    }
    
    .submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .dropdown.active .submenu {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .preschool-features,
    .elementary-features,
    .highschool-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 16px;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn::after {
        width: 3px;
        height: 100%;
        top: 0;
        left: 0;
        transform: scaleY(0);
    }
    
    .tab-btn.active::after {
        transform: scaleY(1);
    }
}

/* Estilos para la página de docentes */
.teachers-intro {
    padding: 60px 0;
    text-align: center;
}

.teachers-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.teachers-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.teachers-section:nth-child(even) {
    background-color: var(--white);
}

.teachers-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Ajusta este valor para aumentar/disminuir separación */
}

.teacher-card {
    /* Tus estilos existentes... */
    margin: 30px; /* Espaciado uniforme */
    /* O para controlar por separado: */
    margin: 20px 15px; /* 20px vertical, 15px horizontal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Opcional: mejora visual */
    border-radius: 10px; /* Opcional: mantiene esquinas redondeadas */
    overflow: hidden; /* Opcional: mantiene el recorte de imágenes */
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-img {
    height: 180px;
    width: 365px;
    background-size: cover;
    background-position: center;
    border: 5px solid white; /* Borde blanco de 5px */
    box-shadow: 0 0 0 2px #780c19; /* Contorno del color de tu tema */
    outline: 1px solid rgba(255, 255, 255, 0.3); /* Suave resaltado interior */
    border-radius: 8px; /* Esquinas redondeadas */
    margin: 15px 0; /* Espaciado vertical */
    position: relative;
    z-index: 1;
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.teacher-title {
    font-weight: 600;
    color: #780c19;
    margin-bottom: 5px;
}

.teacher-exp {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.teacher-desc {
    color: var(--text-color);
}

.teacher-qualities {
    padding: 80px 0;
    background-color: var(--white);
}

.teacher-qualities h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quality-card {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-10px);
}

.quality-icon {
    width: 80px;
    height: 80px;
    background-color: #3333330e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.quality-icon i {
    font-size: 2rem;
    color: #780c19;
}

.quality-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Estilos para la página de plataformas */
.platforms-intro {
    padding: 60px 0;
    text-align: center;
}

.platforms-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.platform-tabs {
    margin-top: 40px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.platform-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
}

.platform-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.platform-info {
    padding: 20px;
}

.platform-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.platform-info p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.platform-level {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-benefits {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.platform-benefits h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: #3333330c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 2rem;
    color: #780c19;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.platform-access {
    padding: 80px 0;
    background-color: var(--white);
}

.platform-access h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

.access-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.access-content ol {
    text-align: left;
    display: inline-block;
    margin-bottom: 30px;
}

.access-content li {
    margin-bottom: 15px;
}

.access-help {
    margin-top: 30px;
}

.access-help a {
    color: #780c19;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .qualities-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .qualities-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .access-content ol {
        padding-left: 20px;
    }
}

/* Estilos para el carrusel */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 80px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
}

  /* Estructura base */
  .galeria-servicios {
    padding: 60px 0;
    background: #fff;
  }
  
  .container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Título centrado */
  .section-title {
    text-align: center;
    font-size: 2.3rem;
    color: #333;
    margin-bottom: 50px;
  }

  /* Cuadrícula de 4 columnas perfectamente alineadas */
  .imagenes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .imagen-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }

  .imagen-item:hover {
    transform: scale(1.03);
  }

  .imagen-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3; /* Mantiene relación 4:3 (ajustable) */
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .imagenes-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
  }

  @media (max-width: 480px) {
    .imagenes-grid {
      grid-template-columns: 1fr; /* 1 columna en móvil */
    }
  }

  /* Transiciones base para todas las secciones */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Clase que se agregará cuando la sección sea visible */
section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes para el hero (puede no necesitar animación) */
.hero {
    opacity: 1 !important;
    transform: none !important;
}

.history-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Estilos para los carruseles de docentes */
.teachers-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.teachers-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.teacher-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-btn {
    background-color: #780c194b;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: #780c19;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .teacher-card {
        min-width: 50%;
    }
}

@media (min-width: 992px) {
    .teacher-card {
        min-width: 33.333%;
    }
}

/* Estilos para la sección de organigrama */
.organigram-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Fondo claro para destacar */
    margin-top: 40px;
}

.organigram-section h2 {
    text-align: center;
    color: #333; /* Color institucional */
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
}


.organigram-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.organigram-img:hover {
    transform: scale(1.02);
}

.organigram-img-mobile {
    display: none; /* Oculto por defecto */
    max-width: 100%;
    border-radius: 5px;
}

/* Responsive: Mostrar versión móvil en pantallas pequeñas */
@media (max-width: 768px) {
    .organigram-img {
        display: none;
    }
    
    .organigram-img-mobile {
        display: block;
        margin: 0 auto;
    }
    
    .organigram-section {
        padding: 40px 0;
    }
}

.form-container-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.centered-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nivel-options {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ajustes para el formulario en móviles */
@media (max-width: 768px) {
    .form-container-centered {
        padding: 10px;
    }
    
    .centered-form {
        padding: 20px;
    }
}

/* Estilos para la galería de álbumes */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.album-card {
    background-color: #ffffffb4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-10px);
}

.album-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.album-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-card:hover .album-overlay h3,
.album-card:hover .album-overlay p {
    transform: translateY(0);
}

.album-content {
    padding: 20px;
}

.album-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.album-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Estilos para el modal del álbum */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 1200px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

#modalAlbumTitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.album-photo {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.album-photo:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .album-photos {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
}

/* Estilos para la sección personalizada de plataformas */
.custom-platforms-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Fondo diferente para distinguir */
}

.custom-platforms-section h2 {
    text-align: center;
    color: #333; /* Color institucional */
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
}

.custom-platform-tabs {
    margin-top: 40px;
}

.custom-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.custom-platform-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef; /* Borde añadido para diferenciar */
}

.custom-platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.custom-platform-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f5; /* Color de fondo diferente */
}

.custom-platform-info {
    padding: 20px;
}

.custom-platform-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.custom-platform-info p {
    margin-bottom: 20px;
    color: #495057;
}

/* Estilos para las pestañas personalizadas */
.custom-tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
    flex-wrap: wrap;
}

.custom-tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}

.custom-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #780c19;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.custom-tab-btn h3 {
    margin: 0; /* Eliminamos márgenes si los había */
    font-size: 1rem; /* Ajustamos tamaño para coincidir */
}

.custom-tab-btn.active {
    color: #212529;

}

.custom-tab-btn.active::after {
    transform: scaleX(1);
}

.custom-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.custom-tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-platform-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-tab-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .custom-tab-btn::after {
        width: 3px;
        height: 100%;
        top: 0;
        left: 0;
        bottom: auto;
        transform: scaleY(0);
    }
    
    .custom-tab-btn.active::after {
        transform: scaleY(1);
    }
}

/* Estilos para el lightbox */

.news-section{
    background-color: #f9f9f9;
    padding: 80px 0;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid;
    border-radius: 5px;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #780c19;
    text-decoration: none;
}

/* Mejoras para las imágenes de noticias */
.news-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-img:hover {
    transform: scale(1.02);
}

.read-more i {
    margin-left: 5px;
}

/* Visor de imagen grande */
#imageViewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    pointer-events: none; /* Permite clics a través del contenido */
}

.image-viewer-content > * {
    pointer-events: auto; /* Excepto para los elementos hijos */
}

#viewedImage {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    cursor: default;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-viewer:hover {
    color: #ccc;
}

.image-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    color: white;
}

.nav-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

#imageCounter {
    margin: 0 15px;
    font-size: 18px;
}

/* Asegurarse que el modal del álbum tenga un z-index menor */
.modal {
    z-index: 1000;
}