/* Emisora Historia de un Legado — design system (Material-inspired, restrained glass) */

:root {
  --white-color: #ffffff;
  --primary-color: #1b6b45;
  --primary-dark: #134d32;
  --primary-soft: #e8f4ec;
  --secondary-color: #2c3e50;
  --section-bg-color: #f3f6f4;
  --site-footer-bg-color: #163226;
  --custom-btn-bg-color: #1b6b45;
  --custom-btn-bg-hover-color: #c9a227;
  --dark-color: #14201a;
  --p-color: #3d4a44;
  --border-color: #dce6df;
  --gold: #c9a227;
  --gold-soft: #f7efd6;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 8px 24px rgba(20, 32, 26, 0.08);
  --shadow-card: 0 12px 32px rgba(20, 32, 26, 0.12);
  --radius: 16px;
  --focus: 3px solid var(--gold);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--section-bg-color);
  color: var(--p-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  color: var(--dark-color);
}

h2 {
  color: var(--primary-dark);
}

h5 {
  color: var(--primary-color);
}

p, ul li {
  font-weight: 400;
  line-height: 1.65;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
iframe:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  background: var(--gold);
  color: var(--dark-color);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--dark-color);
}

body.is-dialog-open {
  overflow: hidden;
}

/* Top information bar */
.top-info-bar {
  background: linear-gradient(90deg, #134d32 0%, #1b6b45 60%, #1f7a4e 100%);
  color: #fff;
  padding: 5px 0;
  font-size: 13px;
}

.top-info-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
}

.top-location {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-location i {
  color: var(--gold);
}

.institutional-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: flex-end;
}

.institutional-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.institutional-links a:hover,
.institutional-links a:focus-visible {
  background: var(--gold);
  color: var(--dark-color);
  border-color: var(--gold);
}

.site-header {
  background: var(--primary-color);
  padding: 10px 0;
}

.site-header p,
.site-header p a {
  color: #fff;
  font-size: 14px;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.header-contact a {
  color: #fff;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.header-contact a:hover {
  color: var(--gold-soft);
}

.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-right: 6px;
}

.social-icon-link:hover {
  background: var(--gold);
  color: var(--dark-color);
}

.navbar {
  background: var(--glass) !important;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft) !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  max-width: min(280px, calc(100% - 56px));
  min-width: 0;
  flex: 0 1 auto;
  margin-right: 12px;
}

.navbar-brand .logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}

.navbar-brand span {
  font-size: 15px;
  line-height: 1.15;
  min-width: 0;
}

.navbar-brand small {
  color: var(--secondary-color);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  white-space: normal;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 10px !important;
  margin: 2px 1px;
  font-size: 14px;
  white-space: nowrap;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background: var(--primary-soft);
}

.navbar-nav .nav-link.custom-btn {
  background: var(--primary-color);
  color: #fff !important;
  border: 0;
  margin-top: 4px;
}

.navbar-nav .nav-link.custom-btn:hover,
.navbar-nav .nav-link.custom-btn.active {
  background: var(--gold);
  color: var(--dark-color) !important;
}

.navbar-toggler:focus-visible {
  outline: var(--focus);
}

/* Cards, surfaces */
.md-card,
.custom-text-box,
.contact-info-wrap,
.radio-section,
.facebook-box,
.bank-card,
.program-card,
.recognition-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.custom-text-box {
  padding: 32px;
}

.section-padding {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.page-kicker {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Hero */
.hero-section-full-height,
#hero-slide .carousel-item,
.carousel-image {
  min-height: 560px;
}

#hero-slide .carousel-caption {
  background: linear-gradient(180deg, transparent 20%, rgba(19, 77, 50, 0.88) 100%);
  clip-path: none;
  color: #fff;
  text-align: left;
  min-width: 0;
  min-height: 0;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px;
}

#hero-slide .carousel-caption h1,
#hero-slide .carousel-caption p {
  color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
  width: 56px;
}

/* Radio player */
.radio-bg {
  background: linear-gradient(180deg, #eef6f1 0%, #f3f6f4 100%);
  padding: 40px 0 48px;
}

.radio-stage {
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(180deg, #123526 0%, #1b6b45 48%, #eef6f1 100%);
}

.radio-stage .page-intro h2,
.radio-stage .page-intro p:not(.page-kicker) {
  color: #f4faf6;
}

.radio-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 26px 22px;
  position: relative;
  overflow: hidden;
  color: #f4faf6;
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.22), transparent 48%),
    linear-gradient(165deg, #163226 0%, #134d32 52%, #0f2a1c 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 22px 48px rgba(8, 20, 14, 0.42),
    0 0 56px rgba(201, 162, 39, 0.16);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.radio-section:hover,
.radio-section:focus-within {
  border-color: rgba(201, 162, 39, 0.7);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.28) inset,
    0 24px 56px rgba(8, 20, 14, 0.48),
    0 0 64px rgba(201, 162, 39, 0.22);
}

.radio-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.radio-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.radio-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.radio-subtitle {
  color: #d7e6dc;
  margin-top: 4px;
}

