﻿.pf-wrap-category {
    padding: 1px;
    min-height: 40px;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .pf-wrap-category {
        height: auto;
    }
}

.pf-wrap-info {
    padding: 1px;
    min-height: 40px;
    width: 100%;
    background-color: lightgray;
    text-align: left;
}

@media (max-width: 768px) {
    .pf-wrap-info {
        height: auto;
    }
}

.pf-wrap-info h5 .inline {
    display: inline;
}

.pf-wrap-info small {
    border-top: none;
}

.pf-img-cover {
    width: 160px;
    height: 56px;
    border-radius: 0;
    line-height: 9.5em !important;
}

.no-img .pf-wrap-info {
    width: 100% !important;
}

.pf-col-25, .pf-col-75, .pf-col-100 {
    float: left;
    position: relative;
    min-height: 1px;
    padding: 5px;
    overflow: visible;
}

.pf-col-25 {
    width: 200px;
}

/* ============================
       CONTENEDOR GENERAL
============================ */

.pf-accordion {
    width: 100%;
}

/* ============================
       SECCIÓN (CONTENEDOR)
============================ */

.pf-section {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* ============================
       BARRA DE SECCIÓN
============================ */

.pf-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    gap: 4px;
    padding: 8px 6px;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
}


/* Hover */
.pf-section-bar:hover {
    background-color: #f5f5f5;
}

.pf-section-icon {
    background-color: transparent;
    display: block;
}

/* Sección activa */
.pf-section.pf-active .pf-section-bar {
    background-color: #ffffff;
}

@media (max-width: 768px) {

    .pf-section-arrow {
        font-size: 12px;
    }

    .pf-section-bar {
        padding: 10px;
    }
}

/* ============================
       ICONO DE SECCIÓN (IMAGEN)
============================ */

.pf-section-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ============================
       TEXTO
============================ */

.pf-section-text {
    flex: 1; /* Empuja la flecha a la derecha */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================
       FLECHA (FONT AWESOME)
============================ */

.pf-section-arrow {
    transition: transform 0.3s ease;
    margin-left: auto; /* ✅ la manda a la derecha */
    font-size: 16px; 
    color: #333; /* ✅ evita blanco invisible */
    display: block;
}

/* Rotación cuando está abierta */
.pf-section.pf-active .pf-section-arrow {
    transform: rotate(180deg);
}

/* ============================
       CONTENIDO (ACCORDION)
    ============================ */

.pf-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #f8f9fa;
}

.pf-section.pf-active .pf-section-content {
    max-height: 2000px; /* Suficiente para categorías */
}

/* ============================
       GRID DE CATEGORÍAS
============================ */

.pf-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
}

@media (min-width: 768px) {
    .pf-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pf-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
       CATEGORÍA (TARJETA)
============================ */

.pf-category-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    border-left: 4px solid #0d6efd;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pf-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ec-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px;
}

.ec-breadcrumb-link {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .ec-breadcrumb {
        flex-wrap: nowrap;
    }

    .ec-breadcrumb-link {
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 170px;
        overflow: hidden;
    }
}

.ec-breadcrumb-link:hover {
    color: #084298;
    text-decoration: underline;
}

.ec-breadcrumb-item {
    color: #555;
}

/* Separator */
.ec-breadcrumb > * + *::before {
    content: "|";
    margin: 0 1px;
    color: #999;
}


.ec-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


#pnlBreadcrumb {
    margin-right: auto;
}

#pnlToggleView {
    margin-left: auto;
}
