/* ================================
   NOSOTROS
   ================================ */
.nosotros {
  --tri: 70px;
  --nos-azul: #0b2e5e;               /* ajusta al azul de tu logo/menú */
  --nos-texto: var(--nos-azul);
  --nos-muted: #4b5563;
  --nos-borde: #e8ecf2;
  --nos-sombra: 0 1px 2px rgba(11, 46, 94, .06), 0 10px 22px -12px rgba(11, 46, 94, .22);
  --nos-ease: cubic-bezier(.2, .7, .2, 1);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.5rem 0;
  background: #fff;
}

/* Triángulos decorativos */
.nosotros::before,
.nosotros::after {
  content: "";
  position: absolute;
  width: var(--tri);
  height: var(--tri);
  pointer-events: none;
  z-index: -1;
}

.nosotros::before {
  top: 0;
  right: 0;
  background: var(--color-primario);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.nosotros::after {
  bottom: 0;
  left: 0;
  background: var(--nos-azul);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

/* ---------- Imagen ---------- */
.nosotros__media {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 14px 10px 30px;
}

/* Panel suave, sin bordes */
.nosotros__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 2.25rem 1.75rem 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, #fff 0, transparent 55%),
    linear-gradient(160deg, #f5f8fc 0%, #e7edf6 100%);
  border-radius: 32px;
  box-shadow: 0 28px 54px -26px rgba(11, 46, 94, .35);
  transition: transform .5s var(--nos-ease), box-shadow .5s ease;
}

/* Círculo amarillo (abajo a la derecha) */
.nosotros__panel::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -26%;
  width: 52%;
  aspect-ratio: 1;
  background: var(--color-primario);
  border-radius: 50%;
  z-index: -1;
  transition: transform .6s var(--nos-ease);
}

/* Trama de puntos (arriba a la izquierda) */
.nosotros__panel::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 96px;
  height: 80px;
  background-image: radial-gradient(var(--color-primario) 2px, transparent 2.1px);
  background-size: 16px 16px;
  opacity: .85;
  z-index: -1;
  pointer-events: none;
}

.nosotros__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .7s var(--nos-ease);
}

/* Píldora amarilla */
.nosotros__years {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem .55rem .85rem;
  color: var(--nos-azul);
  background: var(--color-primario);
  border-radius: 18px;
  box-shadow: 0 14px 26px -10px rgba(11, 46, 94, .4);
  transform: rotate(3deg);
  transition: transform .5s var(--nos-ease);
}

.nosotros__years strong {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.nosotros__years span {
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Tarjeta flotante blanca */
.nosotros__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .6rem 1.1rem .6rem .6rem;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: var(--nos-texto);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 34px -12px rgba(11, 46, 94, .35);
  transition: transform .5s var(--nos-ease);
}

.nosotros__badge i {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: .95rem;
  color: var(--nos-azul);
  background: var(--color-primario);
}

/* Hover solo en dispositivos con puntero */
@media (hover: hover) {
  .nosotros__media:hover .nosotros__panel { transform: translateY(-6px); box-shadow: 0 36px 64px -28px rgba(11, 46, 94, .45); }
  .nosotros__media:hover .nosotros__panel::before { transform: scale(1.12); }
  .nosotros__media:hover .nosotros__img   { transform: scale(1.05); }
  .nosotros__media:hover .nosotros__years { transform: rotate(-2deg) translateY(-4px); }
  .nosotros__media:hover .nosotros__badge { transform: translateY(-4px); }
}

/* ---------- Texto ---------- */
.nosotros__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nos-azul);
}

.nosotros__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primario);
}

.nosotros__titulo {
  margin-bottom: .9rem;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--nos-texto);
  text-wrap: balance;
}

.nosotros__resalte {
  color: inherit;
  background-image: linear-gradient(var(--color-primario), var(--color-primario));
  background-repeat: no-repeat;
  background-size: 100% .34em;
  background-position: 0 88%;
}

.nosotros__lead {
  max-width: 58ch;
  margin-bottom: .55rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
}

.nosotros__texto {
  max-width: 58ch;
  margin-bottom: 1.2rem;
  font-size: .92rem;
  line-height: 1.68;
  color: var(--nos-muted);
}

