/* Palette and variables are defined in assets/css/base.css to keep a single source of truth */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-font-size);
  line-height: 1.65;
  color: var(--dark);
  background-color: #ffff81;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 88% 8%, rgba(245, 130, 32, 0.1) 0%, rgba(245, 130, 32, 0) 32%),
    radial-gradient(circle at 18% 86%, rgba(18, 163, 230, 0.12) 0%, rgba(18, 163, 230, 0) 28%),
    linear-gradient(180deg, #ffff81 0%, #fff9be 55%, #fffdf0 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

@media (max-width: 991px) {
  body {
    background-attachment: scroll;
  }
}

@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll;
  }
}

/* Ensure page content is not hidden behind fixed header */
main {
  padding-top: 84px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, padding 0.28s ease;
  background: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(11,12,16,0.06);
}

.site-header.sticky {
  background: #ffffff !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(11,12,16,0.08);
}

.navbar {
  display:flex;align-items:center;justify-content:space-between;padding:.45rem var(--space-md);
}

/* Compact header spacing when fixed */
.site-header .navbar { padding-top: .45rem; padding-bottom: .45rem; }

.navbar-brand { font-weight:800;font-family:var(--font-heading);letter-spacing:0.02em;color:var(--dark);text-decoration:none;display:flex;align-items:center;gap:0.5rem}
.brand-mark{width:44px;height:44px;border-radius:12px;display:inline-block;background:linear-gradient(135deg,var(--primary),var(--secondary))}

.nav-link{color:var(--dark);text-decoration:none;padding:.45rem .85rem;border-radius:9999px;transition:all .22s ease;font-weight:600}
.nav-link {display:inline-flex;align-items:center}
.nav-link:hover,.nav-link.active{background:rgba(31,125,56,0.95);color:#fff}

.navbar-toggler{display:block;border:none;background:none}

/* Toggler: visible on mobile only, hidden on desktop */
.site-header .navbar-toggler{width:44px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.9);border:1px solid rgba(15,23,42,0.06);padding:0}
.site-header .navbar-toggler-icon{width:22px;height:22px;background-size:22px 22px;background-repeat:no-repeat;background-position:center;}
.site-header .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%230f1720' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");}
.site-header.sticky .navbar-toggler{background:transparent;border:1px solid rgba(255,255,255,0.12)}
.site-header.sticky .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");}

@media(min-width:992px){
  .navbar-toggler{display:none!important}
}

/* Ensure nav links align horizontally on desktop and stack on small screens */
.navbar-collapse{justify-content:flex-end;align-items:center}
.navbar-nav{display:flex;flex-direction:row;gap:0.25rem;align-items:center}
.navbar-nav .nav-item{display:inline-block}

@media(max-width:991px){
  .navbar-nav{flex-direction:column;gap:0;margin-top:.5rem}
  .navbar-nav .nav-link{padding:.5rem 0.75rem}
  .navbar-collapse .d-flex.ms-lg-3{margin-top:.75rem}
}


/* ensure the expanded collapse appears above other content */
.site-header .navbar-collapse.show, .site-header .navbar-collapse.show .nav-link{
  z-index: 1200;
}

