/* ============================================================
   UNCOGA — Estilos principales
   Colores: Navy #1B3A8C | Rojo #CC1818 | Gris claro #F5F5F5
   ============================================================ */

:root {
  --navy: #1B3A8C;
  --red: #CC1818;
  --light-bg: #F5F5F5;
  --text: #333333;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  margin: 0;
}

/* ──────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────── */
.uncoga-nav {
  background-color: var(--navy);
  padding: 0.5rem 0;
  z-index: 1000;
}

.uncoga-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
  position: relative;
}

.uncoga-nav .nav-link.active,
.uncoga-nav .nav-link:hover {
  color: #fff !important;
}

.uncoga-nav .nav-link.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.uncoga-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
}

/* Navbar transparente en el home */
.page-home .uncoga-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition: background 0.35s ease;
  z-index: 1020;
}

.page-home .uncoga-nav.nav-scrolled {
  background: var(--navy);
}

/* ──────────────────────────────────────────────
   BOTONES
   ────────────────────────────────────────────── */
.btn-uncoga-red {
  background-color: var(--red);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-uncoga-red:hover {
  background-color: #aa1212;
  color: #fff;
  transform: translateY(-1px);
}

.btn-uncoga-navy {
  background-color: var(--navy);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-uncoga-navy:hover {
  background-color: #142d6e;
  color: #fff;
  transform: translateY(-1px);
}

.btn-uncoga-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.45rem 1.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-uncoga-outline-red:hover {
  background: var(--red);
  color: #fff;
}

/* ──────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
  padding: 3rem 0;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  font-weight: 400;
}

.hero-content h1 strong {
  font-weight: 800;
}

.hero-content h1 em {
  text-decoration: underline var(--red);
  font-style: normal;
}

/* Carta blanca que aparece sobre el hero */
.hero-white-card {
  background: #fff;
  border-radius: 2rem 2rem 0 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ──────────────────────────────────────────────
   SOBRE NOSOTROS
   ────────────────────────────────────────────── */
.about-section {
  padding: 4rem 0 3rem;
}

.about-section h2 {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.about-img {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  max-height: 420px;
}

/* ──────────────────────────────────────────────
   SECCIONES CON TÍTULO NAVY
   ────────────────────────────────────────────── */
.section-title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

/* ──────────────────────────────────────────────
   UNIDADES DE NEGOCIO
   ────────────────────────────────────────────── */
.business-section {
  background: var(--light-bg);
  padding: 4rem 0;
}

.business-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.business-card img {
  max-height: 80px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ──────────────────────────────────────────────
   SOCIOS
   ────────────────────────────────────────────── */
.partners-section {
  padding: 4rem 0;
  background: #fff;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.partner-logo-wrap {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  max-height: 120px;
  max-width: 170px;
  object-fit: contain;
}

.partner-item p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
  max-width: 130px;
}

/* ──────────────────────────────────────────────
   CTA BANNER
   ────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  background: var(--navy);
  background-image: url("../images/cta-bg.9829199ab57f.png");
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  margin: 0 2rem;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 140, 0.85);
}

.cta-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

.cta-inner p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.uncoga-footer {
  background: #fff;
  border-top: 1px solid #eee;
}

.uncoga-footer img {
  height: 70px;
  width: auto;
  max-width: 100%;
}

.footer-contact p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #444;
}

.footer-contact i {
  color: var(--navy);
  margin-right: 0.5rem;
}

.footer-watermark {
  overflow: hidden;
}

.watermark-text {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(204, 24, 24, 0.08);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  line-height: 1;
}

.footer-bottom {
  background: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #666;
}

/* ──────────────────────────────────────────────
   PÁGINAS INTERIORES — HEADER
   ────────────────────────────────────────────── */
.page-header {
  background-color: var(--navy);
  color: #fff;
  padding: 4rem 0 3rem;
}

.page-header h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ──────────────────────────────────────────────
   ACORDEÓN (Compromiso social)
   ────────────────────────────────────────────── */
.uncoga-accordion .accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.uncoga-accordion .accordion-button {
  font-weight: 600;
  color: var(--red);
  background: #fff;
  font-size: 1rem;
}

.uncoga-accordion .accordion-button::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23CC1818'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.uncoga-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  box-shadow: none;
}

.uncoga-accordion .accordion-button::after {
  display: none;
}

.uncoga-accordion .accordion-button .chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.uncoga-accordion .accordion-button.collapsed .chevron {
  transform: rotate(0deg);
}

.uncoga-accordion .accordion-button:not(.collapsed) .chevron {
  transform: rotate(180deg);
}

/* ──────────────────────────────────────────────
   NOVEDADES
   ────────────────────────────────────────────── */
.news-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-body .date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.news-card-body h4 {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ──────────────────────────────────────────────
   FORMULARIOS
   ────────────────────────────────────────────── */
.uncoga-form .form-control,
.uncoga-form .form-select {
  border-radius: 0.6rem;
  border: 1.5px solid #ddd;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.uncoga-form .form-control:focus,
.uncoga-form .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,140,0.12);
}

.uncoga-form label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* ──────────────────────────────────────────────
   MISIÓN / VISIÓN / VALORES — TABS
   ────────────────────────────────────────────── */
.mvv-tab-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.mvv-tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.mvv-tab-btn:hover:not(.active) {
  background: rgba(27, 58, 140, 0.07);
}

.mvv-tab-content {
  display: none;
}

.mvv-tab-content.active {
  display: block;
}

/* ──────────────────────────────────────────────
   CONSEJO DE ADMINISTRACIÓN
   ────────────────────────────────────────────── */
.director-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2.25rem 0.5rem 0.75rem;
  box-shadow: 1.5px 3px 7px rgba(0, 60, 179, 0.13);
  text-align: center;
  position: relative;
  margin-top: 3rem;
  height: 100%;
}
.director-photo {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 7.5rem;
  overflow: hidden;
  border-radius: 0.4rem;
}
.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.director-cargo {
  margin: 5rem 0 0.25rem;
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
}
.director-nombre {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #323338;
  line-height: 1.2;
}
.director-coop {
  margin: 0;
  font-size: 0.6rem;
  color: #808080;
  line-height: 1.3;
  padding: 0 0.25rem;
}

/* ──────────────────────────────────────────────
   ACORDEÓN DE UBICACIONES (Carnicerias / Feedlot)
   ────────────────────────────────────────────── */
.location-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-item {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.location-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #fff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
}

.location-btn:hover {
  background: #fafafa;
}

.location-chevron {
  flex-shrink: 0;
  color: #888;
  font-size: 0.8rem;
}

.location-body {
  padding: 0.5rem 1rem 0.85rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* ──────────────────────────────────────────────
   SUMATE
   ────────────────────────────────────────────── */
.sumate-hero {
  background: var(--navy);
  padding: 4rem 0 5rem;
  color: #fff;
}

.sumate-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.sumate-title span {
  font-weight: 400;
}

.sumate-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 480px;
}

.sumate-img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  max-height: 320px;
}

.sumate-form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  color: var(--text);
}

