body {
  background: linear-gradient(180deg, #042937 0%, #063447 100%);
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #f8f9fa;
}

.servicios {
  margin-top: 30px;
  margin-bottom: 70px;
}

/* HERO */
.servicios-hero {
  min-height: 45vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.58)),
    url("../imagenes/portada1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.servicios-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.servicios-hero p {
  font-size: 1.1rem;
  max-width: 720px;
  line-height: 1.8;
  margin: 0;
}

/* SECCIONES */
.servicios section {
  margin-top: 80px;
}

.servicios h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.servicios-intro,
.servicios-resumen {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 50px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.servicios-intro p,
.servicios-resumen p {
  max-width: 850px;
  margin: 0 auto;
  color: #f1f5f9;
  line-height: 1.9;
}

/* FILA DE CARDS */
.servicios .row {
  margin-top: 24px;
  margin-left: -12px;
  margin-right: -12px;
}

.servicios .col-md-4 {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 28px;
  display: flex;
}

/* CARD */
.inicio-card {
  width: 100%;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* IMAGEN LOGO CIRCULAR */
.inicio-card .card-img-top {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: block;
  padding: 24px 24px 10px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #1880a5 0%, #0a3140 100%);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

/* CARD BODY */
.card-body {
  text-align: center;
  background-color: #ffffff;
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h5 {
  color: rgb(219, 161, 0);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.card-body p {
  color: #4a5563;
  line-height: 1.75;
  font-size: 0.96rem;
  flex-grow: 1;
  margin-bottom: 22px;
}

.card-body .btn {
  color: #f8f9fa;
  background: linear-gradient(135deg, rgb(219, 161, 0), rgb(191, 138, 2));
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  align-self: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-body .btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgb(201, 146, 0), rgb(164, 118, 0));
  transform: translateY(-2px);
}

/* TABLET */
@media (max-width: 991px) {
  .servicios section {
    margin-top: 65px;
  }

  .inicio-card .card-img-top {
    height: 250px;
    padding: 22px 22px 8px;
  }

  .card-body {
    padding: 20px 20px 24px;
  }

  .card-body h5 {
    min-height: auto;
    font-size: 1rem;
  }
}

/* MOBILE */
@media (max-width: 767.98px) {
  .servicios-hero {
    min-height: 38vh;
    padding: 45px 18px;
  }

  .servicios-hero h1 {
    font-size: 2rem;
  }

  .servicios-hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .servicios section {
    margin-top: 50px;
  }

  .servicios-intro,
  .servicios-resumen {
    padding: 35px 20px;
    border-radius: 18px;
  }

  .servicios .row {
    margin-left: 0;
    margin-right: 0;
  }

  .servicios .col-md-4 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 24px;
  }

  .inicio-card {
    border-radius: 18px;
  }

  .inicio-card .card-img-top {
    height: 220px;
    padding: 20px 20px 8px;
  }

  .card-body {
    padding: 20px 18px 22px;
  }

  .card-body h5 {
    font-size: 1rem;
    min-height: auto;
  }

  .card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .card-body .btn {
    width: 100%;
    max-width: 220px;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  .servicios {
    margin-top: 20px;
    margin-bottom: 45px;
  }

  .servicios-hero {
    min-height: 34vh;
    padding: 38px 15px;
  }

  .servicios-hero h1 {
    font-size: 1.7rem;
  }

  .servicios-hero p {
    font-size: 0.95rem;
  }

  .inicio-card .card-img-top {
    height: 200px;
    padding: 18px 18px 6px;
  }

  .card-body {
    padding: 18px 16px 20px;
  }

  .card-body p {
    font-size: 0.92rem;
  }
}