.btn-accent{background:linear-gradient(90deg,var(--accent),#d96e14);color:#fff;border:none;padding:.7rem 1.25rem;border-radius:9999px;font-weight:800;box-shadow:0 10px 30px rgba(217,110,20,0.12);display:inline-flex;align-items:center;gap:0.5rem}
.btn-accent:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(217,110,20,0.16)}
.btn-full{display:inline-flex;align-items:center;justify-content:center}

/* Mobile menu: full-width dropdown under header */
@media(max-width:991px){
  .site-header .navbar { padding: .5rem 1rem; }
  .site-header .navbar-toggler{margin-left:auto}
  .site-header .navbar-collapse{visibility:hidden;opacity:0;transform:translateY(-6px);transition:transform .22s ease, opacity .22s ease, visibility .01s linear .22s;background:rgba(255,255,255,0.98)}
  .site-header .navbar-collapse.collapsing{visibility:hidden;opacity:0;transform:translateY(-6px);}
  .site-header .navbar-collapse.show{visibility:visible;opacity:1;transform:translateY(0);transition-delay:0s;position: fixed;left: 0;right: 0;top: 64px;width: 100%;max-width: none;padding: 1rem 1.25rem;margin: 0;border-radius: 0 0 12px 12px;box-shadow: 0 12px 40px rgba(11,12,16,0.12);z-index: 1250;}
  .site-header .navbar-collapse.collapsing .nav-link,
  .site-header .navbar-collapse .nav-link{opacity:0;transform:translateY(6px);transition:opacity .22s ease .08s, transform .22s ease .08s}
  .site-header .navbar-collapse.show .nav-link{opacity:1;transform:translateY(0)}
  .site-header .navbar-nav{gap:0.25rem}
  .site-header .navbar-nav .nav-link{padding:.9rem 1rem;border-radius:12px;text-align:center}
}



.hero-section{
  min-height:68vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:left;
  position:relative;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(18,163,230,0.04) 0%, rgba(0,122,61,0.03) 100%);
  color: var(--dark);
  padding:calc(var(--space-xl) * 1.1) 0;
}

.hero-section::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 75%, rgba(18,163,230,0.04) 0%, transparent 35%),radial-gradient(circle at 85% 20%, rgba(0,122,61,0.04) 0%, transparent 35%)}

.hero-content{position:relative;z-index:1;max-width:920px;padding:0 var(--space-md)}
.hero-title{font-family:var(--font-heading);font-weight:800;margin-bottom:var(--space-sm);font-size:clamp(1.75rem,3.8vw,3rem);color:var(--primary)}
.hero-tagline{font-size:clamp(1.05rem,2.2vw,1.25rem);color:var(--muted);opacity:1;margin-bottom:var(--space-md)}
.hero-description{color:var(--muted);font-size:1.05rem;margin-bottom:var(--space-lg)}

.home .hero-content {
  max-width: 100%;
}

.home .hero-panel {
  width: 100%;
}

