/* ========================================
   HERO
======================================== */

.hero {
  width: 100%;
  min-height: 100svh;

  padding:
    calc(var(--header-mobile) + 3rem)
    1.5rem
    3rem;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  background-image: url("../img/FONDO CAFE.png");
  background-size: cover;
  background-position: 30% center;
  background-repeat: no-repeat;

  text-align: center;
}


/* Oscurecemos ligeramente para mejorar contraste */

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.08);

  pointer-events: none;
}


/* ========================================
   CONTENEDOR
======================================== */

.contenedor-hero {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  display: flex;
  justify-content: center;
}


/* ========================================
   TEXTO
======================================== */

.hero-texto {
  width: 100%;
  max-width: 300px;
}


.hero-texto h1 {
  margin-bottom: 1.5rem;

  color: var(--color8);

  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;

  text-align: center;

  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.65);
}


/* ========================================
   BOTONES
======================================== */

.container-button-hero {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.8rem;
}


.btn-hero-1,
.btn-hero-2 {
  width: 100%;
  max-width: 250px;
  min-height: 48px;

  padding: 0.8rem 1.4rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  color: var(--color8);

  font-size: 0.9rem;
  font-weight: 700;

  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.btn-hero-1 {
  background-color: var(--color2);
}


.btn-hero-2 {
  background-color: var(--color3);
}


.btn-hero-1:hover,
.btn-hero-2:hover {
  transform: translateY(-2px);
}


.btn-hero-1:hover {
  background-color: var(--color9);
}


.btn-hero-2:hover {
  background-color: var(--color10);
}


/* ========================================
   TABLET
======================================== */

@media screen and (min-width: 768px) {

  .hero {
    padding:
      calc(var(--header-desktop) + 4rem)
      2.5rem
      4rem;

    background-position: center;
  }


  .hero-texto {
    max-width: 520px;
  }


  .hero-texto h1 {
    font-size: 3rem;
  }


  .container-button-hero {
    flex-direction: row;
    justify-content: center;

    gap: 1rem;
  }


  .btn-hero-1,
  .btn-hero-2 {
    width: auto;
    min-width: 200px;

    font-size: 0.95rem;
  }

}


/* ========================================
   DESKTOP
======================================== */

@media screen and (min-width: 1024px) {

  .hero {
     min-height: 100svh;

    padding:
      calc(var(--header-desktop) + 3rem)
      2rem
      4rem;

    background-position: center center;

    text-align: right;
  }


  .contenedor-hero {
    justify-content: flex-end;
    align-items: center;
  }


  .hero-texto {
    max-width: 580px;

    margin-right: 1rem;

    text-align: right;
  }


  .hero-texto h1 {
    margin-bottom: 2rem;

    font-size: clamp(3rem, 4.3vw, 4.2rem);
    line-height: 1;

    text-align: right;
  }


  .container-button-hero {
    flex-direction: row;

    justify-content: flex-end;

    gap: 2rem;
  }


  .btn-hero-1,
  .btn-hero-2 {
    min-width: 190px;
  }

}