/* ============================================
   AFNEMO - sections.css
   All non-hero sections: about, programs, news,
   team, partners, newsletter, footer, map, arcgis,
   chatbot, modal, kente-bar, cta-banner
   ============================================ */

/* ─── ABOUT ─── */
.about {
  background: var(--warm-black);
}
.about-hero-strip {
  padding: 8rem 4rem 5rem;
  background: var(--warm-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect x="0" y="0" width="20" height="20" fill="rgba(200,134,10,0.04)"/><rect x="40" y="0" width="20" height="20" fill="rgba(181,69,27,0.04)"/><rect x="20" y="20" width="20" height="20" fill="rgba(200,134,10,0.04)"/><rect x="60" y="20" width="20" height="20" fill="rgba(27,77,53,0.08)"/></svg>');
  background-size: 80px 80px;
}
.about-hero-strip h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
  line-height: 1.05;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}
.about-hero-strip h2 em {
  color: var(--gold);
  font-style: italic;
}
.about-hero-strip .strip-sub {
  font-size: 1rem;
  color: rgba(240,232,213,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

/* Kente-inspired color bar */
.kente-bar {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 30px,
    var(--earth-red) 30px, var(--earth-red) 60px,
    var(--sage-light) 60px, var(--sage-light) 90px,
    var(--warm-black) 90px, var(--warm-black) 100px,
    var(--gold) 100px, var(--gold) 130px,
    #0D4A63 130px, #0D4A63 160px
  );
  width: 100%;
}

/* ─── ABOUT ORIGEN ─── */
.about-origen {
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}
.about-origen-left h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.about-origen-left p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(240,232,213,0.65);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.about-neftali {
  background: rgba(200,134,10,0.07);
  border: 1px solid rgba(200,134,10,0.2);
  border-radius: 16px;
  padding: 2.5rem;
}
.about-neftali-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about-neftali blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}
.neftali-dates {
  font-size: 0.78rem;
  color: rgba(240,232,213,0.4);
  font-weight: 300;
}

/* ─── ABOUT MISSION / VISION ─── */
.about-mv {
  background: rgba(0,0,0,0.25);
  padding: 5rem 4rem;
}
.about-mv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}
.mv-card {
  background: rgba(245,237,224,0.04);
  border: 1px solid rgba(245,237,224,0.08);
  border-radius: 20px;
  padding: 2.5rem;
}
.mv-card.mision { border-top: 3px solid var(--earth-red); }
.mv-card.vision { border-top: 3px solid var(--sage-light); }
.mv-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.mv-card.mision .mv-label { color: var(--earth-red); }
.mv-card.vision .mv-label { color: var(--sage-light); }
.mv-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.mv-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(240,232,213,0.6);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.mv-objetivos {
  border-top: 1px solid rgba(245,237,224,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mv-obj-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: rgba(245,237,224,0.03);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(240,232,213,0.6);
  line-height: 1.5;
}
.mv-obj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth-red);
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.mv-card.vision .mv-obj-dot { background: var(--sage); }

/* ─── ABOUT CONTENT (used in light variant) ─── */
.about-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--deep-brown);
}
.about-content h2 span {
  color: var(--earth-red);
  font-style: italic;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(44, 24, 16, 0.7);
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(44, 24, 16, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(44, 24, 16, 0.06);
}
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--earth-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.value-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--deep-brown);
}
.value-item p {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ─── PROGRAMS ─── */
.programs {
  background: var(--warm-black);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}
.programs::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05), transparent 70%);
  border-radius: 50%;
}
.programs-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.programs-header .section-tag {
  color: var(--gold);
}
.programs-header .section-tag::before {
  background: var(--gold);
}
.programs-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.programs-header p {
  color: rgba(245, 237, 224, 0.5);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.program-card {
  background: rgba(245, 237, 224, 0.04);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.program-card:hover::before {
  transform: scaleX(1);
}
.program-card:hover {
  background: rgba(245, 237, 224, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.program-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--accent-orange));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.program-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.program-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 237, 224, 0.5);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.program-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.program-link:hover {
  gap: 0.8rem;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 6rem 3rem;
  background:
    linear-gradient(135deg, var(--earth-red) 0%, var(--deep-brown) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="k" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0L40 20L20 40L0 20Z" fill="none" stroke="rgba(245,237,224,0.04)" stroke-width="1"/></pattern></defs><rect fill="url(%23k)" width="200" height="200"/></svg>');
  background-size: 40px 40px;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.cta-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.cta-content p {
  color: rgba(245, 237, 224, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── NEWS ─── */
.news {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.news-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  line-height: 1.15;
}
.news-header a {
  color: var(--earth-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.news-header a:hover { gap: 0.8rem; }
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.news-card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid rgba(44, 24, 16, 0.06);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.1);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.news-card:first-child .news-card-img {
  aspect-ratio: 16/12;
}
.news-card-img::before {
  content: '📷 Imagen del artículo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 24, 16, 0.2);
  font-size: 0.85rem;
  z-index: 0;
}
/* Ocultar placeholder cuando la tarjeta tiene imagen real */
.news-card-img.has-image::before {
  display: none;
}
.news-card-body {
  padding: 1.5rem;
}
.news-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-red);
  margin-bottom: 0.75rem;
}
.news-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--deep-brown);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.news-card:first-child .news-card-body h3 {
  font-size: 1.5rem;
}
.news-card-body p {
  font-size: 0.85rem;
  color: rgba(44, 24, 16, 0.5);
  line-height: 1.6;
  font-weight: 300;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 24, 16, 0.06);
  font-size: 0.75rem;
  color: rgba(44, 24, 16, 0.4);
}

/* ─── TEAM ─── */
.team {
  background: var(--cream-dark);
  padding: 8rem 3rem;
}
.team-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.team-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.team-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  margin-bottom: 1rem;
}
.team-header p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
  cursor: pointer;
}
.team-card:hover .team-card-img {
  transform: scale(1.05);
}
.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--deep-brown);
  border-radius: 16px;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.team-card-img::before {
  content: '👤';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.2;
}
.team-card h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--deep-brown);
  margin-bottom: 0.3rem;
}
.team-card p {
  font-size: 0.8rem;
  color: rgba(44, 24, 16, 0.5);
  font-weight: 400;
}

