/**
 * Hero Section Styles - BEM Methodology
 * Estudio Defensor
 */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 2rem;
  margin-bottom: 5rem;
  overflow: hidden;
}

/* ============================================
   HERO BACKGROUND
   ============================================ */

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* ============================================
   HERO CONTENT
   ============================================ */

.hero__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
  color: #ffffff;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 0;
}

/* ============================================
   HERO PHONE BADGE
   ============================================ */

.hero__phone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 2rem;
  background-color: #ffffff;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__phone-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.hero__phone-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero__phone-link:hover {
  color: #FF6600;
}

/* ============================================
   HERO TITLE
   ============================================ */

.hero__title {
  font-size: clamp(2.835rem, 2.835rem + ((1vw - 0.2rem) * 3.948), 5.5rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  color: #ffffff;
}

/* ============================================
   HERO DESCRIPTION
   ============================================ */

.hero__description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
  max-width: 600px;
}

/* ============================================
   HERO CTA
   ============================================ */

.hero__cta {
  margin-top: 1.5rem;
}

.hero__button {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero__button:hover {
  background-color: #FF6600;
  border-color: #FF6600;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
}

.hero__button:active {
  transform: translateY(0);
}

/* ============================================
   HERO SPACER (columna vacía)
   ============================================ */

.hero__spacer {
  /* Columna vacía para mantener el layout */
}

/* ============================================
   RESPONSIVIDAD
   ============================================ */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__spacer {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
    margin-bottom: 3rem;
    min-height: 80vh;
  }

  .hero__content {
    padding: 2rem 0;
    gap: 1.25rem;
  }

  .hero__phone-badge {
    padding: 0.25rem 1.5rem;
  }

  .hero__phone-link {
    font-size: 1.125rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__cta {
    margin-top: 1rem;
  }

  .hero__button {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    min-height: 70vh;
  }

  .hero__content {
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .hero__phone-badge {
    padding: 0.25rem 1.25rem;
  }

  .hero__phone-link {
    font-size: 1rem;
  }

  .hero__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero__description {
    font-size: 0.9375rem;
  }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.hero__phone-link:focus-visible,
.hero__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* ============================================
   ANIMACIONES
   ============================================ */

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