.radio-player {
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  max-width: 480px;
  padding: 12px;
  background: rgba(8, 20, 14, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.radio-player iframe {
  border: 0;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  height: 95px;
  display: block;
  background: #fff;
}

.radio-status {
  margin-top: 12px;
  font-weight: 600;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.sound-waves {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.wave {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  position: absolute;
  animation: wave 3.6s infinite;
}

.wave:nth-child(2) { animation-delay: 1.1s; }
.wave:nth-child(3) { animation-delay: 2.2s; }

@keyframes wave {
  0% { transform: scale(0.45); opacity: 0.45; }
  100% { transform: scale(1.7); opacity: 0; }
}

.eq-bars {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 22px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.eq-bars span {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--gold);
  animation: eq 1.1s ease-in-out infinite;
}

.eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { animation-delay: 0.08s; }
.eq-bars span:nth-child(5) { animation-delay: 0.22s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* Welcome dialog */
.welcome-dialog {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 20, 14, 0.72);
  padding: 16px;
}

.welcome-dialog.is-open {
  display: flex;
}

.welcome-dialog-content {
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.22), transparent 46%),
    linear-gradient(165deg, #163226 0%, #134d32 55%, #0f2a1c 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: #f4faf6;
  overflow: hidden;
}

.welcome-dialog-content > * {
  position: relative;
  z-index: 1;
}

.welcome-dialog-content .welcome-kicker,
.welcome-dialog-content p,
.welcome-dialog-content h2 {
  color: #f4faf6;
}

.welcome-dialog .welcome-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.welcome-dialog .welcome-kicker {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.welcome-dialog h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.welcome-dialog .welcome-tagline {
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 16px;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.welcome-actions a,
.welcome-actions button.welcome-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  text-decoration: none;
}

.welcome-actions .welcome-listen {
  background: var(--gold);
  color: var(--dark-color) !important;
}

.welcome-actions .welcome-history {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.welcome-dialog .close-dialog {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  z-index: 2;
}

.welcome-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
}

.welcome-waves .wave {
  border-color: rgba(201, 162, 39, 0.7);
  left: 50%;
  top: 42%;
}

/* Recognition gallery */
.recognition-section {
  background: linear-gradient(180deg, #163226 0%, #1b6b45 100%);
  color: #fff;
  overflow: hidden;
}

.recognition-section h2,
.recognition-section p,
.recognition-section figcaption {
  color: #fff;
}

.recognition-carousel {
  max-width: 1080px;
  margin: 0 auto;
}

.recognition-viewport {
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 0;
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.16), transparent 55%),
    #0b1c14;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.recognition-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: recognition-conveyor 42s linear infinite;
}

.recognition-carousel:hover .recognition-track {
  animation-play-state: paused;
}

.recognition-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.recognition-slide {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 68vw);
}

.recognition-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
}

.recognition-open:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

.recognition-slide.is-diploma {
  width: min(420px, 78vw);
}

.recognition-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  background: #0f241b;
}

.recognition-slide.is-diploma img {
  max-height: 340px;
  background: #f7f3ea;
}

@keyframes recognition-conveyor {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--recognition-shift, 50%)));
  }
}

.recognition-open:focus-visible img {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}

.recognition-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.recognition-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recognition-nav:hover,
.recognition-nav:focus-visible {
  background: var(--gold);
  color: var(--dark-color);
  border-color: var(--gold);
}

.recognition-dots {
  display: flex;
  gap: 8px;
}

.recognition-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
}

.recognition-dots button[aria-selected="true"] {
  background: var(--gold);
  transform: scale(1.2);
}

.recognition-status {
  text-align: center;
  margin: 10px 0 0;
  font-size: 13px;
  color: #d7e6dc;
}

.media-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.media-lightbox.is-open {
  display: flex;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 10, 0.84);
}

.media-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  background: #0f241b;
  border-radius: 16px;
  padding: 44px 16px 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.media-lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.media-lightbox .close-dialog {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
}

/* Programs */
.program-card {
  padding: 24px;
  height: 100%;
}

.program-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

/* Team */
.team-photo,
.founder-image,
.custom-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.founder-image {
  max-width: 520px;
}

.correspondent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 20px;
}

.correspondent-item {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 14px 16px;
}

/* Contact / forms */
.contact-form .form-control,
.custom-form .form-control {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.custom-form label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 6px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.form-feedback.success {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.form-feedback.error {
  background: #fdecea;
  color: #8a1f11;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #128c7e;
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
}

.whatsapp-btn:hover {
  background: #075e54;
  color: #fff !important;
}

.contact-info-wrap {
  padding: 28px;
}

.custom-text-box,
.contact-info-wrap,
.program-card,
.bank-card,
.correspondent-item,
.facebook-card {
  transition: box-shadow 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
}

.custom-text-box:hover,
.contact-info-wrap:hover,
.program-card:hover,
.bank-card:hover,
.correspondent-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 3rem rgba(20, 32, 26, 0.18);
}

.custom-text-box-image,
.about-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

main img.content-photo,
main img.custom-text-box-image,
main img.about-image,
main img.team-photo,
main img.founder-image,
main img.img-fluid.rounded-4 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 10px 18px rgba(12, 22, 18, 0.2),
    0 22px 44px rgba(12, 22, 18, 0.28);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

main img.content-photo:hover,
main img.custom-text-box-image:hover,
main img.about-image:hover,
main img.team-photo:hover,
main img.founder-image:hover,
main img.img-fluid.rounded-4:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 16px 28px rgba(12, 22, 18, 0.24),
    0 28px 56px rgba(12, 22, 18, 0.32);
}

