/* ====================================
   HERO SECTION - Logic Minds Technology
   ==================================== */

.lm-hero {
  position: relative;
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--logicmind-primary);
}

.lm-hero::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 119px;
  background-image: url("../../assets/backgrounds/new-main-banner.png");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
  right: 10%;
  opacity: 0.6;
}

/* Video de fondo */
.lm-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Background image alternativo */
.lm-hero__background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay oscuro */
.lm-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.45) 50%,
    rgba(15, 23, 42, 0.05) 100%
  );
  z-index: 1;
}

/* Contenedor principal */
.lm-hero__container {
  position: relative;
  z-index: 3;
}

/* Grid principal */
.lm-hero__main-grid {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Contenido del hero */
.lm-hero__content {
  max-width: 750px;
}

/* Subtítulo */
.lm-hero__subtitle {
  color: #fff;
  margin-bottom: 8px;
}

/* Título principal */
.lm-hero__title {
  color: #fff;
  letter-spacing: -1px;
}

.lm-hero__title-accent {
  color: var(--logicmind-accent2);
  font-weight: 700;
}

/* Descripción */
.lm-hero__description {
  color: #fff;
  max-width: 90%;
}

/* Wrapper del botón CTA */
.lm-hero__cta-wrapper {
  display: inline-block;
}

/* Botón CTA principal */
.lm-hero__cta-btn {
  background: #f4972d;
  /* Naranja principal */
  color: #ffffff;
  /* Blanco para el texto */
  font-size: 16px;
  font-weight: 600;
  padding: 16px 45px;
  border-radius: 8px;
  text-transform: none;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 12px rgba(13, 65, 103, 0.25);
  /* Sombra celeste oscuro */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Efecto de brillo sutil */
.lm-hero__cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.lm-hero__cta-btn:hover::before {
  left: 100%;
}

.lm-hero__cta-btn:hover {
  transform: translateY(-3px);
  background: #e08820;
  /* Naranja más oscuro */
  box-shadow: 0 8px 20px rgba(13, 65, 103, 0.35);
  /* Sombra celeste oscuro más pronunciada */
}

.lm-hero__cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(13, 65, 103, 0.3);
}

.lm-hero__cta-btn-text {
  margin-right: 10px;
  position: relative;
  z-index: 1;
}

.lm-hero__cta-btn-arrows {
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.lm-hero__cta-btn:hover .lm-hero__cta-btn-arrows {
  transform: translateX(5px);
}

/* Variante para botón secundario (si lo necesitas) */
.lm-hero__cta-btn--secondary {
  background: transparent;
  color: #f4972d;
  border: 2px solid #f4972d;
  box-shadow: none;
}

.lm-hero__cta-btn--secondary:hover {
  background: #f4972d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 65, 103, 0.25);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1280px) {
  .lm-hero__title {
    font-size: 60px;
  }

  .lm-hero__content {
    max-width: 650px;
  }
}

@media (max-width: 960px) {
  .lm-hero__title {
    font-size: 48px;
  }

  .lm-hero__description {
    font-size: 15px;
  }

  .lm-hero__content {
    text-align: center;
    align-items: center;
  }

  .lm-hero__cta-wrapper {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .lm-hero {
    height: 70vh;
    margin: 0;
  }

  .lm-hero::before {
    width: 350px;
    height: 120px;
    left: 0;
    opacity: 0.2;
    background-size: cover;
  }

  .lm-hero__main-grid {
    min-height: 20vh;
  }

  .lm-hero__title {
    font-size: 32px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
  }

  .lm-hero__subtitle {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .lm-hero__description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .lm-hero__cta-btn {
    padding: 12px 32px;
    font-size: 14px;
  }

  .lm-hero__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.75) 100%
    );
  }
}

/* Animaciones optimizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lm-hero__content > * {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.lm-hero__subtitle {
  animation-delay: 0.1s;
}

.lm-hero__title {
  animation-delay: 0.2s;
}

.lm-hero__description {
  animation-delay: 0.3s;
}

.lm-hero__cta-wrapper {
  animation-delay: 0.4s;
}

/* Reducir animaciones en dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .lm-hero__content > * {
    animation: none;
  }
}
