/* ============================= */
/* 2. HERO SECTION – Modernizado */
/* ============================= */

.hero {
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.5) 0%, rgba(26, 54, 93, 0.02) 100%);
  padding: 80px 0;
  /* text-align: left; Removed to allow Bootstrap classes */
  /* Alineación natural a la izquierda en desktop -> Cambiado a center por petición */
  text-align: center;
  font-family: var(--font-primary);
  box-shadow: none !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  /* Altura mínima para impacto visual */
  display: flex;
  align-items: center;
}

/* === Contenedor principal === */
.hero .container {
  background: transparent !important;
}

/* === Imagen destacada === */
.hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /* Efecto moderno en la imagen */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* === Texto === */
.hero-text {
  /* padding-right: 2rem; Removed for better centering */
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Tipografía fluida */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-color);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* === Botón === */
.hero .btn-primary-custom {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 15px 40px;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero .btn-primary-custom:hover {
  background-color: var(--btn-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* === Responsividad Hero === */
@media (max-width: 991px) {
  .hero {
    padding: 60px 0;
    text-align: center;
    /* Centrado en tablet/móvil */
    min-height: auto;
  }

  .hero .row {
    flex-direction: column-reverse;
    /* Texto arriba en móvil si se prefiere, o abajo. Aquí imagen abajo texto arriba */
    /* Pero Bootstrap columna 1 es texto, columna 2 imagen. 
       Para mejor UX movil: Texto primero, luego imagen. 
       Bootstrap por defecto apila col-1 luego col-2. Está bien. */
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero img {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 40px 0;
  }

  .hero img {
    max-width: 100%;
  }
}