/* =========================================
   1. VARIABLES GLOBALES Y RESET
========================================= */
:root { 
  --verde: #0f4c3a; 
  --verde-claro: #eef5ed; 
  --verde-soft: #f7faf7; 
  --naranja: #d98c2b; 
  --texto: #1f2e3a; 
  --gris: #4a5568; 
  --shadow: 0 10px 30px rgba(0,0,0,0.08); 
  --radius: 32px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Work Sans', sans-serif; color: var(--texto); background: white; line-height: 1.6; overflow-x: hidden; max-width: 100%; }
a { color: inherit; }
.container { width: min(1200px, calc(100% - 2rem)); margin: auto; }

/* Accessibility helpers */
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 2000; padding: 0.75rem 1rem; border-radius: 999px; background: var(--verde); color: white; text-decoration: none; font-weight: 700; transition: top 160ms ease; }
.skip-link:focus { top: 1rem; }

/* Screen-reader only helper */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Visible focus for keyboard users only */
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }

/* Ensure interactive elements show a high-contrast focus ring */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible {
   outline: 3px solid var(--naranja);
   outline-offset: 3px;
}

/* Avoid showing outline on mouse click */
*:focus:not(:focus-visible) { outline: none; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Images: prevent layout shifts and ensure responsiveness */
img, picture, video { display: block; max-width: 100%; height: auto; }
img[width][height] { width: auto; height: auto; }

/* Ensure iframes and embeds don't cause unexpected shifts */
iframe, embed, object { max-width: 100%; }


/* =========================================
   2. UTILIDADES GLOBALES Y BOTONES
========================================= */
section { padding: 70px 0; } 
.section-title { font-size: 2.2rem; text-align: center; color: var(--verde); margin-bottom: 1rem; } 
.section-sub { text-align: center; max-width: 760px; margin: 0 auto 2rem auto; color: var(--gris); font-size: 0.95rem; }

/* --- NUEVA CLASE PARA TEXTOS DESTACADOS --- */
.texto-destacado {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
  color: #374141;
  max-width: 860px;
  margin: 0 auto 1.8rem auto;
  text-align: center;
}
/* ------------------------------------------ */

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: 0.25s; font-size: 0.9rem; border: none; cursor: pointer; } 
.btn-outline { border: 2px solid white; color: white; background: transparent; } 
.btn-outline:hover { background: white; color: var(--verde); }
.btn-primary { background: var(--naranja); color: white; padding: 14px 32px; box-shadow: 0 16px 30px rgba(217,140,43,0.24); border-radius: 999px; font-weight: 700; letter-spacing: 0.02em; } 
.btn-primary:hover { transform: translateY(-3px); background: #c47a1f; box-shadow: 0 18px 36px rgba(217,140,43,0.28); }
.btn-verde { display: inline-block; background-color: #2e7d32; color: white; padding: 0.8rem 1.8rem; border-radius: 6px; font-weight: 600; text-decoration: none; transition: background-color 0.2s ease; font-size: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.btn-verde:hover { background-color: #1b5e20; }

.ver-mas-btn { display: block; text-align: center; margin: 2rem auto 0; background: var(--naranja); color: white; border: none; padding: 10px 24px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.ver-mas-btn:hover { background: #c47a1f; transform: translateY(-2px); }
.load-more-btn { display: block; margin: 30px auto 0; padding: 14px 28px; border: none; border-radius: 999px; background: var(--verde); color: #fff; font-weight: 600; cursor: pointer; transition: .3s; }
.load-more-btn:hover { transform: translateY(-2px); }

.hidden-item { display: none; }


/* =========================================
   3. HEADER Y NAVEGACIÓN
========================================= */
header { position: sticky; top: 0; z-index: 999; background: rgba(15,76,58,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); }
header.scroll-activo { background: rgba(15,76,58,0.85); padding: 0.4rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); backdrop-filter: blur(14px); transition: 0.3s ease; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; flex-wrap: wrap; gap: 1rem; }

/* New header layout */
.site-header { background: rgba(15,76,58,0.98); }
.site-header .header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 0.45rem 0; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { display: block; border-radius: 8px; width: 38px !important; height: 38px !important; object-fit: contain; flex-shrink: 0; }
.brand-text { color: white; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hamburger { background: transparent; border: 0; color: white; display: none; padding: 6px; border-radius: 8px; }
.hamburger:focus { outline: 3px solid rgba(255,255,255,0.12); }

.site-nav { display: flex; flex: 1 1 auto; justify-content: center; }
.nav-list { display: flex; gap: 0.9rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { color: white; text-decoration: none; font-weight: 700; padding: 10px 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.nav-link:hover, .nav-link:focus { color: var(--naranja); }
.chev { opacity: 0.9; transition: transform 180ms ease; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.sub-list { position: absolute; top: calc(100% + 2px); left: 0; background: #0f4c3a; border-radius: 12px; padding: 8px 6px; display: none; min-width: 200px; box-shadow: 0 10px 24px rgba(0,0,0,0.18); z-index: 2500; }
.sub-list li { padding: 6px 8px; }
.sub-list a { color: white; font-weight: 600; display: block; padding: 6px 8px; border-radius: 8px; }
.sub-list a:hover { background: rgba(255,255,255,0.12); }
.nav-item:hover .sub-list, .nav-item:focus-within .sub-list { display: block; }

/* Make parent hover area larger so cursor can move into submenu without closing */
.nav-item { padding-bottom: 4px; }
.sub-list li { padding: 8px 10px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 8px 12px; font-size: 0.82rem; }


/* =========================================
   4. HERO PRINCIPAL
========================================= */
.hero { background: linear-gradient(rgba(15,76,58,0.78), rgba(15,76,58,0.78)), url('https://i.postimg.cc/xj6FHB6j/IMG-20230419-103850818.webp'); background-size: cover; background-position: center 30%; padding: 70px 0; text-align: center; color: white; } 
.hero-logo { max-width: 160px; margin: 0 auto 1.2rem; display: block; background: transparent; border-radius: 0; padding: 0; box-shadow: none; } 
.hero-tag { display: inline-block; background: rgba(255,255,255,0.22); padding: 0.45rem 1.2rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.04em; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } 
.hero h1 { font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; max-width: 960px; margin-left: auto; margin-right: auto; line-height: 1.14; letter-spacing: -0.02em; text-shadow: 0 6px 18px rgba(0,0,0,0.25); } 
.hero .intro-text { font-size: 1rem; opacity: 0.96; max-width: 860px; margin: 0 auto 1.5rem; text-align: center; line-height: 1.75; color: #f4f7f2; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }


/* =========================================
   5. SECCIONES PRINCIPALES (CARACTERÍSTICAS, IMPACTO, EJES, ODS)
========================================= */
/* Características */
.features-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2rem auto; max-width: 900px; align-items: stretch; } 
.feature-card { display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-radius: 20px; padding: 1.4rem; flex: 1; min-width: 220px; min-height: 250px; text-align: center; border: 1px solid rgba(15,76,58,0.1); transition: 0.2s; box-shadow: 0 10px 25px rgba(15,76,58,0.08); } 
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,76,58,0.12); } 
.feature-card i { font-size: 2.5rem; color: var(--naranja); margin-bottom: 0.8rem; display: block; } 
.feature-card strong { display: block; font-size: 1rem; margin-bottom: 0.5rem; color: var(--verde); } 
.feature-card p { font-size: 0.95rem; opacity: 0.95; line-height: 1.7; color: #3d4f41; max-width: 260px; }

/* Impacto */
.impacto { background: linear-gradient(180deg, #0e4a33 0%, #0b623b 45%, #06603d 100%); padding: 45px 0 55px; text-align: center; position: relative; overflow: hidden; } 
.impacto::before { content: ''; position: absolute; top: 18px; left: 50%; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; transform: translateX(-50%); opacity: 0.15; } 
.impacto::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.14) 100%); pointer-events: none; } 
.impacto h2 { color: white; margin-bottom: 1rem; font-size: clamp(2.1rem, 4vw, 2.5rem); letter-spacing: 0.04em; text-transform: uppercase; } 
.impacto .section-title { position: relative; z-index: 1; } 
.impacto .section-title::after { content: ''; display: block; width: 80px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: rgba(255,255,255,0.85); } 
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; justify-items: center; position: relative; z-index: 1; max-width: 900px; margin: 0 auto; } 
.impact-card { background: rgba(255,255,255,0.18); backdrop-filter: blur(12px); padding: 1.15rem 1.25rem; border-radius: 24px; min-width: 180px; border: 1px solid rgba(255,255,255,0.24); transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 14px 30px rgba(0,0,0,0.14); } 
.impact-card:hover { background: rgba(255,255,255,0.28); transform: translateY(-4px); box-shadow: 0 18px 34px rgba(0,0,0,0.16); } 
.impact-card h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.35rem; color: #fff3c7; letter-spacing: -0.02em; } 
.impact-card p { font-size: 0.92rem; opacity: 0.95; font-weight: 700; color: #f4f7f1; line-height: 1.55; text-transform: uppercase; letter-spacing: 0.05em; }

/* Ejes y ODS */
.ejes-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; } 
.eje-card { background: white; border-radius: var(--radius); padding: 2rem; flex: 1; min-width: 280px; box-shadow: var(--shadow); transition: 0.25s; border: 1px solid #e2e8e4; } 
.eje-card:hover { transform: translateY(-5px); } 
.eje-icon { font-size: 2.5rem; color: var(--naranja); margin-bottom: 1rem; } 
.eje-card h3 { font-size: 1.3rem; color: var(--verde); margin-bottom: 1rem; } 
.eje-card p { color: #4a5b52; line-height: 1.5; margin-bottom: 1rem; text-align: justify; font-size: 0.9rem; } 
.eje-card ul { list-style: none; } 
.eje-card li { margin: 0.4rem 0; display: flex; align-items: baseline; gap: 8px; font-size: 0.85rem; } 
.eje-card li i { color: var(--naranja); width: 1rem; font-size: 0.8rem; }

.ods-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e2e8e4; } 
.ods-icon-item { background: white; border-radius: 20px; padding: 0.7rem; width: 90px; text-align: center; box-shadow: var(--shadow); transition: 0.2s; } 
.ods-icon-item:hover { transform: translateY(-3px); } 
.ods-icon-item img { max-width: 60px; height: auto; }

/* =========================================
   6. ALIADOS, DIRECTORIO Y ENTIDADES
========================================= */
.aliados { background: linear-gradient(135deg, var(--verde-soft) 0%, #ffffff 100%); }
.thanks-message { background: #eef3ec; padding: 1rem; border-radius: 28px; text-align: center; margin-bottom: 2rem; font-size: 0.9rem; color: #2d4a3b; border-left: 5px solid var(--naranja); } 
.subgroup-title { font-size: 1.3rem; font-weight: 600; color: var(--verde); text-align: center; margin-top: 1.5rem; margin-bottom: 1rem; } 

.partners-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; } 
.partner-card { background: white; border-radius: 28px; padding: 1rem; width: 170px; text-align: center; box-shadow: var(--shadow); transition: 0.2s; border: 1px solid #e6ede6; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; } 
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); } 
.partner-logo img { max-width: 100px; max-height: 55px; object-fit: contain; } 
.partner-logo .emoji { font-size: 2rem; } 
.partner-card h3 { font-size: 0.75rem; margin-top: 0.5rem; color: var(--verde); text-align: center; line-height: 1.3; } 
.partner-icon { font-size: 2rem; color: var(--verde); margin-bottom: 0.5rem; background: #f0f0f0; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.board-container { background: #fefcf7; border-radius: 28px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow); } 
.board-container h3 { font-size: 1.3rem; color: var(--verde); margin-bottom: 1rem; text-align: center; } 
.board-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; } 
.member-card { background: white; border-radius: 20px; padding: 0.7rem; text-align: center; min-width: 120px; border: 1px solid #e2e8e4; transition: 0.2s; } 
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } 
.member-card i { font-size: 1.5rem; color: var(--naranja); margin-bottom: 0.2rem; } 
.member-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--verde); }
.member-card p { font-size: 0.8rem; color: var(--gris); }

.entidades-participantes { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid #e2e8e4; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; } 
.entidad-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 75px; } 
.entidad-item img { height: 24px; width: auto; object-fit: contain; margin-bottom: 4px; } 
.entidad-item .entidad-nombre { font-size: 0.7rem; font-weight: 500; color: var(--gris); line-height: 1.2; }
.entidad-item.aecid img { transform: scale(1.25); margin: 0 4px; } 
.entidad-item.bid img { transform: scale(1.2); margin: 0 4px; } 
.entidad-item.prodiversa img { transform: scale(0.85); max-height: 20px; }


/* =========================================
   7. PROYECTOS Y DOCUMENTOS
========================================= */
.proyectos { background: var(--verde-soft); } 
.proyectos-fotos-grid { display: flex; flex-direction: column; gap: 2rem; max-width: 1000px; margin: 0 auto; } 
.proyecto-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.2s; border: 1px solid #e2e8e4; } 
.proyecto-card:hover { transform: translateY(-5px); } 
.proyecto-header { background: var(--verde); color: white; padding: 0.7rem 1rem; } 
.proyecto-header h3 { font-size: 0.9rem; margin-bottom: 0.2rem; } 
.proyecto-header .proyecto-fecha { font-size: 0.7rem; opacity: 0.9; } 
.proyecto-info { padding: 1rem; } 
.proyecto-info p { margin-bottom: 0.5rem; font-size: 0.85rem; text-align: justify; }

.docs-list { max-width: 800px; margin: 0 auto; background: #fefcf7; border-radius: 28px; padding: 1.2rem; box-shadow: var(--shadow); } 
.doc-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.5rem 0; border-bottom: 1px solid #e2e8e4; } 
.doc-item:last-child { border-bottom: none; } 
.doc-info { display: flex; align-items: center; gap: 10px; } 
.doc-info i { font-size: 1.2rem; color: var(--naranja); } 
.doc-link { background: #0f4c3a20; padding: 4px 12px; border-radius: 30px; text-decoration: none; color: var(--verde); font-size: 0.8rem; font-weight: 600; transition: 0.2s; } 
.doc-link:hover { background: var(--verde); color: white; }


/* =========================================
   8. MULTIMEDIA (FOTOS, VIDEOS, LIGHTBOX)
========================================= */
.multimedia { background: white; }
.grid-multimedia { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px; }
.card-foto { border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.card-foto img { width: 100%; height: 250px; object-fit: cover; display: block; }
.card-foto:hover { transform: scale(1.02); }

.fotos-generales { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid #e2e8e4; } 
.fotos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; } 
.foto-card { overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; } 
.foto-card:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.12); } 
.foto-card img { width: 100%; height: 200px; object-fit: cover; transition: 0.4s; display: block; } 
.foto-card:hover img { transform: scale(1.03); }

.videos-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid #e2e8e4; } 
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; } 
.video-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid #e2e8e4; } 
.video-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); } 
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; } 
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } 
.video-info { padding: 1rem; } 
.video-info h4 { font-size: 0.85rem; color: var(--verde); margin-bottom: 0.5rem; line-height: 1.4; } 
.video-info .video-date { font-size: 0.65rem; color: var(--gris); }
.video-box { background: #fff; padding: 10px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; cursor: pointer; } 
.lightbox.active { display: flex; } 
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 12px; box-shadow: 0 0 30px rgba(0,0,0,0.5); } 
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: white; cursor: pointer; transition: 0.2s; } 
.close-lightbox:hover { color: var(--naranja); } 
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: white; background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; cursor: pointer; border-radius: 50%; user-select: none; transition: 0.2s; } 
.lightbox-nav:hover { background: rgba(0,0,0,0.8); color: var(--naranja); } 
.nav-prev { left: 20px; } 
.nav-next { right: 20px; }