/* Hero panel (white card) */
.hero-panel{background:#fff;padding:2.25rem;border-radius:20px;box-shadow:0 28px 60px rgba(11,12,16,0.08);border-left:6px solid rgba(31,125,56,0.06)}

.hero-actions{display:flex;gap:var(--space-md);justify-content:flex-start;flex-wrap:wrap}

/* Page hero/title used on internal pages */
.page-hero{padding:3.25rem 0;background:transparent}
.page-hero .page-title{font-family:var(--font-heading);font-weight:800;font-size:clamp(1.5rem,3.2vw,2.25rem);color:var(--primary);margin:0}
.page-hero .page-sub{color:var(--muted);margin-top:.5rem}


.hero-section h1{
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.02;
  color: var(--primary);
  text-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero-section h1,
.section h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.section {
  position: relative;
}

.section-header h2 {
  font-size: clamp(2rem, 2.25vw, 2.75rem);
  margin-top: 1rem;
}

.section-header .para,
.text-muted.para {
  max-width: 680px;
  margin: 0 auto;
  color: #5f6368;
}

.bg-light {
  background-color: rgba(255, 255, 129, 0.42) !important;
}

@media (max-width: 991px), (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}

.about-section {
  background: linear-gradient(180deg, rgba(255, 255, 129, 0.28), rgba(255, 255, 129, 0.12));
}

.about-image {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.programas-image {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(13, 147, 200, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.programas-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.95));
  border-radius: 32px;
  border: 1px solid rgba(13, 147, 200, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.info-card,
.program-card,
.donation-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(6px);
  border-radius: 20px;
}

.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(31, 125, 56, 0.08);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.values-badges span {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-card p {
  color: rgba(31, 41, 55, 0.82);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.values-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .values-badges {
    grid-template-columns: 1fr;
  }
}

.page-quienes .values-badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.page-quienes .values-badges .badge {
  min-height: 46px;
  padding: 0.7rem 0.85rem !important;
  border-radius: 16px !important;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  font-size: 0.92rem;
}

.board-section {
  background: rgba(255, 255, 129, 0.3);
}

.board-section .section-header h2 {
  font-size: clamp(2rem, 2.5vw, 2.4rem);
}

.board-photo-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-photo {
  min-height: 260px;
  background: #e7f1ff;
  max-width: 100%;
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-photo-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.board-member {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 100%;
}

.member-avatar {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  background: rgba(31, 125, 56, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.board-photo-card.text-center .board-photo {
  margin-left: auto;
  margin-right: auto;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
  color: rgba(31, 41, 55, 0.85);
}

.values-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.icon-circle {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.icon-circle.bg-primary {
  background: rgba(31, 125, 56, 0.12);
}

.icon-circle.bg-secondary {
  background: rgba(13, 147, 200, 0.12);
}

.icon-circle.bg-accent {
  background: rgba(240, 140, 30, 0.15);
}

.icon-circle.icon-entrepreneurship {
  background: rgba(240, 140, 30, 0.16);
  color: #8f6735;
}

.program-card,
.donation-card {
  border: none;
}

.program-card h3,
.donation-card h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
}

.program-card p,
.donation-card p {
  color: var(--muted);
}

.program-event-meta {
  margin: -0.25rem 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}

.program-mini-photo {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.program-mini-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.program-card:hover,
.donation-card:hover {
  transform: translateY(-8px);
}

.link-primary {
  color: var(--primary);
  font-weight: 600;
}

.link-primary:hover {
  text-decoration: none;
  color: var(--secondary);
}


.section-header .eyebrow{font-weight:800;letter-spacing:0.12em;color:var(--primary)}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(11, 12, 16, 0.06);
  color: var(--dark);
  font-weight: 600;
}

.program-list li::before {
  content: "";
  min-width: 10px;
  min-height: 10px;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--primary);
}

.program-list li:last-child {
  margin-bottom: 0;
}

.btn-outline-primary{
  border-color: rgba(13,147,200,0.08);
}

.btn,
.nav-link,
.navbar-toggler,
.activity-entry,
.activity-nav,
.modal-close,
.support-modal-close,
.activity-modal-close {
  touch-action: manipulation;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  width: 100%;
  display: inline-block;
  margin-bottom: 1rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

#mini-galeria .gallery-item {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.mini-gallery-preview {
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

.mini-gallery-preview img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(31, 125, 56, 0.16);
}

#mini-galeria .gallery-item img {
  width: 100%;
  max-width: 680px;
  border-radius: 24px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item img {
  width: 100%;
  border-radius: 24px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.96);
}

.overlay-label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-green);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.full-width-section {
  width: 100%;
  margin-left: 0;
  transform: none;
  padding-left: 0;
  padding-right: 0;
}

.full-width-section .container {
  max-width: var(--content-max-width);
}

.video-upload-card,
.video-preview-card,
.news-card,
.activity-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.video-upload-card .form-label,
.video-preview-card .form-label {
  color: var(--dark);
}

.video-placeholder {
  min-height: 240px;
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.activities-list {
  display: grid;
  gap: 1.5rem;
}

.activity-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.5rem;
  align-items: start;
}

.activity-thumb {
  background: linear-gradient(135deg, rgba(0, 122, 61, 0.12), rgba(18, 163, 230, 0.12));
  border-radius: 20px;
  min-height: 120px;
}

.activity-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.activity-feed {
  margin-top: 0.5rem;
}

.activity-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  gap: 1rem;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.activity-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 122, 61, 0.25);
}

.activity-entry-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 122, 61, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.activity-entry-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-entry-body {
  display: grid;
  gap: 0.28rem;
}

.activity-entry-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

.activity-entry-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--dark);
}

.activity-entry-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.activity-entry-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 163, 230, 0.12);
  color: var(--secondary);
  font-size: 1rem;
}

.activity-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  z-index: 1300;
  padding: 1rem;
}

.activity-modal.active {
  display: flex;
}

.activity-modal-dialog {
  width: min(980px, 96vw);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  position: relative;
}

.activity-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.activity-modal-media {
  position: relative;
  background: #0f1720;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-modal-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.activity-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f1720;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.activity-nav.prev {
  left: 0.9rem;
}

