/* ============================================================
   PUBLIC.CSS — Estilos de la sección pública (páginas visitantes)
   Cargado en: base_public.html (heredado por todas las sub-páginas)
   Incluye: navbar, hero, footer, member cards, doc cards,
            resource cards, filtros de biblioteca
   ============================================================ */

/* ── Body (layout público) ─────────────────────────────────── */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.pub-nav {
    background: var(--campo);
    border-bottom: 3px solid var(--dorado-cancha);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.pub-nav .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.pub-nav .brand img {
    height: 38px;
    border-radius: 5px;
    background-color: #ffffff;
    padding: 3px;          /* marco blanco uniforme alrededor del escudo */
}
.pub-nav .brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
}
.pub-nav .brand-sub {
    color: rgba(255,255,255,.45);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.pub-nav .nav-link-pub {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: .35rem .65rem;
    border-radius: 5px;
    transition: all .18s;
    white-space: nowrap;
}
.pub-nav .nav-link-pub:hover,
.pub-nav .nav-link-pub.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.pub-nav .btn-sistema {
    background: var(--dorado-cancha);
    color: #1a1a1a;
    font-weight: 700;
    font-size: .83rem;
    padding: .4rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s;
}
.pub-nav .btn-sistema:hover {
    background: #b91c1c;
    color: #fff;
}

/* ── Page hero (banner por sección) ── */
.page-hero {
    background: linear-gradient(135deg, var(--campo) 0%, #1e4c8a 100%);
    padding: 2.8rem 1.5rem 2.2rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px,
        transparent 1px, transparent 44px
    );
    pointer-events: none;
}
.page-hero-icon {
    font-size: 2.2rem;
    color: var(--dorado-cancha);
    margin-bottom: .7rem;
}
.page-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: .3rem;
}
.page-hero-sub {
    color: rgba(255,255,255,.7);
    font-size: .95rem;
    margin: 0;
}

/* ── Content ── */
.pub-content {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

/* ── Footer ── */
.pub-footer {
    background: var(--campo);
    border-top: 3px solid var(--dorado-cancha);
    padding: 1.2rem 0;
}
.pub-footer .brand-f { color: rgba(255,255,255,.85); font-weight: 700; font-size: .9rem; }
.pub-footer .copy-f  { color: rgba(255,255,255,.38); font-size: .76rem; }
.pub-footer .social-f a {
    color: rgba(255,255,255,.5);
    font-size: 1.15rem;
    margin-left: .85rem;
    transition: color .18s;
}
.pub-footer .social-f a:hover { color: var(--dorado-cancha); }


/* ============================================================
   SUBCOMISIÓN — member cards, area cards
   ============================================================ */

/* ── Integrantes grid ─────────────────────────────────── */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .75rem;
}
@media (max-width: 576px) { .member-grid { grid-template-columns: 1fr; } }

.member-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: .85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    box-shadow: 0 1px 3px rgba(15,45,90,.07);
    transition: box-shadow .15s, transform .1s;
}
.member-card:hover {
    box-shadow: 0 4px 12px rgba(15,45,90,.12);
    transform: translateY(-1px);
}
.member-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--campo);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.member-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--campo);
    line-height: 1.25;
    margin-bottom: .25rem;
}
.member-roles {
    font-size: .76rem;
    color: var(--texto-suave, #6c757d);
    line-height: 1.4;
}

/* ── Funciones por área ───────────────────────────────── */
.area-card {
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--campo);
    padding: .9rem 1.1rem;
    box-shadow: 0 1px 3px rgba(15,45,90,.07);
    height: 100%;
}
.area-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--campo-claro, #DBEAFE);
    color: var(--campo);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.area-title { font-weight: 700; font-size: .9rem; color: var(--campo); margin-bottom: .3rem; }
.area-members { font-size: .8rem; color: #374151; }
.area-member-chip {
    display: inline-block;
    background: #F1F5F9;
    border-radius: 20px;
    padding: .12rem .5rem;
    font-size: .75rem;
    color: #374151;
    margin: .1rem .1rem 0 0;
    white-space: nowrap;
}

/* ── CD highlight ─────────────────────────────────────── */
.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(200,16,46,.1);
    color: #B91C1C;
    border-radius: 20px;
    font-size: .73rem;
    font-weight: 700;
    padding: .1rem .5rem;
}


