.hero {
    display: flex;
    min-height: 600px;
    padding-block: 92px;
    color: var(--color-light);
}

.hero .block-contents {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.hero-anchor {
    position: relative;
}

img.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Desktop background - visible por defecto */
.hero-cover-desktop {
    display: block;
}

/* Mobile background - oculto por defecto */
.hero-cover-mobile {
    display: none;
}

/* Overlay oscuro para mejorar contraste - solo para móvil */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: none; /* Oculto por defecto */
}

.hero-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background-image: linear-gradient(to bottom,
            rgba(79, 80, 91, 1) 0%,
            rgba(44, 45, 51, 0.44) 10%,
            rgba(16, 16, 18, 0) 50%);
}

.hero-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.hero-header{
    font-size: clamp(2.35rem, 5vw, 3.75rem);
    font-weight: 600;
    margin-block: 0;
}

.hero-sub-header{
    font-size: clamp(1.88rem, 3vw, 2.35rem);
}

.acf-block.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .block-contents {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-header {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 1.2;
  margin: 0 0 15px 0;
}

.hero-header p {
  margin: 0;
}

.hero-sub-header {
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  margin: 0 0 50px 0;
}

.hero-cta-container {
  display: flex;
  gap: 80px;
  justify-content: center;
  margin: 0;
}

.hero-cta {
  margin: 0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  background-color: #25B3F2;
  color: #fff !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-button:hover,
.hero-button:focus,
.hero-button:active {
  background-color: #0C3455;
  color: #fff !important;
  text-decoration: none;
}

.hero-button-secondary {
  background-color: transparent;
  border: 2px solid #fff;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus,
.hero-button-secondary:active {
  background-color: #fff;
  color: #25B3F2 !important;
}

.btn-w-icon {
  gap: 10px;
  justify-content: center;
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero-button span {
  color: #fff;
}

@media screen and (min-width: 768px) {
  /* Ocultar header, subheader y CTAs en desktop */
  .hero-header,
  .hero-sub-header,
  .hero-cta-container {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .acf-block.hero {
    height: 450px;
  }
  
  /* Ocultar imagen desktop y mostrar imagen móvil */
  .hero-cover-desktop {
    display: none;
  }
  
  .hero-cover-mobile {
    display: block;
  }
  
  /* Mostrar overlay solo en móvil */
  .hero-overlay {
    display: block;
  }
  
  .hero-header {
    font-size: 36px;
  }
  
  .hero-sub-header {
    font-size: 18px;
  }
  
  .hero-cta-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-button {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}