/* === VARIABLES === */
:root {
    --verde: #008000;
    --verde-oscuro: #006400;
}

/* === RESETEO BÁSICO === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--texto);
    background-color:  #e6e6e6;
}

/* === CONTENEDOR === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.logo img {
    height: 40px;
    margin-right: 10px;
}
.logo span {
    position: relative;
    top: -10px;   /* Mueve hacia abajo */
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--verde);
}
.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--texto);
    font-weight: bold;
}
.nav a:hover {
    color: var(--verde);
}

/* === HERO === */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero-bg {
    background-image: url('../img/1.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); 
    background-blend-mode: darken;
}

.overlay {
    background-color: rgba(0, 0, 0, 0); /* Inicia transparente */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    transition: background-color 0.1s ease; /* Suaviza el cambio */
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 20px;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.1s;
}
.btn-principal {
    background: var(--verde);
    color: white;
}
.btn-principal:hover {
    background: var(--verde-oscuro);
}
.btn-secundario {
    background: white;
    color: var(--verde);
    border: 1px solid var(--verde);
}
.btn-secundario:hover {
    background: rgb(206, 205, 205);
}

/* === SECCIONES === */
.section {
    text-align: center;
    padding: 50px 20px;
}
.bg-light {
    background: rgb(235, 235, 235);
}
.titulo-seccion {
    font-size: 2rem;
    color: var(--verde);
    margin-bottom: 20px;
}
.descripcion-seccion {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* === CARDS === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: #fffefe2f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}
.card h3 {
    color: var(--verde);
    margin-bottom: 10px;
}
#unete {
    width: 100%;
    text-align: center;
}
#contacto {
    text-align: center;
}
.info-contacto p {
    display: inline-block;
    margin: 0 10px; /* espacio entre ellos */
}
.info-contacto .redes {
    margin-top: 15px; /* espacio hacia abajo desde los p */
}
/* === REDES === */
.redes a {
    margin: 0 10px;
    color: var(--verde);
    text-decoration: none;
}
.redes a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    background: var(--verde);
    color: white;
    text-align: center;
    padding: 10px 0;
}
.footer img {
    height: 40px;
    margin-bottom: 10px;
}
/* Botón hamburguesa oculto por defecto */
.menu-toggle {
    display: none;
}

/* === Responsive para menú y hero buttons === */
@media (max-width: 768px) {

    /* Mostrar botón hamburguesa en móviles */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--verde);
        user-select: none;
    }

    /* Ocultar el nav por defecto y mostrarlo al hacer clic */
    .nav {
        display: none;
        flex-direction: column;
        background: rgba(255,255,255,0.7);
        position: absolute;
        top: 60px; /* debajo del header */
        right: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        z-index: 1100;
    }
    .nav a {
        margin: 10px 20px;
    }

    /* Mostrar nav cuando está activo */
    .nav.active {
        display: flex;
    }

    /* Logo span mantener top */
    .logo span {
        top: 0px;
        position: relative;
    }

    /* Botones hero en columna */
    .hero .buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    /* Centrar logo (imagen + texto) */
.logo {
    display: flex;
    align-items: center;
    justify-content: center; /* centra horizontalmente */
    flex: 1;
}

/* Separar el botón hamburguesa */
.menu-toggle {
    margin-left: 10px;
    margin-right: 10px;
}
.header {
    position: absolute;
    top: 0;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 3px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    
}
}
