* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
}


.main-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
   min-height: 700px; 

  /* 👇 Fondo detrás de texto y carrusel */
  background-image: url("../img/index/fondoLanding.jpg"); 
  background-size: cover;     /* La imagen cubre todo */
  background-position: center;/* Centrada */
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

/* Si quieres efecto oscuro encima de la imagen */
.main-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* oscurece para que resalte el texto */
  z-index: -1;
}

/* Columna izquierda: texto */
.left-panel {
  grid-column: span 6;
  display: flex;
  align-items: center;   /* centra vertical */
  justify-content: center; /* centra horizontal */
  flex-direction: column;  /* apila el texto y el botón en columna */

  width: 100%;
  max-width: 400px;
  height: auto;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

.text-content {
  text-align: center; /* centra el texto dentro */
}


/* Ajuste solo al panel izquierdo en pantallas pequeñas */
@media (max-width: 992px) {
  .left-panel {
    grid-column: span 12;
    max-width: 100%;
    margin-top: 80px; /* espacio debajo del header */
  }


  .text-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .info-button {
    font-size: 1rem;
    padding: 10px 18px;
  }
}



.text-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  margin-left: 5px;
}

.info-button {
  padding: 10px 20px;
  font-size: 1rem;
  background: #c7a763;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
}
.info-button:hover {
  background: #a88a52;
}

/* Columna derecha: carrusel */
.right-panel {
  grid-column: span 6;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 80%; /* ancho del slide, dejando ver el siguiente */
  margin-right: 10px; /* espacio para el “peek” */
  height: 450px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-top: 80px; ;
}

/* Indicadores verticales */
.carousel-indicators {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carousel-indicators span {
  width: 10px;
  height: 10px;
  background: white;
  opacity: 0.5;
  border-radius: 50%;
  cursor: pointer;
}
.carousel-indicators .active {
  opacity: 1;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .left-panel,
  .right-panel {
    grid-column: span 12;
  }

  .carousel-slide {
    flex: 0 0 90%;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .carousel-slide {
    flex: 0 0 95%;
    height: 200px;
  }
}


/* Sección de Servicios */
.services-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px 20px;
  background-color: #1a1a1a;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

.service-box {
  position: relative; /* Necesario para superponer texto */
  flex: 1 1 220px;
  max-width: 300px;
  height: auto; /* Definimos altura fija */
  margin: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.21);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Imagen cubre toda la caja */
  display: block;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box h3,
.service-box p {
  position: absolute;
  width: 100%;
  text-align: center;
  color: white;
  margin: 0;
  padding: 5px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.8); /* Para mejor legibilidad */
}

.service-box h3 {
  top: 233px; /* Arriba */
  font-size: 2.3rem;
}

.service-box p {
  bottom: 10px; /* Abajo */
  font-size: 1.6rem;
}



/* Sección: ¿Por qué contar con nosotros? */
.why-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
  background-color: #f4f4f4;
  color: #000;
}

.why-text {
  flex: 1 1 300px;
  padding: 20px;
  margin-left: 60px;
}

.why-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #111;
}

.why-text ul {
  list-style: disc inside;
  font-size: 1.5em;
  line-height: 1.6;
  color: #333;
}

.why-image {
  flex: 1 1 300px;
  text-align: center;
  padding: 20px;
}

.why-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Sección: Testimonios */
.testimonials-section {
  background-color: #111;
  color: #fff;
  padding: 60px 30px;
}

.testimonial-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 100px;
  margin-top: 40px;
  margin-bottom: 90px;
  margin-left: 60px;
}

.testimonial-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background-color: #333;
  margin-bottom: 8px;
  transition: transform 0.3s;
  border-radius: 0; /* también cuadrado */
}

.testimonial-text {
  flex: 1;
}

.testimonial-text strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #c4a83c;
}

.testimonial-text p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.testimonial-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 90px;
  margin-bottom: 50px;
}

.testimonial-thumb {
  text-align: center;
  max-width: 120px;
}

.testimonial-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #333;
  margin-bottom: 8px;
  transition: transform 0.3s;
}

.testimonial-thumb img:hover {
  transform: scale(1.05);
}

.testimonial-thumb p {
  font-size: 0.9em;
  color: #ccc;
}

/* ===== Sección: Contacto rápido ===== */
.contact-section {
  background-color: #1a1a1a;   /* fondo oscuro */
  text-align: center;
  padding: 100px 30px;
  color: #fff; /* color del texto del h2 */
}

.contact-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: 700;
}

/* ===== Botón ===== */
.contact-btn button {
  padding: 14px 28px;
  font-size: 1.2em;
  background-color: #fff;      /* fondo blanco */
  color: #000;                 /* texto negro */
  border: 2px solid #123c7c;   /* borde azul */
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover */
.contact-btn button:hover {
  background-color: #123c7c;   /* fondo azul */
  color: #fff;                 /* texto blanco */
}


