/* Directorio institucional */

.di-page { background: #eef3f9; }

.di-hero {
    position: relative;
    padding: 2.75rem 0 2.25rem;
    overflow: hidden;
    background: linear-gradient(145deg, #001433 0%, #003a8c 48%, #1d4ed8 100%);
    color: #fff;
}
.di-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(253,224,71,.16) 0%, transparent 38%),
        radial-gradient(circle at 88% 80%, rgba(45,212,191,.14) 0%, transparent 42%),
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,.12));
    pointer-events: none;
}
.di-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.75rem;
    align-items: center;
}
.di-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 0.7rem;
}
.di-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
}
.di-hero h1 span {
    display: block;
    font-size: 0.68em;
    font-weight: 700;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0.25rem;
}
.di-hero__lead {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255,255,255,.92);
    max-width: 36rem;
}
.di-hero__lead strong { color: #fde68a; font-weight: 800; }
.di-hero__stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.di-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 0.78rem;
    font-weight: 600;
}
.di-hero__stat i { color: #fde68a; }
.di-hero__stat--live { transition: background .3s, border-color .3s; }
.di-hero__stat--live.is-open { background: rgba(34,197,94,.18); border-color: rgba(74,222,128,.45); }
.di-hero__stat--live.is-partial { background: rgba(251,191,36,.15); border-color: rgba(252,211,77,.4); }
.di-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fbbf24; flex-shrink: 0;
    animation: diPulse 2s ease-in-out infinite;
}
.is-open .di-live-dot { background: #4ade80; }
.is-partial .di-live-dot { background: #fbbf24; }
@keyframes diPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

.di-hero__wa-central {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.05rem;
    padding: 0.7rem 1.05rem;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(22,163,74,.35);
}
.di-hero__wa-central:hover { background: #15803d; color: #fff; }

.di-hero__aside { display: flex; flex-direction: column; gap: 1rem; }
.di-hero__faces {
    display: flex;
    justify-content: flex-end;
}
.di-hero__face {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.85);
    overflow: hidden;
    margin-left: -12px;
    background: #1e3a8a;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem;
}
.di-hero__face:first-child { margin-left: 0; }
.di-hero__face img { width: 100%; height: 100%; object-fit: cover; }
.di-hero__face--blue { background: #93c5fd; color: #1e3a8a; }
.di-hero__face--indigo { background: #a5b4fc; color: #312e81; }
.di-hero__face--gold { background: #fde68a; color: #92400e; }
.di-hero__face--teal { background: #5eead4; color: #115e59; }

.di-hero__search-wrap { max-width: 360px; margin-left: auto; width: 100%; }
.di-hero__search {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    padding: 0.25rem;
}
.di-hero__search i {
    position: absolute; left: 0.85rem; top: 50%;
    transform: translateY(-50%); color: #94a3b8;
}
.di-hero__search input {
    width: 100%; border: none; outline: none;
    padding: 0.8rem 0.85rem 0.8rem 2.4rem;
    font-size: 0.9rem; border-radius: 10px; color: #0f172a;
}
.di-hero__search-hint {
    margin: 0.5rem 0 0; font-size: 0.78rem;
    color: rgba(255,255,255,.75); text-align: right;
}

.di-main { padding: 2.1rem 0 3.6rem; }

.di-section-head { margin-bottom: 1.1rem; }
.di-section-head h2 {
    margin: 0; font-size: 1.22rem; font-weight: 800; color: #0f172a;
}
.di-section-head p {
    margin: 0.25rem 0 0; font-size: 0.88rem; color: #64748b;
}

.di-equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.di-persona-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.di-persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15,23,42,.12);
    border-color: #93c5fd;
}
.di-persona-card__band {
    height: 7px;
    background: #0047AB;
}
.di-persona-card--blue .di-persona-card__band { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.di-persona-card--indigo .di-persona-card__band { background: linear-gradient(90deg, #4338ca, #818cf8); }
.di-persona-card--gold .di-persona-card__band { background: linear-gradient(90deg, #d97706, #fbbf24); }
.di-persona-card--teal .di-persona-card__band { background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.di-persona-card--lider { border-color: #93c5fd; }

.di-persona-card__top {
    padding: 1.15rem 1rem 0.7rem;
    text-align: center;
}
.di-persona-card--blue .di-persona-card__top { background: linear-gradient(180deg, #eff6ff, #fff); }
.di-persona-card--indigo .di-persona-card__top { background: linear-gradient(180deg, #eef2ff, #fff); }
.di-persona-card--gold .di-persona-card__top { background: linear-gradient(180deg, #fffbeb, #fff); }
.di-persona-card--teal .di-persona-card__top { background: linear-gradient(180deg, #f0fdfa, #fff); }
.di-persona-card--lider .di-persona-card__top { background: linear-gradient(180deg, #dbeafe, #fff); }

.di-persona-card__foto,
.di-persona-card__avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 0.7rem;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.di-persona-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}
.di-persona-card--blue .di-persona-card__avatar { background: #bfdbfe; color: #1e40af; }
.di-persona-card--indigo .di-persona-card__avatar { background: #c7d2fe; color: #3730a3; }
.di-persona-card--gold .di-persona-card__avatar { background: #fde68a; color: #92400e; }
.di-persona-card--teal .di-persona-card__avatar { background: #99f6e4; color: #115e59; }

.di-persona-card__tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0047AB;
    background: #fff;
    border: 1px solid #bfdbfe;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
}
.di-persona-card--gold .di-persona-card__tag { color: #b45309; border-color: #fcd34d; }
.di-persona-card--teal .di-persona-card__tag { color: #0f766e; border-color: #5eead4; }

.di-persona-card__body {
    padding: 0.7rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.di-persona-card__body h3 {
    margin: 0 0 0.22rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.di-persona-card__cargo {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}
.di-persona-card__bio {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    flex: 1;
}
.di-persona-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}
.di-persona-card__actions .di-btn {
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.65rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    border-radius: 10px;
}
.di-persona-card__actions .di-btn span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
}
.di-persona-card__actions .di-btn small {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: .95;
    letter-spacing: .02em;
}
.di-persona-card__horario {
    margin: 0;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.di-persona-card__horario i { color: #0047AB; margin-right: 0.25rem; }

.di-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s, filter .12s;
}
.di-btn:hover { transform: translateY(-1px); }
.di-btn--primary { background: #0047AB; color: #fff; }
.di-btn--mail { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.di-btn--wa { background: #22c55e; color: #fff; }
.di-btn--wa span { display: flex; flex-direction: column; line-height: 1.2; align-items: flex-start; }
.di-btn--wa small { font-size: 0.72rem; font-weight: 600; opacity: 0.92; }
.di-btn--wa-central { background: #16a34a; }
.di-btn--light { background: #fff !important; color: #0047AB !important; border: 1px solid rgba(255,255,255,.5); }

.di-no-results {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.di-horarios-block { margin-bottom: 1.5rem; }
.di-horarios-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.di-horarios-block__head h2 {
    margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f172a;
}
.di-horarios-block__head p {
    margin: 0.15rem 0 0; font-size: 0.85rem; color: #64748b;
}
.di-horarios-ahora {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.di-horarios-ahora.is-open { background: #ecfdf5; border-color: #86efac; color: #166534; }
.di-horarios-ahora.is-partial { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

.di-horarios-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.di-horario-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 0.75rem 0.65rem;
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.di-horario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
    border-color: #bfdbfe;
}
.di-horario-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.di-horario-card__icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; flex-shrink: 0;
}
.di-horario-card--blue .di-horario-card__icon { background: #dbeafe; color: #1d4ed8; }
.di-horario-card--indigo .di-horario-card__icon { background: #e0e7ff; color: #4338ca; }
.di-horario-card--violet .di-horario-card__icon { background: #ede9fe; color: #6d28d9; }
.di-horario-card--emerald .di-horario-card__icon { background: #d1fae5; color: #047857; }
.di-horario-card__top h3 {
    margin: 0 0 0.1rem; font-size: 0.82rem; font-weight: 800; color: #0f172a; line-height: 1.25;
}
.di-horario-card__top p {
    margin: 0; font-size: 0.72rem; color: #64748b; line-height: 1.3;
}
.di-horario-card__email {
    font-size: 0.68rem; font-weight: 600; margin-bottom: 0.35rem;
    padding: 0.28rem 0.4rem; background: #f8fafc; border-radius: 6px;
    display: flex; align-items: center; gap: 0.3rem; min-width: 0;
}
.di-horario-card__email i { flex-shrink: 0; color: #64748b; }
.di-horario-card__email a {
    color: #0047AB; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.di-horario-card__lista {
    list-style: none; margin: 0 0 0.4rem; padding: 0; flex: 1;
}
.di-horario-card__lista li {
    padding: 0.28rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.05rem 0.4rem;
    align-items: baseline;
}
.di-horario-card__lista li:last-child { border-bottom: none; }
.di-horario-card__dia { font-size: 0.72rem; font-weight: 600; color: #334155; }
.di-horario-card__hora { font-size: 0.72rem; font-weight: 700; color: #0047AB; text-align: right; }
.di-horario-card__detalle { grid-column: 1 / -1; font-size: 0.65rem; color: #94a3b8; }
.di-horario-card__link {
    display: inline-flex; align-items: center; justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.38rem 0.5rem; border-radius: 8px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    font-size: 0.7rem; font-weight: 700; color: #0047AB; text-decoration: none;
    min-width: 0;
}
.di-horario-card:hover .di-horario-card__link {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.di-cta {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.7rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #003a8c, #1d4ed8);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,58,140,.25);
}
.di-cta h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.di-cta p { margin: 0 0 0.95rem; font-size: 0.9rem; opacity: 0.94; }
.di-cta__btns { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .di-equipo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .di-horarios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .di-hero__grid { grid-template-columns: 1fr; }
    .di-hero__faces { justify-content: flex-start; }
    .di-hero__search-wrap { margin-left: 0; max-width: none; }
    .di-hero__search-hint { text-align: left; }
    .di-horarios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .di-equipo-grid { grid-template-columns: 1fr; }
    .di-horarios-grid { grid-template-columns: 1fr; }
}