/* ─── PARTNERS ─── */
.partners {
  padding: 5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(44, 24, 16, 0.3);
  margin-bottom: 2.5rem;
}
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.partner-logo {
  width: 120px;
  height: 50px;
  background: rgba(44, 24, 16, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(44, 24, 16, 0.3);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  padding: 5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--deep-brown);
  margin-bottom: 0.75rem;
}
.newsletter p {
  color: rgba(44, 24, 16, 0.5);
  margin-bottom: 2rem;
  font-weight: 300;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1.5px solid rgba(44, 24, 16, 0.15);
  border-radius: 50px;
  background: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--deep-brown);
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter-form input:focus {
  border-color: var(--gold);
}
.newsletter-form input::placeholder {
  color: rgba(44, 24, 16, 0.3);
}
.newsletter-form button {
  background: var(--deep-brown);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--earth-red);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--warm-black);
  padding: 5rem 3rem 2rem;
  color: var(--cream);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(245, 237, 224, 0.08);
}
.footer-brand {
  max-width: 350px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 237, 224, 0.4);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 237, 224, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-black);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.footer-col a {
  display: block;
  color: rgba(245, 237, 224, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(245, 237, 224, 0.25);
}
.footer-bottom a {
  color: rgba(245, 237, 224, 0.25);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* ─── MAP SECTION ─── */
.map-section {
  padding: 8rem 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.map-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.map-section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  line-height: 1.15;
}
.map-section-header p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.5rem;
  max-width: 500px;
}
.map-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.map-filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(44, 24, 16, 0.12);
  background: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--deep-brown);
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-filter-btn:hover,
.map-filter-btn.active {
  background: var(--deep-brown);
  color: var(--cream);
  border-color: var(--deep-brown);
}
.map-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.08);
  height: 600px;
  background: white;
}
#mapBogota {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.map-sidebar {
  background: white;
  border-left: 1px solid rgba(44, 24, 16, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
}
.map-sidebar-tabs {
  display: flex;
  background: rgba(44, 24, 16, 0.03);
  border-radius: 10px;
  padding: 3px;
}
.map-tab {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(44, 24, 16, 0.5);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.map-tab.active {
  background: white;
  color: var(--deep-brown);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-weight: 600;
}
.map-search {
  margin-top: 1rem;
  position: relative;
}
.map-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1.5px solid rgba(44, 24, 16, 0.1);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  outline: none;
  background: white;
  color: var(--deep-brown);
  transition: border-color 0.3s ease;
}
.map-search input:focus { border-color: var(--gold); }
.map-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.3;
}
.map-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}
.map-list::-webkit-scrollbar { width: 4px; }
.map-list::-webkit-scrollbar-thumb { background: rgba(44,24,16,0.1); border-radius: 4px; }
.map-list-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.map-list-item:hover,
.map-list-item.active {
  background: rgba(212, 168, 83, 0.06);
  border-color: rgba(212, 168, 83, 0.15);
}
.map-list-item-icon {
  width: 42px;
  height: 42px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.map-list-item-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 0.15rem;
}
.map-list-item-info p {
  font-size: 0.72rem;
  color: rgba(44, 24, 16, 0.45);
  line-height: 1.4;
}
.map-list-item-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 0.3rem;
  display: inline-block;
}
.badge-gastronomia { background: #FFF3E0; color: #E65100; }
.badge-belleza { background: #F3E5F5; color: #7B1FA2; }
.badge-artesanias { background: #E8F5E9; color: #2E7D32; }
.badge-cultura { background: #E3F2FD; color: #1565C0; }
.badge-moda { background: #FFF8E1; color: #F57F17; }
.badge-servicios { background: #ECEFF1; color: #37474F; }
.map-add-panel {
  padding: 1.5rem;
  border-top: 1px solid rgba(44, 24, 16, 0.06);
}
.map-add-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--gold);
  color: var(--warm-black);
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-add-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

/* ─── MAP MODAL ─── */
.map-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.map-modal-overlay.show { display: flex; }
.map-modal {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  position: relative;
}
.map-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(44, 24, 16, 0.05);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.map-modal-close:hover { background: rgba(44, 24, 16, 0.1); }
.map-modal h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--deep-brown);
  margin-bottom: 0.5rem;
}
.map-modal > p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-weight: 300;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(44, 24, 16, 0.12);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--deep-brown);
  outline: none;
  transition: border-color 0.3s ease;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint {
  font-size: 0.7rem;
  color: rgba(44, 24, 16, 0.35);
  margin-top: 0.3rem;
}
.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--deep-brown);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--earth-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 58, 47, 0.3);
}

