/*
Theme Name: Agricultura Salvadoreña
Theme URI: http://agriculturasv.org
Author:
Author URI: http://agriculturasv.org
Description: Un tema de WordPress para Agricultura Salvadoreña
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centro-escolar
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body{
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
}

.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.sticky-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #355B3C;
    align-items: center;
    padding: 30px 50px;
}

header img{
    width: 175px;
}

header nav ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
}

header nav ul li a{
    padding: 20px;
    margin: 0 8px;
    text-decoration: none;
    color: white;
    border-radius: 70px;
    transition: color 0.8s linear, background-color 0.9s ease;
}
.grid-main {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-areas: "header header header header header header header header header header header header header header"
                          "sidebar main main main main main main main main main main main main main";
    gap: 30px;
    width: 93%;
    margin: 0 auto;
    padding: 50px;
    justify-content: center;
}

/* Iniciamos con el cuerpo del landing */
#Inicio figure img{
    width: 100%;
    display: block;
    height: auto;
}

#Inicio, #Inicio figure {
    margin: 0;
    padding: 0;
}

/* Acerca de */
#about{
    background: #445c40;
    width: 100%;
    padding: 25px 0;
}

#about .item-2{
    grid-column: span 7;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about .item-2 h2{
    font-size: clamp(1.125rem, 0.7925rem + 1.2371vw, 1.875rem);
    margin: 40px 0;
    display: flex;
    justify-content: center;
    color: white;
}

#about .item-2 p{
    font-size: clamp(0.875rem, 0.7642rem + 0.4124vw, 1.125rem);
    color: white;
}

#about .mision-vision{
    grid-column: span 7;
    gap: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mision-vision .mision h3, .mision-vision .vision h3{
    color: white;
    font-size: clamp(1.25rem, 0.875rem + 1.5vw, 2.1875rem);
}

.mision-vision .mision p, .mision-vision .vision p{
    color: white;
    font-size: clamp(0.875rem, 0.775rem + 0.4vw, 1.125rem);
}

/* why choose */
#why-choose header h2{
    font-size: clamp(1.125rem, 0.7925rem + 1.2371vw, 1.875rem);
    grid-column: span 14;
    text-align: center;
}

#why-choose header p{
    grid-column: span 14;
}

#why-choose .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(322px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-item {
    background: #445c40;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #445c40;
}

.card-item:last-child:nth-child(odd) {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    max-width: 500px;    /* Limitamos su ancho para que no se vea gigante */
    justify-self: center; /* Lo centra horizontalmente */
}

.card-item dt {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.card-item dd {
    margin: 0;
    line-height: 1.6;
    color: white;
}

#why-choose .section-header {
    text-align: center;
    margin: 40px;
    display: grid;
    gap: 20px;
}

/* Aulas */
/* Contenedor Principal */
#aulas {
    background-color: #fcfdfb; /* Blanco roto con un toque de verde */
    text-align: center;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

#aulas h2 {
    color: #445c40; /* Verde bosque profundo */
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-transform: uppercase;
    grid-column: span 14;
}

/* Estilo de la Tabla */
.impact-table {
    grid-column: span 14;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 15px; /* Crea el efecto de tarjetas separadas */
}

/* Cabeceras (Las Cifras) */
.impact-table thead th {
    background-color: #ffffff;
    color: #445c40; /* Verde agricultura vibrante */
    font-size: 1.8rem;
    font-weight: 800;
    padding: 30px 20px 10px 20px;
    border-radius: 12px 12px 0 0;
    border-top: 4px solid #445c40; /* Línea de "crecimiento" */
    transition: transform 0.3s ease;
}

/* Cuerpo (La descripción) */
.impact-table tbody td {
    background-color: #ffffff;
    color: #445c40;
    padding: 0 20px 30px 20px;
    font-size: 1rem;
    line-height: 1.5;
    vertical-align: top;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra suave orgánica */
}

/* Efecto Hover para interactividad */
.impact-table th:hover, 
.impact-table th:hover + td {
    transform: translateY(-5px);
}

/* --- RESPONSIVE: De tabla a bloques --- */
@media (max-width: 768px) {
    /* Convertimos la tabla en bloques individuales */
    .impact-table, 
    .impact-table thead, 
    .impact-table tbody, 
    .impact-table th, 
    .impact-table td, 
    .impact-table tr {
        display: block; 
        width: 100%;
    }

    /* Ocultamos visualmente el thead pero mantenemos la accesibilidad */
    .impact-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .impact-table tbody td {
        margin-bottom: 30px;
        border-radius: 12px;
        padding: 60px 20px 30px 20px; /* Aumentamos padding superior para la cifra */
        border-left: 8px solid #445c40;
        position: relative; /* Necesario para posicionar la cifra */
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        text-align: center;
    }

    /* INSERTAMOS LAS CIFRAS MEDIANTE DATA-ATTRIBUTES */
    .impact-table td::before {
        content: attr(data-label); /* Toma el texto del atributo que pondremos en el HTML */
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        font-size: 1.6rem;
        font-weight: 800;
        color: #445c40;
        text-transform: uppercase;
    }
}

