/* --- Color Palette & Variables --- */
:root {
    --primary-main: #1A3C34;
    /* Dark green */
    --primary-light: #84A590;
    /* Sage */
    --primary-dark: #086934;
    /* Emerald */
    --accent-1: #F5C75B;
    /* Mustard */
    --accent-2: #BF6734;
    /* Rust */
    --bg-light: #F9F8F6;
    /* Cream */
    --text-main: #2C3633;
    --text-light: #5A6D65;

    --border-glass: rgba(255, 255, 255, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 40px rgba(26, 60, 52, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-main);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-2);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container.narrow,
.container-narrow {
    max-width: 900px;
}


/* --- Typography Utilities --- */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-1);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.section-title.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 1.05rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-main);
    color: #fff;
    border: 2px solid var(--primary-main);
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 60, 52, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-main);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background-color: var(--accent-1);
    color: var(--primary-main);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

/* --- Glassmorphism --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-size: 2.2rem; /* Desktop size */
    font-weight: 600;
    color: var(--primary-main);
    transition: transform 0.3s ease;
    flex-shrink: 1; /* Allow to shrink if needed */
    min-width: 0;
}

.navbar .logo img {
    height: 55px; /* Desktop size */
    width: auto;
    display: block;
    flex-shrink: 0; /* Logo shouldn't shrink */
}

.navbar .logo span:last-child {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-2);
}

.navbar .logo a:hover {
    transform: translateY(-2px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-1);
    transition: width 0.3s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    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;
    object-position: center;
    filter: blur(8px);
    transform: scale(1.05);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-light) 0%, rgba(249, 248, 246, 0.65) 55%, transparent 100%);
}

.hero-content {
    max-width: 650px;
    padding: 3.5rem;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.proposals-membership {
    padding: 8rem 5%;
    background-color: var(--bg-light);
}

.proposals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.membership-header {
    margin-bottom: 4rem;
}


.membership-brand {
    font-size: 1.8rem;
    color: var(--accent-2);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: -0.5rem;
}

.membership-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 2rem auto;
    color: var(--text-light);
    line-height: 1.6;
}

.membership-details-card {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}


.details-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.details-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.details-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-main);
}

.benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.2rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.benefit-list li .icon {
    font-size: 1.4rem;
}

/* --- Bonus Section --- */
.bonus-section {
    background-color: var(--primary-main);
    color: #fff;
    padding: 3.5rem;
    border-radius: 24px;
    height: 100%;
}


.bonus-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bonus-subtitle {
    color: var(--accent-1);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.bonus-description {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.kit-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    align-items: center;
}

.kit-image {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.kit-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.kit-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.kit-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

.membership-cta {
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .proposals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .proposals-membership {
        padding: 6rem 5% 4rem;
    }

    
    .membership-header {
        margin-bottom: 3rem;
    }
    
    .membership-header .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .membership-brand {
        font-size: 1.4rem;
        text-align: center;
    }

    .membership-header .subtitle {
        text-align: center;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.4;
    }

    .membership-details-card, .bonus-section {
        padding: 2rem;
    }
    
    .kit-card {
        flex-direction: column;
        text-align: center;
    }
    
    .kit-image {
        width: 100%;
        height: 200px;
    }
}


/* --- About Section --- */
.about {
    padding: 8rem 5%;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.15;
    z-index: 0;
    filter: blur(50px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image .img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image .img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: var(--text-light);
}

.text-justified p {
    text-align: justify;
    text-justify: inter-word;
}

.title-divider-left {
    width: 60px;
    height: 2px;
    background-color: var(--accent-1);
    margin: 1rem 0 1.5rem;
}

.closing-quote-left {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary-main);
    line-height: 1.4;
    margin: 3rem 0;
}

/* --- About Aesthetic (Legacy Centered) --- */
.about-aesthetic {
    padding: 10rem 5%;
    text-align: center;
}


/* --- About Aesthetic (Centered Refinement) --- */
.about-aesthetic {
    padding: 10rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-aesthetic .section-title {
    margin-bottom: 1rem;
}

.title-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-1);
    margin: 1.5rem 0 2rem;
}

.about-aesthetic .subtitle {
    font-size: 0.95rem;
    letter-spacing: 4px;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.about-text-body {
    margin-bottom: 4rem;
}

.about-text-body p {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.closing-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--primary-main);
    line-height: 1.4;
    margin-bottom: 4rem;
}

.about-cta {
    margin-top: 1rem;
}

/* --- La Escuela Section --- */
.school-section {
    padding: 10rem 5%;
    background-color: var(--primary-main);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.school-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-1);
    opacity: 0.05;
    filter: blur(80px);
    border-radius: 50%;
}

