/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  overflow: visible;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.hero h1 {
  text-transform: var(--hero-title-transform);
}

.hero-claim {
  font-weight: var(--hero-title-weight);
}

/* ==========================================================
   HERO FULL
========================================================== */
.hero-full {
  min-height: 100vh;
  overflow: hidden;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: flex-end;
}

.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-full .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay-background);
}

.hero-full .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 140px 0 var(--spacing-3xl);
}

.hero-full .hero-content h1 {
  font-size: clamp(2rem, 3.2vw, var(--hero-title-max-size));
  line-height: 0.86;
  letter-spacing: var(--hero-title-letter-spacing);
  margin-bottom: var(--spacing-xl);
  text-transform: uppercase;
}

.hero-full .hero-claim {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-text-sm);
  color: var(--hero-claim-color);
  font-weight: var(--hero-claim-weight);
}

.hero-full .paragraphs {
  margin-top: var(--space-text-sm);
}

.hero-full .hero-buttons {
  margin-top: var(--spacing-2xl);
}

/* ==========================================================
   HERO SPLIT
========================================================== */
.hero-split {
  min-height: 90vh;
  width: min(100% - var(--container-padding), var(--container-max));
  margin: 0 auto;
  padding: 120px 0 var(--spacing-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--hero-split-gap);
}

.hero-split-content {
  max-width: 620px;
}

.hero-split .text-block {
  max-width: 100%;
}

.hero-split h1 {
  font-size: clamp(2rem, 3.2vw, var(--hero-title-max-size));
  line-height: 0.9;
  letter-spacing: var(--hero-title-letter-spacing);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
}

.hero-split .hero-claim {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin-bottom: var(--space-text-sm);
  color: var(--hero-claim-color);
  font-weight: var(--hero-claim-weight);
}

.hero-split .paragraphs {
  margin-top: var(--space-text-sm);
}

.hero-split .hero-buttons {
  margin-top: var(--spacing-xl);
}

.hero-split-image {
  min-height: 480px;
  border-radius: var(--hero-image-radius);
  overflow: hidden;
  background: var(--color-surface);
  border: var(--hero-image-border);
  box-shadow: var(--hero-image-shadow);
}

.hero-split-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-split-image:hover img {
  transform: scale(1.02);
}

/* ==========================================================
   HERO MINIMAL
========================================================== */
.hero-minimal {
  min-height: 78vh;
  width: min(100% - var(--container-padding), 900px);
  margin: 0 auto;
  padding: 140px 0 var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-minimal .text-block {
  margin-bottom: var(--spacing-2xl);
  max-width: 100%;
}

.hero-minimal h1 {
  font-size: clamp(2rem, 3.2vw, var(--hero-title-max-size));
  line-height: 0.94;
  letter-spacing: var(--hero-title-letter-spacing);
  margin-bottom: var(--spacing-xl);
  text-transform: uppercase;
}

.hero-minimal .lead {
  font-size: var(--lead-font-size);
  font-weight: var(--lead-font-weight);
  color: var(--hero-full-content-color);
  text-shadow: var(--hero-full-text-shadow);
  margin-bottom: var(--space-text-sm);
}

.hero-minimal .paragraphs {
  margin-top: var(--space-text-sm);
}

.hero-minimal .hero-buttons {
  margin-top: var(--spacing-2xl);
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 850px) {
  .hero-full {
    min-height: 92vh;
  }

  .hero-full .hero-content {
    padding: 120px 0 var(--spacing-2xl);
  }

  .hero-full .hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero-full .hero-claim {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .hero-full .hero-buttons {
    margin-top: var(--spacing-xl);
  }

  .hero-split {
    grid-template-columns: 1fr;
    padding: 110px 0 var(--spacing-2xl);
    gap: var(--spacing-xl);
    min-height: auto;
  }

  .hero-split-content {
    max-width: 100%;
    padding: 0;
  }

  .hero-split-content .text-block {
    max-width: 100%;
  }

  .hero-split h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero-split .hero-claim {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .hero-split .hero-buttons {
    margin-top: var(--spacing-lg);
  }

  .hero-split-image {
    min-height: 280px;
    order: -1;
  }

  .hero-split-image img {
    min-height: 280px;
    aspect-ratio: 4/3;
  }

  .hero-minimal {
    min-height: 60vh;
    padding: 110px 0 var(--spacing-2xl);
  }

  .hero-minimal h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero-minimal .text-block {
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    padding: 0;
  }

  .hero-minimal .lead {
    font-size: 1.1rem;
  }

  .hero-minimal .hero-buttons {
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  .hero-full .hero-content h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .hero-full .hero-claim {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }

  .hero-split h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .hero-split .hero-claim {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }

  .hero-split-image {
    min-height: 200px;
  }

  .hero-split-image img {
    min-height: 200px;
  }

  .hero-minimal h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-full .hero-buttons {
    margin-top: var(--spacing-lg);
  }

  .hero-split .hero-buttons {
    margin-top: var(--spacing-md);
  }

  .hero-minimal .text-block {
    padding: 0;
  }

  .hero-minimal .hero-buttons {
    margin-top: var(--spacing-lg);
  }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-split-image img,
  .hero-split-image:hover img {
    transition: none;
    transform: none;
  }

  .hero-full .hero-bg {
    transform: none !important;
  }
}

/* Separación segura entre Hero Full y la siguiente sección */
.hero-full + .stats,
.hero-full + section {
  margin-top: var(--hero-full-bottom-gap);
}

@media (max-width: 850px) {
  .hero-full .hero-overlay {
    background: var(--hero-full-overlay-mobile);
  }

  .hero-full + .stats,
  .hero-full + section {
    margin-top: var(--hero-full-bottom-gap);
  }
}
