/*BANNER*/
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -96px; /* compensa el padding-top del body */
}

.hero,
.banner {
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 70vh;
  }
}

.hero-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

body{
  background-color: #3B4754;
}

h5{
  color: #EAEAEA;
  /*font-family: 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
  font-family: 'Codec Pro', 'HK Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Capa semitransparente encima de la imagen */
.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}


/* Contenido encima de la capa oscura */
.hero-banner .hero-content {
  position: relative;
  z-index: 3;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-banner .hero-content {
    padding: 0 1rem;
  }

  .hero-banner h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  }
}


/* BUTTONS */
.image-button-container {
  position: relative;
  margin: 2rem 0;
  min-height: 420px; /* controla el alto visual */
  overflow: hidden;

  display: flex;
  align-items: center;     /* centra vertical */
}

.grid-buttons a {
  text-decoration: none;
}

/* Imagen como fondo REAL */
.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Botones encima de la imagen */
.grid-buttons {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 900px;        /* evita que se estiren demasiado */
  margin: 0 auto;          /* centra horizontal */

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;

  padding: 2rem;
}

@media (min-width: 1200px) {
  .grid-buttons {
    column-gap: 2.5rem;
    row-gap: 3rem;
  }
}


@media (max-width: 768px) {
  .image-button-container {
    min-height: auto;
  }

  .grid-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-buttons {
    grid-template-columns: 1fr;
  }
}

.grid-buttons button {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 64px;                 /* más elegante */
  padding: 0 1rem;              /* padding horizontal controlado */
  width: 100%;

  background-color: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.9);

  color: #fff;
  font-size: 18px;
  border-radius: 8px;

  text-align: center;
  transition: all 0.25s ease;
}


.grid-buttons button:hover {
  background-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}


main h1,
main h5 {
  color: #EAEAEA;
}

html, body {
  overflow-x: hidden;
}
