/* --- Variables de Color y Reset --- */
:root {
    --color-primary: rgba(0, 70, 9, 0.85);
    --color-secondary: rgba(90, 92, 7, 0.7);
    --color-bg: #f8f9fa;
    --color-text: #333333;
    --color-white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Barra de Navegación --- */
nav {
    height: 9vh;
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- Sección Portada (Hero) --- */
header {
    height: 91vh;
    background: linear-gradient(rgba(0, 70, 9, 0.85), rgba(90, 92, 7, 0.7)), url('nino_jugando.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

header h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
}

header p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-button {
    background: #ffffff;
    color: #1B5E20;
    padding: 15px 35px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3rem;
    border: 4px solid #FBC02D;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.cta-button:active {
    transform: scale(0.95);
}

/* --- Contenedores Generales --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

/* --- Misión y Visión (Grid de 2) --- */
#nosotros {
    background-color: var(--color-white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* --- Valores (Card Ancha) --- */
.values-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    margin-top: 2rem;
}

.values-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.8rem;
}

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

.values-list li {
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
}

.values-list strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

/* Estilo general de cards */
.card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-top: 5px solid var(--color-primary);
}

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

.card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* --- Contacto --- */
#contacto {
    background-color: var(--color-bg);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-info {
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.icon {
    margin-right: 15px;
    color: var(--color-primary);
    font-size: 1.8rem;
}

/* --- Mapa --- */
.map-responsive {
    overflow: hidden;
    padding-bottom: 45%;
    position: relative;
    height: 0;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--color-white);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8rem;
    }

    header p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    nav {
        justify-content: center;
    }

    .map-responsive {
        padding-bottom: 80%;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
    }

    .icon {
        margin-right: 0;
    }
}