/* ============================================
   Hero portrait — simple img next to text
   ============================================ */

.hero {
  background: #0A0A0A;
  position: relative;
}

/* BASE: force the grid (no media-query dependency) */
.hero .hero-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* Desktop+ : two columns, text left / photo right */
@media (min-width: 760px) {
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    gap: 48px;
  }
  .hero .hero-left { max-width: 600px; }
  .hero .hero-visual {
    order: 0 !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}

/* Portrait card — show FULL photo, no cropping */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  background: #0A0A0A;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Subtle vignette (disabled — was rendering strange on some mobile browsers) */
.hero-portrait::after {
  display: none;
}

/* Floating "Disponible ahora" chip inside portrait */
.hero-portrait .hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10,10,10,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  width: auto;
  max-width: calc(100% - 32px);
}
.hero-portrait .hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #E50914;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229,9,20,0.22);
  animation: dot-pulse 1.8s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(229,9,20,0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(229,9,20,0.08); }
}

/* Mobile: stacked, smaller portrait above text */
@media (max-width: 759px) {
  .hero .hero-visual {
    order: -1 !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .hero-portrait {
    max-width: 300px;
    margin: 0 auto !important;
    border-radius: 16px;
  }
  /* HIDE the badge entirely on mobile — was causing rendering issues */
  .hero-portrait .hero-badge {
    display: none !important;
  }
}

/* Also kill the animated box-shadow on .dot everywhere to avoid iOS rendering bugs */
.hero-portrait .hero-badge .dot {
  animation: none !important;
  box-shadow: none !important;
}

/* Kill any legacy aspect-ratio rule that forced the hero-visual to a box */
.hero .hero-visual {
  background: transparent !important;
}

/* ============================================
   Hero typography — balanced with 480px portrait
   ============================================ */
.hero .hero-title {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero .hero-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 54ch;
}
.hero .hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

@media (max-width: 759px) {
  .hero .hero-title {
    font-size: clamp(36px, 9vw, 48px) !important;
    line-height: 1.04 !important;
    margin-bottom: 14px !important;
  }
  .hero .hero-sub {
    font-size: 15px;
    margin-bottom: 18px;
  }
}
