/* =============================================================
   AulaDiser Club — CSS exclusivo
   Base compartida: https://creative.auladiser.com/css/shared.css
   ============================================================= */

/* =============================================
   HEADER — Club override (blanco sobre shared.css azul)
   ============================================= */
.site-header { background: #fff !important; border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.site-logo img { filter: none !important; }
.site-nav a { color: var(--body-text) !important; font-weight: 500; }
.site-nav a:hover { background: var(--bg-alt) !important; color: var(--primary) !important; }
.site-nav a.active { background: rgba(27,132,255,.08) !important; color: var(--primary) !important; font-weight: 700; }
.header-icon-btn { color: var(--body-text) !important; }
.header-icon-btn:hover { background: var(--bg-alt) !important; color: var(--heading) !important; }
.user-name { color: var(--heading) !important; }
.user-caret { color: var(--alt-text) !important; }
.user-trigger:hover { background: var(--bg-alt) !important; }
.header-sep { background: var(--border) !important; }

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

/* When the page starts with a hero — flush with header */
.page-content--has-hero {
    padding-top: 0;
}

/* =============================================
   HERO BANNER (groups page) — BuddyBoss style
   Image same width as card, flush with header
   ============================================= */

/* Outer wrapper: centers image to match container width, no padding */
.hero-cover-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* same horizontal padding as page-content */
}

.hero-cover-full {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B84FF 0%, #0d5fd4 60%, #0a4db5 100%);
    border-radius: 0;
}

.hero-cover-full img,
.hero-cover-full svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Card: flush below the cover image, allows icon to overflow upward */
.page-hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-block) var(--radius-block);
    padding: 16px 40px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    box-shadow: var(--shadow-card);
    overflow: visible;
    min-height: 145px;
}

/* Avatar circular para perfil de alumno */
.hero-icon-wrap--avatar {
    border-radius: 50% !important;
    overflow: visible !important;
    box-shadow: 0 0 0 4px #fff, 0 4px 20px rgba(0,0,0,.15) !important;
}
.hero-icon-wrap--avatar .hero-avatar-img,
.hero-icon-wrap--avatar .hero-avatar-ini {
    border-radius: 50%;
    overflow: hidden;
}
.hero-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-avatar-ini {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #1e40af;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
}
.hero-avatar-online {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 14px; height: 14px;
    background: var(--success);
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Icon: overlaps the cover image, aligned to bottom of card text */
.hero-icon-wrap {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: #fff;
    border: 4px solid #fff;
    border-radius: var(--radius-block);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-top: -70px;
    align-self: flex-end;
    position: relative;
    z-index: 2;
}

.hero-icon-wrap svg {
    width: 94px;
    height: 94px;
    color: var(--heading);
}

/* Text: bottom-aligned to match icon */
.hero-text {
    flex: 1;
    align-self: flex-end;
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-text h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0;
}

.hero-text p {
    margin: 0;
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.7;
}

/* =============================================
   GROUPS TABS + GRID
   ============================================= */
.groups-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.groups-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.groups-filter select {
    appearance: none;
    background: var(--bg-alt) 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='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 32px 7px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--alt-text);
    cursor: not-allowed;
    opacity: .6;
}

.groups-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* overlap container border */
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #555e6d;
    cursor: pointer;
    transition: color .15s;
    white-space: nowrap;
    margin-right: 20px;
}

.groups-tab:hover { color: var(--heading); }

.groups-tab.active {
    color: var(--heading);
    border-bottom-color: var(--primary);
}

.tab-count {
    background: var(--bg-alt);
    color: var(--alt-text);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    min-width: 24px;
    text-align: center;
}

.groups-tab.active .tab-count {
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* GROUP CARD */
.group-card {
    background: #fff;
    border-radius: var(--radius-block);
    border: 1px solid var(--border);
    overflow: visible; /* allow icon to overflow cover bottom */
    box-shadow: var(--shadow-card);
    transition: transform .2s;
    display: flex;
    flex-direction: column;
}

.group-card-cover-wrap {
    position: relative;
}

.group-card:hover {
    transform: translateY(-3px);
}

.group-card-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius-block) var(--radius-block) 0 0;
}

.group-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.group-card:hover .group-card-cover img {
    transform: scale(1.04);
}

/* Program icon — first child of card-body, pulls up into cover with negative margin */
.group-card-icon {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-pill);
    border: 4px solid #fff;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    margin: -50px auto 12px; /* pulls up 50px into cover, centered, gap below */
}

.group-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.group-card-status.enrolled {
    background: var(--success);
    color: #fff;
}

.group-card-status.expired {
    background: #e53935;
    color: #fff;
}

.group-card-status.not-enrolled {
    background: rgba(0,0,0,.45);
    color: #fff;
}

.group-card-body {
    padding: 0 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.group-card-body h3 {
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--heading);
    line-height: 1.3;
    text-align: center;
}
.group-card-body h3 a { color: var(--heading); }

