/* ============================================================
   nosotros.css — ORDENADO Y LIMPIO
   Basado en la estructura real de nosotros.html
   ============================================================ */

/* ── ROOT específico de la página Nosotros ─────────────────── */
:root {
  --nosotros-body-bg: rgba(249, 145, 9, 0.06);
  --nosotros-title-color: #111;
  --nosotros-banner-overlay: rgba(0, 0, 0, 0.6);
  --nosotros-hero-text-color: #ffffff;
  --nosotros-hero-text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 6px 12px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.5);
  --nosotros-hero-highlight: #f99109;

  --nosotros-card-bg: #ffffff;
  --nosotros-card-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --nosotros-card-title: #333;
  --nosotros-card-desc: #555;
  --nosotros-card-feature-bg: rgba(249, 145, 9, 0.08);
  --nosotros-card-feature-color: #444;
  --nosotros-card-btn-bg: #f99109;
  --nosotros-card-btn-hover: #e68100;

  --nosotros-stat-bg: #ffffff;
  --nosotros-stat-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --nosotros-stat-label: #333;

  --nosotros-certificaciones-bg: #ffffff;
  --nosotros-cert-item-bg: #f8f9fa;

  --nosotros-valores-card-bg: rgba(255, 255, 255, 0.85);
  --nosotros-valores-card-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --nosotros-valores-card-border: rgba(0, 0, 0, 0.04);
  --nosotros-valores-icon-color: #f99109;
  --nosotros-valores-title: #222;
  --nosotros-valores-text: #555;
}

/* ============================================================
   1. ESTILOS BASE DEL BODY
   ============================================================ */
.nosotros {
  margin: 0;
  background: var(--nosotros-body-bg);
  line-height: 1.6;
}

/* ============================================================
   2. TÍTULO GENÉRICO
   ============================================================ */
.nosotros .title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 90px;
  letter-spacing: -1px;
  color: var(--nosotros-title-color);
  margin-top: 90px;
}

.nosotros .title::after,
.nosotros h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  display: block;
  margin: 15px auto 0;
  border-radius: 10px;
}

/* ============================================================
   3. BANNER (hero section)
   ============================================================ */
.nosotros .banner {
  position: relative;
  width: 100%;

  min-height: 550px; 

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 0 8%;
  color: white;
  overflow: hidden;
}

.background-img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.nosotros .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, .80) 0%,
      rgba(0, 0, 0, .65) 35%,
      rgba(0, 0, 0, .45) 60%,
      rgba(0, 0, 0, .25) 100%);
}

.nosotros .banner-content {
  position: relative;
  z-index: 3;

  max-width: 550px;

  width: 100%;

  margin-right: auto;
  margin-left: 0;

  text-align: left;
}

.nosotros .banner-container {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;

}

.hero-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--nosotros-hero-text-color);
  text-shadow: var(--nosotros-hero-text-shadow);
}

.hero-description strong,
.banner-content strong {
  color: var(--nosotros-hero-highlight);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}


.hero-buttons .btn {
  flex: 1;
  max-width: 260px;
}

/* ════════════════════════════════════════════════════════════════
   BANNER RESPONSIVE — nosotros.css
════════════════════════════════════════════════════════════════ */

/* ── VENTANA PARTIDA / LAPTOPS (hasta 1200px) ── */
@media (max-width: 1200px) {

  .nosotros .banner {
    padding: 0 5%;
  }

  .nosotros .banner-container {
    gap: 40px;
  }

  .nosotros .banner-content {
    max-width: 500px;
  }

  .nosotros-features {
    width: 360px;
  }
}

/* ── TABLET / COLUMNAS APILADAS (hasta 920px) ── */
@media (max-width: 920px) {

  .nosotros .banner {
    height: auto;
    min-height: unset;
    padding: clamp(80px, 12vw, 110px) clamp(16px, 5vw, 32px) clamp(40px, 7vw, 60px);
    justify-content: center;
    align-items: flex-start;
  }

  .nosotros .banner-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.2rem, 3vw, 2rem);
    max-width: 100%;
  }

  .nosotros .banner-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .nosotros .hero-title {
    margin-bottom: 1rem;
  }

  .nosotros .hero-description {
    max-width: 100%;
    margin-bottom: 1.4rem;
  }

  .nosotros .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nosotros .hero-buttons .btn {
    width: min(100%, 290px);
    max-width: 290px;
    flex: none;
  }

  .nosotros-features {
    width: 100%;
    max-width: 560px;
  }

  .feature-card {
    padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 30px);
  }

  .feature-stat {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    min-width: clamp(55px, 12vw, 85px);
    width: clamp(55px, 12vw, 85px);
  }
}

/* ── MÓVIL PEQUEÑO (hasta 480px) ── */
@media (max-width: 480px) {

  .feature-card {
    gap: 14px;
  }

  .feature-description {
    font-size: 0.9rem;
  }
}

/* ============================================================
   4. QUIÉNES SOMOS
   ============================================================ */
