/* --- CONTENEDOR PRINCIPAL DEL CATÁLOGO --- */
.catalog-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    color: #fff;
    height: 100vh; /* Forzamos altura de pantalla para control de scroll interno */
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* --- BUSCADOR --- */
.catalog-search-container {
    margin-bottom: 30px;
    flex-shrink: 0;
}

.catalog-search-container input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.catalog-search-container input:focus {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.02);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
}

/* --- LAYOUT DE CONTENIDO --- */
.catalog-main-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0; /* Crítico para scroll interno */
    overflow: hidden;
}

/* Sidebar Vertical (Nivel 1) */
.catalog-sidebar {
    width: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

#filter-tipos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.type-btn {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 40px 15px;
    cursor: pointer;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    color: #444;
    transition: 0.3s;
    font-size: 11px;
    letter-spacing: 1px;
}

.type-btn.active {
    color: #ffcc00;
    border-left: 3px solid #ffcc00;
    background: linear-gradient(to right, rgba(255, 204, 0, 0.05), transparent);
}

/* --- CONTENIDO Y TABS (Nivel 2) --- */
.catalog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    overflow: hidden;
}

.catalog-tabs-wrapper {
    flex-shrink: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    white-space: nowrap;
    overflow-x: auto;
}

.cat-pill {
    display: inline-block;
    padding: 8px 22px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    transition: 0.3s;
}

.cat-pill.active {
    background: #ffcc00;
    color: #000;
    border-color: #ffcc00;
}

/* --- GRID DE TARJETAS (Nivel 3) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    overflow-y: auto;
    flex: 1;
    padding: 10px 10px 30px 0;
    scrollbar-width: thin;
}

/* --- HERO CARD (SIMETRÍA NUBOL) --- */
.hero-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 25px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
    max-height: 320px;
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-8px);
    border-color: #ffcc00;
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 204, 0, 0.1);
}

.card-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    object-fit: contain;
}

.hero-card h3 {
    margin: 0 0 12px 0;
    color: #ffcc00;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.hero-card p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card .hotspot {
    position: relative;
    margin-top: auto; 
    padding: 10px 25px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    z-index: 1;
}

.hero-card .hotspot .btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    animation: rotate-glow 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.hero-card .hotspot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
    background: #fff; /* Cambio sutil al pasar el mouse */
}

.hero-card p {
    margin-bottom: 20px;
}


/* Responsivo */
@media (max-width: 1024px) {
    .catalog-sidebar { width: 50px; }
    .hero-card { min-height: 300px; }
}

@media (max-width: 600px) {
    .catalog-main-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #222; }
    .type-btn { writing-mode: horizontal-tb; transform: none; padding: 15px; }
}
