/* 
* CSS principal modernizado
* Escuela Manuel Belgrano N°37 - Paraná, Entre Ríos
*/

:root {
    /* Paleta de colores modernizada */
    --primary-color: #1e40af; /* Azul institucional más profundo */
    --primary-light: #3b82f6; /* Azul más claro para hover */
    --secondary-color: #0284c7;
    --accent-color: #facc15; /* Amarillo/dorado para acentos */
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #94a3b8;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #334155;
    --text-color-light: #64748b;
    --border-color: #e2e8f0;
    
    /* Fuentes */
    --font-main: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Open Sans', Arial, sans-serif;
    
    /* Transiciones y efectos */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layouts */
    --container-width: 1280px;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 5;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1 0 0%;
    padding: 0 1rem;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.33333%;
    padding: 0 1rem;
}

.col-md-8 {
    flex: 0 0 auto;
    width: 66.66667%;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::after {
    transform: scaleY(1);
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-accent:hover {
    background-color: #f8cc3d;
    color: var(--dark-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Header and Navigation */
.header {
    background-color: var(--dark-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-main);
}

.logo i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    padding: 0.5rem 0;
}

.nav-link.active, .nav-link:hover {
    color: var(--accent-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link.active:after, .nav-link:hover:after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section / Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* Altura del header */
    background-color: var(--light-color);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    width: 45%;
    padding: 0 20px 0 50px;
    position: relative;
    z-index: 10;
    animation: fadeInLeft 1s ease forwards;
}

.slide-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: inset -10px 0 30px rgba(0, 0, 0, 0.2);
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 800;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    max-width: 90%;
}

/* Características en Hero */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
}

.hero-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.hero-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-feature span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Botones en Hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-school {
    background-color: #fff;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text h3 {
    margin-top: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.about-text h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 1.25rem 1rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Orientaciones Section */
.school-orientations {
    background-color: var(--light-color);
    position: relative;
}

.orientations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.orientation-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.orientation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    z-index: -1;
}

.orientation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.orientation-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.orientation-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

/* Eventos Próximos Section */
.upcoming-events-section {
    background-color: #fff;
    padding: 5rem 0;
}

.events-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.events-heading h2 {
    font-size: 2rem;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.events-heading h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 1rem;
}

.view-all:hover {
    color: var(--primary-light);
}

.view-all i {
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(5px);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-item {
    display: flex;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.event-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.event-date {
    min-width: 80px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-info {
    padding: 1.25rem;
    flex: 1;
}

.event-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-time, .event-location {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.event-time i, .event-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(100px, -150px);
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    flex: 0 0 40%;
    color: #fff;
}

.newsletter-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-content p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1.05rem;
}

.newsletter-form {
    flex: 0 0 55%;
}

.newsletter-form .form-group {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    height: 3.5rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    color: var(--text-color);
}

.newsletter-form button {
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #f8cc3d;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-main);
}

.footer-logo i {
    margin-right: 0.75rem;
    color: var(--accent-color);
}

.footer-column p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

.footer-column h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    display: inline-block;
    padding-left: 1.25rem;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.footer-schedule {
    list-style: none;
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .slide-content {
        width: 50%;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .col-md-4, .col-md-8 {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        height: calc(100vh - 70px);
        width: 100%;
        max-width: 300px;
        background-color: var(--dark-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .slide {
        flex-direction: column-reverse;
    }
    
    .slide-content {
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .slide-image {
        position: relative;
        width: 100%;
        height: 50vh;
        clip-path: none;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .newsletter-content, .newsletter-form {
        flex: 0 0 100%;
    }
    
    .newsletter-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .newsletter-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-feature {
        width: 100%;
    }
    
    .event-date {
        min-width: 70px;
    }
    
    .event-info {
        padding: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Estilos para páginas internas */

/* Banner de página */
.page-banner {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6rem 0 3rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/pattern.png');
    opacity: 0.1;
}

.page-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Contenido de página */
.page-content {
    padding: 4rem 0;
}

/* Tarjetas informativas */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.info-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-item {
    margin: 0 0.3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow-md);
    font-weight: 600;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Estilos para la página de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    min-width: 60px;
    box-shadow: var(--box-shadow-md);
}

.day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    line-height: 1.4;
}

.news-card:hover .news-content h3 {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.news-content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex-grow: 1;
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 0.3rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-light);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Barra lateral de noticias */
.news-sidebar {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.search-form {
    display: flex;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.95rem;
}

.search-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-light);
}

.recent-posts {
    list-style: none;
}

.recent-post {
    display: flex;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-right: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
}

.post-date i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

/* Categorías */
.categories {
    list-style: none;
}

.category-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.category-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.3rem 0;
}

.category-link:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: var(--light-color);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.category-link:hover .category-count {
    background-color: var(--primary-color);
    color: #fff;
}

/* Etiquetas */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Estilos para la página de horarios */
.schedule-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
}

.schedule-tab.active {
    background-color: var(--primary-color);
    color: #fff;
}

.schedule-content {
    display: none;
}

.schedule-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.schedule-table tr:nth-child(even) {
    background-color: var(--light-color);
}

.schedule-table tr:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

.class-item {
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.class-item:last-child {
    margin-bottom: 0;
}

.math {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
}

.science {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
}

.language {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
}

.history {
    background-color: rgba(155, 89, 182, 0.1);
    border-left: 3px solid #9b59b6;
}

.art {
    background-color: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
}

.physical {
    background-color: rgba(230, 126, 34, 0.1);
    border-left: 3px solid #e67e22;
}

.technology {
    background-color: rgba(52, 73, 94, 0.1);
    border-left: 3px solid #34495e;
}

.schedule-note {
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius-sm);
}

.schedule-note h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.schedule-note p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Estilos para la página de contacto */
.contact-map {
    height: 450px;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-info-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-info-item p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.contact-info-item a {
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.contact-form-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.required {
    color: var(--danger-color);
    margin-left: 3px;
}

/* Preguntas frecuentes */
.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    background-color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.25rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Animación de rebote para el ícono de "leer más" */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}

.bounce {
    animation: bounce 1s ease infinite;
}

/* Responsive para páginas internas */
@media (max-width: 768px) {
    .page-banner {
        padding: 5rem 0 2.5rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .schedule-tabs {
        flex-wrap: wrap;
    }
    
    .schedule-tab {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
}