/* ------------------------- */
/* --- ESTILOS GENERALES --- */
/* ------------------------- */
:root {
    --color-light-green: #accb46;
    --color-medium-green: #70b62c;
    --color-dark-green: #005722;
    --color-white: #ffffff;
    --color-off-white: #fdfdfd;
    --color-light-gray: #f4f4f4;
    --color-text-light: #f0f0f0;
    --color-text-dark: #333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Zilla Slab', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-primary); 
    background-color: var(--color-white); 
    color: var(--color-text-dark); 
    overflow-x: hidden; 
    padding-top: 120px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* Contenedores alternativos para secciones que necesitan más ancho */
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container--full-bleed {
    /* Utilízalo cuando quieras que el contenido ocupe todo el ancho visible
       y esté centrado respecto al viewport (como la galería). */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    padding: 0 20px;
}
section { padding: 80px 0; }
h1, h2, h3 { font-family: var(--font-secondary); font-weight: 700; }

/* ----------------- */
/* --- HEADER ------ */
/* ----------------- */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 5px 50px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background-color: transparent;
    box-shadow: none;
}
.header.scrolled {
    background-color: rgba(0, 87, 34, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 2px 50px;
}
.header.scrolled .logo-header { height: 80px; }
.logo-header-link { padding-right: 50px; }
.logo-header { height: 110px; transition: height 0.4s ease; }
.header nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 35px; align-items: center; }
.nav-links li a { 
    text-decoration: none; 
    color: var(--color-white); 
    font-weight: 700; 
    padding-bottom: 5px; 
    position: relative; 
    transition: color 0.4s ease; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.header.scrolled .nav-links li a { 
    color: var(--color-white); 
    text-shadow: none;
}
.nav-links li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-light-green); transition: width 0.3s ease; }
.header.scrolled .nav-links li a::after { background-color: var(--color-light-green); }
.nav-links li a:hover::after { width: 100%; }
.login-btn { 
    background-color: var(--color-light-green); 
    color: var(--color-dark-green); 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.header.scrolled .login-btn {
    background-color: var(--color-light-green);
    color: var(--color-dark-green);
}
.login-btn:hover { 
    background-color: var(--color-medium-green); 
    color: var(--color-white); 
}
.hamburger { display: none; cursor: pointer; font-size: 30px; color: var(--color-white); transition: color 0.4s ease; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.header.scrolled .hamburger { color: var(--color-white); text-shadow: none; }

/* ----------------- */
/* --- HERO SECTION -- */
/* ----------------- */
#inicio { 
    min-height: 100vh;
    display: flex; align-items: center; text-align: left; 
    color: var(--color-white); position: relative; 
    overflow: hidden; 
    margin-top: -120px;
    padding-top: 120px;
}
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('IMAGES/INICIO.webp'); background-size: cover; background-position: center; z-index: -3; animation: slow-zoom 20s infinite alternate ease-in-out; }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: -2; }
.hero-content-wrapper { max-width: 700px; transform: translateY(30px); }
.logo-hero { max-width: 400px; margin-bottom: 10px; }
.hero-text-container { width: 100%; min-height: 250px; text-align: center; }
.hero-text { font-size: 1.2rem; line-height: 1.6; }
/* ----------------- */
/* --- NOTICIAS --- */
/* ----------------- */
#noticias { background-color: var(--color-dark-green); color: var(--color-white); position: relative; overflow: hidden; }
#delaunay-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
#noticias .container { position: relative; z-index: 1; }
#noticias h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }

