/* ======================================================
   RESET + BASE
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.7;
}


/* ======================================================
   CONTENEDOR GENERAL
====================================================== */
main {
  padding: 0px 0px;
}


section {
  margin-bottom: 40px;
}

/* ======================================================
   HERO
====================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 22px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
}

/* ======================================================
   CARRUSEL
====================================================== */
.hero-carousel {
  position: relative;
  height: 420px;
  width: 600px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-carousel img.active {
  opacity: 1;
}



@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-carousel {
    width: 100%;
    height: 380px;
    margin: auto;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }
}
@media (max-width: 768px) {
  .hero {
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    text-align: center;
  }

  .hero-carousel {
    height: 300px;
    border-radius: 18px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 50px 16px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-carousel {
    height: 240px;
  }
}