.group-card-meta {
    font-size: 12px;
    color: var(--alt-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.group-card-meta span + span::before {
    content: '·';
    margin-right: 8px;
    opacity: .5;
}

.card-footer-enrolled {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-vigencia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--alt-text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 7px 14px;
    white-space: nowrap;
}

.group-card-meta span::before {
    content: '·';
    margin-right: 8px;
    opacity: .5;
}
.group-card-meta span:first-child::before { display: none; }

.group-card-desc {
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--bg-alt);
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.group-card-footer .btn {
    flex: 1;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s, opacity .15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary {
    background: var(--bg-alt);
    color: var(--heading);
}
.btn-secondary:hover { background: #e4e6e8; color: var(--heading); }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-locked {
    background: var(--bg-alt);
    color: var(--alt-text);
    cursor: not-allowed;
}

.btn-expired { background: #e53935; color: #fff; }
.btn-expired:hover { background: #c62828; color: #fff; }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }

.btn-avisar {
    background: #f5f0ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
.btn-avisar:hover { background: #ede9fe; }
.btn-avisar--on {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.btn-outline {
    background: #f0f4ff;
    color: #3b5bdb;
    border: 1px solid #c5d0f5;
}
.btn-outline:hover { background: #dce4ff; color: #2f4ac9; }

/* =============================================
   LOGIN PAGE
   ============================================= */
/* Login styles → shared.css en creative.auladiser.com */

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--alt-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    opacity: .75;
}
.empty-state h3 { color: var(--heading); font-size: 17px; font-weight: 700; margin: 0; }
.empty-state p { font-size: 13px; margin: 0; color: var(--alt-text); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-page);
    padding: 20px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--alt-text);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .groups-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .site-nav { display: none; }
    .site-header-inner { padding: 0 16px; gap: 12px; }
    .site-logo img { height: 36px; }

    /* Hero */
    .hero-cover-full { height: 200px; }
    .page-hero-card { gap: 16px; padding: 12px 20px 20px; }
    .hero-icon-wrap { width: 90px; height: 90px; margin-top: -50px; }
    .hero-icon-wrap svg { width: 50px; height: 50px; }
    .hero-text h1 { font-size: 20px; }

    /* Content */
    .page-content { padding: 20px 16px 48px; }
    .groups-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .groups-header { margin-bottom: 16px; }

    /* Login */
    body.page-login { flex-direction: column; }
    .login-split { flex: 0 0 180px; }
    .login-form-side { flex: 1; padding: 28px 24px; }
}

@media (max-width: 480px) {
    .groups-grid { grid-template-columns: 1fr; }
    .login-split { flex: 0 0 140px; }
    .login-form-side { padding: 24px 20px; }
    .hero-cover-full { height: 160px; }
    .page-hero-card { padding: 16px 16px 20px; flex-direction: column; gap: 12px; }
    .hero-icon-wrap { margin-top: -44px; width: 80px; height: 80px; }
    .hero-icon-wrap svg { width: 40px; height: 40px; }
}

/* =============================================
   GRUPO SINGLE
   ============================================= */

/* Hero */
.grupo-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }

.grupo-hero-cover {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #1a1a2e;
}
.grupo-hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }

.grupo-hero-bar {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 24px;
}

.grupo-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-pill);
    border: 4px solid #fff;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    margin-top: -50px;
    flex-shrink: 0;
}
.grupo-hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.grupo-hero-info { padding-bottom: 4px; }
.grupo-hero-info h1 { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: var(--heading); }

.grupo-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--alt-text);
    flex-wrap: wrap;
}
.grupo-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* Layout sidebar + main */
.grupo-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: start;
    padding: 16px 0 64px;
}

.grupo-sidebar { position: sticky; top: 76px; align-self: start; }

/* Video intro */
.sidebar-video {
    margin: 12px 0;
    border-radius: var(--radius-block);
    overflow: hidden;
    background: var(--heading);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sidebar-video__thumb {
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
}
.sidebar-video__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: .75;
}
.sidebar-video__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
}
.sidebar-video__play {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, background .15s;
}
.sidebar-video__play:hover { transform: scale(1.1); background: #fff; }
.sidebar-video__play i { color: var(--primary); font-size: 14px; margin-left: 2px; }

/* Modal de video */
.video-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.video-modal-backdrop.open { display: flex; }
.video-modal {
    background: #000;
    border-radius: var(--radius-chip);
    overflow: hidden;
    width: min(420px, 92vw);
    aspect-ratio: 1080/1350;
    position: relative;
}
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close {
    position: absolute;
    top: -36px; right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: .8;
}
.video-modal__close:hover { opacity: 1; }

/* Nav sticky independiente del video */
.grupo-nav-wrap {
    position: sticky;
    top: 84px;
}

.grupo-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    overflow: hidden;
    margin-bottom: 16px;
}

.grupo-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.grupo-nav-item + .grupo-nav-item { border-top: 1px solid var(--border); }
.grupo-nav-item:hover { background: var(--bg-alt); color: var(--heading); }
.grupo-nav-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.grupo-nav-item.active .nav-icon-wrap { background: rgba(255,255,255,.22) !important; color: #fff !important; }
.grupo-nav-item i { text-align: center; }
.nav-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-btn);
    font-size: 17px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.perfil-section__title .nav-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-chip);
    font-size: 17px;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
}
.grupo-nav-item.active .nav-badge {
    background: rgba(255,255,255,.3);
    color: #fff;
}

.grupo-sidebar-desc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--alt-text);
    line-height: 1.6;
    max-height: 180px;
    overflow-y: auto;
}

/* Main sections */
.grupo-section { display: none; }
.grupo-section.active { display: block; }

/* Anuncios */
.anuncios-list { display: flex; flex-direction: column; gap: 16px; }

.anuncio-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 20px;
}
.anuncio-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-chip);
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.anuncio-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--heading); }
.anuncio-body p  { font-size: 14px; color: var(--body-text); margin: 0 0 8px; line-height: 1.6; }
.anuncio-fecha   { font-size: 12px; color: var(--alt-text); }

/* =============================================
   SESIONES — STATS
   ============================================= */