/* CAMBIO: Rediseño de las tarjetas de noticias */
.noticia-item-wrapper {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.noticia-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.noticia-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.noticia-image-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Proporción panorámica */
    overflow: hidden;
}
.noticia-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.noticia-item-wrapper:hover .noticia-image-container img {
    transform: scale(1.05);
}
.noticia-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    flex-grow: 1;
}
.noticia-content h4 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--color-light-green);
    margin-bottom: 10px;
}
.noticia-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* --- ICONOS SECCION --- */
.icon-section { padding: 60px 0; background-color: var(--color-dark-green); }
.icon-grid { display: flex; justify-content: space-around; align-items: flex-start; text-align: center; }
.icon-container { text-decoration: none; cursor: pointer; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--color-white); }
.icon-item { width: 100px; height: 100px; transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.icon-container:hover .icon-item { transform: rotate(360deg); }
.icon-container:active .icon-item { transform: scale(0.9) rotate(360deg); }
.icon-container h4 { font-family: var(--font-primary); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }

/* --- QUIENES SOMOS (con Parallax) -- */
#quienes-somos { background-color: var(--color-white); padding-bottom: 0; padding-top: 80px; }
#quienes-somos h2 { text-align: center; font-size: 2.5rem; margin-bottom: 30px; color: var(--color-dark-green); }
.quienes-somos-intro { max-width: 800px; margin: 0 auto 60px auto; font-size: 1.1rem; line-height: 1.7; text-align: center; }
.org-section { padding: 80px 0; position: relative; background-attachment: fixed; background-size: contain; background-repeat: no-repeat; }
#sintrabacann-section { background-image: url('IMAGES/1.webp'); background-position: right center; background-color: var(--color-light-gray); }
#atar-section { background-image: url('IMAGES/stencil3.webp'); background-position: left center; background-color: var(--color-white); }
.org-section-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.7); z-index: 0; }
.org-card { display: flex; align-items: center; gap: 50px; text-align: left; position: relative; z-index: 1; }
#atar-card { flex-direction: row-reverse; }
.org-logo { flex: 0 0 400px; text-align: center; }
.org-logo img { max-width: 100%; }
.org-text { flex: 1; background-color: rgba(255, 255, 255, 0.85); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.org-text h3 { font-size: 2rem; color: var(--color-dark-green); margin-bottom: 15px; }
.org-text p { line-height: 1.6; margin-bottom: 20px; }
.org-link { display: inline-block; background-color: var(--color-medium-green); color: var(--color-white); padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: 700; transition: background-color 0.3s ease; font-size: 1.4rem; }
.org-link:hover { background-color: var(--color-dark-green); }

/* --- MODELOS DE PRODUCCIÓN --- */
#modelos-produccion { background-color: var(--color-off-white); }
.intro-modelos-texto {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem; /* Tamaño estándar de texto */
    line-height: 1.7;
}
.intro-modelos-titulo {
    text-align: center;
    position: sticky;
    top: 120px; /* Debajo del header */
    background-color: var(--color-off-white);
    padding: 20px 0;
    z-index: 10;
    margin-bottom: 40px;
}
.intro-modelos-titulo h2 {
    font-size: 3rem;
    color: var(--color-dark-green);
    margin: 0;
}
.modelos-wrapper { display: flex; gap: 50px; }
.modelos-image-panel { flex: 1; position: sticky; top: 280px; height: 500px; }
.modelo-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); opacity: 0; transition: opacity 0.6s ease-in-out; }
.modelo-img.active { opacity: 1; }
.modelos-text-panel { flex: 1.2; }
.modelo-text-item { padding: 40px; margin-bottom: 80vh; background-color: rgba(255, 255, 255, 0.8); border-left: 4px solid var(--color-light-green); }
.modelo-text-item:last-child { margin-bottom: 20vh; }
.modelo-text-item h3 {
    font-size: 2.1rem;
    color: var(--color-light-green); /* CAMBIO: Color del subtítulo */
    margin-bottom: 15px;
}
.modelo-text-item p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ----------------- */
/* --- NUEVA SECCIÓN: COOPERATIVA --- */
/* ----------------- */
#Cooperativa-mujeres-indigenas-renovando-saberes { background-image: url('IMAGES/Coop1.webp'); 
    background-size: cover;
    /* Mover el punto focal un poco hacia abajo para evitar que la navbar "corte" cabezas */
    background-position: center 20%;
    background-repeat: no-repeat;
    position: relative;
    gap: 20px;
    background-attachment: fixed; 
    /* Espacio superior para que el header fijo no cubra el contenido visual importante */
    padding-top: 120px;
    padding-bottom: 0; 
    min-height: 900px; 
    max-height: 1900px;
    /* Asegura que al navegar por anclas la sección quede visible debajo del header */
    scroll-margin-top: 120px;
}