.activity-nav.next {
  right: 0.9rem;
}

.activity-modal-info {
  padding: 1rem 1.25rem 1.25rem;
}

.activity-modal-info h3 {
  margin-bottom: 0.45rem;
}

.activity-modal-counter {
  font-weight: 700;
  color: var(--primary);
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card .news-photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  aspect-ratio: 16 / 10;
}

.news-card .news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card p {
  text-align: justify;
}

.news-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 767px) {
  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-entry {
    grid-template-columns: 54px 1fr;
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 18px;
  }

  .activity-entry-action {
    display: none;
  }

  .activity-entry-title {
    font-size: 0.95rem;
  }

  .activity-entry-text {
    font-size: 0.9rem;
  }

  .activity-modal-media {
    min-height: 300px;
  }

  .activity-modal {
    padding: 0.65rem;
  }

  .activity-modal-dialog {
    width: min(98vw, 100%);
    max-height: 90vh;
    overflow-y: auto;
  }

  .activity-modal-media img {
    max-height: 55vh;
  }

  .activity-nav {
    width: 40px;
    height: 40px;
  }

  .overlay-label {
    top: 1rem;
    left: 1rem;
  }

  .mini-gallery-preview {
    width: 100%;
  }

  .mini-gallery-preview img {
    border-radius: 20px;
  }

  #mini-galeria .btn-outline-primary {
    width: min(100%, 320px);
  }

  .page-quienes .info-card {
    padding: 1.35rem !important;
  }

  .page-quienes .info-card h3 {
    margin-bottom: 0.85rem;
  }

  .page-quienes .values-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .page-quienes .values-badges .badge {
    min-height: 42px;
    padding: 0.6rem 0.7rem !important;
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .page-quienes .values-badges .badge {
    font-size: 0.78rem;
    padding: 0.55rem 0.55rem !important;
  }
}

.about-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 125, 56, 0.08);
  min-height: 100%;
}

.badge-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 147, 200, 0.1);
  color: var(--color-green);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
  .about-panel {
    padding: 2rem;
  }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.78);
  z-index: 1100;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  width: 960px;
}

.gallery-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.modal-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(27, 27, 29, 0.16);
}

/* Testimonial styles removed */

.allies-carousel {
  overflow: hidden;
}

.allies-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(180px, 1fr));
  gap: 1.5rem;
  animation: slide 22s linear infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ally-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 35px rgba(31, 125, 56, 0.08);
}

.ally-logo img {
  max-height: 60px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ally-logo:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* Enhanced UI: buttons, cards, mobile menu and footer polish */
.btn-primary{background:transparent;color:var(--primary);border:2px solid rgba(31,125,56,0.12);padding:.65rem 1rem;border-radius:12px;font-weight:700}
.btn-primary:hover{background:rgba(31,125,56,0.04)}

/* Cards aesthetic */
.info-card, .program-card, .donation-card{
  border: none; padding:1.75rem; background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98)); border-radius:18px; box-shadow:0 12px 30px rgba(11,12,16,0.04)
}

/* Mobile menu: full-width dropdown under header */
@media(max-width:991px){
  .site-header .navbar { padding: .5rem 1rem; }
  .site-header .navbar-toggler{margin-left:auto}
  .site-header .navbar-collapse.show{
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    max-width: none;
    padding: 1rem 1.25rem;
    margin: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 12px 40px rgba(11,12,16,0.12);
    z-index: 1250;
  }
  .site-header .navbar-nav{gap:0.25rem}
  .site-header .navbar-nav .nav-link{padding:.9rem 1rem;border-radius:12px;text-align:center}
}