.quienes-section {
  width: 100%;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.quienes-card {
  display: flex;
  align-items: center;
  gap: 50px;
  background: var(--nosotros-card-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--nosotros-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quienes-img {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quienes-img img {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
}

.quienes-content {
  flex: 1;
}

.quienes-content h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--nosotros-card-title);
}

.quienes-desc {
  line-height: 1.6;
  color: var(--nosotros-card-desc);
  margin-bottom: 25px;
}

.quienes-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.feature {
  background: var(--nosotros-card-feature-bg);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--nosotros-card-feature-color);
}

.quienes-btn {
  display: inline-block;
  background: var(--nosotros-card-btn-bg);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.quienes-btn:hover {
  background: var(--nosotros-card-btn-hover);
  transform: translateY(-2px);
}

/* — Quiénes Somos: responsive — */
@media (max-width: 900px) {
  .quienes-card {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .quienes-features {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   5. ESTADÍSTICAS (primera sección con overlay)
   ============================================================ */
.confianza {
  padding: 80px 5%;
  background: transparent;
}

.confianza .title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.confianza-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  background: var(--nosotros-stat-bg);
  padding: 40px 50px;
  border-radius: 25px;
  text-align: center;
  min-width: 220px;
  box-shadow: var(--nosotros-stat-shadow);
  transition: all 0.3s ease;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

.stat-label {
  font-size: 20px;
  font-weight: 500;
  color: var(--nosotros-stat-label);
}

/* — Estadísticas: responsive — */
@media (max-width: 768px) {
  .confianza {
    padding: 60px 20px;
  }

  .stat-item {
    padding: 30px 35px;
  }
}

/* ============================================================
   6. CERTIFICACIONES Y GARANTÍAS (confianza-section)
   ============================================================ */
.confianza-section {
  background: var(--nosotros-certificaciones-bg);
  border-radius: 20px;
  padding: 40px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificaciones h3 {
  text-align: center;
  color: var(--dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.certificaciones h3 i {
  color: var(--primary);
}

.cert-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--nosotros-cert-item-bg);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.cert-item:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.cert-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

.cert-item span {
  font-weight: 500;
  color: var(--dark);
}

/* — Certificaciones: responsive — */
@media (max-width: 480px) {
  .confianza-section {
    width: calc(100% - 40px);
    max-width: 100%;
    padding: 24px 15px;
    margin: 40px auto;
  }
}

@media (max-width: 380px) {
  .confianza-section {
    width: calc(100% - 30px);
  }
}

/* ============================================================
   7. VALORES (Misión / Visión / Valores)
   ============================================================ */
.valores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 50px 5%;
}

.valores .valor-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(245, 245, 245, .88));
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--nosotros-valores-card-shadow), inset 0 1px 0 rgba(255, 255, 255, .7);
  border: 1px solid var(--nosotros-valores-card-border);
}

.valor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.valor-card:hover::before {
  opacity: 1;
}

.valor-card i {
  font-size: 45px;
  color: var(--nosotros-valores-icon-color);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.valor-card:hover i {
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 8px 20px rgba(249, 145, 9, 0.4);
}

.valor-card h3 {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--nosotros-valores-title);
}

.valor-card p {
  line-height: 1.6;
  color: var(--nosotros-valores-text);
}

/* — Valores: responsive — */
@media (min-width: 768px) {
  .valores {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 5%;
  }

  .valores .title {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   8. SUPERPOSICIÓN DE ESTADÍSTICAS (tarjeta sobre banner)
   ============================================================ */

.nosotros-features {
  width: 420px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  position: relative;
  z-index: 3;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 28px 30px;

  background: rgba(120, 120, 120, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  color: #fff;
}

.feature-stat {
  width: 85px;
  min-width: 85px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: var(--text-stat-number);
  font-weight: 800;
  line-height: 1;

  color: var(--primary-color);
}

.feature-stat .counter {
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.feature-card i {
  width: 32px;
  min-width: 32px;

  text-align: center;

  color: var(--primary-color);
  font-size: 1.4rem;
}

.feature-description {
  flex: 1;

  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
}


.feature-stat {
  min-width: 70px;

  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;

  color: var(--primary-color);

  text-align: center;

  flex-shrink: 0;
}

.nosotros .confianza-card .stat-label {
  color: rgba(255, 255, 255, .8);
}

/* ============================================================
   OVERLAY ESTADÍSTICAS RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

  .nosotros .confianza-overlay {
    margin-top: -110px;
    padding: 0 15px;
  }

  .nosotros .confianza-overlay .confianza-stats {
    padding: 30px 25px;
  }

  .nosotros .confianza-overlay .stats-row {
    flex-direction: column;
  }

  .nosotros .confianza-overlay .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 10px;
  }

  .nosotros .confianza-overlay .stat-item:last-child {
    border-bottom: none;
  }

}

@media (max-width: 480px) {

  .nosotros .confianza-overlay {
    margin-top: -90px;
  }

  .nosotros .confianza-overlay .confianza-stats {
    border-radius: 20px;
    padding: 25px 20px;
  }

}

/* ============================================================
   9. HOVER UNIFICADO
   ============================================================ */
.quienes-card:hover,
.stat-item:hover,
.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}