#Cooperativa-mujeres-indigenas-renovando-saberes .coop-container {
    
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Contenedor principal: todo centrado y en columna */
 #Cooperativa-mujeres-indigenas-renovando-saberes .coop-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}


.coop-card {
    background-color: rgba(255,255,255,0.95);
    padding: 28px;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.4rem;
}
.coop-logo { margin-bottom: 20px; }





/* contenido de texto sobre la imagen */
#Cooperativa-mujeres-indigenas-renovando-saberes .coop-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 48px 20px;
    max-width: 1100px;            /* ancho de lectura centrado dentro del full-bleed */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
#Cooperativa-mujeres-indigenas-renovando-saberes .coop-hero-content h2 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    color: #fff;
}
#Cooperativa-mujeres-indigenas-renovando-saberes .coop-hero-content p {
    margin: 6px 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #f6f6f6;
}

/* Video abajo, ancho controlado y centrado */
.coop-video { width: 100%; max-width: 1100px; margin: 22px auto 0; position: relative; z-index: 2; padding-bottom: 80px;}
.coop-video .video-wrapper { position: relative; width: 100%; padding-top: 56.25%; }
.coop-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }


/* --- PROYECTOS --- */
#proyectos {  background-image: url(IMAGES/Concir1.webp); background-size: cover; background-position: center; background-attachment: fixed; padding-bottom: 0; min-height: 1400px; }
.proyectos-content h2 { font-size: 2.0rem; margin-bottom: 20px; color: var(--color-off-white); padding-top: 500px; text-align: center;}
.proyectos-content p { font-size: 1.3rem; line-height: 1.7; color: var(--color-off-white); text-align: center; }

/* --- ESPACIOS SEGUROS --- */
#espacios-seguros { position: relative; background-image: url('IMAGES/3.webp'); background-attachment: fixed; background-size: cover; background-position: center; padding-bottom: 0; }
.espacios-seguros-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(244, 244, 244, 0.8); z-index: 0; }
.espacios-content { position: relative; z-index: 1; display: flex; gap: 40px; align-items: center; text-align: left; }
.espacios-text { flex: 1; background-color: rgba(255, 255, 255, 0.85); padding: 30px; border-radius: 10px; }
.espacios-text h2 { font-size: 2.5rem; color: var(--color-dark-green); margin-bottom: 20px; }
.espacios-text p { line-height: 1.7; margin-bottom: 20px; }
.espacios-image { flex: 1; }
.espacios-image img { width: 100%; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }

/* --- GALERÍA DE FOTOS --- */
.gallery-container {
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #000;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
.gallery-slider { display: flex; width: fit-content; }
.gallery-slider:hover .gallery-track { animation-play-state: paused; }
.gallery-track { display: flex; animation: scroll 60s linear infinite; }
.gallery-track img {
    height: 350px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: filter 0.4s ease;
    filter: brightness(0.8);
}
.gallery-track img:hover { filter: brightness(1); }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* --- FOOTER/CONTACTO -- */
#contacto { padding: 100px 0; background-color: var(--color-dark-green); color: var(--color-text-light); position: relative; overflow: hidden; }
.footer-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-logo-area { text-align: center; flex-basis: 30%; }
.footer-contact-area { text-align: left; flex-basis: 60%; }
.footer-logo { max-width: 250px; margin-bottom: 20px; }
.footer-contact-area h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--color-light-green); }
.footer-contact-area p { margin-bottom: 10px; line-height: 1.6; }

