/* ====================================
   HERO SECTION - LogicMind
   ==================================== */

.lm-hero {
  position: relative;
  margin-top: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--logicmind-primary);
  /* Padding extra arriba y abajo para que el contenido respire */
  padding: 80px 0;
}

.lm-hero::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 119px;
  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(
    90deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.65) 45%,
    rgba(15, 23, 42, 0.2) 100%
  );
  z-index: 1;
}

/* Contenedor principal */
.lm-hero__container {
  position: relative;
  z-index: 3;
}

/* Grid principal */
.lm-hero__main-grid {
  min-height: 75vh;
  display: flex;
  align-items: center;
}

/* Contenido del hero */
.lm-hero__content {
  max-width: 750px;
}

/* Subtítulo */
.lm-hero__subtitle {
  color: var(--logicmind-accent2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0px;
}

/* Título principal */
.lm-hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lm-hero__title-accent {
  background: linear-gradient(135deg, var(--logicmind-accent2) 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Descripción */
.lm-hero__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1rem;
}

/* Wrapper del botón CTA */
.lm-hero__cta-wrapper {
  display: inline-block;
}

/* Botón CTA principal */
.lm-hero__cta-btn {
  background: var(--mu-palette-primary, #f4972d);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 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.25),
    transparent
  );
  transition: left 0.6s ease;
}

.lm-hero__cta-btn:hover::before {
  left: 100%;
}

.lm-hero__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.lm-hero__cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lm-hero__cta-btn-text {
  position: relative;
  z-index: 1;
}

.lm-hero__cta-btn-arrows {
  font-size: 1.25em;
  font-weight: bold;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  line-height: normal;
}


.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 {
    margin-top: 110px;
  }

  .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-top: 60px;
    padding: 40px 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);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.lm-hero__content {
  gap: 0 !important;
  /* MudStack override if needed, but handled by Spacing=0 */
}

/* Icono del botón */
.lm-hero__cta-btn .mud-icon-root {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.lm-hero__cta-btn:hover .mud-icon-root {
  transform: translateX(4px);
}

/* Reducir animaciones en dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .lm-hero__content > * {
    animation: none;
  }
}
