/* RESET Y BASE */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Segoe UI', 'Calibri', Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    padding-top: 156px; /* ↑ 30% de 120px = 156px */
}

/* PALETA DE COLORES CARBONFEEL - SIN DEGRADADOS */
:root {
    --primary-green: #568459;      /* Títulos principales, botones */
    --primary-light: #72A376;      /* Subtítulos, hover botones */
    --accent-medium: #B0CCB0;      /* Bordes, separadores */
    --accent-light: #EBF1DE;       /* Fondos suaves */
    --white: #ffffff;
    --text-dark: #333333;
}

/* CABECERA FIJA SUPERIOR - BLANCA Y RECTA */
.main-header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 130px; /* ↑ 30% de 100px = 130px */
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-medium);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* MENÚ HAMBURGUESA - RECTANGULAR */
.menu-container {
    flex-shrink: 0;
    margin-left: 0;
}

.hamburger-btn {
    background: var(--primary-green);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: var(--primary-light);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* TÍTULO CENTRADO - MÁS GRANDE (30%) */
.brand-title-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.brand-title {
    height: 78px; /* ↑ 30% de 60px = 78px */
    width: auto;
    max-width: 600px;
    display: block;
}

/* LOGO DERECHO - MÁS GRANDE (30%) */
.logo-right-container {
    flex-shrink: 0;
    margin-right: 0;
}

.header-logo-right {
    height: 78px; /* ↑ 30% de 60px = 78px */
    width: auto;
    display: block;
}

/* LÍNEA SEPARADORA RECTA */
.header-separator {
    position: fixed;
    top: 130px; /* ↑ 30% (igual que height del header) */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-medium);
    z-index: 999;
}

/* SIDEBAR NAVEGACIÓN - RECTA */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.08);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--accent-medium);
}

.sidebar-nav.active {
    left: 0;
}

.nav-header {
    background: var(--primary-green);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent-medium);
}

.nav-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-list {
    list-style: none;
    padding: 15px 0;
    flex-grow: 1;
}

.nav-list li {
    margin: 2px 10px;
    transition: all 0.2s ease;
}

.nav-list li:hover {
    background-color: var(--accent-light);
}

.nav-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-list a i {
    margin-right: 10px;
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--primary-green);
}

.nav-list a.active {
    background: var(--accent-light);
    color: var(--primary-green);
    font-weight: 600;
    border-left: 3px solid var(--primary-green);
}

.nav-list a.active i {
    color: var(--primary-green);
}

.nav-list a:hover:not(.active) {
    color: var(--primary-green);
}

.nav-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--accent-medium);
    background: var(--accent-light);
}

.nav-footer p {
    color: var(--primary-green);
    font-size: 12px;
    margin: 2px 0;
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 30px;
}

/* SECCIONES DE CONTENIDO - UNA CAJA CON 3 COLUMNAS */
.content-section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-light);
    margin: 10px auto 0;
}

/* CAJA ÚNICA CON 3 COLUMNAS */
.single-section-grid {
    width: 100%;
}

.single-content-box {
    background: var(--white);
    border: 1px solid var(--accent-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    overflow: hidden;
    border-radius: 3px;
}

.single-content-box:hover {
    box-shadow: 0 4px 12px rgba(86, 132, 89, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.content-column {
    padding: 30px;
    border-right: 1px solid var(--accent-light);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.content-column:last-child {
    border-right: none;
}

.column-header {
    margin-bottom: 15px;
}

.column-header h3 {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.column-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.column-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
    opacity: 0.9;
    flex-grow: 1;
}

.column-features {
    list-style: none;
    margin-top: 15px;
}

.column-features li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-dark);
    opacity: 0.9;
    border-bottom: 1px solid var(--accent-light);
}

.column-features li:last-child {
    border-bottom: none;
}

.column-features li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 16px;
}

.single-content-box-footer {
    background: var(--accent-light);
    padding: 25px;
    text-align: center;
    border-top: 1px solid var(--accent-medium);
}

.single-content-box-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 12px 35px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-green);
    border-radius: 2px;
    min-width: 220px;
}