.ses-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
/* ses-stat — estilos en shared.css, no sobreescribir */

.ses-stat__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ses-stat__val {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
}
.ses-stat--asistencias  .ses-stat__val { color: #15803d; }
.ses-stat--faltas       .ses-stat__val { color: #b91c1c; }
.ses-stat--diploma-ok   .ses-stat__val { color: #1e40af; }
.ses-stat--diploma-warn .ses-stat__val { color: #92400e; }
.ses-stat--fin-total    .ses-stat__val { color: #1e3a5f; }
.ses-stat--fin-abonado  .ses-stat__val { color: #15803d; }
.ses-stat--fin-ok       .ses-stat__val { color: #1e40af; }
.ses-stat--fin-saldo    .ses-stat__val { color: #92400e; }

.ses-stat__lbl {
    font-size: 13px;
    font-weight: 500;
}
.ses-stat--asistencias  .ses-stat__lbl { color: #166534; }
.ses-stat--faltas       .ses-stat__lbl { color: #991b1b; }
.ses-stat--diploma-ok   .ses-stat__lbl { color: #1e3a8a; }
.ses-stat--diploma-warn .ses-stat__lbl { color: #78350f; }
.ses-stat--fin-total    .ses-stat__lbl { color: #1e3a5f; }
.ses-stat--fin-abonado  .ses-stat__lbl { color: #166534; }
.ses-stat--fin-ok       .ses-stat__lbl { color: #1e3a8a; }
.ses-stat--fin-saldo    .ses-stat__lbl { color: #78350f; }

.ses-stat__meta {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
}

/* =============================================
   SESIONES
   ============================================= */
/* Shell exterior */
.ses-shell {
    border-radius: var(--radius-block);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    font-family: 'Roboto', sans-serif;
    box-shadow: var(--shadow-card);
}

/* Top bar: tabs + daterange */
.ses-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 16px;
    background: var(--primary);
    border-bottom: 1px solid var(--border);
}

.ses-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-alt);
    border-radius: var(--radius-pill);
    padding: 4px;
    width: fit-content;
}
.ses-tab {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all .18s;
    white-space: nowrap;
}
.ses-tab:not(.active):hover { color: var(--heading); background: rgba(0,0,0,.04); }
.ses-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.ses-count {
    background: var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    min-width: 20px;
    text-align: center;
}
.ses-tab.active .ses-count {
    background: var(--primary);
    color: #fff;
}

.ses-daterange-wrap { position: relative; }

.ses-daterange {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: background .15s;
}
.ses-daterange:hover { background: var(--border); color: var(--heading); }
.ses-daterange i { font-size: 14px; }

.ses-drpicker {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-chip);
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 50;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.ses-drpicker--open { display: flex; }

.ses-drpicker label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--alt-text);
}
.ses-drpicker input[type="date"] {
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 6px 10px;
    font-size: 13px;
    color: var(--heading);
    font-family: 'Roboto', sans-serif;
    outline: none;
}
.ses-drpicker input[type="date"]:focus { border-color: var(--primary); }
.ses-drpicker span { color: var(--alt-text); margin-top: 14px; }

.ses-drbtn-clear {
    margin-top: 14px;
    background: var(--bg-alt);
    border: none;
    border-radius: var(--radius-btn);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--alt-text);
    cursor: pointer;
}
.ses-drbtn-clear:hover { background: var(--border); }

/* Card blanca interior */
.ses-card {
    background: #fff;
    border-radius: 0;
}

.ses-panel--hidden { display: none; }

.ses-empty {
    padding: 48px;
    text-align: center;
    color: var(--alt-text);
    font-size: 14px;
}

.ses-vivo-dot {
    color: #f59e0b;
    font-size: 12px;
    flex-shrink: 0;
}
.ses-row__fecha {
    font-size: 13px;
    color: #9aa0b5;
    white-space: nowrap;
    text-align: right;
}
.ses-row__action {
    display: flex;
    justify-content: flex-end;
}

/* Pills de estatus */
.ses-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.ses-pill--prog { background: #f0f2f5; color: #6b7280; }
.ses-pill--hoy  { background: #dbeafe; color: #1d4ed8; }
.ses-pill--live { background: #dcfce7; color: #16a34a; }
.ses-pill--ok   { background: #dcfce7; color: #16a34a; }
.ses-pill--falta { background: #fee2e2; color: #dc2626; }
.ses-pill--none { background: #f0f2f5; color: #9aa0b5; font-style: italic; font-weight: 400; }

/* Botón header (sobre barra azul) — reutilizable */
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity .15s;
}
.btn-header:hover { opacity: .72; }

/* Botón unirse (en vivo) */
.ses-btn--live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
}
.ses-btn--live:hover { opacity: .88; }

/* Legacy .ses-wrap (no borrar por si acaso) */
.ses-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    overflow: hidden;
    width: 100%;
}

/* Tabs (constancias/grabaciones) — mismo estilo segmented */

.ses-panel--hidden { display: none; }

.ses-empty {
    padding: 40px;
    text-align: center;
    color: var(--alt-text);
    font-size: 14px;
}

/* Grid tabla sesiones — 5 columnas */
.ses-header,
.ses-row {
    display: grid;
    grid-template-columns: 180px 150px 185px 140px 1fr;
    align-items: stretch;
}
.ses-header--3col,
.ses-row--3col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Cabecera */
.ses-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    min-height: 56px;
}
.ses-header .ses-col {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--heading);
    padding: 0 16px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ses-header .ses-col:last-child { border-right: none; }

/* Filas */
.ses-row {
    border-bottom: 1px solid var(--border);
    min-height: 56px;
    transition: background .1s;
}
.ses-row:last-child  { border-bottom: none; }
.ses-row:hover       { background: #f0f4ff; }
.ses-row:nth-child(even) { background: #fafbfc; }
.ses-row:nth-child(even):hover { background: #f0f4ff; }
.ses-row--done       { opacity: .65; }
.ses-row--live       { background: #f0fdf6 !important; }
.ses-row--hoy        { background: #f5f7ff !important; }

.ses-col {
    padding: 0 16px;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
    border-right: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}
.ses-col:last-child { border-right: none; }

.ses-col--num   { font-weight: 700; color: var(--heading); }
.ses-col--fecha { color: var(--alt-text); font-size: 13px; }
.ses-col--hora  { color: var(--alt-text); font-size: 13px; }
.ses-col--accion { justify-content: center; }
.ses-col--center { justify-content: center; }

/* Badges */
.ses-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.ses-badge--prog { background: #eef2ff; color: var(--primary); }
.ses-badge--hoy  { background: #dbeafe; color: #1d4ed8; }
.ses-badge--live { background: #dcfce7; color: #16a34a; }
.ses-badge--done { background: #f1f3f5; color: var(--alt-text); }

/* Link sesión */
.ses-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--success);
    padding: 5px 12px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    white-space: nowrap;
}
.ses-link:hover { opacity: .88; }
.ses-no-link { color: var(--border); font-size: 16px; }

/* Materiales - acordeón */
.modulos-list { display: flex; flex-direction: column; gap: 8px; }

.modulo-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    overflow: hidden;
}
.modulo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.modulo-header span { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.modulo-caret { transition: transform .2s; color: var(--alt-text); }
.modulo-item.open .modulo-caret { transform: rotate(180deg); }

.modulo-body { display: none; border-top: 1px solid var(--border); }
.modulo-item.open .modulo-body { display: block; }
.modulo-empty { padding: 12px 18px; font-size: 13px; color: var(--alt-text); margin: 0; }

.material-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--body-text);
    transition: background .15s;
    border-top: 1px solid var(--border);
}
.material-row:first-child { border-top: none; }
.material-row:hover { background: var(--bg-alt); color: var(--heading); }
.material-row i { color: var(--primary); width: 16px; text-align: center; }
.material-row span:nth-child(2) { flex: 1; }
.material-tipo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    background: var(--bg-alt);
    color: var(--alt-text);
    border-radius: var(--radius-btn);
    padding: 2px 6px;
}

/* Materiales */
.mat-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--alt-text);
}
.mat-empty i { font-size: 36px; margin-bottom: 12px; display: block; opacity: .3; }

.mat-grupo { border-bottom: 1px solid var(--border); }
.mat-grupo:last-child { border-bottom: none; }

.mat-grupo__header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: var(--bg-alt);
    border: none;
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--alt-text);
    cursor: default;
    text-align: left;
}
.mat-grupo__header i:first-child { color: var(--primary); }

.mat-grupo__header--toggle { cursor: pointer; }
.mat-grupo__header--toggle:hover { background: #eef1ff; color: var(--heading); }

.mat-caret { margin-left: auto; transition: transform .2s; font-size: 12px; }
.mat-grupo--modulo.open .mat-caret { transform: rotate(180deg); }

.mat-grupo__body { display: block; }
.mat-grupo--modulo .mat-grupo__body { display: none; }
.mat-grupo--modulo.open .mat-grupo__body { display: block; }

.mat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    font-size: 14px;
    color: var(--body-text);
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: background .12s;
}
.mat-row:nth-child(even) { background: #f7f8fc; }
.mat-row:hover { background: #eef1ff !important; }

.mat-row__icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 16px; }
.mat-row__icon--pdf     { color: #e53e3e; }
.mat-row__icon--video   { color: var(--primary); }
.mat-row__icon--link    { color: #38a169; }
.mat-row__icon--archivo { color: #805ad5; }

.mat-row__nombre { flex: 1; font-weight: 500; color: var(--heading); }
.mat-row__desc   { font-size: 12px; color: var(--alt-text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-row__tipo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    background: var(--bg-alt);
    color: var(--alt-text);
    border-radius: var(--radius-btn);
    padding: 2px 6px;
    white-space: nowrap;
}

/* Miembros */
.miembros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.miembro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 20px 12px;
    text-align: center;
    position: relative;
}
.miembro-card.es-yo { border-color: var(--primary); }
.miembro-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.miembro-card span:not(.yo-badge):not(.miembro-rol-txt) { font-size: 13px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.miembro-card .yo-badge { color: #fff !important; }
.yo-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #385DFF;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 2px 7px;
}

/* Hero single grupo extras */
.hero-grupo-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .1);
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Roboto', sans-serif;
}

.grupo-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--alt-text);
    margin: 6px 0 10px;
    flex-wrap: wrap;
}
.grupo-hero-meta span { display: flex; align-items: center; gap: 4px; }
.grupo-hero-meta i { font-size: 12px; }

.hero-grupo-desc {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.65;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-ver-mas {
    font-weight: 600;
    white-space: nowrap;
}

/* ── Descargas / Software lista ──────────────────────────────── */
.soft-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    min-height: 64px;
}
.soft-row--alt { background: #fafbfc; }
.soft-row:hover { background: #eef1ff; }

.soft-row__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.soft-row__icon img { width: 44px; height: 44px; object-fit: contain; }
.soft-row__icon i { font-size: 28px; color: var(--alt-text); }

.soft-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soft-row__title { display: flex; align-items: baseline; gap: 8px; }
.soft-row__marca  { font-size: 14px; font-weight: 700; color: var(--heading); text-transform: uppercase; }
.soft-row__nombre { font-size: 14px; font-weight: 700; color: var(--heading); text-transform: uppercase; }
.soft-row__desc   { font-size: 12px; color: var(--alt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }

.soft-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.soft-btn { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-btn); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: opacity .15s; white-space: nowrap; }
.soft-btn:hover { opacity: .85; }
.soft-btn--win  { background: #1967d2; color: #fff; }
.soft-btn--mac  { background: #3c4043; color: #fff; }
.soft-btn--disabled { background: var(--bg-alt); color: var(--alt-text); cursor: default; }

.soft-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 24px 0;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-btn);
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
}
.soft-disclaimer i { color: #d97706; font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.soft-disclaimer p { margin: 0; }
.soft-disclaimer strong { font-weight: 700; }

/* ── Sidebar contextual ──────────────────────────────────────── */
.sidebar-ctx {
    margin-top: 12px;
    border-radius: var(--radius-block);
    padding: 18px 16px;
    font-size: 13px;
    line-height: 1.6;
}

/* Comunidad */
.sidebar-ctx--comunidad {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}

/* Anuncios */
.sidebar-ctx--anuncios {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}

/* Sesiones */
.sidebar-ctx--sesiones {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}
.sctx-stat { display: flex; align-items: center; gap: 14px; }
.sctx-stat__icon { font-size: 22px; flex-shrink: 0; }
.sctx-stat__icon--ok   { color: #16a34a; }
.sctx-stat__icon--err  { color: #dc2626; }
.sctx-stat__icon--warn { color: #d97706; }
.sctx-stat__body { display: flex; flex-direction: column; line-height: 1.2; }
.sctx-stat__val  { font-size: 22px; font-weight: 700; color: var(--heading); }
.sctx-stat__lbl  { font-size: 12px; color: var(--alt-text); }

/* Descargas: disclaimer */
.sidebar-ctx--descargas {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

/* Materiales */
.sidebar-ctx--materiales {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Grabaciones */
.sidebar-ctx--grabaciones {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #6b21a8;
}

/* Miembros */
.sidebar-ctx--miembros {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.sidebar-ctx__icon { font-size: 20px; display: block; margin-bottom: 10px; }
.sidebar-ctx__title { font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.sidebar-ctx__text  { font-size: 12px; margin: 0; line-height: 1.6; opacity: .9; }

.miembro-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miembro-rol-txt {
    font-size: 11px;
    font-weight: 400;
    color: var(--alt-text);
    margin-top: 1px;
}

.miembros-programa-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
    color: var(--alt-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.miembros-programa-sep::before,
.miembros-programa-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.miembro-inactivo { opacity: .5; }

.miembro-inactivo-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--alt-text);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 2px 6px;
}

/* ── Perfil / Cuenta ── */
.perfil-wrap { display: flex; flex-direction: column; gap: 0; }

.perfil-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 28px 32px;
}

.perfil-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.perfil-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.perfil-section__title > i { color: var(--primary); font-size: 15px; }
.perfil-section__sub { font-size: 12px; color: var(--alt-text); margin: 0; }
.perfil-section__sub-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--alt-text);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 20px 0 12px;
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.perfil-field { display: flex; flex-direction: column; gap: 5px; }
.perfil-field--full { grid-column: 1 / -1; }

.perfil-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--body-text);
}
.perfil-field input,
.perfil-field select {
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    padding: 0 12px;
    font-size: 14px;
    color: var(--heading);
    background: #fff;
    transition: border-color .15s;
    width: 100%;
}
.perfil-field input:focus,
.perfil-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56,93,255,.1);
}

.perfil-save-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.perfil-save-btn:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.perfil-save-btn:disabled { opacity: .7; cursor: default; }
.perfil-save-btn--ok  { background: var(--success) !important; }
.perfil-save-btn--err { background: var(--danger)  !important; }

.perfil-divider { height: 20px; }

/* ── Documentos ── */
.docs-list { display: flex; flex-direction: column; gap: 12px; }

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    background: var(--bg-page);
}

.doc-item__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.doc-item__body { flex: 1; min-width: 0; }
.doc-item__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.doc-item__desc  { font-size: 12px; color: var(--alt-text); margin: 0 0 4px; }
.doc-item__status { font-size: 12px; margin: 0; display: flex; align-items: center; gap: 5px; }
.doc-item__status--ok      { color: var(--success); }
.doc-item__status--pending { color: var(--warning); }

.doc-opcional {
    font-size: 10px;
    font-weight: 500;
    background: var(--bg-alt);
    color: var(--alt-text);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
}

.doc-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.doc-upload-btn:hover { background: var(--primary-hover); color: #fff; }
.doc-upload-feedback  { font-size: 12px; }

/* ── Avatar y banner editables ── */
.hero-cover-wrap--editable { position: relative; }

.hero-cover-edit-btn {
    position: absolute;
    bottom: 12px; right: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: var(--radius-btn);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    backdrop-filter: blur(4px);
}
.hero-cover-edit-btn:hover { background: rgba(0,0,0,.75); }

.hero-avatar-edit {
    position: absolute;
    bottom: 0; right: 0;
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid #fff;
    transition: background .15s;
}
.hero-avatar-edit:hover { background: var(--primary-hover); }

/* ── Modal preview imagen ── */
.img-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.img-preview-modal.open { display: flex; }

.img-preview-box {
    background: #fff;
    border-radius: var(--radius-block);
    padding: 24px;
    width: min(480px, 94vw);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.img-preview-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading);
    margin: 0;
}
.img-preview-wrap {
    border-radius: var(--radius-block);
    overflow: hidden;
    background: var(--bg-alt);
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 320px;
}
.img-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.img-preview-cancel {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    background: #fff;
    color: var(--body-text);
    font-size: 13px;
    cursor: pointer;
}
.img-preview-cancel:hover { background: var(--bg-alt); }
.img-preview-confirm {
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.img-preview-confirm:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.img-preview-confirm:disabled { opacity: .7; cursor: default; }

/* ===== Constancias ===== */
.constancia-generar-wrap { margin-bottom: 8px; }

.constancia-tipos-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.constancia-tipo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 14px 16px;
}

.constancia-tipo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.constancia-tipo-body { flex: 1; min-width: 0; }
.constancia-tipo-label { font-weight: 600; font-size: 14px; color: var(--heading); margin: 0 0 2px; }
.constancia-tipo-desc  { font-size: 12px; color: var(--alt-text); margin: 0; }

.constancia-tipo-btn {
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.constancia-tipo-btn:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.constancia-tipo-btn:disabled { opacity: .7; cursor: default; }

/* Lista de constancias generadas */
.constancias-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.constancia-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 14px 16px;
}

.constancia-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.constancia-item__body { flex: 1; min-width: 0; }
.constancia-item__label { font-weight: 600; font-size: 14px; color: var(--heading); margin: 0 0 3px; }
.constancia-item__meta  { font-size: 12px; color: var(--alt-text); margin: 0; }

.constancia-item__actions { display: flex; gap: 8px; flex-shrink: 0; }

.constancia-btn {
    padding: 6px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: none;
}
.constancia-btn--dl {
    background: var(--bg-alt);
    color: var(--heading);
    border: 1px solid var(--border);
}
.constancia-btn--dl:hover { background: var(--border); }

/* ===== Constancias — fila tabla ===== */
.mat-row--constancia { cursor: default; }
.mat-row--constancia:hover { background: var(--bg-alt); }

/* ── Tabla de constancias ── */
.cnst-table { width: 100%; }
.cnst-header, .cnst-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.4fr 1.2fr 1fr;
    align-items: center;
}
.cnst-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    min-height: 52px;
}
.cnst-header .cnst-col {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--heading);
    padding: 0 16px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
}
.cnst-header .cnst-col:last-child { border-right: none; }
.cnst-row {
    border-bottom: 1px solid var(--border);
    min-height: 58px;
    transition: background .12s;
}
.cnst-row:last-child { border-bottom: none; }
.cnst-row:hover { background: var(--bg-alt); }
.cnst-col {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cnst-col--center { justify-content: center; text-align: center; }
.cnst-folio {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.cnst-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background .15s;
}
.cnst-dl-btn:hover { background: rgba(var(--primary-rgb), .16); }
.mat-row__dl {
    color: var(--alt-text);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.mat-row__dl:hover { color: var(--primary); background: var(--bg-alt); }

/* Botón generar en topbar */
.btn-generar-constancia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: background .15s;
    cursor: pointer;
    white-space: nowrap;
}
.btn-generar-constancia:hover { background: rgba(255,255,255,.25); }

/* ===== Wizard modal ===== */
.cw-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 8000;
    align-items: center;
    justify-content: center;
}
.cw-backdrop.open { display: flex; }

.cw-modal {
    background: #fff;
    border-radius: var(--radius-pill);
    width: min(520px, 94vw);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
}
.cw-title { font-size: 16px; font-weight: 700; color: var(--heading); margin: 0; }
.cw-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--alt-text);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-btn);
}
.cw-close:hover { background: var(--bg-alt); color: var(--heading); }

/* Steps */
.cw-steps {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.cw-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--alt-text);
    white-space: nowrap;
}
.cw-step span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--alt-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.cw-step.active { color: var(--primary); }
.cw-step.active span { background: var(--primary); color: #fff; }
.cw-step.completed span { background: var(--success); color: #fff; }
.cw-step.completed { color: var(--success); }
.cw-step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }

/* Panels */
.cw-panel { padding: 22px 24px; min-height: 180px; }
.cw-panel--hidden { display: none; }

.cw-label-group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--alt-text);
    margin: 0 0 12px;
}
.cw-field { margin-bottom: 14px; }
.cw-field label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 5px; }
.cw-hint { font-weight: 400; color: var(--alt-text); font-size: 12px; }
.cw-field input, .cw-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    font-size: 13px;
    color: var(--heading);
    background: #fff;
    outline: none;
}
.cw-field input:focus, .cw-field select:focus { border-color: var(--primary); }

/* Tipo grid */
.cw-tipo-grid { display: flex; flex-direction: column; gap: 8px; }
.cw-tipo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-chip);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.cw-tipo-card:hover { border-color: var(--primary); background: #385dff08; }
.cw-tipo-card.selected { border-color: var(--primary); background: #385dff0d; }
.cw-tipo-card.disabled { opacity: 0.38; cursor: not-allowed; }
.cw-tipo-card.disabled:hover { border-color: var(--border); background: transparent; }
.cw-tipo-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-chip);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.cw-tipo-label { font-size: 13px; font-weight: 600; color: var(--heading); margin: 0 0 2px; }
.cw-tipo-folio { font-size: 11px; color: var(--alt-text); margin: 0; }

/* Info box */
.cw-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #385dff0d;
    border: 1px solid #385dff30;
    border-radius: var(--radius-btn);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 14px;
}

/* Confirmación */
.cw-confirm-box {
    text-align: center;
    padding: 24px 16px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-chip);
    margin-bottom: 16px;
}
.cw-confirm-icon { font-size: 38px; color: var(--success); display: block; margin-bottom: 10px; }
.cw-confirm-title { font-size: 16px; font-weight: 700; color: var(--heading); margin: 0 0 4px; }
.cw-confirm-meta  { font-size: 12px; color: var(--alt-text); margin: 0 0 4px; }
.cw-confirm-dirigido { font-size: 13px; color: var(--body-text); margin: 0; }
.cw-confirm-aviso { font-size: 11px; color: var(--alt-text); text-align: center; margin: 0; }

/* Footer */
.cw-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
}
.cw-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.cw-btn--sec { background: var(--bg-alt); color: var(--heading); border: 1px solid var(--border); }
.cw-btn--sec:hover { background: var(--border); }
.cw-btn--pri { background: var(--primary); color: #fff; }
.cw-btn--pri:hover { background: var(--primary-hover); color: #fff; }
.cw-btn--gen { background: var(--success); color: #fff; }
.cw-btn--gen:hover { background: #0fa043; }
.cw-btn:disabled { opacity: .7; cursor: default; }

/* ── OTP Modal ─────────────────────────────────────────────── */
.otp-modal-overlay {
    display: none;
}
.otp-modal-overlay.is-open {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(0,0,0,.6) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 16px !important;
}
.otp-modal {
    background: #ffffff;
    border-radius: var(--radius-block);
    padding: 32px 28px;
    width: 100%; max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative;
    z-index: 100000;
}
.otp-modal__icon { margin-bottom: 16px; display: flex; justify-content: center; }
.otp-modal h3 { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.otp-modal > p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.otp-inputs {
    display: flex; gap: 10px; justify-content: center;
    margin-bottom: 20px;
}
.otp-digit {
    width: 46px; height: 54px;
    text-align: center; font-size: 22px; font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-input);
    background: var(--bg-alt);
    color: var(--heading);
    outline: none;
    transition: border-color .15s;
}
.otp-digit:focus { border-color: var(--primary); }
.otp-error {
    color: #e11d48; font-size: 13px;
    margin-bottom: 12px;
}
.otp-modal__actions {
    display: flex; gap: 10px; justify-content: center;
    margin-bottom: 16px;
}
.otp-btn-cancel {
    padding: 9px 20px; border-radius: var(--radius-btn);
    border: 1px solid var(--border); background: var(--bg-alt);
    color: var(--heading); font-size: 14px; font-weight: 600; cursor: pointer;
}
.otp-btn-confirm {
    padding: 9px 24px; border-radius: var(--radius-btn);
    border: none; background: #e11d48;
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.otp-btn-confirm:disabled { opacity: .7; cursor: default; }
.otp-resend { font-size: 12px; color: var(--muted); }
.otp-resend a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ── Perfil verify banner ───────────────────────────────────── */
.perfil-verify-banner, .perfil-verify-active {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-block);
    margin-bottom: 4px;
}
.perfil-verify-banner {
    background: #e11d480d;
    border: 1px solid #e11d4830;
    justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.perfil-verify-banner__left {
    display: flex; align-items: center; gap: 12px;
}
.perfil-verify-banner strong { display: block; font-size: 14px; color: var(--heading); }
.perfil-verify-banner span   { font-size: 12px; color: var(--muted); }
.perfil-verify-btn {
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    background: #e11d48; color: #fff;
    border: none; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.perfil-verify-btn:hover { background: #be1238; }

.perfil-verify-active {
    background: #16a34a0d;
    border: 1px solid #16a34a30;
}
.perfil-verify-active strong { display: block; font-size: 14px; color: var(--heading); }
.perfil-verify-active span   { font-size: 12px; color: var(--muted); }

.perfil-locked-btn {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

.doc-upload-btn.perfil-locked-btn {
    opacity: .45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ses-daterange sobre fondo azul (topbar) */
.ses-topbar .ses-daterange {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.ses-topbar .ses-daterange:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   FEED — Comunidad
═══════════════════════════════════════════════ */

/* Composer */
.feed-composer {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
.feed-composer__avatar { flex-shrink: 0; }
.feed-composer__ini {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.feed-composer__body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.feed-composer__input {
    width: 100%; border: 1px solid var(--border);
    border-radius: var(--radius-input);
    padding: 10px 12px;
    font-size: 14px; color: var(--heading);
    resize: none; font-family: inherit;
    background: var(--bg-alt);
    transition: border-color .15s;
}
.feed-composer__input:focus { outline: none; border-color: var(--primary); background: #fff; }
.feed-composer__actions {
    display: flex; align-items: center; justify-content: space-between;
}
.feed-composer__img-btn {
    width: 34px; height: 34px; border-radius: var(--radius-btn);
    background: var(--bg-alt); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer; font-size: 16px;
    transition: background .15s, color .15s;
}
.feed-composer__img-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.feed-composer__submit {
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-btn);
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: background .15s;
}
.feed-composer__submit:hover { background: var(--primary-hover); color: #fff; }
.feed-composer__img-preview {
    position: relative; display: flex; align-items: flex-start;
    width: fit-content;
}
.feed-composer__img-preview img { max-height: 120px; border-radius: var(--radius-input); }
.feed-composer__img-remove {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: none;
    font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Feed cards */
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-block);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.feed-card__header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 0;
}
.feed-card__avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
    overflow: hidden;
}
.feed-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-card__meta { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-card__autor { font-size: 14px; font-weight: 600; color: var(--heading); }
.feed-card__tiempo { font-size: 12px; color: var(--muted); margin-left: auto; }
.feed-card__badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: var(--radius-pill);
}
.feed-card__badge--instructor        { background: #385DFF18; color: #385DFF; }
.feed-card__badge--sistema           { background: #6b728018; color: #6b7280; }
.feed-card__badge--alumno            { background: #10b98118; color: #10b981; }
.feed-card__badge--dir_academica     { background: #f59e0b18; color: #d97706; }
.feed-card__badge--control_escolar   { background: #8b5cf618; color: #8b5cf6; }
.feed-card__badge--gerencia_ventas   { background: #ef444418; color: #ef4444; }
.feed-card__badge--admin             { background: #06b6d418; color: #0891b2; }
.feed-card__del {
    width: 30px; height: 30px; border-radius: var(--radius-btn);
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s; flex-shrink: 0;
}
.feed-card__del:hover { background: #e11d4818; color: #e11d48; }

.feed-card__body {
    padding: 12px 16px; font-size: 14px;
    color: var(--body-text); line-height: 1.65;
    white-space: pre-wrap;
}
.feed-card__liga {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 16px 12px;
    font-size: 13px; color: var(--primary);
    text-decoration: none; font-weight: 500;
}
.feed-card__liga:hover { text-decoration: underline; }
.feed-card__img { padding: 0; }
.feed-card__img img { width: 100%; max-height: 400px; object-fit: cover; display: block; border-radius: 8px; }
.feed-card__body--split { display: grid; grid-template-columns: 1fr 180px; gap: 12px; align-items: start; }
.feed-split__text { font-size: 14px; line-height: 1.6; }
.feed-split__img img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; border: 0.5px solid var(--border); }
.feed-card__img--full { display: flex; justify-content: center; }
.feed-card__img--full img { width: 280px !important; max-width: 280px !important; max-height: 280px; object-fit: cover; border-radius: 8px; }

.feed-card__footer {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
}
.feed-card__reacciones { display: flex; gap: 8px; }
.feed-reaccion {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--muted);
    padding: 4px 8px; border-radius: var(--radius-btn);
    transition: background .15s, color .15s;
}
.feed-reaccion:hover, .feed-reaccion.active { background: #385DFF12; color: var(--primary); }
.feed-reaccion.active i { color: var(--primary); }
.feed-reaccion__count { font-weight: 600; }
.feed-toggle-comments {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--muted);
    padding: 4px 8px; border-radius: var(--radius-btn);
    margin-left: auto;
    transition: background .15s, color .15s;
}
.feed-toggle-comments:hover { background: var(--bg-alt); color: var(--heading); }

/* Comentarios */
.feed-comments {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 12px 16px;
}
.feed-comments__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.feed-comment {
    display: flex; align-items: flex-start; gap: 8px;
}
.feed-comment__ini, .feed-comments__ini {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.feed-comment__body {
    flex: 1; background: #fff; border-radius: var(--radius-chip);
    padding: 6px 10px; font-size: 13px;
    display: flex; flex-direction: column; gap: 2px;
    position: relative;
}
.feed-comment__autor { font-weight: 600; color: var(--heading); font-size: 12px; }
.feed-comment__texto { color: var(--body-text); line-height: 1.5; }
.feed-comment__del {
    position: absolute; top: 4px; right: 6px;
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 11px; padding: 2px;
}
.feed-comment__del:hover { color: #e11d48; }
.feed-comments__input-wrap { display: flex; align-items: center; gap: 8px; }
.feed-comments__input {
    flex: 1; border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 14px; font-size: 13px;
    background: #fff; font-family: inherit;
    transition: border-color .15s;
}
.feed-comments__input:focus { outline: none; border-color: var(--primary); }
.feed-comments__send {
    flex-shrink: 0; background: #385DFF; color: #fff;
    border: none; border-radius: var(--radius-pill);
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 11px; transition: background .15s, opacity .15s; opacity: .35;
    pointer-events: none;
}
.feed-comments__send.ready { opacity: 1; pointer-events: auto; }
.feed-comments__send.ready:hover { background: #2a4de0; }

/* Post fijado */
.feed-card__pin {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    color: #ca8a04; background: #ca8a0418;
    padding: 2px 8px; border-radius: var(--radius-pill);
    margin-left: auto;
}
.feed-card[data-fijo="1"] {
    border-color: #ca8a0440;
    background: linear-gradient(to bottom, #fefce8, #fff 60px);
}

.feed-body__vermás {
    display: inline-block;
    margin-top: 4px;
    background: none; border: none;
    color: var(--primary); font-size: 13px;
    font-weight: 600; cursor: pointer; padding: 0;
}
.feed-body__vermás:hover { text-decoration: underline; }

.feed-body__vermenos {
    display: inline-block;
    margin-top: 4px;
    background: none; border: none;
    color: var(--muted); font-size: 13px;
    font-weight: 600; cursor: pointer; padding: 0;
}
.feed-body__vermenos:hover { text-decoration: underline; color: var(--heading); }

.feed-body__vermás {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px;
    background: none; border: none;
    color: var(--primary); font-size: 13px;
    font-weight: 600; cursor: pointer; padding: 0;
    transition: opacity .15s;
}
.feed-body__vermás:hover { opacity: .75; }
.feed-body__vermás i { font-size: 11px; }
