/* ============================================= */
/* HERO SECTION - FINAL CORREGIDO COMPATIBLE IPHONE */
/* ============================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100dvh; /* mejor que 100vh en Safari/iPhone */
  min-height: 600px;
  overflow: hidden;
  background-color: #000;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 140px;
}

/* HERO BACKGROUND */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagen de fondo */
.hero-bg .bg-image {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-object-fit: cover;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroFadeZoom 1s ease-out forwards;
  animation-delay: 1s;
}

/* Ocultar versión móvil por defecto */
.hero-bg .mobile {
  display: none;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-bg .bg-image {
    min-width: 98%;
    min-height: 98%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    padding-top: 170px;
  }

  .hero-bg .desktop {
    display: none;
  }

  .hero-bg .mobile {
    display: block;
  }

  .hero-bg .bg-image {
    min-width: 100%;
    min-height: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 300px;
    padding-top: 170px;
  }
}

/* ANIMACIÓN */
@keyframes heroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* EXTRA soporte para iPhone con Safari */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    height: 100dvh !important;
  }
}
