:root {
    --deep-navy: #0A1D37;
    --dons-red: #B22222;
    --satin-gold: #C5A059;
    --cloud-dancer: #F8F9FA;
    --white: #ffffff;
    --text-main: #2D3436;
    --text-light: #636E72;
    --warm-eucalyptus: #4F7942;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cloud-dancer);
    color: var(--text-main);
    overflow-x: hidden;
}

body.page-template {
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'EB Garamond', serif;
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    height: 80px;
    padding: 0 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo,
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--deep-navy);
    line-height: 1.2;
}

.logo-text span {
    color: var(--dons-red);
}

/* ===== NAV ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav ul li a {
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--deep-navy);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dons-red);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ===== BOTONES ===== */
.cta-btn {
    background: var(--dons-red);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

button.cta-btn {
    font-family: inherit;
}

.cta-btn:hover {
    background: var(--deep-navy);
    transform: translateY(-3px);
}

/* ===== ESTRUCTURA GLOBAL ===== */
main.page-main {
    display: block;
}

.page-main {
    padding-top: 80px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--satin-gold);
}

/* ===== HERO ===== */
.hero-section {
    height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 29, 55, 0.9) 0%, rgba(10, 29, 55, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== GRIDS Y CARDS ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--satin-gold);
}

.card i {
    color: var(--dons-red);
    margin-bottom: 1.5rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* ===== NIVELES ===== */
.level-header {
    padding: 6rem 5%;
    background: var(--deep-navy);
    color: white;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

.level-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: -4rem;
}

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

.level-grid-reverse > div {
    direction: ltr;
}

.img-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: 500px;
}

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

/* ===== TESTIMONIOS ===== */
.testimonial-slider {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    position: relative;
    text-align: center;
}

.testimonial-slider q {
    font-family: 'EB Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
}

/* ===== FORMULARIO ===== */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-info {
    background: var(--deep-navy);
    color: white;
    padding: 4rem;
}

.form-fields {
    padding: 4rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

/* ===== BLOG / NOTICIAS ===== */
.blog-hero {
    background: linear-gradient(135deg, rgba(10, 29, 55, 0.96), rgba(178, 34, 34, 0.88));
    color: white;
    padding: 7rem 5% 5rem;
    text-align: center;
}

.blog-hero p {
    max-width: 760px;
    margin: 1rem auto 0;
    opacity: 0.9;
    font-size: 1.05rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 1.5rem;
}

.news-tag {
    display: inline-block;
    background: rgba(197, 160, 89, 0.15);
    color: var(--deep-navy);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.9rem;
    line-height: 1.15;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.news-link {
    color: var(--dons-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
}

.blog-highlight {
    margin-top: 4rem;
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-highlight img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 24px;
}

.levels-activities-grid .card {
    text-align: left;
    min-height: 250px;
}

.levels-activities-grid .card i {
    display: inline-flex;
}

/* ===== FOOTER ===== */
footer {
    background: var(--deep-navy);
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

/* ===== WHATSAPP ===== */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* ===== BLOQUES ADICIONALES ===== */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.stat-box {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-box strong {
    display: block;
    font-size: 2rem;
    color: var(--dons-red);
    margin-bottom: 0.3rem;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.mini-card {
    background: white;
    padding: 2rem 1.4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateY(-8px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.gallery-grid .img-container {
    height: 260px;
}

.gallery-grid .img-container:first-child {
    height: 540px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    background: white;
    border-radius: 22px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.process-step .step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--satin-gold);
    color: var(--deep-navy);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--deep-navy), #16345f);
    color: white;
    border-radius: 30px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
}

.news-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.section-soft {
    background: #eef2f6;
    padding: 5rem 0;
}

.contact-modern-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 0.9rem 1rem;
        height: auto;
        min-height: 80px;
    }

    .logo img {
        height: 42px;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    nav ul {
        display: none;
    }

    .container {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .bento-grid,
    .level-grid,
    .form-container,
    .footer-grid,
    .blog-grid,
    .blog-highlight,
    .contact-modern-grid,
    .stats-strip,
    .pillars-grid,
    .process-grid,
    .news-preview,
    .split-section,
    .gallery-grid,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .img-container {
        height: 300px;
    }

    .blog-hero {
        padding-top: 6rem;
    }

    .blog-highlight img {
        min-height: 240px;
    }
}
