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

.encabezado nav a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* línea animada */
.encabezado nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

/* animación al pasar el mouse */
.encabezado nav a:hover::after {
    width: 100%;
}

/* pequeño efecto extra */
.encabezado nav a:hover {
    color: #c8f7c5;
}

html {
    scroll-behavior: smooth;
}

.encabezado {
    background: #1f5c2e;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.encabezado .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.encabezado h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.encabezado nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.encabezado nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.encabezado nav a:hover {
    opacity: 0.8;
}

#plan-estrategico,
#vision-2030,
#eje1,
#eje5,
#eje10 {
    scroll-margin-top: 100px;
}

:root {
    --verde-principal: #2e7d32;
    --verde-oscuro: #1b5e20;
    --verde-suave: #f4f8f4;
    --texto-principal: #2f3e2f;
    --texto-secundario: #556655;
    --blanco: #ffffff;
    --sombra-suave: 0 6px 18px rgba(0, 0, 0, 0.08);
    --sombra-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
    --radio-grande: 18px;
    --radio-mediano: 14px;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--verde-suave);
    color: var(--texto-principal);
    line-height: 1.6;
}

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

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

/* ENCABEZADO */
.header-plan {
    background:
        linear-gradient(rgba(34, 41, 85, 0.75), rgba(34, 85, 34, 0.75)),
        url("bosque.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.header-plan h1 {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.header-plan p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* SECCIÓN GENERAL */
.plan-estrategico {
    padding: 60px 0;
}

.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.etiqueta-plan {
    display: inline-block;
    background-color: #dcefdc;
    color: var(--verde-principal);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-header h2 {
    font-size: 2rem;
    color: #1b4332;
    margin-bottom: 12px;
}

.plan-header p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
    color: #4b5d4b;
}

.diagrama-sedema {
    width: min(100%, 900px);
    height: auto;
    margin: 24px auto 0;
    border-radius: var(--radio-mediano);
}

/* VISIÓN */
.vision-box {
    background: var(--blanco);
    border-left: 6px solid var(--verde-principal);
    border-radius: 16px;
    padding: 30px;
    margin: 0 auto 45px;
    box-shadow: var(--sombra-suave);
    max-width: 950px;
}

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

.vision-box p {
    color: #445544;
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 12px;
}

.vision-box p:last-child {
    margin-bottom: 0;
}

/* GRID DE EJES */
.grid-ejes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* TARJETAS */
.card-eje {
    background: var(--blanco);
    border-radius: var(--radio-grande);
    padding: 24px;
    box-shadow: var(--sombra-suave);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 5px solid #81c784;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.card-eje:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
}

/* HEADER DE TARJETA */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

/* ICONO */
.icono-eje {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

/* NÚMERO */
.card-eje .numero {
    width: 46px;
    height: 46px;
    background-color: var(--verde-principal);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CONTENIDO */
.card-eje h3 {
    color: #1b4332;
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 2px;
}

.card-eje p {
    color: var(--texto-secundario);
    font-size: 0.97rem;
    margin-bottom: 0;
    text-align: justify;
}

/* IMAGEN DEL EJE */
.imagen-eje {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radio-mediano);
    margin-top: 8px;
    background-color: #e9f3e9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.imagen-eje:hover {
    transform: scale(1.03);
}

/* COLORES DE CADA TARJETA */
.eje-destacado1 {
    border-top-color: #f39c12;
    background: linear-gradient(to bottom, #fffaf2, #ffffff);
}
.eje-destacado1 .numero {
    background-color: #f39c12;
}

.eje-destacado2 {
    border-top-color: #27ae60;
    background: linear-gradient(to bottom, #f3fff7, #ffffff);
}
.eje-destacado2 .numero {
    background-color: #27ae60;
}

.eje-destacado3 {
    border-top-color: #8e44ad;
    background: linear-gradient(to bottom, #faf5ff, #ffffff);
}
.eje-destacado3 .numero {
    background-color: #8e44ad;
}

.eje-destacado4 {
    border-top-color: #e91e63;
    background: linear-gradient(to bottom, #fff4f9, #ffffff);
}
.eje-destacado4 .numero {
    background-color: #e91e63;
}

.eje-destacado5 {
    border-top-color: #1e88e5;
    background: linear-gradient(to bottom, #f3f9ff, #ffffff);
}
.eje-destacado5 .numero {
    background-color: #1e88e5;
}

.eje-destacado6 {
    border-top-color: #00acc1;
    background: linear-gradient(to bottom, #f1fcff, #ffffff);
}
.eje-destacado6 .numero {
    background-color: #00acc1;
}

.eje-destacado7 {
    border-top-color: #f4b400;
    background: linear-gradient(to bottom, #fffced, #ffffff);
}
.eje-destacado7 .numero {
    background-color: #f4b400;
    color: #2f2f2f;
}

.eje-destacado8 {
    border-top-color: #128ebb;
    background: linear-gradient(to bottom, #f2fbff, #ffffff);
}
.eje-destacado8 .numero {
    background-color: #128ebb;
}

.eje-destacado9 {
    border-top-color: #2e7d32;
    background: linear-gradient(to bottom, #f4fff5, #ffffff);
}
.eje-destacado9 .numero {
    background-color: #2e7d32;
}

.eje-destacado10 {
    border-top-color: #e64a19;
    background: linear-gradient(to bottom, #fff6f2, #ffffff);
}
.eje-destacado10 .numero {
    background-color: #e64a19;
}

/* BOTÓN REGRESO */
.boton-regreso {
    text-align: center;
    margin-top: 50px;
}

.boton-regreso a {
    display: inline-block;
    background-color: var(--verde-principal);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-regreso a:hover {
    background-color: var(--verde-oscuro);
    transform: scale(1.03);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-contenido {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* PIE */
.pie {
    background: #1f5c2e;
    color: white;
    text-align: center;
    padding: 16px;
    margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-plan {
        padding: 70px 20px;
    }

    .header-plan h1 {
        font-size: 1.8rem;
    }

    .plan-header h2 {
        font-size: 1.6rem;
    }

    .vision-box {
        padding: 24px;
    }

    .grid-ejes {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .card-eje {
        padding: 20px;
    }

    .imagen-eje {
        height: 210px;
    }

    .icono-eje {
        width: 46px;
        height: 46px;
    }

    .card-eje .numero {
        width: 42px;
        height: 42px;
    }

    .diagrama-sedema {
        width: 100%;
    }

    .cerrar {
        top: 14px;
        right: 20px;
        font-size: 32px;
    }
}