/* 
===============================================
   COLEGIO JERUSALÉN - MODERN DESIGN SYSTEM
===============================================
*/

:root {
    /* Color Palette - SaaS / Startup Style */
    --primary-color: #1e3a8a; /* Deep Navy Blue */
    --primary-light: #3b82f6;
    --primary-dark: #172554;
    
    --secondary-color: #10b981; /* Soft / Modern Green */
    --secondary-hover: #059669;
    
    --accent-teal: #0891b2;
    --accent-purple: #8b5cf6;
    
    /* Neutral Colors */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f5f7fa; /* Requested soft gray background */
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    /* Requested card shadow */
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 30px rgba(0,0,0,0.12);
    --shadow-colored: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px; /* Requested button radius */
    --radius-lg: 12px; /* Requested card radius */
    --radius-xl: 16px;
    --radius-pill: 10px; /* Replacing pill with 10px as requested */
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-gray); /* Specific request: #f5f7fa */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }

.pt-6 { padding-top: 5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.rounded { border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.img-fluid { width: 100%; height: auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 0.5rem;
    border: none;
    outline: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-pill);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 92, 230, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 80px 0; /* Requested 80px */
}

.section-header {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(0, 92, 230, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

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

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 35px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section - Split Layout */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 8rem 0; /* Extra bot padding for the wave */
    background-color: var(--bg-gray);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(16, 185, 129, 0.15); /* Soft Green */
    color: var(--secondary-hover);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-title {
    color: var(--primary-dark);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: none; /* Removed the heavy dark shadow */
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Right side visual elements */
.hero-visual {
    position: relative;
}

/* Organic shape image wrapper */
.hero-image-mask {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid white;
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: white;
    transition: var(--transition-slow);
}

.hero-image-mask:hover {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    transform: scale(1.02);
}

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

/* Floating background shapes */
.hero-shape-1 {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 250px;
    height: 250px;
    background-color: var(--primary-light);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero-shape-2 {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    z-index: 1;
}

/* Floating information card */
.floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.floating-text strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.1rem;
    line-height: 1.2;
}
.floating-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Bottom wave separator */
.hero-wave {
    position: absolute;
    bottom: -1px; /* Avoid 1px gap line */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3rem; }
    .hero { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 6rem; }
    .hero-image-mask { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .floating-card { right: 10px; bottom: 10px; }
    .hero-image-mask { border-width: 5px; }
}

/* Modelo Educativo Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.model-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.model-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,33,113,0.3);
}

.model-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary-dark);
}

.model-description {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: justify;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.about-image img {
    border-radius: var(--radius-xl);
    object-fit: cover;
    height: 100%;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--text-main);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 4px solid white;
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list i {
    margin-top: 0.25rem;
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.level-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.level-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.level-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.level-card:hover .level-img {
    transform: scale(1.05);
}

.level-content {
    padding: 2rem;
}

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

.level-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.level-link i {
    transition: var(--transition-normal);
}

.level-link:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--primary-color);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    text-align: center;
    color: white;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal a {
    color: #94a3b8;
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid {
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        padding: 2rem;
        transition: var(--transition-normal);
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        font-size: 1.25rem;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .model-item:hover {
        transform: translateY(-5px);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .experience-badge {
        bottom: -1rem;
        right: -1rem;
        padding: 1rem;
    }
    
    .exp-number {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   PARVULARIA THEME STYLES
   ========================================================================== */
.parvularia-theme {
    --parv-yellow: #FFCC00;
    --parv-red: #FF3B30;
    --parv-blue: #32ADE6;
    --parv-green: #34C759;
    --parv-orange: #FF9500;
    --parv-pink: #FF2D55;
    --parv-cyan: #64D2FF;
}

.parv-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
}

.parv-title {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-dark);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.color-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-right: -10px;
}

/* User Requested: Scroll Fade-In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.color-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 8px solid var(--parv-yellow);
    position: relative;
    overflow: hidden;
}

.color-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.color-card-icon {
    width: 80px;
    height: 80px;
    background: var(--parv-yellow);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-card:hover .color-card-icon {
    transform: scale(1.1) rotate(10deg);
}

.color-card.red { border-color: var(--parv-red); }
.color-card.red .color-card-icon { background: var(--parv-red); }
.color-card.blue { border-color: var(--parv-blue); }
.color-card.blue .color-card-icon { background: var(--parv-blue); }
.color-card.green { border-color: var(--parv-green); }
.color-card.green .color-card-icon { background: var(--parv-green); }
.color-card.purple { border-color: var(--parv-orange); }
.color-card.purple .color-card-icon { background: var(--parv-orange); }

.color-card h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.color-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.blob-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--parv-yellow);
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-bounce 10s infinite alternate;
    z-index: -1;
}

@keyframes blob-bounce {
    0% { transform: scale(1) translate(0, 0); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { transform: scale(1.2) translate(20px, -20px); border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
}

.playful-list {
    list-style: none;
    padding: 0;
}

.playful-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.playful-list li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--parv-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.playful-list li:nth-child(2)::before { background: var(--parv-blue); content: '\f005'; }
.playful-list li:nth-child(3)::before { background: var(--parv-green); content: '\f004'; }
.playful-list li:nth-child(4)::before { background: var(--parv-yellow); content: '\f575'; color: var(--text-dark); }
