/* ============================================================
   DECANOS.CSS - Galería de Decanos
   ============================================================ */

#pageHeader {
    padding-top: 0;
    padding-bottom: 24px;
}

.dc-breadcrumb-subtle {
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.dc-breadcrumb-subtle a, 
.dc-breadcrumb-subtle span, 
.dc-breadcrumb-subtle li {
    font-size: 14px !important;
    color: #686868;
    text-decoration: none;
}

.dc-breadcrumb-subtle .current, 
.dc-breadcrumb-subtle b {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* ---- Toolbar (Título y filtro) ---- */
.dc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0; 
    margin-bottom: 32px; 
    gap: 12px;
    flex-wrap: wrap;
}

.dc-toolbar__label {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.dc-filter-select {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #201e1f;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.dc-filter-select:focus {
    outline: none;
    border-color: #2740ad;
}

/* ---- Grid ---- */
.dc-grid {
    display: grid;
    /* Mantenemos tu grid de 4 columnas */
    grid-template-columns: repeat(4, minmax(280px, 280px));
    justify-content: center;
    gap: 36px;
    padding-bottom: 50px;
}

/* ---- Card ---- */
.dc-card {
    width: 280px;
    height: auto;
    background: #f3f3f3;
    border: 1.5px solid #b7b9bb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

/* FOTO */
.dc-card__photo {
    width: 100%;
    height: 270px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.dc-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* NOMBRE */
.dc-card__body {
    /* height: 100%; */
    padding: 14px 18px 14px;
    text-align: center;
    flex: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dc-card__name {
    margin: 0;
    min-height: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;

    color: #1e1e1e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.28;
    text-align: center;

    padding: 2px 8px 4px;
    box-sizing: border-box;
    word-break: break-word;
}

/* ====== PERIODOS ====== */
.dc-card__period {
    width: calc(100% - 10px);
    min-height: 38px;
    margin: 6px 5px 1px;
    padding: 8px 16px;
    background: #ecd27d;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #111111;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    box-sizing: border-box; 
}

.dc-card__period i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: transparent;
    -webkit-text-stroke: 1.4px #111;
    line-height: 1;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .dc-grid { grid-template-columns: repeat(3, minmax(280px, 280px)); }
}

@media (max-width: 980px) {
    .dc-grid { grid-template-columns: repeat(2, minmax(280px, 280px)); }
}

@media (max-width: 760px) {
    .dc-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .dc-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .dc-filter-select {
        width: 100%;
    }
    .dc-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Placeholder cuando no hay foto */
.dc-card__photo-placeholder {
    width: 100%;
    height: 100%;
    background: #eef2ff;
    color: #1934a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
}

/* En galería de decanos no mostramos cargo */
.dc-card__role {
    display: none;
}
