/* Header base ya existente */
.header {
  width: 100%;
  height: 100vh;
  position: relative;
  background: url('../../img/home/background-header.jpg') no-repeat center center/cover;
  background-attachment: fixed;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.805);
  top: 0;
  left: 0;
  z-index: 1;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.header-content p {
  font-size: 1.3rem;
  color: #ddd;
}

.header-content .buttoms {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.header-content .buttoms button {
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-content .buttoms button:hover {
  background-color: #ffffff;
  color: #052a51;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* -------------------- Media Queries -------------------- */



/* Tablets más pequeñas y móviles grandes (≤768px) */
@media screen and (max-width: 768px) {
  .header {
    height: 80vh; /* menos altura para tablet */
    background-attachment: scroll; /* evita efecto fijo que puede cortar imagen */
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .header-content p {
    font-size: 1rem;
    padding: 0 15px;
  }

  .header-content .buttoms {
    gap: 15px;
  }

  .header-content .buttoms button {
    width: 80%;
    max-width: 250px;
    font-size: 0.95rem;
  }
}

/* Móviles pequeños (≤480px) */
@media screen and (max-width: 480px) {
  .header {
    height: 70vh;
  }

  .header-content{
    width: 300px;
  }

  .header-content h1 {
    font-size: 1.6rem;
  }

  .header-content p {
    font-size: 0.95rem;
  }

  .header-content .buttoms button {
    width: 90%;
    font-size: 0.9rem;
  }
}

/* Móviles pequeños (≤480px) */
@media screen and (max-width: 340px) {

  .header-content{
    width: 300px;
  }

  .header-content h1 {
    font-size: 1.5rem;
  }

  .header-content p {
    font-size: 0.85rem;
  }



  .header-content .buttoms button {
    width: 45%;
    font-size: 0.9rem;
  }
}
