/*--------------------------------------------------------------
# Nosotros
# Se carga después de aercon-theme.css.
# Para cambiar la fotografía: reemplazar img/nosotros/tecnico.webp y
# tecnico.jpg y ajustar --nos-focus (punto del encuadre: x y).
--------------------------------------------------------------*/
#nosotros {
  background: var(--bg-0);
}
#nosotros .container { width: auto; max-width: 1400px; }

.nos {
  --nos-bg: #090f1c;
  --nos-accent: #55c8ff;
  --nos-strong: #009dff;
  --nos-line: rgba(85, 200, 255, .22);
  --nos-ink: #ffffff;
  --nos-soft: #b8c4d8;
  --nos-focus: 55% 14%;
  --nos-t: 280ms;

  position: relative;
  display: grid;
  grid-template-columns: 55fr 45fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "text   media"
    "values media";
  overflow: hidden;
  background:
    radial-gradient(620px 300px at 0 0, rgba(0, 157, 255, .1), transparent 62%),
    var(--nos-bg);
  border: 1px solid var(--nos-line);
  border-radius: 20px;
  box-shadow: 0 30px 60px -36px rgba(0, 157, 255, .45);
}

/* ---------- Zona izquierda ---------- */
.nos-text { grid-area: text; padding: 44px 24px 0 48px; }

#nosotros .nos-eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--nos-accent);
}

.nos-title {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--nos-ink);
}
.nos-title span {
  display: block;
  margin-top: 4px;
  font-size: .62em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nos-accent);
}

.nos-line {
  width: 46px;
  height: 3px;
  margin: 20px 0 20px;
  border-radius: 3px;
  background: var(--nos-accent);
  box-shadow: 0 0 14px rgba(85, 200, 255, .55);
}

#nosotros .nos-desc {
  max-width: 580px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
  color: var(--nos-soft);
}

/* Valores */
.nos-values {
  grid-area: values;
  list-style: none;
  margin: 0;
  padding: 28px 24px 34px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nos-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: transform var(--nos-t) ease, background var(--nos-t) ease, border-color var(--nos-t) ease;
}
.nos-value:hover {
  transform: translateY(-3px);
  background: rgba(85, 200, 255, .06);
  border-color: var(--nos-line);
}

.nos-value__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1a33;
  border: 1px solid rgba(85, 200, 255, .6);
  border-radius: 14px;
  box-shadow: 0 0 18px -4px rgba(0, 157, 255, .5), inset 0 0 14px rgba(0, 157, 255, .12);
  transition: box-shadow var(--nos-t) ease, border-color var(--nos-t) ease;
}
.nos-value:hover .nos-value__icon {
  border-color: var(--nos-accent);
  box-shadow: 0 0 24px -2px rgba(85, 200, 255, .65), inset 0 0 16px rgba(0, 157, 255, .2);
}
.nos-value__icon img { display: block; width: 28px; height: 28px; }

.nos-value__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.nos-value__text strong { font-size: 14px; font-weight: 600; color: var(--nos-ink); }
.nos-value__text small { margin-top: 3px; font-size: 12px; color: #93a1ba; }

/* ---------- Zona derecha ---------- */
.nos-media {
  grid-area: media;
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.nos-media picture,
.nos-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.nos-photo { object-fit: cover; object-position: var(--nos-focus); }

/* Degradado: fusiona con el fondo por la izquierda y da contraste al logo y la tarjeta */
.nos-media__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--nos-bg) 0%, rgba(9, 15, 28, .86) 9%, rgba(9, 15, 28, 0) 58%),
    linear-gradient(0deg, rgba(9, 15, 28, .62) 0%, rgba(9, 15, 28, 0) 42%),
    linear-gradient(270deg, rgba(0, 70, 140, .28) 0%, rgba(0, 70, 140, 0) 45%);
}

.nos-logo {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 0 10px;
  background: rgba(9, 15, 28, .58);
  border: 1px solid var(--nos-line);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nos-logo img { display: block; width: 168px; height: auto; margin: 0; }

.nos-quote {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 20px 22px 22px;
  background: linear-gradient(135deg, rgba(85, 200, 255, .16), rgba(0, 157, 255, .06));
  border: 1px solid rgba(85, 200, 255, .38);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -22px rgba(0, 157, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.nos-quote::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: var(--nos-accent);
}
#nosotros .nos-quote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
  color: #e6eef9;
}
.nos-quote strong { font-weight: 700; color: var(--nos-accent); }

/* ---------- Pantallas medianas: valores en 2 columnas ---------- */
@media (max-width: 1199px) {
  .nos-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .nos-text { padding: 38px 20px 0 40px; }
}

/* ---------- Tablet y móvil: texto, imagen y luego valores ---------- */
@media (max-width: 991px) {
  .nos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "text"
      "media"
      "values";
  }
  .nos-text { padding: 34px 30px 26px; }
  #nosotros .nos-desc { max-width: 640px; }

  .nos-media { min-height: 0; height: clamp(300px, 66vw, 520px); }
  .nos-media__shade {
    background:
      linear-gradient(180deg, var(--nos-bg) 0%, rgba(9, 15, 28, .55) 14%, rgba(9, 15, 28, 0) 42%),
      linear-gradient(0deg, rgba(9, 15, 28, .55) 0%, rgba(9, 15, 28, 0) 40%),
      linear-gradient(270deg, rgba(0, 70, 140, .25) 0%, rgba(0, 70, 140, 0) 45%);
  }

  .nos-values { padding: 22px 24px 28px; }
}

@media (max-width: 575px) {
  .nos { border-radius: 16px; }
  .nos-text { padding: 28px 20px 22px; }
  .nos-media { height: 380px; }
  .nos-logo { top: 12px; right: 12px; }
  .nos-logo img { width: 128px; }
  .nos-quote { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px 18px 18px; }
  #nosotros .nos-quote p { font-size: 16px; }
  .nos-values { grid-template-columns: 1fr; padding: 18px 14px 22px; }
  .nos-value { padding: 10px; }
  .nos-value__icon { width: 54px; height: 54px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  #nosotros .wow { animation: none !important; visibility: visible !important; }
  .nos-value,
  .nos-value__icon { transition: none; }
  .nos-value:hover { transform: none; }
}
