/* ---------- 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 */
  }
}



.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #fff;
}

.galeria-imagenes img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0; /* oculto hasta que aparezca */
    transform: translateY(20px);
}

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

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

/* Pantallas pequeñas: 1 imagen por fila */
@media (max-width: 600px) {
    .galeria-imagenes {
        grid-template-columns: 1fr;
    }
}

/*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;
}

/* ---------- 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;
    }
}
