:root {
    --primary: #e31e25;
    --primary-dark: #b91c23;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --max-width: 1200px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.btn-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(227, 30, 37, 0.3);
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 30, 37, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Layer 1: Text Overlay | Layer 2: Sky Tint | Layer 3: Floor Tint | Layer 4: Original Photo */
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5)),
        linear-gradient(to bottom, rgba(0, 80, 255, 0.4) 0%, transparent 50%),
        linear-gradient(to top, rgba(215, 110, 50, 0.15) 0%, rgba(215, 110, 50, 0) 55%),
        url('entrada-colegio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: normal, soft-light, overlay, normal;
    filter: brightness(1.1) contrast(1.15) saturate(1.6);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background-color: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-hero:hover {
    background-color: var(--bg-light);
    transform: scale(1.05);
}

.hero-quote {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats / Quote */
.quote-section {
    padding: 5rem 10%;
    text-align: center;
    background: var(--white);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    color: var(--primary);
    opacity: 0.5;
}

.quote-author {
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Academic Levels */
.levels-section {
    padding: 5rem 5%;
    background-color: var(--bg-light);
    scroll-margin-top: 1cm;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.level-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.level-card {
    background: #eaebed;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.level-card-link:hover .level-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(227, 30, 37, 0.1);
}

.level-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    width: 140px;
    height: 140px;
}

.level-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.level-card-link:hover .level-icon img {
    transform: scale(1.15) translateY(-5px) rotate(3deg);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
}

.level-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.level-card p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.level-card-link:hover .level-card p {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 1.5rem;
}

.level-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.level-link:hover {
    gap: 0.8rem;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1.5rem 5% 0.2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers flex items like the map */
    text-align: center;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.footer-links {
    padding: 0;
    list-style: none;
    /* Removes bullets */
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.5rem;
}

/* Footer Map */
.footer-map {
    width: 240px;
    height: 80px;
    margin: 0.5rem auto 1rem;
    /* Centered */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    text-align: center;
    padding-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Utilities */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        /* simple hide for mobile basic */
    }
}

/* Services Section (Que Hacemos) */
.services-section {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.services-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #eaebed;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-content h3 {
    color: #e31e25;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 700;
}

.service-content p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.service-list li {
    padding: 0.25rem 0;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: "•";
    color: #e31e25;
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-list li {
        justify-content: center;
    }
}

/* Footer Map */
.footer-map {
    width: 320px;
    height: 80px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Removed filter grayscale for full colors as requested */
}