/*
=========================================
 ESTILOS PARA LA SECCIÓN DE TABS DE PRODUCTOS
=========================================
*/
.ctabs-products ul.products::before,
.ctabs-products ul.products::after {
  display: none!important;
}
/* --- Contenedor Principal --- */
.ctabs-section {
  padding: 2rem;
  margin: 2rem 0;
}

/* --- Encabezado: Título + Pestañas --- */
.ctabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.ctabs-title {
  margin: 0;
  font-size: 28px;
  color: var(--color-primario-v2, #020203);
  white-space: nowrap;
}

/* --- Pestañas de Categorías --- */
.ctabs-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ctab {
  padding: 0px 25px;
  border-radius: 8px;
  border: 1px solid var(--color-primario-claro);
  background: transparent;
  color: var(--color-primario-claro);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

/* Estado activo y hover para las pestañas */
.ctab.active,
.ctab:hover {
  background: var(--color-cta);
  color: var(--color-blanco-texto);
}

/* --- Contenedor de Productos (Grilla) --- */
.ctabs-products {
  opacity: 1;
  transition: opacity 0.15s ease;
}
.ctabs-products.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* CLAVE: Grilla de 4 columnas para los productos */
.ctabs-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Crea 4 columnas iguales */
  gap: 1.5rem; /* Espacio entre las tarjetas */
}

/* --- Tarjeta de Producto (Estilo del contenedor) --- */


/* Efecto hover para la tarjeta */


/* --- Botón "Ver más" --- */
.ctabs-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.ctabs-more {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--color-cta);
  color: var(--color-blanco-texto);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease;
}
.ctabs-more:hover {
    background: var(--color-primario);
    color: var(--color-blanco-texto);
}


/* --- Media Queries (Responsivo) --- */
@media (max-width: 992px) {
  /* En tablets, pasamos a 2 columnas */
  .ctabs-products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
     .ctabs-header {
    width: 100%;
    display: block;
		 justify-content: center;
}
	.ctabs-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
	.ctabs-section {
    padding: 0rem;
}
	.ctab {
		padding: 0px 10px;}
	
      .ctabs-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 576px) {
  /* En móviles, pasamos a 1 columna */
  .ctabs-products ul.products {
    grid-template-columns: 1fr;
  }
}