/*=============== HERO FONT ===============*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== RESET GLOBAL SOLO PARA HERO ===============*/
.hero,
.hero * {
  box-sizing: border-box; /* Para que padding no genere overflow */
}

body {
  margin: 0;
  overflow-x: hidden; /* Previene scroll horizontal */
  font-family: "Montserrat", sans-serif;
}

/*=============== HERO BASE ===============*/
.hero {
  width: 100%;
  margin: 0;
  padding: 100px 20px;
  padding-top: 80;
  background: url('ca1.webp') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto; /* Asegura centrado */
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

/*=============== HERO BUTTONS ===============*/
.hero-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
  text-align: center;
  border: 2px solid #ff7b00;
  background-color: #ff7b00; /* Naranja */
  color: #ffffff;
  text-decoration: none; /* Quitar subrayado */
}

.hero-btn:hover {
  background-color: #cc6200; /* Oscurece al pasar mouse */
  border-color: #cc6200;
  color: #ffffff;
}

/*=============== HERO RESPONSIVE ===============*/
@media (max-width: 992px) {
  .hero {
    padding: 120px 20px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 15px;
    min-height: 450px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 10px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
}
