/* =========================
   SECCION NOSOTROS
   ========================= */

.section-nosotros {
  padding: 64px 0;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.nosotros-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.nosotros-body {
  color: rgba(0,0,0,.72);
  line-height: 1.6;
  font-size: 15px;
  max-width: 56ch;
}

/* Placeholder (si no hay imagenes) */
.nosotros-placeholder {
  height: 280px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.55);
}

/* Carrusel */
.nosotros-carousel {
  position: relative;
}

.nosotros-viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.nosotros-track {
  display: flex;
  will-change: transform;
  /* Transición más elegante */
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.nosotros-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 280px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.02);
}

.nosotros-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  cursor: zoom-in;
}

/* Flechas */
.nosotros-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.nosotros-nav.prev { left: -14px; }
.nosotros-nav.next { right: -14px; }

.nosotros-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* Dots */
.nosotros-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.nosotros-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(255,255,255,.9);
  cursor: pointer;
}

.nosotros-dot.is-active {
  width: 22px;
  background: rgba(0,0,0,.75);
  border-color: rgba(0,0,0,.75);
}

/* Lightbox */
.nosotros-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.nosotros-lightbox.is-open {
  display: block;
}

.nosotros-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.nosotros-lightbox-dialog {
  position: absolute;
  inset: 40px;
  margin: auto;
  max-width: 1100px;
  max-height: calc(100vh - 80px);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.nosotros-lightbox-img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: rgba(0,0,0,.02);
}

.nosotros-lightbox-caption {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(0,0,0,.70);
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
}

.nosotros-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.nosotros-lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  margin: 0 4px;
}

@media (max-width: 980px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
  }
  .nosotros-slide { height: 240px; }
  .nosotros-nav.prev { left: 8px; }
  .nosotros-nav.next { right: 8px; }
  .nosotros-lightbox-dialog { inset: 16px; max-height: calc(100vh - 32px); }
}
