.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: black; /* fallback */
    color: #fff;
    overflow: hidden;
    min-height: 400px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero > * {
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroCarousel 40s infinite ease-in-out;
    z-index: 0;
    opacity: 0.4;
}

.hero .cta-button {
    background: linear-gradient(145deg, #d4af37, #f6e27a);
    color: #000;
    padding: 1rem 2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px #f1c40f;
}

.hero .cta-button:hover {
     transform: scale(1.05);
    box-shadow: 0 0 10px #f6e27a, 0 0 20px #d4af37;
}

@keyframes heroCarousel {
    0%, 100% {
        background-image: url('../img/carrusel1.jpg');
    }
    33% {
        background-image: url('../img/carrusel2.jpg');
    }
    66% {
        background-image: url('../img/carrusel3.jpg');
    }
}

.servicios {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #0e0e0e;
}

.servicios h2 {
  color: #d4af37;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 700;
}

.servicios-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
display: flex;
  flex-wrap: wrap;
  justify-content: center;
 
}

.servicio {
  background-color: #2e3b54;
  padding: 2rem 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  width: 220px;
  text-decoration: none;

}

.servicio:hover {
  background-color: #ff6347;
  transform: translateY(-5px);
}

.servicio img {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.servicio p {
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
}