/* --- Text Highlighting --- */
.highlight-green { color: var(--color-medium-green); font-weight: bold; }
.highlight-light-green { color: var(--color-light-green); font-weight: bold; }
.highlight-yellow { color: #FFC300; font-weight: bold; }
.highlight-blue { color: #3498DB; font-weight: bold; }

/* --- CHATBOT FLOTANTE -- */
#chat-bubble { position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px; background-color: var(--color-white); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease; z-index: 1001; overflow: hidden; }
#chat-bubble img { width: 45px; height: auto; z-index: 2; }
#chat-bubble:hover { transform: scale(1.1); }
#chat-bubble::before { content: ''; position: absolute; z-index: 1; width: 150%; height: 150%; background: conic-gradient(var(--color-light-green), var(--color-medium-green), var(--color-dark-green), var(--color-light-green)); animation: rotate-border 4s linear infinite; }
@keyframes rotate-border { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#chat-bubble::after { content: ''; position: absolute; background: var(--color-white); z-index: 1; border-radius: 50%; width: calc(100% - 8px); height: calc(100% - 8px); }
#chat-window { position: fixed; bottom: 110px; right: 30px; width: 350px; height: 500px; background-color: white; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); display: flex; flex-direction: column; overflow: hidden; z-index: 1002; transform-origin: bottom right; transition: all 0.3s ease; transform: scale(0); opacity: 0; }
#chat-window.open { transform: scale(1); opacity: 1; }
#chat-window.minimized { height: 45px; width: 250px; }
#chat-window.maximized { width: 100%; height: 100%; top: 0; right: 0; bottom: 0; left: 0; border-radius: 0; }
.chat-header { background-color: var(--color-dark-green); color: white; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-header h3 { font-size: 1rem; margin: 0; }
.chat-controls button { background: none; border: none; color: white; font-size: 1rem; cursor: pointer; margin-left: 10px; }
.chat-messages { flex-grow: 1; padding: 15px; overflow-y: auto; background-color: #f4f4f4; }
.message { margin-bottom: 15px; display: flex; max-width: 85%; }
.message-content { padding: 10px 15px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; }
.user-message { margin-left: auto; flex-direction: row-reverse; }
.user-message .message-content { background-color: var(--color-medium-green); color: white; }
.bot-message { margin-right: auto; }
.bot-message .message-content { background-color: #e0e0e0; color: var(--color-text-dark); }
.chat-input-area { display: flex; padding: 10px; border-top: 1px solid #ddd; flex-shrink: 0; }
#chat-input { flex-grow: 1; border: 1px solid #ccc; border-radius: 20px; padding: 10px 15px; font-size: 1rem; outline: none; }
#send-btn { background-color: var(--color-dark-green); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; margin-left: 10px; cursor: pointer; font-size: 1.2rem; transition: background-color 0.3s ease; }
#send-btn:hover { background-color: var(--color-medium-green); }
/* ======================================== */
/* --- ESTILOS PÁGINA REDUCCIÓN DE RIESGOS -- */
/* ======================================== */

/* Estilo general para la página RRD para que el header se comporte correctamente */
.rrd-page .header {
    background-color: var(--color-dark-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.rrd-page .nav-links li a {
    text-shadow: none;
}
.rrd-page .hamburger {
    text-shadow: none;
}

#rrd-intro {
    background-color: #0b2708;
    color: var(--color-white);
    text-align: center;
}
#rrd-intro h1 {
    font-size: 3rem;
    color: var(--color-light-green);
}
#rrd-intro .rrd-subtitle {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 20px auto 30px;
    line-height: 1.7;
    color: #f0f0f0;
    padding-bottom: 10px;
}
.learn-more-btn {
    display: inline-block;
    padding: 16px 32px;      
    font-size: 1.125rem;     
    line-height: 1;
    margin-top: 24px;        
    background-color: var(--color-light-green);
    color: var(--color-dark-green);
    border: none;
    border-radius: 8px;     
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    text-align: center;
    box-shadow: 0 6px 18px rgba(112,182,44,0.12);
}
.learn-more-btn:hover {
    transform: translateY(-3px);
}


.rrd-strategy {
    padding: 100px 0;
}
#rrd-perfiles { background-color: var(--color-off-white); }
#rrd-servicios { background-color: var(--color-white); }
#rrd-tecnologia { background-color: var(--color-light-gray); }

.strategy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.strategy-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-light-green);
    line-height: 1;
}
.strategy-header h2 {
    font-size: 2.5rem;
    color: var(--color-dark-green);
}
.strategy-description {
    max-width: 900px;
    margin-bottom: 50px;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Slider de Perfiles */
.profile-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}
.profile-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.profile-card {
    flex: 0 0 100%;
    width: 100%;
    display: none;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}
.profile-card.active {
    display: flex;
}
.profile-image {
    flex: 0 0 40%;
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-content {
    padding: 30px 40px;
    flex: 1;
}
.profile-content h3 {
    font-size: 1.8rem;
    color: var(--color-dark-green);
    margin-bottom: 20px;
}
.profile-details {
    display: flex;
    gap: 44px;                
    flex-wrap: nowrap;        
    align-items: flex-start;
    justify-content: space-between;
}
.profile-column h4 {
    font-size: 1.1rem;
    color: var(--color-medium-green);
    margin-bottom: 10px;
}
.profile-column ul {
    list-style: none;
    padding-left: 0;
}
.profile-column ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.profile-column p {
    line-height: 1.7;
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}
.slider-btn {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}
.slider-btn:hover {
    background-color: var(--color-medium-green);
}

.download-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Servicios de Salud */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-card {
    background-color: var(--color-off-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}
.service-icon {
    font-size: 4rem;
    color: var(--color-light-green);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.8rem;
    color: var(--color-dark-green);
    margin-bottom: 15px;
}
.service-card p {
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Tecnología */
#rrd-tecnologia .strategy-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.ai-button-container {
    text-align: center;
}

/* ============================
   REDUCCIÓN DE RIESGOS (RRD)
   ============================ */

/* Hacemos que el contenedor RRD use todo el ancho visible y quede centrado.
   Los bloques internos siguen limitados para mantener legibilidad. */
.container--rrd {
    width: 100vw;              
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;            
    margin: 0 auto;
    padding: 0 48px;            
    box-sizing: border-box;
    overflow: visible;
}

.container--rrd > .strategy-header,
.container--rrd > .strategy-description,
.container--rrd .profile-slider-container,
.container--rrd .services-grid,
.container--rrd .ai-button-container,
.container--rrd .download-button-container {
    max-width: 1400px;         
    margin: 0 auto;
}


.profile-slider-container { max-width: 1400px; margin: 0 auto; }
.services-grid { max-width: 1400px; margin: 0 auto; }


@media (max-width: 1400px) {
    .container--rrd {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 24px;
    }
}


@media (max-width: 900px) {
    .strategy-header { justify-content: center; gap: 12px; }
    .strategy-number { font-size: 2.4rem; }
    .strategy-header h2 { font-size: 1.6rem; }

    .profile-card.active { flex-direction: column; }
    .profile-image { flex-basis: 100%; min-width: auto; height: auto; }
    .profile-content { padding: 20px; }

    .profile-details {
        flex-direction: column;
        gap: 16px;
        flex-wrap: wrap;      
    }
    .services-grid { grid-template-columns: 1fr; max-width: 680px; padding: 0 8px; }
    .ai-button-container { padding: 0 8px; }
}

@media (max-width: 1480px) {
    .hamburger { display: block; }
    .nav-links { display: none; }

    .header { padding: 8px 18px; }
    .logo-header { height: 60px; }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background-color: var(--color-dark-green);
        flex-direction: column;
        gap: 16px;
        padding-top: 120px; 
        padding-left: 20px;
        box-shadow: -6px 0 30px rgba(0,0,0,0.3);
        z-index: 1001;
        transform: translateX(0);
    }

    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 12px 0; color: var(--color-white); }
}

/* ===== Ajustes responsivos adicionales =====
   Evitan que la sección de Noticias (grid de 3 columnas)
   provoque desbordamiento horizontal en pantallas estrechas.
*/
@media (max-width: 900px) {
    /* Forzar que las tarjetas de noticias se apilen en móviles */
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: stretch;
    }

    /* Asegurar que las tarjetas no impongan un ancho mínimo que cause overflow */
    .noticia-item-wrapper, .noticia-link, .noticia-image-container, .noticia-content {
        min-width: 0;
        width: 100%;
    }

    #noticias h2 { font-size: 1.8rem; margin-bottom: 28px; text-align: center; }
    .noticia-content h4 { font-size: 1.2rem; }
    .noticia-content p { font-size: 0.98rem; }
}


.container--full-bleed, .gallery-container, .container--rrd {
    box-sizing: border-box;
    max-width: 100%;
}


.rrd-page .header {
    background-color: var(--color-dark-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#rrd-perfiles .profile-column ul {
    list-style: disc;       /* volver a mostrar viñetas */
    padding-left: 1.2rem;   /* espacio para la viñeta */
    margin: 8px 0;
}


#rrd-perfiles .profile-column ul li::marker {
    color: var(--color-dark-green);
    font-size: 1em;
}


#rrd-perfiles .profile-column ul {
    list-style-type: disc !important;
}

#rrd-perfiles .profile-details .profile-column:first-child {
    flex: 5 1 78%;       
    min-width: 560px;    
    padding-right: 32px; 
    line-height: 1.85;   
}

#rrd-perfiles .profile-column ul {
    padding-left: 1.6rem;   
}
#rrd-perfiles .profile-column ul li {
    margin-bottom: 12px;    
    line-height: 1.9;
}

