/* Extraído de index.blade.php — CSS propio de esa vista */
.inv-header {
    background: #284a74;
    padding: 2.5rem 1.5rem 2rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.inv-header-inner { max-width: 960px; margin: 0 auto; }

.inv-breadcrumb {
    font-size: 11px; color: rgba(255,255,255,.5);
    margin-bottom: .75rem;
    display: flex; align-items: center; gap: 5px;
}
.inv-breadcrumb a   { color: rgba(255,255,255,.5); text-decoration: none; }
.inv-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.inv-breadcrumb-sep { color: rgba(255,255,255,.25); }

.inv-page-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600; color: #fff;
    line-height: 1.2; margin-bottom: .4rem;
}
.inv-page-sub { font-size: 14px; color: rgba(255,255,255,.58); margin-bottom: 1.5rem; }

.inv-search {
    display: flex; align-items: center;
    background: #fff; border-radius: 40px;
    padding: 6px 6px 6px 16px; gap: 8px; max-width: 460px;
}
.inv-search svg  { width: 16px; height: 16px; color: #888; flex-shrink: 0; }
.inv-search input {
    flex: 1; border: none; outline: none;
    font-size: 14px; color: #1a3a5c;
    background: transparent; font-family: inherit;
}

.stat-card { transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Los botones de filtro (.filter-btn) están definidos en portal.css (global) */

    /* 4 por fila: escuelas en las dos primeras, CIFFyH y Museo alineados a la izquierda en la tercera */
    .escuela-strip {
        display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; justify-content: flex-start;
        max-width: 680px;
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease;
    }
    .escuela-strip.open {
        max-height: 400px; opacity: 1; margin-top: 1rem;
    }
    .escuela-btn {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        padding: 6px 10px;
        flex: 0 0 calc((100% - 30px) / 4);
        min-width: 0;
        cursor: pointer;
        transition: filter .2s, background .2s, border-color .2s, transform .15s;
    }
    .escuela-btn:hover { transform: translateY(-1px); background: #ffffff; }
    .escuela-btn img {
        height: 43px; width: auto; max-width: 100%; object-fit: contain; display: block;
        filter: grayscale(1) opacity(0.4);
        transition: filter .2s;
    }
    .escuela-btn.active img { filter: grayscale(0) opacity(1); }
    .escuela-btn-text {
        font-size: 12px; font-weight: 700; color: #9ca3af;
        transition: color .2s;
    }
    .escuela-btn.active .escuela-btn-text { color: var(--escuela-color, #284a74); }
    .escuela-btn.active { border-color: var(--escuela-color, #284a74); }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
