.inicio {
  margin-top: 20px;
}

body {
  background: linear-gradient(180deg, #042937 0%, #063447 100%);
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

/* HERO */
.inicio-hero {
  min-height: 85vh;
  background-image: 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: 40px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inicio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.58)
  );
}

.inicio-hero * {
  position: relative;
  z-index: 1;
}

.inicio-hero h1 {
  font-size: 3.4rem;
  font-weight: 550;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.inicio-hero p {
  font-size: 1.18rem;
  margin-bottom: 28px;
  max-width: 760px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* BOTÓN PRINCIPAL HERO */
.inicio-hero .btn-primary {
  background: linear-gradient(135deg, #d6a106, #b98600);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(214, 161, 6, 0.28);
  transition: all 0.3s ease;
}

.inicio-hero .btn-primary:hover {
  background: linear-gradient(135deg, #c99705, #a77700);
  transform: translateY(-2px);
}

html {
  scroll-behavior: smooth;
}

/* TITULOS GENERALES */
h2 {
  color: #f8f9fa;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* SERVICIOS */
.inicio-servicios {
  margin-top: 70px;
}

.inicio-servicios h2 {
  margin-bottom: 16px;
  padding-top: 10px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* AJUSTE DE COLUMNAS PARA MISMA ALTURA */
.inicio-servicios .row {
  display: flex;
  flex-wrap: wrap;
}

.inicio-servicios .col-md-4 {
  display: flex;
  margin-bottom: 30px;
}

/* CARDS */
.inicio-card {
  margin-top: 20px;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.inicio-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
}

/* CARD BODY */
.card-body {
  text-align: center;
  background-color: #ffffff;
  padding: 24px 22px;
  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: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body p {
  color: #4a5563;
  line-height: 1.7;
  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: 10px 22px;
  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);
}

/* CARDS */
.servicio-card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.servicio-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.servicio-body {
  padding: 24px 22px;
  text-align: center;
}

.servicio-body h3 {
  color: rgb(219, 161, 0);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.servicio-body p {
  color: #475569;
  line-height: 1.8;
  margin: 0;
  font-size: 0.97rem;
}


/* RESPONSIVE */
@media (max-width: 991px) {
  .inicio-hero h1 {
    font-size: 2.7rem;
  }

  .inicio-hero p {
    font-size: 1.05rem;
    max-width: 650px;
  }

  .inicio-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .inicio {
    margin-top: 10px;
  }

  .inicio-hero {
    min-height: 75vh;
    padding: 40px 15px;
  }

  .inicio-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .inicio-hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .inicio-hero .btn-primary {
    padding: 11px 24px;
    font-size: 15px;
  }

  .inicio-servicios {
    margin-top: 50px;
  }

  .inicio-servicios .col-md-4 {
    margin-bottom: 10px;
  }

  .inicio-card {
    margin-top: 15px;
  }

  .inicio-card img {
    height: 210px;
  }

  .card-body {
    padding: 20px 18px;
  }

  .card-body h5 {
    font-size: 1rem;
    min-height: auto;
  }

  .card-body p {
    font-size: 0.95rem;
  }

  .inicio-nosotros {
    margin-top: 60px;
  }

  .inicio-nosotros p {
    font-size: 0.98rem;
    line-height: 1.8;
    padding: 0 8px;
  }

  .inicio-cta {
    margin-top: 60px;
    padding: 35px 18px;
    border-radius: 18px;
  }

  .inicio-cta h2 {
    font-size: 1.6rem;
  }

  .inicio-cta p {
    font-size: 0.95rem;
  }

  .inicio-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }
}

@media (max-width: 576px) {
  .inicio-hero h1 {
    font-size: 1.75rem;
  }

  .inicio-hero p {
    font-size: 0.95rem;
  }

  .inicio-card img {
    height: 200px;
  }

  .inicio .btn-wsp,
  .inicio-hero .btn-primary,
  .card-body .btn {
    width: 100%;
    max-width: 260px;
  }
}