/* ============================================================
   SERVICIOS — page styles
   ============================================================ */

/* ── Hero ── */
.hero-home {
  background: var(--light-bg);
  padding: 120px 0 70px;
  background-image: url("../assets/banner-hero-servicios.webp");
  background-size: cover;      /* o contain si quieres que no se recorte */
  background-position: center;
  background-repeat: no-repeat;
  height: 620px;
}

.hero-home__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-home__text h1 {
  margin-bottom: 22px;
}

.hero-home__text .body-text {
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-home__img-mobile {
  display: none; /* oculto en desktop */
}

@media (max-width: 700px) {
  .hero-home {
    background-image: none; /* quitamos el fondo */
    padding: 0; /* la imagen ya ocupa espacio */
    height: auto;
  }

  .hero-home__img-mobile {
    display: block;
    width: 100%;
    height: 420px; /* puedes usar 400–450px */
    overflow: hidden;
  }

  .hero-home__img-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* evita que se deforme */
    display: block;
  }

  .hero-home__inner {
    grid-template-columns: 1fr; /* una sola columna */
    padding: 32px 24px 48px;
  }
}
/* .sv-hero {
  background: var(--light-bg);
  padding: 80px 0 70px;
  background-image: url("../assets/img-hero-services.webp");
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  height: 560px;
}

.sv-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sv-hero__img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
} */

/* ── Dept Grid ── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.dept-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  height: 300px;
}

.dept-wide {
  grid-column: span 2;
}

.dept-light {
  background: var(--white);
}

.dept-dark {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.dept-icon {
  margin-bottom: 14px;
  width: 35px;
}

.dept-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.dept-dark h3 {
  color: var(--yellow);
}

.dept-card p {
  font-size: 1.rem;
  line-height: 1.4;
  color: var(--navy);
}

.dept-dark p {
  color: rgba(255,255,255,1);
}

/* ── Compras Estratégicas ── */
.compras-card {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.compras-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 14px 0 10px;
}

.compras-left p {
  font-size: 1.1rem;
  color: rgba(255,255,255,1);
  line-height: 1.4;
}

.compras-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background-color: #0A3155;
}

.stat__num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,1);
  text-transform: uppercase;
}

/* ── Excelencia ── */
.excel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.excel-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 450px;
}

.excel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.excel-main:hover img { transform: scale(1.03); }

.excel-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,32,63,0.88) 40%, rgba(7,32,63,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.excel-main__overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.excel-main__overlay p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.55;
}

.excel-side {
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.excel-side__img {
  height: 160px;
  overflow: hidden;
}

.excel-side__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.excel-side__body {
  padding: 22px 24px;
}

.excel-side__body h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

/* ── Mini svc cards ── */
.svc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--yellow);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-icon {
  margin-bottom: 14px;
  width: 35px;
  color: var(--blue-mid);
}

.svc-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 15px;
}

.svc-card p {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.65;
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .dept-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .sv-hero__inner { grid-template-columns: 1fr; }
  .sv-hero__img { display: none; }
  .dept-grid { grid-template-columns: 1fr; }
  .dept-wide { grid-column: span 1; }
  .compras-card { grid-template-columns: 1fr; gap: 28px; }
  .sv-excel-grid { grid-template-columns: 1fr; }
  .sv-svc-row { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-home__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-home__img { display: none; }
  .excel-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .compromiso-grid { grid-template-columns: 1fr; gap: 36px; }
  .compromiso-img { display: none; }
  .especialidades-grid { grid-template-columns: 1fr; }
}