/* Contacto */
#contact h2{
    font-size: clamp(1.125rem, 0.7925rem + 1.2371vw, 1.875rem);
    grid-column: span 14;
    text-align: center;
}

#contact .valores{
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#contact .valores img{
    width: 80%;
}

#contact .valores ul li{
    font-size: clamp(0.875rem, 0.7642rem + 0.4124vw, 1.125rem);
    margin: 8px 0;
}

#contact .form{
    grid-column: span 7;
    display: grid;
    padding: 0 20px;
}

#contact .form input, #contact .form textarea{
    padding: 15px 10px;
    margin: 10px 0;
}

#contact .form textarea{
    height: 200px;
}

#contact .form button{
    width: fit-content;
    padding: 15px 30px;
    margin: 20px 0;
    background-color: #445c40;
    border-style: none;
    border-radius: 50px;
    color: white;
    transition: color 0.8s linear, background-color 0.9s ease;
}

/* Footer */
footer{
    display: grid;
    gap: 30px;
    justify-content: center;
    padding: 50px;
    grid-template-columns: repeat(20, 1fr);
}

.copy, .info, .contact, .social{
    grid-column: span 5;
    justify-items: center;
    text-align: center;
}

.copy{
    font-size: clamp(0.75rem, 0.6946rem + 0.2062vw, 0.875rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.info, .contact{
    display: grid;
    text-align: center;
}

.info a, .contact a{
    color: black;
}

.info p, .contact p, .social p{
    margin: 20px 0;
}

.info a, .contact a, .contact span{
    margin: 10px 0;
}

.social a{
    font-size: clamp(1.5625rem, 0.8698rem + 2.5773vw, 3.125rem);
    margin: 0 10px;
    color: #445c40;
    transition: color 0.8s linear, background-color 0.9s ease;
}

.foot{
    grid-column: span 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foot img{
    height: 100%;
    width: 175px;
}

/* Responsive */
@media (max-width: 768px) {
    #about,
    #contact,
    footer {
        display: flex;
        flex-direction: column;
    }

    #about .mision-vision {
        padding: 0 50px;
    }

    .mision h3, .vision h3 {
        text-align: center;
    }

    #contact .valores {
        align-items: center;
    }

    #contact .valores img{
        width: 50%;
    }
}

@media (max-width: 430px) {
    .sticky-menu {
        padding: 15px 10px;
        flex-direction: column;
        gap: 15px;
    }

    header img {
        width: 120px;
    }

    header nav {
        width: 100%;
    }

    header nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li a {
        display: block;
        padding: 10px 5px;
        margin: 0;
        font-size: 0.85rem;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

/* ========== Page presidente ========== */
/* Estilos Base */
:root {
    --primary-dark: #2a3a2b; /* Verde oscuro del fondo */
    --accent-green: #2d4d31; 
    --white: #ffffff;
}

.profile-container {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
}

/* Hero Section */
.profile-hero__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.profile-hero__img {
    width: 300px;
    height: auto;
    display: block;
}

.profile-hero__name {
    font-size: 3rem;
    margin: 0;
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.1;
}

.profile-hero__role {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Source Sans 3', sans-serif;
}

.profile-hero__social {
    display: flex;
    gap: 15px;
}

.profile-hero__social a {
    color: var(--primary-dark);
    background: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* Banner Inferior */
.stats-banner__wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 40px;
}

.stats-banner__logo img { height: 140px; }

/* -------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------- */

/* Tablet (768px) */
@media (max-width: 768px) {
    .profile-hero__content {
        gap: 25px;
    }
    
    .profile-hero__name { font-size: 2.2rem; }
    
    .profile-hero__img { width: 240px; }

    .stats-banner__wrapper {
        padding: 15px 25px;
    }

    .stats-banner__logo img{
        width: 100%;
        height: auto;
    }
}

/* Mobile (430px - iPhone Pro Max / Otros) */
@media (max-width: 430px) {
    .profile-hero__content {
        flex-direction: column; /* Apilado vertical */
        text-align: center;
    }

    .profile-hero__social {
        justify-content: center;
    }

    .profile-hero__name { font-size: 1.8rem; }

    .stats-banner__wrapper {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stats-banner__logo img{
        width: 100%;
        height: auto;
    }
}