/* ---------- General ---------- */
body {
    padding-top: 80px;
}

/*para poner la imagen de servicios*/
.hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 20px; /* separacion desde abajo */
  left: 20px;   /* separacion desde la izquierda */
  z-index: 3;
  text-align: left; /* alinear texto a la izquierda */
  color: white;
  transform: none; /* quitar centrado */
}

.hero-content h1 {
  font-size: 4vw;
  margin: 0;
  color: white;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.9),
    0px 0px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .subtext {
  font-size: 1vw;
  margin-top: 0.5rem;
  font-weight: 400;
  color: #f1f1f1;
}

/* -------- Pantallas medianas -------- */
@media (max-width: 990px) {
  .hero {
    height: 300px; /* más grande que antes */
  }

  .hero-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    /*centrarenmedio*/text-align: center;
  }

  .hero-content h1 {
    font-size: 8vw;
  }

  .hero-content .subtext {
    font-size: 2vw;
  }
}

/* -------- Pantallas pequeñas -------- */
@media (max-width: 480px) {
  .hero {
    height: 200px; /* más grande que antes */
  }

  .hero-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centrar en medio */
    text-align: center;
  }

  .hero-content h1 {
    font-size: 8vw; /* un poco más grande */
    padding: 0.4rem 0;
  }

  .hero-content .subtext {
    font-size: 3.5vw; /* un poco más grande también */
  }
}

/* ---------- Sección de Servicios con imagenes y textos ---------- */
.contenedor-principal {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 20px;
  background-color: #fff;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Bloque de textos */
.contenedor-textos {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1;
  min-width: 250px;
  padding-left: 50px; /* separación del borde izquierdo */
  padding-top: 100px; /* antes 90px o 60px */
}

/* Columnas de texto */
.columna {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Texto con íconos */
.columna p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 5px 0;
}

/* Galería de imágenes */
.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  flex: 2;
  min-width: 300px;
}

/* Imágenes más pequeñas */
.galeria-imagenes img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
}

/* Animación */
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Pantallas medianas: mantener 3 columnas y centrar todo */
@media (max-width: 1280px) { 
  .contenedor-principal { 
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contenedor-textos {
    padding-left: 0;
    padding-top: 60px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
  }
}


/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .contenedor-principal {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .contenedor-textos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
    padding: 40px 0 30px 0;
  }

  .columna {
    align-items: center;
    min-width: 250px;
  }

  .galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }
}


/* Pantallas pequeñas: reducir a 2 columnas y mover a la izquierda */
@media (max-width: 900px) {
  .contenedor-principal {
    align-items: flex-start; /* Cambiado de center a flex-start */
    text-align: left; /* Cambiado de center a left */
    padding-left: 30px; /* Agregado padding izquierdo */
  }
  
  .contenedor-textos {
    justify-content: flex-start; /* Cambiado de center a flex-start */
    padding: 30px 0 20px 0;
    margin: 0; /* Removido margin auto */
    text-align: left; /* Alineación izquierda */
  }
  
  .columna {
    align-items: flex-start; /* Cambiado de center a flex-start */
  }
  
  .columna p {
    justify-content: flex-start; /* Alinea íconos y texto a la izquierda */
  }
  
  .galeria-imagenes {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 0; /* Removido margin auto */
  }
}


/* Pantallas muy pequeñas: 1 columna movida a la izquierda */
@media (max-width: 600px) {
  .contenedor-principal {
    padding: 20px 15px 20px 25px; /* Más padding a la izquierda */
    align-items: flex-start;
  }
  
  .contenedor-textos {
    flex-direction: column;
    align-items: flex-start; /* Cambiado de center a flex-start */
    padding: 40px 0 30px 0;
    margin: 0;
    max-width: 100%;
    gap: 20px;
  }

  .columna {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
  }

  .galeria-imagenes {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
  }
}


/*Para el cuadro de nuestro catálogo*/
.catalogo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}


.cuadro-naranja {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    height: 60px;
    background-color: #EC9D2E;
    border-radius: 35px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    padding: 0 20px;
    text-decoration: none; /* Esta línea quita el subrayado */
}


/* ---------- Servicios ---------- */
.porque-nosotros {
    text-align: center;
    padding: 50px 20px;
}

.porque-nosotros h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
    
}

.opciones {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.opcion {
    display: flex;
    align-items: center;
    max-width: 300px;
    text-align: left;
}

.icono-circulo {
    width: 80px;
    height: 80px;
    background-color: orange;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icono-circulo img {
    width: 40px;
    height: 40px;
}

.opcion p {
    font-size: 1.15em; /* Un poco más grande */
    line-height: 2;
    color: #000; /* Negro puro */
    font-weight: 500;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.15); /* Sombra un poco más fuerte */
}


/* Pantallas pequeñas - Vertical */
@media (max-width: 576px) {
    .opciones {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .opcion {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
    }

    .icono-circulo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Pantallas medianas - Horizontal */
@media (min-width: 576px) and (max-width: 992px) {
    .opciones {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .opcion {
        flex-direction: row;
        text-align: left;
        max-width: 300px;
    }

    .icono-circulo {
        margin-right: 15px;
        margin-bottom: 0;
    }
}