/* Footer spacing, contrast and typography refinements */
.footer{padding:4rem 0;background:#101216;color:#d8dadd}
.footer h3,.footer h5{color:#fff}
.footer .footer-desc{color:rgba(255,255,255,0.85)}
.footer .footer-links li{margin-bottom:0.5rem}
.footer .footer-links a,
.footer a{color:#c7d0dc}
.footer-links li a:hover,
.footer a:hover{color:#fff}
.footer .social-link{color:rgba(255,255,255,0.9);font-size:1.05rem}
.footer-bottom{padding-top:1.5rem;color:rgba(255,255,255,0.65)}

/* Contact section: ensure text is visible when bg-dark used */
.section.bg-dark{background:#111; color: #eaeaea}
.section.bg-dark a{color:var(--accent)}
.section.bg-dark .para{color:rgba(234,234,234,0.85)}

.donation-card {
  transition: transform 0.3s ease;
}

.donation-brand {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.donation-brand-logo {
  width: auto;
  max-width: 138px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.donation-brand-logo-bank {
  max-width: 150px;
  max-height: 76px;
}

.donation-brand-funindess {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 245, 0.94));
}

.donation-brand-logo-funindess {
  max-width: 82px;
  max-height: 82px;
}

.donation-brand-logo-qr {
  max-width: 92px;
  max-height: 92px;
  border-radius: 16px;
}

.donation-label {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(31, 125, 56, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.volunteer-form {
  background: #fff;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 147, 200, 0.18);
  border-color: var(--secondary);
}

.contact-list li {
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-list a {
  color: var(--primary);
}

.contact-list i {
  color: var(--accent);
}

.social-links .btn-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.social-links .btn-icon:hover {
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.55);
}

.map-responsive iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 991px) {
  .hero-content {
     padding-top: 3rem;
     padding-bottom: 3rem;
  }

  .gallery-grid {
    column-count: 2;
  }

  .donation-brand-logo-bank {
    max-width: 138px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 70vh;
  }

  .navbar .nav-link {
    color: var(--dark) !important;
  }

  .hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .gallery-grid {
    column-count: 1;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .donation-brand {
    min-height: 96px;
    padding: 0.85rem;
  }

  .donation-brand-logo {
    max-width: 128px;
    max-height: 64px;
  }

  .donation-brand-logo-bank {
    max-width: 138px;
    max-height: 68px;
  }

  .donation-brand-logo-funindess {
    max-width: 74px;
    max-height: 74px;
  }

  .donation-brand-logo-qr {
    max-width: 84px;
    max-height: 84px;
  }
}

@media (max-width: 575px) {
  .eyebrow,
  .hero-section h1,
  .section-header h2 {
    text-align: center;
  }

  .hero-section .row {
    justify-content: center;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar.sticky {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

/* --- 1. MEJORAS GLOBALES --- */
body {
  font-size: 1.1rem;
  color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-green);
}

p, .para, .text-muted {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
}

.shadow-soft {
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
}

.shadow-md {
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.2);
}

.shadow-lg {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}

/* --- 2. HERO SECTION REDISEÑADA --- */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 122, 61, 0.05) 0%, rgba(18, 163, 230, 0.08) 100%);
  padding: calc(var(--space-xl) * 1.5) 0;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2);
  padding: 3rem;
  transition: transform 0.3s ease;
}

.hero-panel:hover {
  transform: translateY(-5px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
}

.hero-tagline, .hero-description {
  font-size: 1.2rem;
  color: #4a5568;
}

.hero-actions .btn {
  padding: 0.9rem 2.5rem;
  border-radius: 60px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-actions .btn-primary {
  background: var(--color-green);
  border: none;
  color: white;
  box-shadow: 0 10px 30px -8px rgba(0, 122, 61, 0.4);
  animation: heroPrimaryPulse 2.6s ease-in-out infinite;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px -10px rgba(0, 122, 61, 0.55);
}

@keyframes heroPrimaryPulse {
  0%,
  100% {
    box-shadow: 0 10px 30px -8px rgba(0, 122, 61, 0.4);
  }

  50% {
    box-shadow: 0 16px 38px -10px rgba(0, 122, 61, 0.56);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-primary {
    animation: none;
  }
}

  .cta-panel {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(20, 20, 20, 0.96));
    border-radius: 36px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
  }

  .cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
      radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 22%);
    pointer-events: none;
  }

  .cta-panel h2,
  .cta-panel p {
    position: relative;
    z-index: 1;
  }

  .cta-panel h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    color: #fff;
  }

  .cta-panel p {
    max-width: 680px;
    margin: 1.4rem auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
  }

  .cta-panel .btn {
    border-radius: 999px;
    min-width: 180px;
  }

  .cta-panel .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
  }

  .cta-panel .btn-light {
    color: #064a2e;
    background: #ffffff;
  }

  .about-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 125, 56, 0.12);
    border-radius: 36px;
    padding: 2.5rem;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.08);
  }

  .about-panel h2 {
    margin-top: 0.8rem;
  }

  .about-panel p {
    margin-bottom: 1.2rem;
    color: #4f5d6b;
  }

  .about-panel .btn {
    padding: 1rem 2.2rem;
  }

  .about-image {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  }

  .about-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .page-quienes .page-intro-image {
    width: 90%;
    margin: 0 auto;
  }

  .page-quienes .page-intro-image img {
    width: 100%;
  }

  .ally-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .ally-list li {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dark);
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.25rem;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 991px) {
    .cta-panel {
      padding: 2.5rem 1.75rem;
    }

    .about-panel {
      padding: 2rem;
    }
  }

  @media (max-width: 767px) {
    .cta-panel {
      text-align: center;
    }

    .cta-panel .d-flex {
      flex-direction: column;
      gap: 1rem;
    }

    .cta-panel .btn {
      width: 100%;
      min-width: auto;
    }
  }

  @media (max-width: 991px) {
    .cta-panel {
      padding: 2rem 1.5rem;
    }

    .about-panel {
      padding: 2rem;
    }
  }

  @media (max-width: 575px) {
    .cta-panel {
      text-align: center;
    }

    .cta-panel .btn {
      width: 100%;
    }

    .cta-panel .d-flex {
      flex-direction: column;
      gap: 1rem;
    }
  }

