/* ==========================================================================
   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;
}

/* ==========================================================================
   PALETA DE COLORES CARBONFEEL
   ========================================================================== */
:root {
    --primary-green: #568459;
    --primary-light: #72A376;
    --accent-medium: #B0CCB0;
    --accent-light: #EBF1DE;
    --white: #ffffff;
    --text-dark: #333333;
}

/* ==========================================================================
   CABECERA FIJA SUPERIOR
   ========================================================================== */
.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;
    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
   ========================================================================== */
.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
   ========================================================================== */
.brand-title-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.brand-title {
    height: 78px;
    width: auto;
    max-width: 600px;
    display: block;
}

/* ==========================================================================
   LOGO DERECHO CLICABLE
   ========================================================================== */
.logo-right-container {
    flex-shrink: 0;
    margin-right: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo-right {
    height: 78px;
    width: auto;
    display: block;
}

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

/* ==========================================================================
   SELECTOR DE IDIOMAS MINIMALISTA
   ========================================================================== */
.language-minimalist {
    position: fixed;
    top: 140px;
    right: 30px;
    z-index: 1000;
    width: auto;
    max-width: 180px;
}

/* Selector actual (solo muestra bandera + código) */
.lang-current {
    background: var(--white);
    border: 1px solid var(--accent-medium);
    border-radius: 25px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.lang-current:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 15px rgba(86, 132, 89, 0.15);
    transform: translateY(-1px);
}

.lang-current.open {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.lang-current.open:hover {
    background: var(--primary-light);
}

.current-flag {
    font-size: 18px;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.current-code {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lang-current.open .current-code {
    color: white;
}

/* Lista desplegable */
.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--accent-medium);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    min-width: 180px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1001;
}

.lang-list.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Opciones de idioma */
.lang-option {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.lang-option:hover {
    background: var(--accent-light);
    transform: translateX(-2px);
}

.lang-option.active {
    background: var(--primary-green);
    color: white;
}

.lang-option.active:hover {
    background: var(--primary-light);
}

.lang-option .fi {
    font-size: 16px;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.lang-name {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   SIDEBAR NAVEGACIÓN
   ========================================================================== */
.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
   ========================================================================== */
.content-section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    font-size: 32px;
    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 - VERSIÓN MEJORADA CON EFECTO ELEVACIÓN
   ========================================================================== */
.single-section-grid {
    width: 100%;
}

.single-content-box {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

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

.content-column {
    background: var(--white);
    border: 1px solid var(--accent-medium);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-column:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(86, 132, 89, 0.1);
    border-color: var(--primary-light);
}

.content-column:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.content-column:hover:before {
    transform: scaleX(1);
}

.column-header {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.column-header h3 {
    color: var(--primary-green);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 15px;
}

.column-icon {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.content-column:hover .column-icon {
    color: var(--primary-green);
    transform: scale(1.1);
}

.column-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

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

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

.column-features li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.9;
    border-bottom: 1px solid var(--accent-light);
    line-height: 1.5;
    transition: all 0.2s ease;
}

.column-features li:hover {
    padding-left: 30px;
    color: var(--primary-green);
}

.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;
    transition: all 0.2s ease;
}

.content-column:hover .column-features li:before {
    color: var(--primary-green);
    transform: scale(1.2);
}

.single-content-box-footer {
    background: var(--accent-light);
    padding: 25px;
    text-align: center;
    border-top: 1px solid var(--accent-medium);
    margin-top: 20px;
    border-radius: 0 0 8px 8px;
}
body[data-page="inicio"] .single-content-box-footer {
    background: var(--white); /* o transparent */
    border-top: none; /* opcional - quita el borde */
}

.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: 4px;
    min-width: 220px;
}

.single-content-box-link:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 132, 89, 0.2);
}

.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);
}

/* ==========================================================================
   ESTILOS PARA EL LAYOUT 2x2 CON ICONOS
   ========================================================================== */
.two-by-two-container {
    width: 100%;
    margin-top: 40px;
}

.two-by-two-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px -15px;
}

.two-by-two-container .row:last-child {
    margin-bottom: 0;
}

.two-by-two-container .col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

.two-by-two-container .card {
    background: var(--white);
    border: 1px solid var(--accent-medium);
    border-radius: 5px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.two-by-two-container .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.two-by-two-container .card-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.two-by-two-container .card-header h3 {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-light);
    width: 100%;
}

.two-by-two-container .card-header h3::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.two-by-two-container .card-header h3[data-i18n*="carbonfeel.title"]::before {
    content: "\f06c";
    background-color: rgba(86, 132, 89, 0.1);
    color: var(--primary-green);
}

.two-by-two-container .card-header h3[data-i18n*="ecofeel.title"]::before {
    content: "\f1bb";
    background-color: rgba(86, 132, 89, 0.1);
    color: var(--primary-green);
}