.single-content-box-link:hover {
    background: var(--white);
    color: var(--primary-green);
}

.single-content-box-link i {
    margin-left: 10px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.single-content-box-link:hover i {
    transform: translateX(3px);
}

/* FOOTER - MÍNIMO */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 50px 30px 25px;
    margin-top: 80px;
    border-top: 2px solid var(--accent-medium);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-column h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 8px !important;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-medium);
}

.footer-links {
    list-style: none;
    margin-top: 10px !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-links a i {
    margin-right: 8px;
    font-size: 12px;
    opacity: 0.8;
    min-width: 16px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    body {
        padding-top: 143px; /* ↑ 30% de 110px = 143px */
    }
    
    .main-header {
        height: 110px; /* Mantener proporción */
    }
    
    .header-separator {
        top: 110px; /* Igual que height del header */
    }
    
    .brand-title {
        height: 71.5px; /* ↑ 30% de 55px = 71.5px */
    }
    
    .header-logo-right {
        height: 71.5px; /* ↑ 30% de 55px = 71.5px */
    }
    
    .content-column {
        padding: 25px;
        min-height: 300px;
    }
    
    .column-header h3 {
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .main-header {
        height: 108px; /* Proporción ajustada */
    }
    
    .header-separator {
        top: 108px; /* Igual que height del header */
    }
    
    .brand-title {
        height: 65px; /* ↑ 30% de 50px = 65px */
    }
    
    .header-logo-right {
        height: 65px; /* ↑ 30% de 50px = 65px */
    }
    
    .hamburger-btn {
        width: 45px;
        height: 45px;
    }
    
    .content-column {
        padding: 22px;
        min-height: 280px;
    }
    
    .column-header h3 {
        font-size: 16px;
    }
    
    .single-content-box-link {
        padding: 10px 30px;
        font-size: 14px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 130px; /* ↑ 30% de 100px = 130px */
    }
    
    .main-header {
        height: 104px; /* ↑ 30% de 80px = 104px */
    }
    
    .header-separator {
        top: 104px; /* Igual que height del header */
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .brand-title {
        height: 58.5px; /* ↑ 30% de 45px = 58.5px */
    }
    
    .header-logo-right {
        height: 58.5px; /* ↑ 30% de 45px = 58.5px */
    }
    
    .hamburger-btn {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-btn span {
        width: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* EN MÓVIL: 1 COLUMNA POR LÍNEA */
    .content-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .content-column {
        padding: 25px;
        border-right: none;
        border-bottom: 1px solid var(--accent-light);
        min-height: auto;
    }
    
    .content-column:last-child {
        border-bottom: none;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .single-content-box-link {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    /* RESPONSIVE PARA FOOTER CORREGIDO */
    .footer-column h4 {
        margin-bottom: 20px !important;
    }
    
    .footer-links {
        margin-top: 8px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 117px; /* ↑ 30% de 90px = 117px */
    }
    
    .main-header {
        height: 91px; /* ↑ 30% de 70px = 91px */
    }
    
    .header-separator {
        top: 91px; /* Igual que height del header */
        height: 1px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .brand-title {
        height: 52px; /* ↑ 30% de 40px = 52px */
    }
    
    .header-logo-right {
        height: 52px; /* ↑ 30% de 40px = 52px */
    }
    
    .hamburger-btn {
        width: 35px;
        height: 35px;
    }
    
    .hamburger-btn span {
        width: 18px;
        height: 1.5px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-title:after {
        width: 60px;
        height: 2px;
    }
    
    .content-column {
        padding: 20px;
    }
    
    .column-header h3 {
        font-size: 15px;
    }
    
    .column-body p {
        font-size: 13px;
    }
    
    .column-features li {
        font-size: 12px;
    }
    
    .single-content-box-footer {
        padding: 20px;
    }
    
    .single-content-box-link {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* RESPONSIVE PARA FOOTER CORREGIDO (MÓVIL PEQUEÑO) */
    .footer-column h4 {
        margin-bottom: 18px !important;
    }
    
    .footer-links {
        margin-top: 6px !important;
    }
}

/* ============================================
   ESTILOS PARA LA PÁGINA DE DETALLE "LA INICIATIVA"
   ============================================ */

.detail-container {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 30px;
}

.detail-hero {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--accent-medium);
}

.detail-hero h1 {
    color: var(--primary-green);
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.detail-hero .lead {
    font-size: 1.2em;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
    text-align: center !important;
}

.detail-hero {
    border-bottom: 2px solid var(--accent-medium) !important;
    padding-bottom: 50px !important;
    margin-bottom: 50px !important;
}

.chapter:first-of-type {
    margin-top: 30px !important;
}

.chapter {
    margin-bottom: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 5px;
    border-left: 5px solid var(--primary-light);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--accent-medium);
}

.chapter h2 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--accent-light);
    font-size: 1.8em;
    font-weight: 600;
}

.chapter h3 {
    color: var(--primary-light);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.chapter h3 i {
    margin-right: 10px;
}

.chapter p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
}

.chapter ul,
.chapter ol {
    padding-left: 30px;
    margin-bottom: 25px;
}

.chapter li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-dark);
}

.chapter li strong {
    color: var(--primary-green);
}

.highlight-box {
    background-color: var(--accent-light);
    border-left: 4px solid var(--primary-green);
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    border-radius: 0 5px 5px 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-green);
    margin-top: 40px;
    margin-bottom: 60px;
}

.back-button:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.back-button i {
    margin-right: 10px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.center-button {
    text-align: center;
}

/* RESPONSIVE PARA LA PÁGINA DE DETALLE */
@media (max-width: 992px) {
    .detail-hero h1 {
        font-size: 2.4em;
    }
    
    .chapter {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 0 20px;
    }
    
    .detail-hero h1 {
        font-size: 2em;
    }
    
    .detail-hero .lead {
        font-size: 1.1em;
    }
    
    .chapter {
        padding: 25px 20px;
    }
    
    .chapter h2 {
        font-size: 1.6em;
    }
    
    .chapter h3 {
        font-size: 1.2em;
    }
    
    .highlight-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .detail-hero h1 {
        font-size: 1.8em;
    }
    
    .chapter {
        padding: 20px 15px;
    }
    
    .chapter h2 {
        font-size: 1.4em;
    }
    
    .back-button {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
    }
}

/* ============================================
   CORRECCIONES ESPECÍFICAS
   ============================================ */

/* 1. CORRECCIÓN PARA TÍTULO CENTRADO EN DETALLE */
.detail-hero h1[data-i18n] {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
}

/* 2. SOPORTE BÁSICO PARA MULTILENGUAJE */
[data-i18n], [data-i18n-html] {
    display: inline;
}

/* ============================================
   CORRECCIONES ESPECÍFICAS PARA INICIO.HTML
   ============================================ */

/* Centrar títulos de secciones en Inicio.html */
#inicio .section-title,
body[data-page="inicio"] .section-title,
main.container .section-title {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Aumentar espacio entre el subrayado y la caja de contenido */
#inicio .section-title:after,
body[data-page="inicio"] .section-title:after,
main.container .section-title:after {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

/* Espaciado adicional entre el título y la caja de contenido */
#inicio .content-section,
body[data-page="inicio"] .content-section {
    margin-top: 40px !important;
}

/* Asegurar que el primer título también tenga espacio adecuado */
#inicio .content-section:first-child,
body[data-page="inicio"] .content-section:first-child {
    margin-top: 20px !important;
}
.language-btn .fi {
    font-size: 28px;
    width: 32px;
    height: 24px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}