#rrd-perfiles .profile-column h4 {
    margin-bottom: 14px;
}

#rrd-perfiles .profile-details .profile-column:first-child {
    flex: 3 1 30%;        
    min-width: 260px;
    padding-right: 12px;  
    line-height: 1.75;
}
#rrd-perfiles .profile-details .profile-column:last-child {
    flex: 7 1 70%;        
    min-width: 420px;
    padding-left: 24px;   
}

#rrd-perfiles .profile-slider-container,
#rrd-perfiles .profile-card,
#rrd-perfiles .profile-content {
    max-width: none;
    width: 100%;
}

@media (max-width: 900px) {
    #rrd-perfiles .profile-details {
        flex-direction: column;
        gap: 14px;
    }
    #rrd-perfiles .profile-details .profile-column:first-child,
    #rrd-perfiles .profile-details .profile-column:last-child {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
    }
}


.table-responsive { overflow-x: auto; margin-bottom: 20px; }
.rrd-profiles-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.rrd-profiles-table thead th {
    text-align: left;
    padding: 18px 16px;
    background-color: rgba(0,0,0,0.02);
    font-size: 1rem;
    vertical-align: middle;
}
.rrd-profiles-table tbody td,
.rrd-profiles-table tbody th[scope="row"] {
    padding: 16px;
    vertical-align: top;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
    font-size: 1rem;
}
.rrd-profiles-table tbody tr:nth-child(odd) td { background-color: #ffffff; }
.rrd-profiles-table tbody tr:nth-child(even) td { background-color: #fafafa; }

.row-title-green { color: var(--color-medium-green); font-weight: 800; }
.row-title-blue { color: #3498DB; font-weight: 800; }

.rrd-profiles-table thead th.highlight-yellow { color: #FFC300; font-weight: 800; }

@media (max-width: 900px) {
    .rrd-profiles-table thead { display: none; }
    .rrd-profiles-table,
    .rrd-profiles-table tbody,
    .rrd-profiles-table tr { display: block; width: 100%; }

    .rrd-profiles-table tbody tr {
        margin-bottom: 18px;
        border: none;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
        padding: 12px 12px 18px 12px;
    }

    .rrd-profiles-table tbody th[scope="row"] {
        display: block;
        font-size: 1.05rem;
        padding: 10px 12px;
        margin: 0 0 8px 0;
        background-color: rgba(112,182,44,0.06);
        border-radius: 6px;
        font-weight: 800;
    }

    .rrd-profiles-table td {
        display: block;
        padding: 8px 12px 0 12px;
        position: relative;
    }

    .rrd-profiles-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--color-dark-green);
        margin-bottom: 6px;
    }

    .rrd-profiles-table tbody td:last-child { padding-bottom: 10px; }
}

/* ================================================= */
/* --- CORRECCIONES RESPONSIVAS (MÓVIL / TABLET) --- */
/* ================================================= */

@media (max-width: 900px) {

    /* 1. SECCIÓN ICONOS VERDES (Soluciona el desborde horizontal) */
    .icon-grid {
        flex-wrap: wrap; /* Permite que los iconos bajen si no caben */
        gap: 20px;
    }
    .icon-container {
        flex-basis: 45%; /* Dos iconos por fila */
        padding: 10px;
    }

    /* 2. SECCIONES ORGANIZACIONES (Sintrabacann y Fundatar) */
    .org-card, #atar-card {
        flex-direction: column; /* Apila logo y texto verticalmente */
        text-align: center;
        gap: 20px;
    }
    .org-logo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px; /* Limita el tamaño del logo */
        margin: 0 auto;
    }
    .org-text {
        width: 100%; /* Asegura que el texto no se salga */
        padding: 20px;
    }

    /* 3. SECCIÓN MODELOS SOCIOECONÓMICOS */
    .modelos-wrapper {
        flex-direction: column;
    }
    .modelos-image-panel {
        position: relative; /* Quita el sticky que falla en móvil */
        top: 0;
        width: 100%;
        height: 300px; /* Altura fija para la imagen en móvil */
        margin-bottom: 20px;
    }
    .modelo-text-item {
        margin-bottom: 40px; /* Reduce el margen enorme de scroll */
        padding: 20px;
        border-left: none;
        border-top: 4px solid var(--color-light-green); /* Borde arriba en vez de al lado */
    }
    .intro-modelos-titulo {
        position: static; /* Quita el sticky del título */
        padding: 10px 0;
    }

    /* 4. SECCIÓN ESPACIOS SEGUROS (Casa Wet Wet) */
    .espacios-content {
        flex-direction: column-reverse; /* Pone la imagen arriba y texto abajo */
    }
    .espacios-text, .espacios-image {
        width: 100%;
        flex: auto;
    }

    /* 5. SECCIÓN COOPERATIVA MUJERES */
    #Cooperativa-mujeres-indigenas-renovando-saberes {
        padding-top: 80px;
        background-attachment: scroll; /* 'fixed' suele fallar en móviles modernos */
        background-position: center center;
    }
    #Cooperativa-mujeres-indigenas-renovando-saberes .coop-hero-content {
        padding: 20px;
        text-align: left; /* O center, según prefieras */
    }
    #Cooperativa-mujeres-indigenas-renovando-saberes .coop-hero-content h2 {
        font-size: 1.8rem; /* Títulos más pequeños para que no corten palabras */
    }

    /* 6. AJUSTES GENERALES DE TEXTO Y CONTENEDORES */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .container {
        padding: 0 15px; /* Reduce un poco el padding lateral */
        width: 100%;
    }
    
    /* Asegurar que ninguna imagen rompa el ancho */
    img, iframe {
        max-width: 100% !important;
        height: auto;
    }
}

