/* ============================================================
   ESTILOS GENERALES
============================================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Animación Fade Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Loader Spinner */
@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* ===== LAYOUT GENERAL PARA OCUPAR TODA LA PANTALLA ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ajuste para el contenido entre navbar y footer */
.main-content {
  flex-grow: 1;
  padding-top: calc(55px + 70px);
}

@media (max-width: 992px) {
  .main-content {
    padding-top: calc(55px + 60px);
  }
}

/* ============================================================
   SECCIÓN LOBBY
============================================================ */
.lobby {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 5%;
  transition: opacity .3s ease;
}

.sidebar,
.industry-detail {
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.show-detail .sidebar,
.show-detail .industry-detail {
  display: block;
  opacity: 1;
}

.show-detail .lobby {
  display: none;
  opacity: 0;
}

/* ============================================================
   TARJETAS DE INDUSTRIAS
============================================================ */
.industry-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.industry-thumb:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border-color: #007bff;
}

.industry-thumb img {
  transition: all 0.3s ease;
}

.industry-thumb:hover img {
  transform: scale(1.1);
}

.industry-thumb .card-body {
  padding: 1.5rem 1rem;
}

/* ============================================================
   SIDEBAR – VERSIÓN MODERNA MEJORADA 2025
============================================================ */
.sidebar-modern {
  height: 100%;
  padding: 1rem 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.sidebar-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  position: sticky;
  top: 2rem;
}

/* ===== BOTÓN VOLVER ===== */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-back:hover {
  background: #e9ecef;
  border-color: #ced4da;
  color: #212529;
}

.btn-back:hover i {
  transform: translateX(-3px);
}

/* ===== NAVEGACIÓN DE INDUSTRIAS ===== */
.industry-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.industry-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Efecto hover sutil */
.industry-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #007bff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.industry-link:hover {
  background: #f8f9fa;
  color: #212529;
  transform: translateX(4px);
}

.industry-link:hover::before {
  transform: scaleY(1);
}

/* Estado ACTIVO */
.industry-link.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.industry-link.active::before {
  display: none;
}

/* Iconos */
.industry-link .icon {
  font-size: 1.1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.industry-link:hover .icon {
  transform: scale(1.15);
}

.industry-link.active .icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* Texto */
.industry-link .text {
  flex: 1;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .sidebar-wrapper {
    padding: 1rem 0.85rem;
    border-radius: 12px;
  }
  
  .btn-back {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .industry-link {
    padding: 11px 12px;
    font-size: 0.85rem;
  }
  
  .industry-link .icon {
    font-size: 1rem;
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   HERO SECTION - NUEVO DISEÑO
============================================================ */
.industry-hero {
  position: relative;
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 2.5rem 3rem;
  max-width: 800px;
  margin: 0;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 1rem 0;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.8s ease forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInScale 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(0, 123, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 123, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: #ffffff;
}

.hero-btn i {
  transition: transform 0.3s ease;
}

.hero-btn:hover i {
  transform: translateX(4px);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .industry-hero {
    height: 280px;
  }
  
  .hero-content {
    padding: 1.5rem 2rem;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 1.75rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   SECCIÓN DE DESCRIPCIÓN
============================================================ */
.industry-description-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

.industry-description-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  text-align: left;
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .industry-description-section {
    padding: 1.5rem 0;
  }
  
  .industry-description-text {
    font-size: 0.95rem;
    padding: 0 1.5rem;
  }
}

/* ============================================================
   SECCIÓN DE PRODUCTOS
============================================================ */
.products-section {
  padding: 4rem 0;
  background: #ffffff;
}

.products-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #212529;
  position: relative;
  padding-bottom: 1rem;
}

.products-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 2px;
}






/* ====== PRODUCTOS MODERNOS - 70% IMAGEN, 30% BOTÓN ====== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 20px;
}

.product-card-modern {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  height: 380px; /* Altura optimizada */
  position: relative;
  border: 1px solid #e9ecef;
}

.product-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

/* === IMAGEN (70% del espacio) === */
.product-image-wrapper {
  flex: 0 0 70%; /* OCUPA EL 70% */
  height: 0;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

/* Hacer toda la imagen clickeable */
.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.product-image {
  width: 140%;
  height: 140%;
  object-fit: contain;
  padding: 1px; /* REDUCIDO de 30px a 15px - ¡La imagen será más grande! */
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.product-card-modern:hover .product-image {
  transform: scale(1.1);
}

/* === SECCIÓN DE BOTÓN (30% del espacio) === */
.product-info-modern {
  flex: 0 0 30%; /* OCUPA EL 30% */
  padding: 15px 20px;
  text-align: center;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e9ecef;
}

/* Título compacto */
.product-title-modern {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Contenedor para elementos inferiores */
.product-bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Badge estilizado */
.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

/* BOTÓN "VER MÁS" - tamaño adecuado */
.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #000000);
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  width: 100%;
  max-width: 180px;
  margin-top: 5px;
}

.product-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(39, 39, 39, 0.35);
  background: linear-gradient(135deg, #3f3f3f);
  color: #ffffff;
}

.product-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.product-btn:hover i {
  transform: translateX(3px);
}

/* Cuando no hay badge */
.product-info-modern:has(.product-actions:not(:has(.product-badge))) .product-btn {
  margin-top: 10px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .product-card-modern {
    height: 350px;
  }
  
  .product-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .product-image-wrapper {
    flex: 0 0 70%;
  }
  
  .product-info-modern {
    flex: 0 0 30%;
    padding: 12px 15px;
    gap: 8px;
  }
  
  .product-image {
    padding: 25px;
  }
  
  .product-title-modern {
    font-size: 1rem;
  }
  
  .product-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  
  .product-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
    max-width: 160px;
  }
}

/* Para pantallas pequeñas */
@media (max-width: 480px) {
  .product-card-modern {
    height: 320px;
  }
  
  .product-image-wrapper {
    flex: 0 0 65%;
  }
  
  .product-info-modern {
    flex: 0 0 35%;
    padding: 10px 12px;
    gap: 6px;
  }
  
  .product-image {
    padding: 20px;
  }
  
  .product-title-modern {
    font-size: 0.95rem;
  }
  
  .product-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    max-width: 120px;
  }
  
  .product-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
    max-width: 140px;
  }
}

/* Para tablets grandes */
@media (min-width: 992px) {
  .product-card-modern {
    height: 400px;
  }
  
  .product-image-wrapper {
    flex: 0 0 70%;
  }
  
  .product-info-modern {
    flex: 0 0 30%;
  }
  
  .product-image {
    padding: 35px;
  }
  
  .product-title-modern {
    font-size: 1.2rem;
  }
  
  .product-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    max-width: 200px;
  }
}

/* Efecto hover para toda la tarjeta */
.product-card-modern:hover {
  cursor: pointer;
}

/* Asegurar que la imagen sea clickeable */
.product-image-wrapper {
  cursor: pointer;
}

/* Ocultar descripción si existe */
.product-description-modern {
  display: none !important;
}



















































