/* ----------------------------------------------------
   VARIABLES
---------------------------------------------------- */
:root {
    --verde: #0f8f43;
    --verde-oscuro: #0b6e33;
    --gris-claro: #f5f5f5;
    --gris: #e5e5e5;
    --gris-oscuro: #333;
    --blanco: #ffffff;
    --negro: #111;
    --sombra: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --trans: 0.25s ease;
}

/* ----------------------------------------------------
   RESET
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--gris-claro);
    color: var(--negro);
    line-height: 1.6;
}

/* ----------------------------------------------------
   HEADER
---------------------------------------------------- */
.header {
    width: 100%;
    padding: 18px 5%;
    background: var(--blanco);
    box-shadow: var(--sombra);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 50px;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--verde);
}

/* ----------------------------------------------------
   NAV
---------------------------------------------------- */
.nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--trans);
}

.nav a:hover,
.nav a.active {
    background: var(--verde);
    color: var(--blanco);
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--blanco);
    border-radius: var(--radius);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 180px;
    box-shadow: var(--sombra);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li a {
    padding: 10px 15px;
    color: var(--negro);
}

.dropdown-menu li a:hover {
    background: var(--verde);
    color: var(--blanco);
}

/* ----------------------------------------------------
   HERO PRINCIPAL Y SECUNDARIO
---------------------------------------------------- */
.hero,
.hero-sub {
    padding: 100px 5%;
    text-align: center;
    background: var(--verde);
    color: var(--blanco);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-sub h2 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.hero-sub p {
    color: #e0e0e0;
}
.hero-img {
    width: 320px;    /* Tamaño recomendado */
    max-width: 90%;  /* Para que no se desborde en móviles */
    height: auto;
    margin-top: 20px;
    border-radius: 12px; /* opcional */
}

/* ----------------------------------------------------
   CONTENIDO GENERAL
---------------------------------------------------- */
main {
    padding: 60px 6%;
}

section h2 {
    font-size: 2rem;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    color: #222;
}

/* ----------------------------------------------------
   TARJETAS
---------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--blanco);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    transition: var(--trans);
    border-left: 6px solid var(--verde);
}

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

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--verde-oscuro);
}

/* ----------------------------------------------------
   IMÁGENES Y BLOQUES
---------------------------------------------------- */
.img-bloque {
    width: 25%;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    margin: 25px 0;
    object-fit: cover;
}

.grande {
    max-width: 700px;
}

.qs-img {
    text-align: center;
}

/* ----------------------------------------------------
   FRASE DESTACADA
---------------------------------------------------- */
.frase-destacada {
    font-style: italic;
    background: var(--verde);
    color: var(--blanco);
    padding: 18px;
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: var(--sombra);
}

/* ----------------------------------------------------
   BLOQUES DE CONTENIDO PARA GRADOS
---------------------------------------------------- */
.bloque-tema {
    background: var(--blanco);
    padding: 25px;
    border-left: 6px solid var(--verde);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    margin-bottom: 35px;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
    margin-top: 60px;
    padding: 60px 5%;
    background: var(--verde-oscuro);
    color: var(--blanco);
}

.footer h2 {
    text-align: center;
    font-size: 1.8rem;
}

.sedes {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.sede {
    flex: 1;
    min-width: 260px;
    background: rgba(255,255,255,0.12);
    padding: 20px;
    border-radius: var(--radius);
}

.sede h3 {
    margin-bottom: 10px;
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
@media (max-width: 900px) {
    .nav ul {
        gap: 12px;
    }
}

@media (max-width: 700px) {
    .header {
        flex-direction: column;
        gap: 18px;
    }

    .hero,
    .hero-sub {
        padding: 70px 5%;
    }

    .sedes {
        flex-direction: column;
    }
}
