/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

@media (min-width: 768px) {
  .hero {
    min-height: 800px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
    max-height: none;
  }
}

/* Hero con imagen de fondo */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero--image::before,
.hero--video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 1000px;
  padding: var(--space-2xl) var(--space-lg);
  width: 100%;
  margin: 0 auto;
  transform: translateY(1.5rem);
}

.hero__eyebrow {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3.9vw, 2.3rem);
  font-weight: var(--font-weight-semibold);
  color: #FFFFFF;
  margin-bottom: var(--space-2xl);
  animation: fadeIn var(--transition-slow) ease-in;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .hero__eyebrow {
    font-size: clamp(1.625rem, 3.5vw, 1.875rem);
  }
}

.hero__title {
  /* Usar fuente Sans Serif humanista similar a Montserrat/Open Sans */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  /* Especificar font-size explícitamente para h1 en section (nuevo estándar browsers) */
  font-size: clamp(1.5rem, 3vw, 1.75rem) !important;
  font-weight: var(--font-weight-normal);
  font-style: italic;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: var(--space-2xl);
  animation: slideUp 0.8s ease-out 0.2s both;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(1.625rem, 3.5vw, 1.875rem);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(1.75rem, 4vw, 2rem);
  }
}

.hero__title-highlight {
  /* Usar Arial para coincidir con el logo */
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  color: #B0B7BD; /* Plateado primario */
  display: inline;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

/* Tamaño reducido y en su propia línea para la palabra 'Propiedades' dentro del título principal */
.hero__title-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68em;
  font-weight: var(--font-weight-medium);
  display: block; /* Forzar en renglón separado */
  margin-top: 0.15em;
  letter-spacing: var(--letter-spacing-normal);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero__title-sub { font-size: 0.72em; }
}

@media (min-width: 1024px) {
  .hero__title-sub { font-size: 0.78em; }
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: #FFFFFF;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-in 0.4s both;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  animation: fadeIn 1.2s ease-in 0.6s both;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Hero scroll indicator */
.hero__scroll {
  display: none; /* Ocultado por diseño más profesional */
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll-icon {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-white);
  border-radius: 25px;
  position: relative;
}

.hero__scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

/* Hero con logo central */
.hero__logo {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-lg);
  animation: fadeIn var(--transition-slow) ease-in;
}

@media (min-width: 768px) {
  .hero__logo {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .hero__logo {
    width: 280px;
  }
}

/* Hero con línea divisoria */
.hero__divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.1)
  );
  z-index: 3;
}