/* ---------- Valores (tarjetas con sombra) ---------- */
.nosotros__valores {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.nosotros__valores li {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 56px;
  padding: .55rem .85rem .55rem .6rem;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--nos-texto);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--nos-sombra);
  transition: transform .3s var(--nos-ease), box-shadow .3s ease;
}

.nosotros__icono {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: .9rem;
  color: var(--nos-azul);
  background: var(--color-primario);
  transition: transform .3s var(--nos-ease);
}

@media (hover: hover) {
  .nosotros__valores li:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -14px rgba(11, 46, 94, .35);
  }

  .nosotros__valores li:hover .nosotros__icono {
    transform: rotate(-8deg) scale(1.08);
  }
}

/* ---------- Cifras + CTA ---------- */
.nosotros__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--nos-borde);
}

.nosotros__stats {
  display: flex;
  margin: 0;
}

.nosotros__stat + .nosotros__stat {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--nos-borde);
}

.nosotros__stat dt {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--nos-azul);
}

.nosotros__stat dd {
  margin: .3rem 0 0;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nos-muted);
}

/* Botón: solo dentro de esta sección */
.nosotros .btninf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  color: var(--nos-azul);
  font-weight: 700;
}

/* ================================
   TABLET Y MÓVIL
   ================================ */
@media (max-width: 991.98px) {
  .nosotros { --tri: 52px; padding: 2.75rem 0 3rem; }

  .nosotros__media { max-width: 460px; }
  .nosotros__img   { max-height: 300px; }

  .nosotros__lead,
  .nosotros__texto { max-width: none; }
}

@media (max-width: 575.98px) {
  .nosotros { --tri: 38px; padding: 2.25rem 0 2.5rem; }

  /* Imagen compacta */
  .nosotros__media { padding: 12px 6px 26px; }
  .nosotros__panel { padding: 1.5rem 1rem 2rem; border-radius: 24px; }
  .nosotros__panel::after { width: 64px; height: 52px; top: 12px; left: 12px; background-size: 13px 13px; }
  .nosotros__img { max-height: 200px; }

  .nosotros__years { padding: .45rem .8rem .45rem .65rem; border-radius: 14px; }
  .nosotros__years strong { font-size: 1.5rem; }
  .nosotros__years span   { font-size: .6rem; }

  .nosotros__badge { padding: .5rem .9rem .5rem .5rem; font-size: .7rem; border-radius: 14px; }
  .nosotros__badge i { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; }

  /* Texto */
  .nosotros__titulo { font-size: 1.5rem; }
  .nosotros__lead   { font-size: .98rem; }
  .nosotros__texto  { font-size: .9rem; margin-bottom: 1rem; }

  /* Valores: 2 columnas con ícono arriba */
  .nosotros__valores { gap: .6rem; }
  .nosotros__valores li {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .55rem;
    padding: .8rem .75rem;
    font-size: .8rem;
  }
  .nosotros__icono { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }

  /* Cifras en 2 columnas + CTA a todo el ancho */
  .nosotros__footer { display: grid; gap: 1.1rem; }
  .nosotros__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
  .nosotros__stat + .nosotros__stat { margin-left: 0; padding-left: 0; }
  .nosotros__stat dt { font-size: 1.4rem; }
  .nosotros__stat dd { font-size: .7rem; }

  .nosotros .btninf { width: 100%; }
}

@media (max-width: 339.98px) {
  .nosotros__valores { grid-template-columns: 1fr; }
  .nosotros__valores li { flex-direction: row; align-items: center; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .nosotros__panel,
  .nosotros__panel::before,
  .nosotros__img,
  .nosotros__years,
  .nosotros__badge,
  .nosotros__valores li,
  .nosotros__icono { transition: none; }

  .nosotros__media:hover .nosotros__panel,
  .nosotros__media:hover .nosotros__panel::before,
  .nosotros__media:hover .nosotros__img,
  .nosotros__media:hover .nosotros__badge,
  .nosotros__valores li:hover,
  .nosotros__valores li:hover .nosotros__icono { transform: none; }

  .nosotros__media:hover .nosotros__years { transform: rotate(3deg); }
}