/* Páginas institucionales: Organizadores y Patrocinadores */
.inst-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 85% 0%, rgba(15, 143, 137, 0.45), transparent 45%), linear-gradient(135deg, var(--bio-navy), var(--bio-blue));
  color: #fff;
}
.inst-hero .eyebrow { color: var(--bio-lime); }
.inst-hero h1 { max-width: 16ch; margin: 0.4rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.05; }
.inst-hero p.lead { max-width: 60ch; margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; }
.inst-section { padding: 4rem 0; }
.inst-section.alt { background: var(--bio-cream); }
.inst-section h2 { margin-bottom: 1rem; color: var(--bio-navy); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }
.inst-section .section-lead { max-width: 64ch; color: var(--bio-muted); font-size: 1.06rem; }
.inst-prose p { color: var(--bio-text); font-size: 1.04rem; line-height: 1.75; }
.inst-photo { margin: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-soft); }
.inst-photo img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center 25%; }
.inst-photo figcaption { padding: 0.8rem 1rem; background: #fff; color: var(--bio-muted); font-size: 0.9rem; }

/* Grillas de logos (organizadores, patrocinadores y franja del inicio) */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.logo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; height: 100%; min-height: 128px; padding: 1rem; border: 1px solid var(--bio-border); border-radius: 18px; background: #fff; color: var(--bio-navy); text-align: center; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.logo-card:hover, a.logo-card:focus-visible { border-color: var(--bio-teal); box-shadow: var(--shadow-soft); transform: translateY(-3px); color: var(--bio-navy); }
.logo-card img { width: 100%; max-width: 190px; height: 92px; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06); }
.logo-card span { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.logo-card small { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--bio-teal); font-size: 0.75rem; font-weight: 700; }
.logo-grid.is-sponsors .logo-card { min-height: 0; padding: 0.6rem; }
.logo-grid.is-sponsors .logo-card img { max-width: none; height: auto; aspect-ratio: 3 / 2; border-radius: 10px; mix-blend-mode: normal; filter: none; }

.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.values-grid li { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem; border: 1px solid var(--bio-border); border-radius: 16px; background: #fff; color: var(--bio-navy); font-weight: 800; }
.values-grid i { color: var(--bio-teal); font-size: 1.35rem; }

.info-cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.info-card { padding: 1.4rem; border: 1px solid var(--bio-border); border-radius: 18px; background: #fff; }
.info-card h3 { margin-bottom: 0.4rem; color: var(--bio-navy); font-size: 1.1rem; font-weight: 900; }
.info-card p { margin-bottom: 0.8rem; color: var(--bio-muted); }
.info-card .kicker { display: block; margin-bottom: 0.4rem; color: var(--bio-teal); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.info-card a { font-weight: 800; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.social-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border: 1px solid var(--bio-border); border-radius: 99px; background: #fff; color: var(--bio-navy); font-weight: 700; text-decoration: none; }
.social-links a:hover { border-color: var(--bio-teal); color: var(--bio-teal); }
.sponsor-cta { display: grid; gap: 1rem; align-items: center; padding: 2rem; border-radius: 22px; background: linear-gradient(135deg, var(--bio-navy), var(--bio-teal)); color: #fff; }
.sponsor-cta h2 { color: #fff; margin: 0; }
.sponsor-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

@media (min-width: 768px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sponsor-cta { grid-template-columns: 1fr auto; padding: 2.5rem; }
}
@media (min-width: 992px) {
  .logo-grid.is-sponsors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-card { transition: none; }
  a.logo-card:hover { transform: none; }
}

/* WA float */
#wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
#wa-float.visible { opacity: 1; pointer-events: auto; }
#wa-tooltip {
  background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.18);
  padding: 14px 16px; max-width: 230px; font-family: inherit; font-size: .9rem;
  line-height: 1.45; position: relative; transform: translateY(6px); opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}
#wa-tooltip.show { transform: translateY(0); opacity: 1; }
#wa-tooltip::after {
  content: ''; position: absolute; bottom: -8px; right: 20px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #fff;
}
#wa-tooltip .wa-brand { font-weight: 700; color: #111; margin-bottom: 4px; display: block; }
#wa-tooltip .wa-msg { color: #444; }
#wa-tooltip-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  font-size: 1rem; line-height: 1; cursor: pointer; color: #888; padding: 0;
}
#wa-btn {
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  box-shadow: 0 4px 16px rgba(37,211,102,.45); display: flex; align-items: center;
  justify-content: center; text-decoration: none;
  transition: transform .2s, box-shadow .2s; animation: wa-pulse 2.5s infinite 1s;
}
#wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
#wa-btn svg { width: 32px; height: 32px; fill: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.75), 0 0 0 8px rgba(37,211,102,.12); }
}
@media (max-width: 767px) {
  #wa-float { bottom: 80px; right: 16px; }
}
