/* ----------------------------------------
   RESET Y ESTILOS GENERALES
---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ----------------------------------------
   ENCABEZADO
---------------------------------------- */
.header {
  background-color: #4CAF50;
  padding: 20px;
  text-align: center;
  color: white;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
}

.navbar ul li {
  display: inline;
  margin: 0 15px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.navbar ul li a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   SECCIÓN HERO CON FONDO TRANSLÚCIDO
---------------------------------------- */
.hero {
  position: relative;
  background: url('img/bienestar.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* fondo translúcido */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-text h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #4CAF50;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #388e3c;
}

/* ----------------------------------------
   SERVICIOS (MODERNO Y CON EFECTOS)
---------------------------------------- */
.services {
  padding: 80px 20px;
  background-color: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #4CAF50;
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-card {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: #4CAF50;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
footer {
  background-color: #212529;
  color: #ffffff;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

footer h5,
footer h6 {
  color: white;
  font-weight: bold;
}

footer a {
  color: #ccc;
  transition: color 0.3s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer .btn-outline-light {
  border: 1px solid #ccc;
  color: #ccc;
}

footer .btn-outline-light:hover {
  background-color: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

/* Línea inferior del footer */
footer hr {
  border-top: 1px solid #777;
}

/* ----------------------------------------
   CLASES PERSONALIZADAS
---------------------------------------- */
.color1 {
  background-color: #e9f0fb;
  color: #000;
  border-radius: 8px;
  min-height: 100%;
}

/* ----------------------------------------
   RESPONSIVE DESIGN
---------------------------------------- */
@media (max-width: 992px) {
  .service-card {
    margin-bottom: 30px;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  footer {
    font-size: 0.9rem;
  }
}