.sumate-form label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.sumate-jobs {
  padding: 4rem 0 5rem;
  background: #fff;
}

.job-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
}

.job-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.job-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.job-card-body {
  padding: 1.25rem;
}

.job-card-body h4 {
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.job-card-body p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

/* Evita overflow horizontal en mobile cuando algún elemento se desborda */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLET y abajo  (≤ 991.98px) — colapsa el navbar
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 991.98px) {

  /* — NAVBAR — */
  .uncoga-nav {
    padding: 0.4rem 0;
  }
  .uncoga-logo {
    height: 38px !important;
  }
  .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
    padding: 0.35rem 0.55rem;
  }
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
  }
  /* Menú desplegable en mobile: fondo navy aunque el nav del home sea transparente */
  .uncoga-nav .navbar-collapse {
    background: var(--navy);
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem 1rem;
  }
  .uncoga-nav .navbar-nav {
    gap: 0 !important;
  }
  .uncoga-nav .nav-link {
    padding: 0.7rem 0.25rem !important;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .uncoga-nav .nav-link.active::after {
    left: 0;
    right: auto;
    width: 24px;
    bottom: 0.45rem;
  }
  .page-home .uncoga-nav.menu-open {
    background: var(--navy);
  }

  /* — HERO — */
  .hero-section { min-height: 520px; }
  .hero-content { padding: 2.5rem 0 3rem; }

  /* — MVV (Misión / Visión / Valores) — */
  .mvv-tab-btn {
    max-width: 100%;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
  /* En tablet, los botones quedan en fila, no en columna */
  #mvvTabs.d-flex {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem !important;
  }
  #mvvTabs .mvv-tab-btn {
    flex: 1 1 calc(33% - 0.6rem);
    min-width: 100px;
  }

  /* — Page header (interiores) — */
  .page-header { padding: 3rem 0 2.25rem; }

  /* — Carnicerias / Feedlot: mapa más bajo — */
  section iframe[title^="Mapa"] {
    height: 380px !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE  (≤ 767.98px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 767.98px) {

  /* — Tipografías y radios globales — */
  .hero-section { min-height: 460px; }
  .hero-content { max-width: 100%; padding: 2rem 0 2.5rem; }
  .hero-content h1 { font-size: 1.75rem; line-height: 1.25; }

  .hero-white-card {
    border-radius: 1.25rem 1.25rem 0 0;
    margin-top: -1.25rem;
  }

  /* — Sobre nosotros (home) — */
  .about-section { padding: 2.5rem 0 2rem; }
  .about-section h2 { font-size: 1.75rem; line-height: 1.15; }
  .about-section h2 br,
  .quienes-h2 br { display: none; }
  .about-img { max-height: 260px; border-radius: 1rem; }

  /* — Secciones genéricas — */
  .section-title { margin-bottom: 1.75rem; }
  .section-subtitle { font-size: 0.92rem; padding: 0 0.5rem; }

  /* — Unidades de negocio — */
  .business-section { padding: 2.5rem 0; }
  .business-card { padding: 1.5rem; gap: 1rem; }
  .business-card img { max-height: 60px; }

  /* — Socios — */
  .partners-section { padding: 2.5rem 0; }
  .partner-logo-wrap { height: 90px; }
  .partner-item img { max-height: 80px; max-width: 130px; }
  .partner-item p { font-size: 0.75rem; max-width: 100%; }

  /* — CTA banner — */
  .cta-banner {
    margin: 0;
    padding: 2.5rem 1.25rem;
    border-radius: 1rem;
  }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .cta-banner .btn-lg {
    padding: 0.6rem 2rem !important;
    font-size: 0.95rem;
  }

  /* — Page header (interiores) — */
  .page-header { padding: 2.5rem 0 2rem; }
  .page-header h1 { font-size: 1.7rem; }
  .page-header p { font-size: 0.95rem; }

  /* — Footer — */
  .uncoga-footer .row { text-align: center; }
  .uncoga-footer .row > [class^="col"] { margin-bottom: 1rem; }
  .uncoga-footer .row > [class^="col"]:last-child { margin-bottom: 0; }
  .footer-contact p { justify-content: center; font-size: 0.88rem; }
  .footer-contact i { display: inline-block; }
  .watermark-text { font-size: 2.6rem; }

  /* — MVV tabs en mobile chico: stack — */
  #mvvTabs.d-flex {
    flex-direction: column !important;
  }
  #mvvTabs .mvv-tab-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* — Acordeón compromiso social — */
  .uncoga-accordion .accordion-button {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    line-height: 1.3;
  }
  .uncoga-accordion .accordion-button::before {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
  }
  .uncoga-accordion .accordion-body {
    padding: 0.75rem 1rem 1rem !important;
    font-size: 0.92rem;
  }

  /* — Consejo de administración — */
  .director-card {
    padding: 1.75rem 0.4rem 0.6rem;
    margin-top: 2.5rem;
  }
  .director-photo {
    height: 6rem;
    top: -2rem;
  }
  .director-cargo { margin-top: 4rem; font-size: 0.78rem; }
  .director-nombre { font-size: 0.72rem; }
  .director-coop { font-size: 0.58rem; }

  /* — Novedades — */
  .news-card img { height: 180px; }
  .news-card-body { padding: 1.25rem; }
  .news-card-body h4 { font-size: 1rem; }

  /* — Sumate — */
  .sumate-hero { padding: 2.5rem 0 3rem; }
  .sumate-title { font-size: 1.85rem; line-height: 1.1; }
  .sumate-subtitle { font-size: 0.92rem; max-width: 100%; }
  .sumate-img { max-height: 220px; margin-bottom: 1rem; }
  .sumate-form { padding: 1.5rem; border-radius: 0.85rem; }
  .sumate-jobs { padding: 2.5rem 0 3rem; }
  .job-card img { height: 160px; }
  .job-card-body { padding: 1rem; }

  /* — Carnicerias / Feedlot — */
  section iframe[title^="Mapa"] {
    height: 320px !important;
    border-radius: 0.5rem;
  }

  /* — Formularios — */
  .uncoga-form .form-control,
  .uncoga-form .form-select {
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
  }

  /* — Botones grandes globales — */
  .btn-lg {
    font-size: 0.95rem;
    padding: 0.55rem 1.5rem;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE pequeño  (≤ 480px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {

  .uncoga-logo { height: 32px !important; }

  .hero-section { min-height: 420px; }
  .hero-content h1 { font-size: 1.5rem; }

  .about-section h2 { font-size: 1.5rem; }

  .section-title { font-size: 1.4rem; }

  .business-card { padding: 1.25rem; }

  .cta-banner { padding: 2rem 1rem; }
  .cta-banner h2 { font-size: 1.25rem; }

  .partner-logo-wrap { height: 80px; }
  .partner-item img { max-height: 70px; max-width: 110px; }

  .sumate-title { font-size: 1.6rem; }

  /* Consejo: una sola columna en pantallas muy chicas */
  .director-card { margin-top: 2.75rem; }
}

/* ── Galería "Sobre nosotros" (Quiénes somos) ──
   Cuadrícula que se autoajusta según la cantidad de fotos. */
.quienes-galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.quienes-galeria-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.5rem;
  display: block;
}
/* Una sola foto: ocupa todo el ancho y respeta su proporción */
.quienes-galeria:has(.quienes-galeria-img:only-child) {
  grid-template-columns: 1fr;
}
.quienes-galeria:has(.quienes-galeria-img:only-child) .quienes-galeria-img {
  aspect-ratio: auto;
  max-height: 480px;
}
/* Cantidad impar: la última foto ocupa las dos columnas para no dejar hueco */
.quienes-galeria .quienes-galeria-img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