.hidden-photo, .hidden-video { display: none; }


/* =========================================
   9. MÓDULO DE HISTORIAS
========================================= */
.historias-main { background: #ffffff; padding-bottom: 5rem; }
.hero-historias { background: linear-gradient(rgba(15,76,58,0.85), rgba(15,76,58,0.85)), url('https://i.postimg.cc/xj6FHB6j/IMG-20230419-103850818.webp'); background-size: cover; background-position: center; padding: 80px 0; text-align: center; color: white; margin-bottom: 60px; }
.hero-historias h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.5px; } 
.hero-historias p { max-width: 700px; margin: 0.5rem auto 0; opacity: 0.9; font-size: 1.1rem; }

.historias-container { max-width: 1200px; margin: 4rem auto 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 5rem; }
.historia-bloque { display: flex; gap: 2rem; margin-bottom: 4rem; align-items: center; }
.historia-bloque.reverse { flex-direction: row-reverse; }

.historia-foto img { width: 100%; max-width: 450px; height: 350px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.historia-texto { background: var(--verde-soft); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid #e2e8e4; }
.historia-texto h2 { color: var(--verde); margin-bottom: 0.5rem; }
.historia-meta { color: var(--gris); font-size: 0.9rem; margin-bottom: 1rem; }
.historia-texto blockquote { font-size: 1.3rem; font-weight: 700; color: var(--verde); border-left: 6px solid var(--naranja); padding-left: 1rem; margin: 1.2rem 0; }

.historia-full { display: flex; flex-direction: column; gap: 2rem; }
.historia-full-img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.historia-full-texto { background: white; margin-top: -60px; padding: 2.5rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); position: relative; }
.historia-etiqueta { color: #2e7d32; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.historia-full-texto h2 { font-size: 2rem; color: #111; margin: 0.5rem 0 1rem 0; line-height: 1.2; }
.historia-intro { color: #444; font-size: 1.1rem; line-height: 1.6; border-left: 3px solid #2e7d32; padding-left: 1rem; font-weight: 500; }
.historia-full-texto blockquote { background-color: #f1f8e9; border-left: 4px solid #1b5e20; padding: 1.5rem; margin: 1rem 0; font-style: italic; font-size: 1.2rem; color: #1b5e20; line-height: 1.6; text-align: center; border-radius: 0 8px 8px 0; }


/* =========================================
   10. CONTACTO Y MAPAS
========================================= */
.contact-form { background: #fefcf7; padding: 1.5rem; border-radius: 28px; margin-top: 1.5rem; border: 1px solid #e6ede6; } 
.form-group { margin-bottom: 1rem; } 
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 28px; border: 1px solid #cfdfd4; font-family: inherit; font-size: 0.9rem; } 
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(217,140,43,0.2); } 
.contact-form button { background: var(--naranja); color: white; border: none; padding: 12px 28px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: 0.2s; } 
.contact-form button:hover { background: #c47a1f; transform: translateY(-2px); }

.mapas-container { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; justify-content: center; } 
.mapa-card { flex: 1; min-width: 280px; background: #fefcf7; border-radius: 28px; padding: 1rem; border: 1px solid #e6ede6; } 
.mapa-card h4 { color: var(--verde); margin-bottom: 0.5rem; font-size: 1rem; text-align: center; } 
.mapa-card iframe { width: 100%; height: 350px; border-radius: 20px; border: none; } 
.mapa-card p { font-size: 0.75rem; text-align: center; margin-top: 0.5rem; color: var(--gris); word-break: break-word; }

.contact-info-general { background: #fefcf7; padding: 0.8rem 1rem; border-radius: 24px; margin-top: 1.5rem; border: 1px solid #e6ede6; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; } 
.contact-info-general .social-links a { color: var(--verde); font-size: 1.8rem; transition: 0.2s; margin-left: 1rem; } 
.contact-info-general .social-links a:hover { color: var(--naranja); transform: scale(1.1); } 
.contact-info-general i { width: 25px; color: var(--naranja); font-size: 0.9rem; } 
.contact-info-general p { margin: 0.2rem 0; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; flex-wrap: wrap; word-break: break-word; }

.contact-grid-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; align-items: stretch; }
.contact-card-custom { background: #ffffff; padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }
.contact-card-custom i { font-size: 2.5rem; color: var(--naranja); margin-bottom: 20px; }
.contact-card-custom h3 { margin-bottom: 15px; color: var(--verde); }
.social-links-custom a { font-size: 1.8rem; margin: 0 10px; color: var(--texto); transition: 0.3s; }
.social-links-custom a:hover { color: var(--naranja); }


/* =========================================
   11. FOOTER
========================================= */
.site-footer { background: #08241d; color: #8899a6; padding: 1.2rem 0; margin-top: 2rem; font-size: 0.75rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-content nav { display: flex; gap: 1.5rem; align-items: center; }
.footer-content a { color: #fff; text-decoration: none; opacity: 0.7; transition: 0.2s; }
.footer-content a:hover { opacity: 1; color: var(--naranja); }


/* =========================================
   12. ELEMENTOS FLOTANTES
========================================= */
.float-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; } 
.float-buttons.show { opacity: 1; visibility: visible; transform: translateY(0); } 
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: white; font-size: 1.8rem; text-decoration: none; } 
.float-btn:hover { transform: scale(1.1); } 
.btn-whatsapp { background: #25D366; } 
.btn-whatsapp:hover { background: #128C7E; } 
.btn-facebook { background: #1877F2; } 
.btn-facebook:hover { background: #0d5bd9; } 
.btn-instagram { background: linear-gradient(45deg, #f09433, #d62976, #962fbf); } 
.btn-instagram:hover { opacity: 0.9; }

.scroll-top { position: fixed; bottom: 200px; right: 20px; background: var(--naranja); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } 
.scroll-top.show { opacity: 1; visibility: visible; } 
.scroll-top:hover { background: #c47a1f; transform: translateY(-2px); }
#scrollTop { margin-top: 10px; }


/* =========================================
   13. RESPONSIVE (MÓVIL)
========================================= */
@media (max-width: 760px) { 
  /* Navegación */
   .hamburger { display: inline-flex; }
   .menu-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(2, 10, 7, 0.45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 180ms ease; }
   .menu-overlay.show { opacity: 1; visibility: visible; }
   body.menu-open { overflow: hidden; }
   .site-nav { position: fixed; top: 70px; right: 12px; left: auto; width: min(320px, calc(100dvw - 24px)); max-width: calc(100% - 24px); background: rgba(15,76,58,0.98); border-radius: 16px; padding: 12px; display: block; box-shadow: 0 16px 40px rgba(3,22,16,0.45); border: 1px solid rgba(255,255,255,0.08); opacity: 0; visibility: hidden; transform: translateX(110%); pointer-events: none; transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease; z-index: 999; }
   .site-nav.open { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
   .nav-list { flex-direction: column; gap: 6px; align-items: stretch; }
   .nav-item { padding-bottom: 0; }
   .nav-link { width: 100%; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); }
   .nav-link:hover, .nav-link:focus { background: rgba(255,255,255,0.1); color: white; }
   .sub-list { position: static; display: none; min-width: 100%; margin-top: 6px; padding: 6px; border-radius: 10px; box-shadow: none; background: rgba(255,255,255,0.06); }
   .nav-item.active .sub-list { display: block; }
   .sub-list a { padding: 10px 12px; }

   /* hide brand text on small screens to save space */
   .brand-text { display: none; }
/* Ensure brand logo stays constrained inside the mobile menu */
   .brand-logo { width: 44px; max-width: 44px; }

  /* Textos Globales */
  .hero h1 { font-size: 1.6rem; } 
  .section-title { font-size: 1.5rem; } 
  .hero-logo { max-width: 100px; } 
  
  /* Tarjetas y Contenedores */
  .impact-card h3 { font-size: 1.8rem; } 
  .impact-card { padding: 0.8rem 1rem; min-width: 110px; } 
  .partner-card { width: 100%; max-width: 140px; } 
  .foto-card img { height: 160px; } 
  .entidad-item { width: 60px; } 
  .feature-card { min-width: 100%; } 
  .videos-grid { grid-template-columns: 1fr; } 

  /* Contacto y Mapas */
  .contact-info-general p { font-size: 0.8rem; } 
  .contact-info-general i { font-size: 0.85rem; } 
  .mapa-card iframe { height: 250px; } 
  .contact-info-general { flex-direction: column; align-items: flex-start; } 

  /* Botones Flotantes */
  .float-buttons { left: auto; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; transform: none; } 
  .float-btn { width: 45px; height: 45px; font-size: 1.5rem; } 
  .scroll-top { left: auto; right: 14px; bottom: calc(14px + 92px + env(safe-area-inset-bottom)); transform: none; } 

  /* Historias */
  .historia-bloque, .historia-bloque.reverse { flex-direction: column; }
  .historia-foto img { max-width: 100%; height: 260px; }
}