/* ============================================
   ONA Club · Comunidad (app v2, img 18)
   Cabecera, buscador, círculos de grupos, pestañas Chats · Grupos · Blog/Vlog,
   aviso de notificaciones (también en el vlog) e «Inspiración ONA».
   Las filas de conversación son las de chat.css; las tarjetas de artículos, las de vlog.css.
   ============================================ */

.com { display: flex; flex-direction: column; gap: 14px; }
.com [hidden] { display: none !important; }
.com .is-searching { display: none !important; }

/* Tarjeta base de la app v2 */
.com-card, .com-empty, .com-cta, .com-notif {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}

/* ── Cabecera ── */
.com-head { margin-top: 2px; }
.com-title {
    margin: 0; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(34px, 10.4vw, 48px); line-height: 1.02; letter-spacing: -.015em; color: var(--text-heading);
}
.com-title em { font-style: italic; font-weight: 500; color: #7d6853; }
.com-sub { margin: 8px 0 0; max-width: 36ch; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }

/* ── Buscador ── */
.com-search {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px rgba(94, 79, 63, .06); color: var(--text-secondary); cursor: text;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.com-search:focus-within { border-color: #baa68e; box-shadow: 0 0 0 3px rgba(138, 119, 98, .15), 0 8px 22px rgba(94, 79, 63, .06); }
.com-search svg { flex: 0 0 auto; }
.com-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
    font: inherit; font-size: 16px; color: var(--text-heading); -webkit-appearance: none; appearance: none;
}
.com-search input::placeholder { color: var(--text-muted); }

/* ── Círculos: «Añadir» y los grupos (carrusel) ── */
.com-circles {
    display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px;
    scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.com-circles::-webkit-scrollbar { display: none; }
.com-circle {
    flex: 0 0 auto; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0; border: 0; background: none; font: inherit; color: var(--text-secondary);
    text-decoration: none; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.com-circle__ring {
    width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: 0 0 0 1px rgba(186, 166, 142, .55), 0 6px 14px rgba(94, 79, 63, .10);
    transition: transform .2s ease;
}
.com-circle:active .com-circle__ring { transform: scale(.94); }
.com-circle.is-unread .com-circle__ring { box-shadow: 0 0 0 2.5px #8a7762, 0 6px 14px rgba(94, 79, 63, .16); }
.com-circle__name { max-width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-circle--add .com-circle__ring { background: rgba(255, 255, 255, .55); border: 1.5px dashed rgba(138, 119, 98, .55); box-shadow: none; color: #8a7762; }
.com-circle:focus-visible { outline: none; }
.com-circle:focus-visible .com-circle__ring { outline: 2px solid #5e4f3f; outline-offset: 3px; }
.com-circle--skel { cursor: default; }
.com-circle--skel .com-circle__ring { background: rgba(255, 255, 255, .6); box-shadow: none; animation: comPulse 1.4s ease-in-out infinite; }
.com-circle--skel .com-circle__name { width: 44px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .7); }
@keyframes comPulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .com-circle--skel .com-circle__ring { animation: none; } }

/* ── Pestañas Chats · Grupos · Blog/Vlog ── */
.com-tabs {
    display: flex; gap: 4px; padding: 5px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px rgba(94, 79, 63, .06);
}
.com-tab {
    flex: 1 1 0; min-width: 0; height: 46px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.com-tab svg { flex: 0 0 auto; }
.com-tab span { overflow: hidden; text-overflow: ellipsis; }
.com-tab.is-on {
    color: #fff; background: linear-gradient(160deg, #8a7762, #6e5d4b);
    box-shadow: 0 6px 14px rgba(94, 79, 63, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.com-tab:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }
@media (max-width: 380px) {
    .com-tab { gap: 5px; padding: 0 4px; font-size: 13px; }
    .com-tab svg { width: 16px; height: 16px; }
}

/* ── Paneles ── */
.com-panel { display: flex; flex-direction: column; gap: 12px; min-height: 80px; }
.com .chat-section { margin: 0; }
.com-list .chat-row { padding: 12px 14px; }
.com-hint { margin: 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.com-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; text-align: center; font-size: 14px; color: var(--text-secondary); }
.com-empty svg { color: #a38d76; }
.com-cta {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; font: inherit; text-align: left;
    color: var(--text-heading); cursor: pointer;
}
.com-cta__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f3ebe1; color: #8a7762; }
.com-cta__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.com-cta__txt b { font-weight: 600; font-size: 15px; }
.com-cta__txt small { font-size: 13px; color: var(--text-secondary); }
.com-cta > svg:last-child { flex: 0 0 auto; color: var(--text-muted); }
.com-cta:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }

/* Resultados del buscador */
.com-results { display: flex; flex-direction: column; gap: 10px; }
.com-results__title { margin: 4px 4px 0; }

/* ── Botón píldora ── */
.com-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px;
    border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; white-space: nowrap;
    background: linear-gradient(160deg, #7d6853, #5e4f3f);
    box-shadow: 0 6px 14px rgba(94, 79, 63, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.com-btn:disabled { opacity: .6; cursor: default; }
.com-btn:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }
.com-btn--ghost { background: #f3ebe1; color: #5e4f3f; box-shadow: none; height: 40px; }

/* ── Aviso «No te pierdas nada» ── */
.com-notif {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 16px 44px 16px 16px; border-left: 4px solid #d9cab8;
}
.com-notif__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f3ebe1; color: #8a7762; }
.com-notif__body { flex: 1 1 170px; min-width: 0; }
.com-notif__body strong { display: block; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.com-notif__body p { margin: 3px 0 0; font-size: 13px; line-height: 1.42; color: var(--text-secondary); }
.com-notif__btn { margin-left: auto; }
.com-notif__close {
    position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: transparent; color: var(--text-secondary); cursor: pointer;
}
.com-notif__close:hover { background: rgba(94, 79, 63, .06); }
.com-notif__close:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 1px; }

/* ── Inspiración ONA ── */
.com-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 4px 10px; }
.com-sec__title { margin: 0; font-size: 12px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }
.com-sec__more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--text-heading); text-decoration: none; }
.com-sec__more:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; border-radius: 6px; }
.com-insp { margin-top: 2px; }
.com-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.com-minis--one { grid-template-columns: minmax(0, 1fr); }

/* Escritorio: columna centrada (la conversación también es una columna de 760 px) */
@media (min-width: 768px) {
    .page.com { max-width: 760px; }
}