/* ─── MAP STATS BAR ─── */
.map-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.map-stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(44, 24, 16, 0.06);
}
.map-stat-card .stat-number { font-size: 2rem; color: var(--earth-red); }
.map-stat-card .stat-label { color: rgba(44, 24, 16, 0.5); font-size: 0.75rem; }

/* ─── LEAFLET POPUPS ─── */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.custom-popup .leaflet-popup-content { margin: 0; min-width: 240px; }
.popup-content { padding: 1.2rem; }
.popup-content h4 { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--deep-brown); margin-bottom: 0.3rem; }
.popup-content p { font-size: 0.78rem; color: rgba(44, 24, 16, 0.5); line-height: 1.5; margin-bottom: 0.25rem; }
.popup-badge { display: inline-block; font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 50px; font-weight: 600; margin-top: 0.5rem; }

/* ─── ARCGIS SECTION ─── */
.arcgis-section {
  padding: 5rem 3rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.arcgis-section-header {
  margin-bottom: 2.5rem;
}
.arcgis-section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--deep-brown);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.arcgis-section-header p {
  color: rgba(44, 24, 16, 0.5);
  font-size: 1rem;
  font-weight: 300;
  max-width: 600px;
  margin-top: 0.5rem;
}
.arcgis-map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.08);
  background: white;
}
.arcgis-map-wrapper arcgis-embedded-map {
  display: block;
  width: 100%;
  height: 600px;
}

/* ─── CHATBOT WIDGET ─── */
#chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.5);
  z-index: 9000;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.5rem;
}
#chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(212, 168, 83, 0.6);
}
#chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 370px;
  height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(26, 18, 16, 0.2);
  z-index: 8999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  animation: slideUp 0.3s ease;
}
#chat-window.open {
  display: flex;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
#chat-header {
  background: var(--deep-brown);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-header-info h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.1rem;
}
.chat-header-info span {
  font-size: 0.72rem;
  color: rgba(245, 237, 224, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.chat-online-dot {
  width: 6px;
  height: 6px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
#chat-close {
  margin-left: auto;
  background: rgba(245, 237, 224, 0.1);
  border: none;
  color: var(--cream);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
#chat-close:hover { background: rgba(245, 237, 224, 0.2); }
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #faf8f5;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(44,24,16,0.1); border-radius: 4px; }
.chat-msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  max-width: 88%;
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.chat-msg.bot .chat-msg-avatar { background: var(--deep-brown); }
.chat-msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--deep-brown);
}
.chat-msg.bot .chat-msg-bubble {
  background: white;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(44,24,16,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.chat-msg.user .chat-msg-bubble {
  background: var(--deep-brown);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.7rem 1rem;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: rgba(44,24,16,0.25);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
#chat-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(44,24,16,0.07);
  display: flex;
  gap: 0.6rem;
  background: white;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(44,24,16,0.12);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--deep-brown);
  outline: none;
  transition: border-color 0.3s ease;
  background: #faf8f5;
}
#chat-input:focus { border-color: var(--gold); }
#chat-input::placeholder { color: rgba(44,24,16,0.3); }
#chat-send {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
#chat-send:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}
#chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── SKELETON LOADER ─────────────────────────────────────────────────────
   Usado por assets/js/news.js mientras carga noticias desde GitHub API
   ─────────────────────────────────────────────────────────────────────── */
@keyframes news-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.news-skeleton-block,
.news-skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(44, 24, 16, 0.06) 25%,
    rgba(44, 24, 16, 0.13) 50%,
    rgba(44, 24, 16, 0.06) 75%
  );
  background-size: 1200px 100%;
  animation: news-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

/* Ocultar el pseudo-elemento placeholder durante skeleton */
.news-skeleton .news-card-img::before {
  display: none;
}

.news-skeleton-line {
  display: block;
}
