/* ============================================================
   GRID DE CATEGORÍAS INGCO – PLAYSTATION STYLE + GLOW AMARILLO
   ============================================================ */

/* Contenedor general */
.ingco-cat-section {
    width: 100%;
    margin: 40px auto 60px;
    padding: 0 20px;
    max-width: 1380px;
}

/* Grid */
.ingco-cat-grid {
    display: grid;
    gap: 26px 32px;
}

.ingco-cat-columns-4 .ingco-cat-grid {
    grid-template-columns: repeat(4, 1fr);
}
.ingco-cat-columns-3 .ingco-cat-grid {
    grid-template-columns: repeat(3, 1fr);
}
.ingco-cat-columns-5 .ingco-cat-grid {
    grid-template-columns: repeat(5, 1fr);
}
.ingco-cat-columns-6 .ingco-cat-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* ============================================================
   TARJETA DE CATEGORÍA PADRE – PLAYSTATION + INGCO
   ============================================================ */
.ingco-cat-group {
    position: relative;
    background: radial-gradient(circle at 0% 0%, #1a1a1a 0, #0c0c0c 55%, #000000 100%);
    border-radius: 20px;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(247,181,0,0.2);
    overflow: hidden;
    transform: translateY(0);
    box-shadow:
        0 0 0 rgba(247,181,0,0),
        0 0 0 rgba(247,181,0,0);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

/* Halo INGCO */
.ingco-cat-group::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(247,181,0,0.0) 0%,
        rgba(247,181,0,0.35) 25%,
        rgba(255,200,50,0.75) 55%,
        rgba(247,181,0,0.35) 75%,
        rgba(247,181,0,0.0) 100%
    );
    opacity: 0;
    transform: scale(1.02);
    z-index: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Fondo interno */
.ingco-cat-group::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    background: radial-gradient(circle at 10% -10%, #333 0%, #0d0d0d 45%, #000 100%);
    z-index: 0;
}

/* Contenido por encima */
.ingco-cat-group > * {
    position: relative;
    z-index: 1;
}

/* Hover INGCO */
.ingco-cat-group:hover,
.ingco-cat-group:focus-within {
    border-color: rgba(255,200,50,0.45);
    transform: translateY(-4px);
    box-shadow:
        0 18px 35px rgba(247,181,0,0.4),
        0 0 40px rgba(255,200,50,0.45);
}

.ingco-cat-group:hover::before,
.ingco-cat-group:focus-within::before {
    opacity: 1;
    transform: scale(1.05);
    animation: ingco-ps-breathe 1.6s ease-in-out infinite alternate;
}

/* Animación respirar */
@keyframes ingco-ps-breathe {
    0% { opacity: 0.85; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1.06); }
}

/* ============================================================
   Título categoría padre
   ============================================================ */
.ingco-cat-group__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7b500;
    margin: 0 0 0.35rem;
    text-decoration: none;
}

/* Barra decorativa estilo PS pero en amarillo */
.ingco-cat-group__title::before {
    content: "";
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7b500 0%, #ffcc33 50%, #f7b500 100%);
    box-shadow: 0 0 8px rgba(247,181,0,0.75);
}

/* ============================================================
   Subcategorías – colapsadas por defecto
   ============================================================ */
.ingco-cat-group__list {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition:
        max-height 0.3s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.ingco-cat-group:hover .ingco-cat-group__list,
.ingco-cat-group:focus-within .ingco-cat-group__list {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Subcategoría – Estilo PS + INGCO
   ============================================================ */
.ingco-cat-group__item {
    margin: 0.22rem 0;
}

.ingco-cat-group__item a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #d4d4d4;
    text-decoration: none;
    padding: 2px 0;
    transform: translateX(0);
    transition:
        transform 0.22s ease,
        color 0.22s ease,
        text-shadow 0.22s ease;
}

/* Punto estilo Playstation pero amarillo */
.ingco-cat-group__item a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffcc33 0%, #f7b500 60%, transparent 100%);
    box-shadow: 0 0 9px rgba(247,181,0,0.55);
    opacity: 0.5;
    transform: scale(0.7);
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

/* Línea animada INGCO */
.ingco-cat-group__item a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f7b500, #ffde66);
    border-radius: 999px;
    transition: width 0.22s ease;
}

/* Hover INGCO */
.ingco-cat-group__item a:hover {
    color: #ffe38a;
    transform: translateX(6px) scale(1.03);
    text-shadow:
        0 0 12px rgba(247,181,0,0.65),
        0 0 22px rgba(247,181,0,0.35);
}

.ingco-cat-group__item a:hover::before {
    opacity: 1;
    transform: scale(1);
    box-shadow:
        0 0 10px rgba(247,181,0,0.85),
        0 0 20px rgba(255,200,50,0.75);
}

.ingco-cat-group__item a:hover::after {
    width: calc(100% - 0.85rem);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .ingco-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .ingco-cat-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .ingco-cat-group__list {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === INGCO: permitir listas MUY largas en desktop === */
@media (min-width: 769px){
  .ingco-cat-group:hover .ingco-cat-group__list,
  .ingco-cat-group:focus-within .ingco-cat-group__list{
    max-height: 2000px;   /* o más si algún día lo necesitas */
  }
}

