:root {
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --primary-color: #00a8e8; /* Celeste */
    --secondary-color: #003459; /* Azul oscuro */
    --accent-color: #2d5a27; /* Verde oscuro (del techo de la escuela) */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

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

.section {
    padding: 120px 0;
}

.bg-light {
    background-color: var(--bg-alt);
}

/* Preloader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

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

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--bg-alt);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 52, 89, 0.7), rgba(45, 90, 39, 0.4));
}

.hero-content {
    text-align: center;
    z-index: 1;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--primary-color);
    font-size: 2.5rem;
    display: block;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Specialty Features */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse .feature-text {
    direction: ltr;
    text-align: left;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
}

.feature-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.feature-grid.reverse .feature-text h2::after {
    left: 0; /* Keep it left even in reverse */
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.feature-image .img-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

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

/* Footer Simple */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-simple {
    text-align: center;
}

.footer-simple .logo {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-simple p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.social-links a i {
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-profile-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.social-profile-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.social-profile-item:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-profile-item:hover i {
    color: var(--primary-color);
}

/* Study Plan Styles */
.plan-estudios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.año-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.año-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.1);
}

.año-number {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.año-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.materias-list {
    list-style: none;
}

.materias-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.materias-list li:last-child {
    border-bottom: none;
}

.materias-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeEffect 0.5s ease;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-admin-temp {
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-admin-temp:hover {
    color: var(--text-light);
    border-color: var(--primary-color);
    background: rgba(0, 168, 232, 0.1);
}
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* O puedes implementar un menú mobile si lo deseas */
    }
    
    .menu-btn {
        display: block;
    }

    .hero-content h1 { font-size: 3rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .feature-grid.reverse { direction: ltr; }
    .feature-text h2::after { left: 50%; transform: translateX(-50%); }
    .feature-grid.reverse .feature-text { text-align: center; }
    .hero-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section { padding: 80px 0; }
}
