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

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}
.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2E5A3B;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}
#hero {
    height: 100vh;                     /* ocupa todo el alto de la ventana */
    background: url('img/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* capa negra al 40% */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content {
    color: #fff;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 400;
}
.btn-hero {
    display: inline-block;
    background-color: #2E5A3B;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background-color: #8CB369;
    transform: translateY(-2px);
}
#metodologia {
    padding: 5rem 2rem;
    background-color: #F9F9F9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;          /* centra el contenedor */
    padding: 0 1rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #2E5A3B;
    text-align: center;
    margin-bottom: 3rem;
}
.cards-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;         /* en móvil se pondrán en columna */
}
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1 1 250px;         /* se estira y se encoge, base 250px */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: #8CB369;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #2E5A3B;
    margin-bottom: 0.8rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}
#nosotros {
    padding: 5rem 2rem;
    background-color: #fff;
}

.nosotros-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.nosotros-texto {
    flex: 1 1 300px;
}

.nosotros-texto p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.nosotros-imagen {
    flex: 1 1 300px;
    text-align: center;
}

.nosotros-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#contacto {
    padding: 5rem 2rem;
    background-color: #F9F9F9;
}

.contacto-flex {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contacto-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8CB369;
}

.contacto-info {
    flex: 1 1 250px;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contacto-info h3 {
    font-family: 'Poppins', sans-serif;
    color: #2E5A3B;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contacto-info p {
    margin-bottom: 0.8rem;
    color: #555;
}

.contacto-info i {
    color: #8CB369;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}
footer {
    background-color: #2E5A3B;
    color: #fff;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.footer-logo p {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: #ddd;
}

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

.footer-enlaces a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-enlaces a:hover {
    color: #8CB369;
}

.footer-copy {
    flex-basis: 100%;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}
.lang-selector {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-selector button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.lang-selector button:hover {
    background-color: #8CB369;
    color: #fff;
}