/* =====================================================
   03 — HERO
   ===================================================== */

.hero {
  position: relative;
  color: var(--white);
  min-height: 620px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ajuste de encuadre: prioriza la parte alta/central de la imagen */
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Gradiente más marcado a la izquierda para que el texto siempre
     quede legible y anclado a ese lado */
  background: linear-gradient(
    100deg,
    rgba(7, 30, 64, 0.5) 0%,
    rgba(11, 44, 92, 0.4) 38%,
    rgba(11, 44, 92, 0.3) 72%,
    rgba(11, 44, 92, 0.25) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 110px 24px 70px;
  max-width: 720px;
  /* Contenido explícitamente anclado a la izquierda */
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* En el hero, el botón "primary" es blanco con texto navy
   (distinto al primary azul que se usa en el resto del sitio) */
.hero-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
}
.hero-cta .btn-primary:hover {
  background: var(--gray-light);
  color: var(--navy);
  box-shadow: none;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 0;
  transform: translateY(50%);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-icon {
  width: 72px;
  height: 72px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Icono destacado (Especialidades): cuadro azul sólido con cruz blanca,
   distinto a los demás que son solo línea navy */
.stat-icon--filled {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 6px;
  background-color:transparent;
}
.stat-icon--filled img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* espacio tras el hero para las stat cards sobrepuestas */
.specialties {
  padding-top: calc(88px + 60px);
}

@media (max-width: 980px) {
  .hero {
    min-height: 540px;
  }
  .hero-inner {
    padding: 70px 24px 60px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 480px;
  }
  .stat-card {
    padding: 16px 10px;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* =====================================================
   11 — PÁGINAS LEGALES (Privacidad / Términos)
   ===================================================== */

.legal-page {
  padding: 64px 0 88px;
}
.legal-container {
  max-width: 760px;
}
.legal-container h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: var(--navy);
  margin: 6px 0 10px;
}
.legal-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-body h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 36px 0 12px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-body a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 44px 0 64px;
  }
}