/* =========================
   ESTILOS BASE
========================= */
.ultra-categories {
  --primary-gold: #FFD700;
  --secondary-gold: #E8B923;
  --dark-blue: #1e293b;
  --light-blue: #64748b;
  --white: #fff;
  --light-gray: #F9FAFB;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fff;
  padding: 60px 20px;
  position: relative;
}

/* =========================
   HEADER DE SECCIÓN
========================= */
.ultra-header {
  text-align: center;
  margin-bottom: 35px;
}

.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-gray);
  border: 1px solid var(--primary-gold);
  color: var(--dark-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .8; }
}

.mega-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark-blue);
  margin-bottom: 12px;
}

.title-line {
  display: block;
  font-weight: 300;
  opacity: .85;
}

.title-highlight {
  display: block;
  color: var(--dark-blue);
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 16px;
}

.deco-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.deco-diamond {
  width: 10px;
  height: 10px;
  background: var(--primary-gold);
  transform: rotate(45deg);
}

.subtitle-modern {
  font-size: 16px;
  color: var(--light-blue);
  max-width: 760px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

.progress-bar {
  margin-top: 15px;
  height: 4px;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  transition: width .5s ease;
}

.progress-text {
  display: block;
  font-size: 11px;
  color: var(--light-blue);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

/* =========================
   GRID DE PRODUCTOS
========================= */
.ultra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card-ultra {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.category-card-ultra:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .12);
  border-color: rgba(15, 23, 42, .14);
}

.image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8fafc;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.category-card-ultra:hover .image-container img {
  transform: scale(1.05);
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 18px 16px;
}

/* Título optimizado (H3) */
.card-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 12px;
}

.stat-divider {
  opacity: .4;
}

.ultra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  transition: all .2s ease;
  margin-top: auto; /* Empuja el botón al fondo siempre */
}

.ultra-btn:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 1024px) {
  .ultra-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablet */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ultra-categories {
    padding: 40px 15px;
  }

  .mega-title {
    font-size: 28px;
  }

  /* En móvil, ajustamos el grid */
  .ultra-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .image-container {
    height: 160px; /* Imágenes más chicas */
  }

  .card-info {
    padding: 12px 10px;
    gap: 8px;
  }

  .card-title {
    font-size: 15px; /* Título legible */
  }

  /* Ocultamos descripción larga y stats en móvil para limpieza visual */
  .card-desc, .stats {
    display: none;
  }

  .ultra-btn {
    padding: 8px;
    font-size: 12px;
    width: 100%;
  }
}
/* =========================
   AGREGA ESTO A TU CSS
========================= */

/* Hacemos que el contenedor interno ocupe toda la altura */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%; 
  width: 100%;
}

/* Aseguramos que la info se estire para empujar el botón */
.card-info {
  flex: 1; /* Esto ya lo tenías, pero es vital que se mantenga */
  display: flex;
  flex-direction: column;
}

/* El botón ya tiene 'margin-top: auto', así que con lo de arriba funcionará */