.facebook-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.facebook-card:hover,
.facebook-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 1.15rem 2.75rem rgba(19, 77, 50, 0.16);
}

.facebook-card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-size: 18px;
  margin: 0 auto 8px;
}

.facebook-card img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 4px auto 10px;
}

.facebook-card h2 {
  font-size: 1.45rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.facebook-card p {
  margin-bottom: 18px;
  color: var(--p-color);
}

.facebook-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}

.facebook-card-btn:hover,
.facebook-card-btn:focus-visible {
  background: var(--gold);
  color: var(--dark-color) !important;
}

.fanpage-section {
  background: linear-gradient(180deg, #eef6f1 0%, #f3f6f4 100%);
  padding: 56px 0;
}

/* Footer */
.site-footer {
  background: var(--site-footer-bg-color);
  padding-top: 40px;
}

.site-footer-title,
.site-footer p,
.copyright-text {
  color: #e8f4ec;
}

.footer-identity h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.footer-slogan {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-description {
  color: #d7e6dc;
  font-size: 14px;
}

.footer-hint {
  color: #d7e6dc;
  font-size: 14px;
}

.footer-hint a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-menu-link,
.site-footer-link {
  color: #fff;
}

.footer-menu-link:hover,
.site-footer-link:hover {
  color: var(--gold);
}

.site-footer-bottom {
  background: rgba(0, 0, 0, 0.18);
  margin-top: 24px;
  padding: 16px 0 18px;
}

.footer-credits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-credits {
  margin: 0;
  color: #e8f4ec;
  font-size: 14px;
}

.footer-copyright {
  margin: 14px 0 0;
  text-align: center;
  color: #d7e6dc;
  font-size: 13px;
}

.footer-institutional a {
  color: #fff;
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}

/* Donate */
.donate-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}

.donate-hero .section-overlay {
  background: rgba(19, 77, 50, 0.72);
}

.legal-card h2 {
  font-size: 1.8rem;
}

.legal-card h3 {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-top: 28px;
}

/* Tables */
.table thead {
  background: var(--primary-color);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 1280px) {
  .top-info-bar .container {
    flex-wrap: nowrap;
  }

  .institutional-links {
    flex-wrap: nowrap;
  }

  .institutional-links a {
    white-space: nowrap;
  }
}

@media (max-width: 1279px) {
  .top-location {
    white-space: normal;
  }
}

@media (max-width: 1199px) {
  .navbar-brand {
    max-width: min(240px, calc(100% - 56px));
  }
}

@media (max-width: 991px) {
  .top-info-bar .container,
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  .top-location,
  .institutional-links {
    width: 100%;
    justify-content: flex-start;
  }

  .institutional-links a {
    max-width: 100%;
    white-space: normal;
  }

  .hero-section-full-height,
  #hero-slide .carousel-item,
  .carousel-image {
    min-height: 420px;
  }

  #hero-slide .carousel-caption {
    padding: 24px 20px;
  }

  .navbar-brand {
    max-width: calc(100% - 52px);
  }

  .navbar-brand .logo {
    width: 48px;
  }

  .recognition-slide {
    width: min(220px, 72vw);
  }

  .recognition-slide.is-diploma {
    width: min(280px, 82vw);
  }

  .recognition-slide img {
    max-height: 240px;
  }

  .recognition-slide.is-diploma img {
    max-height: 260px;
  }

  .footer-credits-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-credits {
    max-width: 36rem;
  }
}

@media (max-width: 575px) {
  .top-info-bar .container,
  .header-contact {
    overflow-wrap: anywhere;
  }

  a[href^="mailto:"] {
    word-break: break-all;
    max-width: 100%;
  }

  .radio-title {
    font-size: 1.15rem;
  }

  .welcome-dialog-content {
    padding: 24px 16px 18px;
  }
}

@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;
  }

  .custom-text-box:hover,
  .contact-info-wrap:hover,
  .program-card:hover,
  .bank-card:hover,
  .correspondent-item:hover,
  .facebook-card:hover,
  main img.content-photo:hover,
  main img.custom-text-box-image:hover,
  main img.about-image:hover,
  main img.team-photo:hover,
  main img.founder-image:hover,
  main img.img-fluid.rounded-4:hover,
  .radio-section:hover {
    transform: none;
  }

  .recognition-track {
    animation-name: recognition-conveyor !important;
    animation-duration: 90s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    flex-wrap: nowrap;
    width: max-content;
  }

  .recognition-set,
  .recognition-set.is-clone {
    display: flex;
    flex-wrap: nowrap;
    padding-right: 28px;
    gap: 28px;
  }
}
