/* ---------------------------
   ESTILO ORGÁNICO - INICIO
---------------------------- */

.inicio-page {
  font-family: 'Montserrat', sans-serif;
  color: #071C18;
  background-color: #F9F9F9;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  overflow: hidden;
  z-index: 0; /* 🔥 importante para que ::before y ::after sean visibles */
}
/* Imagen de fondo hero */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1; /* 🔥 más alto para asegurar visibilidad */
  filter: brightness(0.6);
  transform: scale(1);
  animation: kenburns 20s ease-in-out infinite alternate;
}

/* Efecto Ken Burns suave */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-2%, -2%);
  }
}

/* Gradiente superpuesto */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #93CBAE 0%, #0f0f0f 100%);
  opacity: 0.65;
  z-index: 2; /* 🔥 encima de la imagen, debajo del texto */
}

/* Contenido centrado */
/* Contenido */
.hero-content {
  position: relative;
  z-index: 3; /* 🔥 encima de todo */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #F9F9F9;
}

.btn-primary {
  background-color: #071C18;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #E7EEE7;
  color: #071C18;
}

/* ===== SOBRE NOSOTROS ===== */
.about-section {
  position: relative;
  padding: 6rem 2rem;
  background: #fff;
}

.about-section .about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  z-index: 1;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: #E7EEE7;
  border-radius: 50%;
  z-index: 0;
}

.about-text {
  flex: 1 1 400px;
}

.about-image {
  flex: 1 1 400px;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  background-color: #93CBAE;
}

/* ===== SERVICIOS ===== */
.services-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #F9F9F9 0%, #E7EEE7 100%);
  border-radius: 50px 50px 0 0;
}

.services-section h2 {
  margin-bottom: 2rem;
  color: #071C18;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Tarjeta individual */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen del servicio */
.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

/* Botón final */
.services-cta {
  margin-top: 3rem;
}

.services-cta .btn-primary {
  background-color: #071C18;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.services-cta .btn-primary:hover {
  background-color: #E7EEE7;
  color: #071C18;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .service-image {
    height: 180px;
  }
}

/* ===== TESTIMONIOS ===== */
.testimonials-section {
  background-color: #93CBAE;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
}

.testimonials-section .testimonials {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: #071C18;
  color: #fff;
  border-top: 5px solid #93CBAE;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .about-section::before {
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 90vh;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .about-section {
    padding: 4rem 1.5rem;
  }
  .services-section {
    padding: 4rem 1.5rem;
  }
  .testimonials-section {
    padding: 4rem 1.5rem;
  }
  .cta-section {
    padding: 4rem 1.5rem;
  }
}