/* Fix: stray properties removed */

/* --- 3. CARDS Y SECCIONES CON ESTILO PREMIUM --- */
.bg-light {
  background-color: rgba(255, 255, 129, 0.42) !important;
}

.info-card, .program-card, .donation-card, .board-photo-card, .board-member {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.info-card:hover, .program-card:hover, .donation-card:hover, .board-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 122, 61, 0.1);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.program-card h4,
.donation-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}


.ally-logo {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: 0.04em;
}
.board-photo {
  border-radius: 20px;
  overflow: hidden;
  background: #e9edf2;
}

.board-photo img {
  transition: transform 0.5s ease;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.board-photo-card:hover img {
  transform: scale(1.03);
}

.member-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-green), var(--color-blue));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* --- 5. DETALLES QUE MARCAN LA DIFERENCIA --- */
.eyebrow {
  display: inline-block;
  background: rgba(0, 122, 61, 0.08);
  color: var(--color-green);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.link-primary {
  color: var(--color-green);
  font-weight: 700;
}

.link-primary:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.gallery-grid {
  column-gap: 1.5rem;
}

.gallery-item img {
  border-radius: 24px;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ally-logo {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.ally-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.badge.bg-primary.bg-opacity-10 {
  background-color: rgba(0, 122, 61, 0.08) !important;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
}

.form-control {
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  border: 2px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(0, 122, 61, 0.1);
  background-color: white;
}

.volunteer-form, .contact-form {
  background: white;
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1);
}

.program-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2rem;
}


.program-card-toggle {
  cursor: pointer;
}

.program-card-toggle:focus-visible {
  outline: 3px solid rgba(255, 159, 67, 0.45);
  outline-offset: 2px;
}

.program-detail {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.program-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-programas .row.g-4 {
  align-items: flex-start;
}

.page-programas .program-card {
  height: auto !important;
}

.page-programas .program-mini-photo {
  width: min(100%, 240px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: #eef2f7;
  aspect-ratio: 4 / 3;
}

.page-programas .program-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .page-programas .program-mini-photo {
    width: min(100%, 220px);
  }
}

.section {
  padding: 5rem 0;
}

/* Mobile fixes: avoid oversized hero and horizontal overflow on home */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  main {
    max-width: 100%;
    padding-top: 72px;
  }

  .site-header {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(11, 12, 16, 0.08);
  }

  .home .hero-section {
    min-height: auto;
    align-items: flex-start !important;
    padding: 1rem 0 2rem;
  }

  .home .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .home .hero-panel {
    padding: 1.5rem;
    border-radius: 24px;
    max-width: 100%;
    overflow: hidden;
  }

  .home .eyebrow {
    white-space: normal;
    line-height: 1.35;
  }

  .home .hero-actions {
    width: 100%;
  }

  .home .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }
}

