/* ──────────────────────────────────────────────────────────────────────────
   Nosotros — estilos de la página /nosotros/. Dark/urbano (Propuesta A).
   Usa tokens globales de tokens.css. Carga condicional vía is_page('nosotros').
   ────────────────────────────────────────────────────────────────────────── */

.nosotros-hero {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  padding: clamp(48px, 10vw, 120px) clamp(20px, 6vw, 64px);
}

/* Capa de fondo: placeholder oscuro de marca hasta tener la foto real; cuando el
 * <img> existe (file_exists en el PHP) cubre el área a sangre. */
.nosotros-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 72% 18%, var(--gray-800) 0%, transparent 60%),
    linear-gradient(160deg, var(--gray-900) 0%, var(--black) 72%);
}
.nosotros-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Overlay para legibilidad del texto abajo-izquierda (mismo lenguaje que el home). */
.nosotros-hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
}

.nosotros-hero__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }

.nosotros-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-size: clamp(3rem, 9vw, 7.5rem);
  margin: 0 0 24px;
  color: var(--white);
}

.nosotros-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gray-300);
  max-width: 48ch;
  margin: 0;
}

/* ── HISTORIA ────────────────────────────────────────────────────────────── */
.nosotros-historia {
  background: var(--gray-900);
  color: var(--white);
  padding: clamp(64px, 10vw, 140px) clamp(20px, 6vw, 64px);
}

.nosotros-historia__inner { max-width: 760px; margin: 0 auto; }

.nosotros-historia__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.nosotros-historia__heading {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 28px;
  color: var(--white);
}

.nosotros-historia__body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--gray-100);
  max-width: 65ch;
  margin: 0;
}

/* ── VALORES ─────────────────────────────────────────────────────────────── */
.nosotros-valores {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 64px);
}

.nosotros-valores__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-700);
  border: 1px solid var(--gray-700);
}

.nosotros-valores__item {
  background: var(--gray-900);
  padding: clamp(28px, 4vw, 48px);
}

.nosotros-valores__nombre {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 14px;
  color: var(--white);
}

.nosotros-valores__desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--gray-300);
  margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.nosotros-cta {
  background: var(--white);
  color: var(--black);
  padding: clamp(64px, 10vw, 140px) clamp(20px, 6vw, 64px);
  text-align: center;
}

.nosotros-cta__inner { max-width: 760px; margin: 0 auto; }

.nosotros-cta__heading {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin: 0 0 20px;
  color: var(--black);
}

.nosotros-cta__sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--gray-600);
  margin: 0 0 40px;
}

.nosotros-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.nosotros-cta__btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  padding: 16px 44px;
  min-height: 44px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out-expo), background 0.25s ease, color 0.25s ease;
}

.nosotros-cta__btn--primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.nosotros-cta__btn--primary:hover { transform: translateY(-2px); }

.nosotros-cta__btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.nosotros-cta__btn--ghost:hover { background: var(--black); color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nosotros-valores__inner { grid-template-columns: 1fr; }
  .nosotros-cta__actions   { flex-direction: column; align-items: stretch; }
}
