/* =========================================================
   nosotros.css — Estilos exclusivos para nosotros.html
   Depende de styles.css para las variables y utilidades base
   ========================================================= */

/* =========================================================
   HERO — ¿Quiénes somos?
   2 columnas: copia izquierda | foto derecha
   ========================================================= */
.nos-hero {
  padding: var(--sp-4) 0 var(--sp-5);
  background: var(--blanco);
  position: relative;
  overflow: hidden;
}

/* Decoración de puntos — esquina superior derecha */
.nos-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(var(--naranja) 22%, transparent 23%);
  background-size: 14px 14px;
  opacity: .18;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at top right, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at top right, #000 30%, transparent 72%);
}

.nos-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--maxw)) !important;
  max-width: var(--maxw) !important;
}

/* Copy */
.nos-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nos-kicker {
  margin-bottom: 0;
}

.nos-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--azul-900);
  line-height: 1.05;
  margin: 0;
}

.nos-hero-lead {
  font-size: var(--fs-lg);
  color: var(--gris-700);
  margin: 0;
  line-height: 1.7;
  max-width: 52ch;
}

.nos-hero-sub {
  font-size: var(--fs-base);
  color: var(--gris-500);
  margin: 0;
  line-height: 1.7;
  max-width: 52ch;
}

/* Logos OHS × Renee */
.nos-brands {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: .6rem 0;
}

.nos-brand-raw-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nos-brand-x {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--azul-900);
  opacity: .5;
}

.nos-cta {
  align-self: flex-start;
  margin-top: .5rem;
}

/* Foto */
.nos-hero-fig {
  margin: 0;
  position: relative;
  border-radius: 0 !important;
  overflow: visible;
  /* Permite que el badge salga fuera de la foto */
  box-shadow: none !important;
  width: 100%;
  aspect-ratio: 1.25;
  justify-self: end;
  /* Empuja la foto hacia la derecha del grid */
  background: #ffffff !important;
}

/* El recorte de la imagen se aplica en el elemento img directamente */
.nos-hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nos-hero-badge {
  position: absolute;
  left: -60px;
  /* Sale hacia la izquierda, fuera del borde de la foto */
  bottom: 28px;
  background: #1e2b85;
  color: var(--blanco);
  padding: 1.6rem 2.2rem;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  z-index: 10;
  white-space: nowrap;
}

.nos-hero-badge strong {
  color: var(--naranja);
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
}

/* =========================================================
   MISIÓN / VISIÓN / VALORES — 3 tarjetas
   ========================================================= */
.nos-mvv {
  background: var(--blanco) !important;
}

.nos-mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem !important;
  margin-top: var(--sp-4);
}

/* Tarjeta base: Blancas por defecto */
.nos-mvv-card {
  position: relative;
  background: var(--blanco) !important;
  color: var(--gris-700) !important;
  border-radius: 20px !important;
  padding: 2.25rem 2rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 102, 0.05) !important;
  border: 1px solid rgba(0, 0, 102, 0.04) !important;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  min-height: 270px;
}

.nos-mvv-card h3 {
  font-family: var(--font-display);
  color: var(--azul-900) !important;
  font-size: 2.25rem !important;
  font-weight: 800;
  margin: 0;
  transition: color .3s var(--ease);
}

.nos-mvv-card p {
  color: var(--gris-600) !important;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  transition: color .3s var(--ease);
}

/* Hover de las tarjetas: Cambian a degradado azul */
.nos-mvv-card:hover {
  background: var(--degradado-azul) !important;
  color: var(--blanco) !important;
  border-color: transparent !important;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 102, 0.22) !important;
}

.nos-mvv-card:hover h3 {
  color: var(--blanco) !important;
}

.nos-mvv-card:hover p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.nos-mvv-card:hover .nos-mvv-badge-icon {
  background: var(--blanco) !important;
}

/* Cabecera y badge de las tarjetas */
.nos-mvv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nos-mvv-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--naranja) !important;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nos-mvv-badge-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Lista de Valores como píldoras */
.nos-valores-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.nos-valores-pills span {
  background: #f1f5f9 !important;
  color: var(--azul-900) !important;
  border: none !important;
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}

.nos-valores-pills span:hover {
  background: var(--naranja) !important;
  color: var(--azul-900) !important;
}

/* Al pasar el mouse sobre la tarjeta, las píldoras cambian a blanco */
.nos-mvv-card:hover .nos-valores-pills span {
  background: var(--blanco) !important;
  color: var(--azul-900) !important;
}

.nos-mvv-card:hover .nos-valores-pills span:hover {
  background: var(--naranja) !important;
  color: var(--azul-900) !important;
}

/* =========================================================
   ¿POR QUÉ ELEGIRNOS? — cuadrícula de 6 ventajas con marcadores de fotos
   ========================================================= */
.nos-porque {
  background: var(--blanco);
  padding: var(--sp-6) 0;
}

.nos-porque-sub {
  color: var(--gris-500);
  font-size: var(--fs-base);
  margin: -0.6rem 0 var(--sp-3);
  max-width: 64ch;
}

.nos-advantages-kicker {
  color: var(--naranja);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nos-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

/* Tarjeta individual */
.nos-advantage-card {
  background: var(--blanco);
  border-radius: 20px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 102, 0.04) !important;
  border: 1px solid var(--gris-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.55s ease, transform 0.55s var(--ease);
}

.nos-advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Animaciones Reveal */
.nos-advantage-card.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.nos-advantage-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marcador de posición de imagen (diagonal lines crossed) */
.nos-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: #f3f4f6;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gris-300);
}

.nos-card-img-placeholder::before,
.nos-card-img-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nos-card-img-placeholder::before {
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--gris-300) 50%, transparent calc(50% + 1px));
}

.nos-card-img-placeholder::after {
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--gris-300) 50%, transparent calc(50% + 1px));
}

/* Cuerpo de la tarjeta */
.nos-card-content {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.nos-card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem !important;
  line-height: 1;
  color: #d1dced !important;
  /* Gris-azul claro como el boceto */
  flex-shrink: 0;
  margin-top: -2px;
}

.nos-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nos-card-text h3 {
  font-size: 1.25rem !important;
  font-weight: 800;
  color: var(--azul-900) !important;
  margin: 0;
}

.nos-card-text p {
  color: var(--gris-600);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.5;
}

/* CTA final */
.nos-porque-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--gris-100);
}

.nos-porque-cta .btn-primary {
  background: var(--naranja) !important;
  border-color: var(--naranja) !important;
  color: var(--negro) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.8rem 2.2rem !important;
  transition: all 0.3s var(--ease) !important;
}

.nos-porque-cta .btn-primary:hover {
  background: var(--naranja-600) !important;
  border-color: var(--naranja-600) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

.nos-porque-cta .btn-outline {
  background: transparent !important;
  border: 2px solid var(--azul) !important;
  color: var(--azul) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.8rem 2.2rem !important;
  transition: all 0.3s var(--ease) !important;
}

.nos-porque-cta .btn-outline:hover {
  background: var(--azul-050) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}