/* Final mobile lock for homepage: highest-priority overrides */
@media (max-width: 767px) {
  body.home,
  body.home #main-content {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  body.home #main-content {
    padding-top: 72px !important;
    margin: 0 auto !important;
  }

  body.home .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 6px 24px rgba(11, 12, 16, 0.08) !important;
  }

  body.home #inicio.hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 0 0 1.25rem !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  body.home #inicio .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 !important;
  }

  body.home #inicio .row {
    margin: 0 !important;
  }

  body.home #inicio .row > [class*="col-"] {
    padding: 0 !important;
  }

  body.home #inicio .hero-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  body.home #inicio .hero-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  body.home #inicio .hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

main p,
main li,
main .program-detail {
  text-align: justify;
}

main .activity-entry-text {
  text-align: left;
}

main .section-header .para,
main .section-header p.text-muted.para {
  text-align: center;
}

.home-hero-logo {
  width: min(100%, clamp(348px, 67.2vw, 816px));
  margin: 0 auto clamp(1rem, 2.2vw, 2rem);
}

.home-hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 991px) {
  .home-hero-logo {
    width: min(100%, clamp(336px, 86.4vw, 648px));
  }
}

@media (max-width: 767px) {
  .home-hero-logo {
    width: min(100%, clamp(324px, 103.2vw, 540px));
    margin-bottom: 0.85rem;
  }
}

.page-intro-image {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 12, 16, 0.08);
}

.page-quienes .page-intro-image {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.page-intro-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.program-card-toggle,
.donation-card {
  cursor: pointer;
}

.program-card-toggle:hover,
.program-card-toggle:focus-visible,
.donation-card:hover,
.donation-card:focus-visible {
  transform: translateY(-6px);
}

.eyebrow,
.section-header .eyebrow,
.badge-label {
  display: block;
  background: transparent;
  color: var(--dark);
  padding: 0;
  border-radius: 0;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 0.45rem;
}

.eyebrow,
.section-header .eyebrow,
.badge-label,
.donation-label,
.activity-entry-tag,
.overlay-label {
  display: none;
}

.badge-label {
  color: var(--dark);
}

.hero-section h1,
.section-header h1,
.section-header h2,
.page-hero .page-title,
.about-panel h2,
.program-card h4,
.donation-card h3 {
  color: var(--primary);
}

.hero-description,
.section-header .para,
.text-muted.para,
.program-card p,
.donation-card p,
.support-modal-description,
.support-modal-extra,
.support-modal-list {
  color: var(--dark);
}

.activity-entry-logo img {
  object-fit: cover;
}

.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  z-index: 1300;
}

.support-modal.active {
  display: flex;
}

.support-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  padding: 1.25rem;
}

.support-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.support-modal-media {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 122, 61, 0.08), rgba(18, 163, 230, 0.08));
}

.support-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.support-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.support-modal-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 122, 61, 0.1);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.support-modal-info h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.support-modal-description,
.support-modal-extra {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.support-modal-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--dark);
}

.support-modal-list li {
  margin-bottom: 0.55rem;
}

.support-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-modal-close:hover {
  background: rgba(0, 122, 61, 0.12);
}

/* Ajuste solicitado: titulos en verde institucional */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  color: var(--color-green) !important;
}

body.home #inicio .hero-panel h2 {
  color: var(--color-green) !important;
}

.eyebrow,
.section-header .eyebrow,
.badge-label,
.donation-label,
.activity-entry-tag,
.overlay-label {
  display: none !important;
}

.text-primary {
  color: var(--color-green) !important;
}

@media (max-width: 767px) {
  .support-modal-layout {
    grid-template-columns: 1fr;
  }

  .support-modal-media,
  .support-modal-media img {
    min-height: 220px;
  }
}

