/* ==================================
   CSS Variables & Base (Mobile First)
   ================================== */
:root {
    /* Colors for Social Impact Scheme */
    --primary: #007b8a; /* Deep sea green */
    --primary-light: #17a2b8; /* Light blue accent */
    --primary-dark: #005662; 
    --secondary: #ff8c42; /* Warm orange */
    --secondary-hover: #e57a36; 
    
    --bg-light: #f4f7f6; /* Soft grey background */
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    
    --success: #28a745;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

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

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 5rem 0;
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.section-header.center .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}


/* ==================================
   Header & Navigation
   ================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 50px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: block;
}

.nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
}

.nav.active {
    left: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

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

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


/* ==================================
   Hero Section
   ================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, rgba(244,247,246,1) 0%, rgba(226,244,245,1) 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    opacity: 0.3;
}

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

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

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

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-placeholder-img {
    width: 320px;
    height: 320px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}


/* ==================================
   Acerca De
   ================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}


/* ==================================
   La Excelencia
   ================================== */
.excelencia-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.excelencia-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-list i {
    color: var(--secondary);
    margin-top: 0.3rem;
    margin-right: 1rem;
}

.blob-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--secondary), #ffb347);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}


/* ==================================
   Programas
   ================================== */
.programas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.programa-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.prog-img {
    height: 180px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.programa-card:nth-child(2) .prog-img { background: #6c5ce7; }
.programa-card:nth-child(3) .prog-img { background: #00cec9; }
.programa-card:nth-child(4) .prog-img { background: #fdcb6e; color: #d35400; }

.prog-content {
    padding: 2rem;
}

.prog-content h3 {
    margin-bottom: 1rem;
}

.prog-content p {
    color: var(--text-muted);
}


/* ==================================
   Benefactores
   ================================== */
.sponsors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sponsor-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.sponsor-card:hover {
    background: var(--primary);
    color: #fff;
}


/* ==================================
   Contacto
   ================================== */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contacto-info .title {
    margin-bottom: 1.5rem;
}

.contacto-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 138, 0.1);
}

.contacto-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}


/* ==================================
   Footer
   ================================== */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: #fff;
}


/* ==================================
   Media Queries (Responsive)
   ================================== */
@media (min-width: 768px) {
    .section-header.center .title::after {
        width: 80px;
    }

    .hero-container {
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-actions {
        flex-direction: row;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .excelencia-container {
        grid-template-columns: 1fr 1fr;
    }

    .programas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        overflow: visible;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .excelencia-content {
        padding-right: 3rem;
    }

    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