.two-by-two-container .card-header h3[data-i18n*="waterfeel.title"]::before {
    content: "\f043";
    background-color: rgba(86, 132, 89, 0.1);
    color: var(--primary-green);
}

.two-by-two-container .card-header h3[data-i18n*="plasticfeel.title"]::before {
    content: "\f1b3";
    background-color: rgba(86, 132, 89, 0.1);
    color: var(--primary-green);
}

.two-by-two-container .card-body {
    flex-grow: 1;
}

.two-by-two-container .card-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
    opacity: 0.9;
    text-align: justify;
    text-justify: inter-word;
}

.two-by-two-container .features {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 0 0;
}

.two-by-two-container .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);
    line-height: 1.5;
}

.two-by-two-container .features li:last-child {
    border-bottom: none;
}

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

/* ==========================================================================
   ESTILOS PARA LA PÁGINA DE DETALLE
   ========================================================================== */
.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,
.portal-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,
.portal-button:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

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

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

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

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

.center-button a {
    margin: 0 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.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;
}

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

.detail-hero h1[data-i18n] {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
}

/* ==========================================================================
   DIRECCIÓN RTL BÁSICA PARA ÁRABE
   ========================================================================== */
body.rtl {
    text-align: right;
    direction: rtl;
}

/* Ajuste básico para iconos en RTL */
body.rtl .nav-list a i {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .single-content-box-link i {
    margin-left: 0;
    margin-right: 10px;
}

body.rtl .footer-links a i {
    margin-right: 0;
    margin-left: 8px;
}

/* Ajuste para selector de idiomas en RTL */
body.rtl .language-minimalist {
    right: auto;
    left: 30px;
}

body.rtl .lang-list {
    right: auto;
    left: 0;
}

body.rtl .lang-option:hover {
    transform: translateX(2px);
}

/* ==========================================================================
   CORRECCIONES ESPECÍFICAS PARA INICIO.HTML
   ========================================================================== */
body[data-page="inicio"] .section-title {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body[data-page="inicio"] .section-title:after {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

body[data-page="inicio"] .content-section {
    margin-top: 40px !important;
}

body[data-page="inicio"] .content-section:first-child {
    margin-top: 20px !important;
}

/* ==========================================================================
   RESPONSIVE PARA EFECTO ELEVACIÓN
   ========================================================================== */
@media (max-width: 1200px) {
    body {
        padding-top: 143px;
    }
    
    .main-header {
        height: 110px;
    }
    
    .header-separator {
        top: 110px;
    }
    
    .brand-title {
        height: 71.5px;
    }
    
    .header-logo-right {
        height: 71.5px;
    }
    
    .language-minimalist {
        top: 130px;
        right: 25px;
    }
    
    .content-column {
        padding: 30px 25px;
        min-height: 360px;
    }
    
    .column-header h3 {
        font-size: 20px;
    }
    
    .column-icon {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .main-header {
        height: 108px;
    }
    
    .header-separator {
        top: 108px;
    }
    
    .brand-title {
        height: 65px;
    }
    
    .header-logo-right {
        height: 65px;
    }
    
    .language-minimalist {
        top: 125px;
        right: 20px;
    }
    
    .lang-current {
        padding: 7px 12px;
        min-width: 70px;
    }
    
    .current-flag {
        font-size: 16px;
        width: 22px;
        height: 16px;
    }
    
    .current-code {
        font-size: 13px;
    }
    
    .hamburger-btn {
        width: 45px;
        height: 45px;
    }
    
    .content-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    
    .content-column {
        padding: 30px;
        min-height: 340px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .column-header h3 {
        font-size: 22px;
    }
    
    .column-icon {
        font-size: 46px;
    }
    
    .single-content-box-link {
        padding: 10px 30px;
        font-size: 14px;
        min-width: 200px;
    }
    
    .two-by-two-container .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .two-by-two-container .row {
        margin-bottom: 0;
    }
    
    .two-by-two-container .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 130px;
    }
    
    .main-header {
        height: 104px;
    }
    
    .header-separator {
        top: 104px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .brand-title {
        height: 58.5px;
    }
    
    .header-logo-right {
        height: 58.5px;
    }
    
    .language-minimalist {
        top: 120px;
        right: 15px;
    }
    
    .lang-current {
        padding: 6px 10px;
        min-width: 65px;
    }
    
    .current-flag {
        font-size: 14px;
        width: 20px;
        height: 15px;
    }
    
    .current-code {
        font-size: 12px;
    }
    
    .lang-list {
        min-width: 160px;
    }
    
    .lang-option {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .lang-option .fi {
        font-size: 14px;
        width: 20px;
        height: 15px;
    }
    
    .hamburger-btn {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-btn span {
        width: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .content-columns {
        padding: 20px;
        gap: 20px;
    }
    
    .content-column {
        padding: 25px 20px;
        min-height: 320px;
    }
    
    .column-header h3 {
        font-size: 20px;
    }
    
    .column-icon {
        font-size: 40px;
    }
    
    .single-content-box-link {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .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;
    }
    
    .two-by-two-container .card {
        padding: 20px;
    }
    
    .two-by-two-container .card-header h3 {
        font-size: 16px;
    }
    
    .two-by-two-container .card-body p {
        font-size: 13px;
    }
    
    .two-by-two-container .features li {
        font-size: 12px;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-column h4 {
        margin-bottom: 20px !important;
    }
    
    .footer-links {
        margin-top: 8px !important;
    }
    
    /* RTL para móvil */
    body.rtl .language-minimalist {
        left: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 117px;
    }
    
    .main-header {
        height: 91px;
    }
    
    .header-separator {
        top: 91px;
        height: 1px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .brand-title {
        height: 52px;
    }
    
    .header-logo-right {
        height: 52px;
    }
    
    .language-minimalist {
        top: 110px;
        right: 10px;
    }
    
    .lang-current {
        padding: 5px 8px;
        min-width: 60px;
    }
    
    .current-flag {
        font-size: 12px;
        width: 18px;
        height: 13px;
    }
    
    .current-code {
        font-size: 11px;
    }
    
    .lang-list {
        min-width: 140px;
        max-height: 300px;
    }
    
    .lang-option {
        padding: 6px 8px;
        font-size: 11px;
        gap: 6px;
    }
    
    .lang-option .fi {
        font-size: 12px;
        width: 18px;
        height: 13px;
    }
    
    .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-columns {
        padding: 15px;
        gap: 15px;
    }
    
    .content-column {
        padding: 22px 18px;
        min-height: 300px;
    }
    
    .column-header h3 {
        font-size: 18px;
        margin-top: 12px;
    }
    
    .column-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .column-body p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .column-features li {
        font-size: 13px;
        padding: 8px 0 8px 22px;
    }
    
    .single-content-box-footer {
        padding: 20px;
    }
    
    .single-content-box-link {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .detail-hero h1 {
        font-size: 1.8em;
    }
    
    .chapter {
        padding: 20px 15px;
    }
    
    .chapter h2 {
        font-size: 1.4em;
    }
    
    .back-button,
    .portal-button {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        margin: 10px 0;
    }
    
    .center-button a {
        margin: 10px 0;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column h4 {
        margin-bottom: 18px !important;
    }
    
    .footer-links {
        margin-top: 6px !important;
    }
    
    /* RTL para móvil pequeño */
    body.rtl .language-minimalist {
        left: 10px;
    }
}
/* ==========================================================================
   NOTIFICACIÓN FLASH / AVISO EMERGENTE
   ========================================================================== */
.flash-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.flash-notification[data-visible="true"] {
    opacity: 1;
    visibility: visible;
}

.flash-notification-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-notification[data-visible="true"] .flash-notification-content {
    transform: translateY(0);
}

/* Cabecera de la notificación */
.flash-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-medium);
}

.flash-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-header-left i {
    font-size: 24px;
}

.flash-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.flash-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.flash-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cuerpo de la notificación */
.flash-body {
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.flash-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-medium);
}

.flash-icon-container i {
    font-size: 28px;
    color: var(--primary-green);
}

.flash-text-content {
    flex: 1;
}

.flash-text-content h4 {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.flash-text-content p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-size: 15px;
}

.flash-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--accent-light);
}

.flash-date {
    font-size: 13px;
    color: var(--text-dark);
    opacity: 0.8;
}

.flash-badge {
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Pie de la notificación */
.flash-footer {
    padding: 20px 30px;
    background: var(--accent-light);
    border-top: 1px solid var(--accent-medium);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.flash-action-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-action-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 132, 89, 0.3);
}

.flash-action-btn i {
    font-size: 12px;
}

.flash-dismiss-btn {
    background: white;
    color: var(--primary-green);
    border: 1px solid var(--accent-medium);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flash-dismiss-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Ajuste para RTL */
body.rtl .flash-header-left {
    flex-direction: row-reverse;
}

body.rtl .flash-body {
    flex-direction: row-reverse;
}

body.rtl .flash-footer {
    flex-direction: row-reverse;
}

body.rtl .flash-action-btn {
    flex-direction: row-reverse;
}

/* Responsive para la notificación */
@media (max-width: 768px) {
    .flash-body {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .flash-icon-container {
        margin: 0 auto;
    }
    
    .flash-footer {
        flex-direction: column;
    }
    
    .flash-action-btn,
    .flash-dismiss-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .flash-notification {
        padding: 10px;
    }
    
    .flash-notification-content {
        max-width: 100%;
    }
    
    .flash-header,
    .flash-body,
    .flash-footer {
        padding: 20px;
    }
    
    .flash-header h3 {
        font-size: 18px;
    }
    
    .flash-text-content h4 {
        font-size: 16px;
    }
    
    .flash-text-content p {
        font-size: 14px;
    }
}