.school-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.school-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.school-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.school-image .img-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.section-title.light {
    color: #fff;
}

.title-divider-center.light {
    width: 60px;
    height: 2px;
    background-color: var(--accent-1);
    margin: 1.5rem 0 2rem;
}

.subtitle.light {
    color: var(--bg-light);
    opacity: 0.9;
}

.school-tagline {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 2rem 0 3rem;
    line-height: 1.5;
    font-weight: 300;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    max-width: 900px;
}

.pill {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.pill:hover {
    background-color: var(--accent-1);
    border-color: var(--accent-1);
    color: var(--primary-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.school-body {
    max-width: 850px;
    margin-bottom: 2rem;
}

.school-body p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.emphatic-quote-left {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    line-height: 1.3;
    color: #fff;
    margin-top: 2rem;
}

.emphatic-quote-left span {
    color: var(--accent-1);
    font-weight: 600;
}

@media (max-width: 992px) {
    .school-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .school-text {
        align-items: center;
    }

    .title-divider-left.light {
        margin: 1.5rem auto 2rem;
    }
}



/* --- Services Section --- */
.services {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(26, 60, 52, 0.12);
}

.card-img {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    flex: 1;
    font-size: 1.1rem;
}

.card-content .btn-secondary {
    align-self: flex-start;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-main);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 5% 3rem;
    text-align: center;
}

.footer .logo img {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin-top: 1.5rem;
    display: inline-block;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    margin-top: 1.5rem;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer a.instagram-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer a.instagram-link svg {
    transition: transform 0.3s ease;
}

.footer a.instagram-link:hover svg {
    transform: rotate(10deg) scale(1.1);
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(249, 248, 246, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.4s ease;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-bg::after {
        background: linear-gradient(180deg, var(--bg-light) 0%, rgba(249, 248, 246, 0.85) 100%);
    }

    .hero-content {
        padding: 2.5rem;
        margin-top: 20px;
        text-align: center;
    }

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

    .cta-group {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    /* Navbar Mobile Fix */
    .navbar {
        padding: 10px 4%;
    }

    .navbar .logo a {
        font-size: 1.4rem;
        gap: 0.6rem;
    }

    .navbar .logo img {
        height: 35px;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-actions .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Extra small screens fix */
    @media (max-width: 450px) {
        .navbar {
            padding: 10px 3%;
        }

        .navbar .logo a {
            font-size: 1.2rem;
            gap: 0.5rem;
        }
        
        .navbar .logo img {
            height: 32px;
        }

        .nav-actions {
            gap: 0.5rem;
        }

        .nav-actions .btn-primary {
            display: none;
        }
    }

    /* Ultra-small screens (iPhone SE, etc.) */
    @media (max-width: 360px) {
        .navbar .logo a {
            font-size: 1.05rem;
        }
        
        .navbar .logo img {
            height: 28px;
        }
    }

    .section-title.center::after {
        display: none;
        /* specific styling for mobile */
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text,
    .services .section-title {
        text-align: center;
    }

    .about-text .btn-primary {
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    background-color: #1ebe57;
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
    }
}