.about-panel .btn.btn-primary {
  color: var(--color-green) !important;
  border-color: rgba(0, 122, 61, 0.35);
  background: #fff;
}

.about-panel .btn.btn-primary:hover,
.about-panel .btn.btn-primary:focus-visible {
  color: #fff !important;
  border-color: var(--color-green);
  background: var(--color-green);
}

/* Fondo global visible en todas las paginas */
body {
  background-color: #ffff81 !important;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 88% 8%, rgba(245, 130, 32, 0.1) 0%, rgba(245, 130, 32, 0) 32%),
    radial-gradient(circle at 18% 86%, rgba(18, 163, 230, 0.12) 0%, rgba(18, 163, 230, 0) 28%),
    linear-gradient(180deg, #ffff81 0%, #fff9be 55%, #fffdf0 100%) !important;
}

main,
.section,
.full-width-section {
  background: transparent !important;
}

/* Refuerzo visual: evitar superficies blancas dominantes */
html,
#main-content,
main {
  background-color: transparent !important;
}

.section,
.full-width-section,
.bg-light,
.about-section,
.board-section {
  background-color: rgba(255, 255, 129, 0.34) !important;
  background-image: none !important;
}

.hero-panel,
.about-panel,
.about-image,
.programas-image,
.page-intro-image,
.info-card,
.program-card,
.donation-card,
.board-photo-card,
.board-member,
.activity-card,
.news-card,
.video-upload-card,
.video-preview-card {
  background: rgba(255, 252, 210, 0.92) !important;
}

/* Igualar desktop con movil: evitar blanco dominante en computador */
@media (min-width: 768px) {
  body {
    background-color: #ffff81 !important;
    background-image: linear-gradient(180deg, #ffff81 0%, #fff7a8 55%, #fffbe0 100%) !important;
  }

  #main-content,
  main,
  .section,
  .full-width-section,
  .bg-light,
  .about-section,
  .board-section {
    background-color: rgba(255, 255, 129, 0.55) !important;
    background-image: none !important;
  }

  .hero-panel,
  .about-panel,
  .about-image,
  .programas-image,
  .page-intro-image,
  .info-card,
  .program-card,
  .donation-card,
  .board-photo-card,
  .board-member,
  .activity-card,
  .news-card,
  .video-upload-card,
  .video-preview-card,
  .ally-logo,
  .volunteer-form,
  .contact-form {
    background: #fff7b8 !important;
  }
}

/* Mobile UX: apertura confiable de galeria y lectura natural */
@media (max-width: 767px) {
  .activity-entry {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .activity-modal,
  .gallery-modal {
    z-index: 2100;
  }

  main p,
  main li,
  main .program-detail,
  main .activity-entry-text {
    text-align: left;
  }
}

/* Quienes Somos y Equipo Directivo: textos pequenos de extremo a extremo */
.page-quienes #quienes-somos p.text-muted.para,
.page-quienes .board-section .section-header p.text-muted.para,
.page-quienes .text-muted.para {
  text-align: justify !important;
  text-justify: inter-word;
  text-align-last: left;
  max-width: 100% !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Quienes Somos: foto destacada en tarjetas de Vision/Mision/Valores */
.page-quienes .quienes-card-photo {
  width: min(100%, 220px);
  margin: 0 0 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: #eef2f7;
  aspect-ratio: 4 / 3;
}

.page-quienes .quienes-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-quienes .quienes-card-photo img.vision-photo {
  object-position: top center;
}

.page-quienes .quienes-card-photo img.focus-top-photo {
  object-fit: contain;
  object-position: top center;
}

@media (max-width: 767px) {
  .page-quienes .quienes-card-photo {
    width: min(100%, 240px);
  }
}

/* Override final para escritorio: fondo amarillo consistente */
@media (min-width: 768px) {
  html,
  body {
    background-color: #ffff81 !important;
  }

  body {
    background-image: linear-gradient(180deg, #ffff81 0%, #fff7a8 58%, #fffbe0 100%) !important;
  }

  #main-content,
  main,
  .section,
  .full-width-section {
    background: transparent !important;
  }
}
