/* Navegación de Nosotros: controles legibles y selección visible. */
#about-tabs { display: flex; gap: 6px; padding: 7px; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px #09244c0c; }
#about-tabs .nosotros-tab { grid-column: auto; min-height: 52px; height: auto; padding: 10px 20px; gap: 10px; border: 0; border-radius: 16px; box-shadow: none; font-size: 13px; line-height: 1.3; color: #526582; background: transparent; transition: background-color .2s, color .2s; }
#about-tabs .nosotros-tab:hover { background: #f4f7fc; color: #09244c; }
#about-tabs .nosotros-tab.active { background: #fde7f3; color: #bc005c; }
#about-tabs .nosotros-tab-icon { width: 32px; height: 32px; }
#about-tabs .nosotros-tab:focus-visible, .community-track:focus-visible, .community-controls button:focus-visible { outline: 3px solid #0065dc; outline-offset: 3px; }
.nosotros-tabs-wrapper { margin-bottom: 12px; }
/* Galería horizontal: la foto más cercana al centro toma el primer plano. */
.community-carousel { --slide-width: min(82%, 760px); position: relative; min-width: 0; }
.community-track { display: flex; align-items: center; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding: 14px 0 18px; scrollbar-width: none; scrollbar-color: #e785b5 #eef2f8; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.community-track::-webkit-scrollbar { display: none; }
.community-track::-webkit-scrollbar-thumb { background: #e785b5; border-radius: 8px; }
.community-track::-webkit-scrollbar-track { background: #eef2f8; }
.community-slide { flex: 0 0 var(--slide-width); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
/* Los extremos permiten centrar también la primera y la última foto. */
.community-track::before, .community-track::after { content: ''; flex: 0 0 max(0px, calc((100% - var(--slide-width)) / 2 - 24px)); }
.community-carousel .community-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; box-shadow: 0 10px 18px #09244c12; transform: perspective(1000px) translateY(var(--photo-y, 0px)) rotateY(var(--photo-angle, 0deg)) scale(var(--photo-scale, 1)); opacity: var(--photo-opacity, 1); transform-origin: center; }
.community-carousel .community-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; user-select: none; -webkit-user-drag: none; }
.community-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
@media (hover: hover) { .community-track { cursor: grab; } }
.community-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; width: max-content; max-width: 100%; margin: 0 auto; padding: 0; }
.community-controls[hidden] { display: none; }
.community-hint { display: none; }
.community-pagination { display: flex; align-items: center; }
.community-dot { display: grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.community-dot span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #bcc7d7; transition: transform .2s, background-color .2s; }
.community-dot[aria-current="true"] span { background: #ef0b72; transform: scaleX(2.8); border-radius: 4px; }
.community-arrows { display: contents; }
.community-arrows button:first-child { order: -1; }
.community-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #edf3fb; color: #004fb0; cursor: pointer; transition: color .2s, background-color .2s; }
.community-arrows button:hover:not(:disabled) { color: #fff; background: #004fb0; }
.community-arrows button:disabled { opacity: .35; cursor: default; }
.community-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.community-sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 768px) {
  .nos-cover-values { display: none; }
  #about-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 6px; padding: 7px; overflow: visible; }
  #about-tabs .nosotros-tab { justify-content: flex-start; min-height: 54px; padding: 10px; font-size: 12px; white-space: normal; text-align: left; }
  #about-tabs .nosotros-tab-icon { flex-shrink: 0; width: 28px; height: 28px; }
  .nosotros-tabs-wrapper { transform: none; margin-bottom: 32px; }
  .community-carousel { --slide-width: 90%; margin-inline: -8px; }
  .community-track { gap: 10px; padding-block: 8px 14px; }
  .community-track::before, .community-track::after { flex-basis: max(0px, calc((100% - var(--slide-width)) / 2 - 10px)); }
  .community-carousel .community-photo { aspect-ratio: 4 / 3; border-radius: 18px; }
  .community-controls { flex-wrap: nowrap; gap: 14px; }

  .community-dot { width: 24px; }
  .nos-cover-actions { gap: 10px; }
  .nos-cover-actions a { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-carousel .community-photo { transform: none; opacity: 1; }
  .community-controls button, .community-dot span, #about-tabs .nosotros-tab { transition: none; }
}

/* Encuadre especial de la foto vertical: rostros y reconocimiento al frente. */
.community-carousel .community-photo--006 img { object-position: center 27%; }
.community-heading { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
@media (max-width: 768px) {
  .community-heading { gap: 14px; margin-bottom: 20px; }
  .community-heading h2 { font-size: clamp(34px, 9vw, 42px); }
  .community-heading p { font-size: 14px; line-height: 1.65; }
}

/* Móvil: carrusel. Escritorio: mosaico original en columnas. */
.community-desktop-column { display: contents; }
@media (min-width: 769px) {
  .community-heading { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid #dce3ed; }
  .community-track { display: grid; grid-template-columns: 1.05fr 1fr .95fr; align-items: start; gap: 24px; width: min(100%, 1120px); margin: 0 auto 32px; padding: 0; overflow: visible; scroll-snap-type: none; border-radius: 0; cursor: auto; }
  .community-track::before, .community-track::after { display: none; }
  .community-desktop-column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
  .community-desktop-column:nth-child(2) { padding-top: 48px; }
  .community-desktop-column:nth-child(3) { padding-top: 16px; }
  .community-carousel .community-photo { transform: none; opacity: 1; background: #eeeae4; border-radius: 16px; box-shadow: 0 8px 24px rgba(9,36,76,.08); }
  .community-carousel .community-photo--001 { aspect-ratio: 1 / 1.08; }
  .community-carousel .community-photo--002, .community-carousel .community-photo--003 { aspect-ratio: 4 / 3; }
  .community-carousel .community-photo--005 { aspect-ratio: 1.1 / 1; }
  .community-carousel .community-photo--006 { aspect-ratio: .82 / 1; }
  .community-carousel .community-photo--004 { aspect-ratio: 1.5 / 1; }
  .community-carousel .community-photo img { object-position: center; }
  .community-carousel .community-photo--002 img, .community-carousel .community-photo--003 img, .community-carousel .community-photo--005 img { object-position: center top; }
  .community-carousel .community-photo--006 img { object-position: center 22%; }
  .community-carousel .community-controls { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .community-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-desktop-column:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; align-items: start; }
  .community-carousel .community-photo--006 { aspect-ratio: 1 / 1.1; }
  .community-carousel .community-photo--004 { margin-top: 48px; }
}
