/* ========================================
   HERO SECTION MODERNA - RESPONSIVE MEJORADO
======================================== */

.hero-section {
  width: 100%;
  min-height: 92vh;
  background: linear-gradient(
      rgba(89, 87, 184, 0.82),
      rgba(0, 0, 0, 0.65)
    ),
    url("../images/ciudad.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}

/* Contenedor centrado */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Título principal */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 0.5rem;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Botones */
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Botón principal */
.hero-btn {
  padding: 18px 45px;
  border-radius: 999px;
  background: black;
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 58px;
}

.hero-btn:hover {
  background: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Botón secundario */
.hero-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
}

.hero-btn.secondary:hover {
  background: white;
  color: black;
  border-color: white;
}

/* ========================================
   RESPONSIVE MEJORADO - TRANSICIONES SUAVES
======================================== */

/* Tablet Horizontal (1024px - 769px) */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 85vh;
    padding: 0 4vw;
  }
  
  .hero-container {
    gap: 1.2rem;
  }
  
  .hero-title {
    font-size: clamp(2.3rem, 5.5vw, 4.5rem);
    max-width: 850px;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
  }
  
  .hero-btn {
    padding: 17px 40px;
    font-size: 1.05rem;
    min-height: 56px;
  }
}

/* Tablet Vertical (768px - 601px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 0 8vw; /* Aumenté de 6vw a 8vw para más espacio lateral */
    justify-content: center;
  }
  
  .hero-container {
    align-items: center;
    gap: 1.5rem;
    width: 100%; /* Asegurar que use todo el ancho disponible */
    max-width: 100%; /* Eliminar cualquier limitación */
    margin-left: -2px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Reducí el máximo de 3.5rem a 3.2rem */
    max-width: 92%; /* Aumenté de 90% a 92% */
    line-height: 1.15;
    margin: 0 auto; /* Centrar horizontalmente */
    padding: 0 2%; /* Agregar pequeño padding interno */
    word-wrap: break-word; /* Permitir que palabras largas se ajusten */
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 92%; /* Aumenté de 85% a 92% */
    line-height: 1.5;
    margin: 0 auto;
    padding: 0 2%; /* Agregar pequeño padding interno */
  }
  
  .hero-buttons {
    justify-content: center;
    gap: 0.9rem; /* Reducí ligeramente el gap */
    margin-top: 1.5rem;
    width: 100%;
    max-width: 480px; /* Ajusté de 500px a 480px */
    padding: 0 10px; /* Agregar padding interno */
  }
  
  .hero-btn {
    flex: 1;
    min-width: 150px; /* Reducí de 180px a 150px */
    padding: 16px 30px; /* Reducí el padding lateral de 35px a 30px */
    font-size: 1rem;
    min-height: 54px;
  }
}

/* Móvil Grande (600px - 481px) */
@media (max-width: 600px) {
  .hero-section {
    min-height: 75vh;
    padding: 0 6vw; /* Aumenté de 5vw a 6vw */
  }
  
  .hero-container {
    gap: 1.3rem;
    width: 100%;
    margin-left: -20px;
  }

  .hero-container {
    transform: translateX(6%);
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Reducí máximo a 2.8rem */
    max-width: 96%; /* Aumenté de 95% a 96% */
    padding: 0 3%; /* Más padding interno */
    line-height: 1.2; /* Aumenté line-height para mejor legibilidad */
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 96%; /* Aumenté de 90% a 96% */
    line-height: 1.45; /* Aumenté ligeramente */
    padding: 0 3%; /* Más padding interno */
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 360px; /* Reducí de 400px a 360px */
    padding: 0 15px; /* Agregar padding interno */
    margin-left: auto;
    margin-right: auto; /* Asegurar centrado perfecto */
  }
  
  .hero-btn {
    width: 100%;
    padding: 15px 25px; /* Reducí padding lateral de 30px a 25px */
    font-size: 0.95rem;
    min-height: 52px;
  }
}

/* Móvil Pequeño (480px - 361px) */
@media (max-width: 480px) {

  .hero-section {
    min-height: 70vh;
    padding: 0 5vw;
    display: flex;
    justify-content: center;
  }

  .hero-container {
    gap: 1.1rem;
    text-align: center;
    align-items: center;
  }

  .hero-container {
    transform: translateX(6%);
  }

  .hero-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 auto;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.35;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin: 1.2rem auto 0;
    width: 100%;
  }

  .hero-btn {
    width: 90%;
    max-width: 260px;
    padding: 14px 25px;
    font-size: 0.9rem;
    min-height: 50px;
    letter-spacing: 0.5px;
  }
}


/* Móvil Muy Pequeño (360px y menos) */
@media (max-width: 360px) {

  .hero-section {
    min-height: 65vh;
    padding: 0 5vw;
  }

  .hero-container {
    transform: translateX(8%);
  }

  .hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    max-width: 95%;
    margin: 0 auto;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 95%;
    margin: 0 auto;
  }

  .hero-buttons {
    width: 100%;
    max-width: 240px;
    margin: 0.8rem auto 0;
  }

  .hero-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.8rem;
    min-height: 44px;
    letter-spacing: 0.3px;
  }

  .hero-btn.secondary {
    font-size: 0.78rem;
    padding: 9px 14px;
    white-space: normal;
    line-height: 1.2;
  }
}


/* ========================================
   MEJORAS DE ACCESIBILIDAD Y USABILIDAD
======================================== */

/* Mejorar contraste para accesibilidad */
.hero-subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Asegurar que los botones sean fácilmente tocables en móvil */
@media (max-width: 768px) {
  .hero-btn {
    touch-action: manipulation;
  }
}

/* Prevenir zoom en iOS al tocar inputs/buttons */
@media (max-width: 768px) {
  .hero-btn {
    font-size: 16px; /* Tamaño mínimo para prevenir zoom en iOS */
  }
}

/* Smooth scrolling para anchor links */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    scroll-behavior: smooth;
  }
}