/* ══════════════════════════════════════════════════════
   LOVIT — nosotros.css v3
══════════════════════════════════════════════════════ */

/* ── Nav sobre fondo blanco ──────────────────────────── */
.nav--light .nav__link        { color: var(--black); }
.nav--light .nav__link::after { background: var(--blue); }
.nav--light .nav__burger span { background: var(--black); }
.nav--light .nav__cta {
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
}
.nav--light .nav__cta:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Hero: eyebrow centrado, 100px de padding top extra ─ */
.nos-hero {
  padding: calc(var(--nav-h) + 100px) 28px 48px;
  text-align: center;
  border-bottom: none;
}
.nos-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

/* ── Foto grupal: max 1200px centrado ───────────────── */
.nos-foto {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 28px;
}
.nos-foto img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Historia: centrada max 1000px, texto justificado ── */
.nos-historia {
  padding: 72px 28px 80px;
  border-bottom: none;
}
.nos-historia__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nos-historia__inner p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.78;
  color: #444;
  text-align: justify;
  text-align-last: left;         /* última línea a la izquierda */
  hyphens: auto;                 /* corte de palabras sin lagunas */
  -webkit-hyphens: auto;
}

/* ── Bloque compartido: inner max 1200px centrado ───── */
.nos-bloque-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Logos grid: 8 por línea ─────────────────────────── */
.nos-clientes {
  padding: 80px 0;
  border-bottom: none;
}
.nos-tecnologia {
  padding: 80px 0;
  border-bottom: 0.5px solid rgba(0,0,255,0.2);
  background: var(--blue);
}
.nos-clientes .section-header,
.nos-tecnologia .section-header {
  margin-bottom: 40px;
  border-bottom-color: rgba(255,255,255,0.15);
}
.nos-tecnologia .section-label { color: rgba(255,255,255,0.45); }

.nos-logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
}


.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  border: 0.5px solid rgba(0,0,0,0.07);
  transition: background 0.3s var(--ease);
  min-height: 88px;
}
.logo-item:hover { background: var(--gray-lt); }

.logo-item img {
  width: 100%;
  max-width: 144px;
  height: 53px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.logo-item:hover img { opacity: 0.8; }



/* ── Equipo: grilla sin espacios, proporción 4:5 ─────── */
.nos-equipo { padding-top: 80px; }
.nos-equipo .section-header { margin-bottom: 32px; }

.nos-equipo__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.miembro {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: none;
}
.miembro__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: var(--gray-lt);
  transition: transform 0.6s var(--ease);
}
.miembro:hover .miembro__img { transform: scale(1.05); }

.miembro__hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,255,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 12px;
  transition: background 0.4s var(--ease);
}
.miembro:hover .miembro__hover { background: rgba(0,0,255,0.85); }

.miembro__nombre {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}
.miembro__cargo {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0);
  text-align: center;
  margin-top: 3px;
  letter-spacing: 0.03em;
  transition: color 0.3s var(--ease) 0.05s;
}
.miembro:hover .miembro__nombre { color: var(--white); }
.miembro:hover .miembro__cargo  { color: rgba(255,255,255,0.75); }

/* CTA bajo la grilla */
.nos-equipo__cta {
  display: flex;
  justify-content: center;
  padding: 80px 28px;
  border-top: none;
}


/* ── Tecnología Propia: 2 columnas ─────────────────── */
.nos-tecno-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.nos-tecno-titulo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.nos-tecno-texto p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Grilla 5 logos: 3 primera fila, 2 segunda */
.tecno-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.tecno-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 0.5px solid rgba(255,255,255,0.15);
  min-height: 90px;
  transition: background 0.3s var(--ease);
}
.tecno-logo-item:hover { background: rgba(255,255,255,0.08); }
.tecno-logo-item img {
  width: 100%;
  max-width: 130px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.tecno-logo-item:hover img { opacity: 1; }

/* 4to y 5to logo centrados en segunda fila */
.tecno-logo-item:nth-child(4) { grid-column: 1; }
.tecno-logo-item:nth-child(5) { grid-column: 2; }

/* ── Párrafos multiidioma ────────────────────────────── */
.nos-lang {
  padding-top: 20px;
  border-top: 0.5px solid rgba(0,0,0,0.07);
  color: #888;
  font-size: 15px;
}
/* Chino: fallback a fuentes del sistema CJK */
.nos-lang--zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
               "SimHei", "WenQuanYi Micro Hei", sans-serif;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .nos-logos-grid   { grid-template-columns: repeat(4, 1fr); }
  .nos-logos-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .nos-equipo__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .nos-historia__inner p { text-align: left; hyphens: none; }
  .nos-logos-grid   { grid-template-columns: repeat(4, 1fr); }
  .nos-tecno-layout { grid-template-columns: 1fr; gap: 40px; }
  .nos-equipo__grid { grid-template-columns: repeat(3, 1fr); }
  /* Mobile: sin hover azul forzado — imagen natural */
  .miembro__hover   { background: rgba(0,0,255,0) !important; }
  .miembro__nombre,
  .miembro__cargo   { color: rgba(255,255,255,0) !important; }
}
@media (max-width: 480px) {
  .nos-logos-grid   { grid-template-columns: repeat(2, 1fr); }
  .tecno-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .nos-equipo__grid { grid-template-columns: repeat(2, 1fr); }
}