/* ============================================================
   DOCUMENTACIÓN — doc cards, modales de comunicación y tercer tiempo
   ============================================================ */

.doc-section-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid;
}
.doc-card {
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26,58,107,.08);
    transition: box-shadow .15s, transform .1s;
    cursor: pointer;
    height: 100%;
}
.doc-card:hover {
    box-shadow: 0 6px 18px rgba(26,58,107,.15);
    transform: translateY(-2px);
}
.doc-card .card-body {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.1rem;
}
.doc-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.doc-card-title {
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .2rem;
    color: var(--campo);
}
.doc-card-desc {
    font-size: .75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* ── Badge "Próximamente" — único, gris/muted ── */
.badge-pronto {
    font-size: .65rem;
    background-color: #e9ecef;
    color: #6c757d;
    padding: .15rem .5rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: .3px;
    vertical-align: middle;
}

/* ── Modal comunicación ── */
.ic-block { margin-bottom: 2rem; }
.ic-block:last-child { margin-bottom: 0; }
.ic-block-title {
    font-size: 1rem; font-weight: 800; color: var(--campo);
    margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
.ic-block-title i { color: var(--dorado-cancha); font-size: 1.1rem; }
.ic-step {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .55rem 0; border-bottom: 1px solid #E2E8F0;
}
.ic-step:last-child { border-bottom: none; }
.ic-step-num {
    width: 26px; height: 26px; min-width: 26px; border-radius: 50%;
    background: var(--campo); color: #fff; font-size: .75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ic-step-name { font-weight: 700; font-size: .88rem; color: #1F2937; margin-bottom: .1rem; }
.ic-step-desc { font-size: .8rem; color: #6B7280; margin: 0; }
.ic-circuito-row {
    display: flex; gap: .65rem; align-items: flex-start;
    padding: .45rem 0; border-bottom: 1px dashed #E2E8F0; font-size: .83rem;
}
.ic-circuito-row:last-child { border-bottom: none; }
.ic-circuito-tag {
    background: #DBEAFE; color: #2563EB; font-weight: 700; font-size: .7rem;
    padding: .15rem .5rem; border-radius: 20px; white-space: nowrap;
    flex-shrink: 0; align-self: flex-start; margin-top: .1rem;
}
.ic-tt-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem;
}
@media (max-width: 576px) { .ic-tt-grid { grid-template-columns: 1fr; } }
.ic-tt-card { background: #fff; border-radius: 10px; border: 1px solid #E2E8F0; padding: .85rem 1rem; }
.ic-tt-title { font-weight: 700; font-size: .85rem; color: var(--campo); margin-bottom: .3rem; }
.ic-tt-body  { font-size: .8rem; color: #6B7280; margin: 0; }


/* ============================================================
   BIBLIOTECA DEPORTIVA (info_deportiva) — filtros, resource cards
   ============================================================ */

/* ── Filtros ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: .35rem 1rem;
    border-radius: 20px;
    border: 1.5px solid var(--borde);
    background: #fff;
    color: var(--campo);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--campo);
    background: var(--campo-claro);
}
.filter-btn.active {
    background: var(--campo);
    border-color: var(--campo);
    color: #fff;
}

/* ── Cards de recurso ── */
.resource-card {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e0e7f5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(26,58,107,.06);
}
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,58,107,.13);
}
.resource-card-top {
    height: 6px;
    flex-shrink: 0;
}
.resource-card-body {
    padding: 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.resource-cat-badge {
    display: inline-block;
    padding: .18rem .7rem;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: .65rem;
    flex-shrink: 0;
}
.resource-icon {
    font-size: 1.6rem;
    margin-bottom: .5rem;
}
.resource-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--campo);
    margin-bottom: .35rem;
    line-height: 1.25;
}
.resource-desc {
    font-size: .78rem;
    color: #6c757d;
    flex: 1;
    margin-bottom: .9rem;
    line-height: 1.5;
}
.resource-footer {
    margin-top: auto;
}
.btn-recurso {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .85rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: all .18s;
    cursor: pointer;
}

/* Sección heading */
.section-sep {
    border: none;
    border-top: 2px solid var(--campo-claro);
    margin: 2.5rem 0 1.8rem;
}
.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--campo);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

/* Ocultar/mostrar con filtros */
.resource-item { display: block; }
.resource-item.hidden { display: none; }

/* Sin resultados */
#no-results {
    display: none;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
}
