/* ============================================================
   TIPATIP DESIGN SYSTEM (tipatip-ds.css)
   Fuente de verdad visual. Documentacion: DESIGN.md
   Carga: lib/cabecera.php, DESPUES de bootstrap y style.css
   ============================================================
   === 1. CANON (extraido de index.php - NO MODIFICAR VALORES) === */

    :root {
        --tt-blue-hover: #1b90c2;
        --tt-heading: #5fa5c2;
        --font-display: 'Plus Jakarta Sans', sans-serif;
    }

    body {
        font-family: var(--bs-body-font-family);
        color: var(--gray);
        margin: 0;
        padding: 0;
        -webkit-font-smoothing: antialiased;
        background-color: #ffffff;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-display);
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    /* NAVBAR */
    .navbar-stitch {
        background-color: #ffffff;
        padding: 1.5rem 0;
        border-bottom: none;
    }

    .nav-link-stitch {
        color: var(--gray);
        font-family: var(--bs-body-font-family);
        font-weight: 500;
        font-size: 0.95rem;
        margin: 0 0.8rem;
        transition: color 0.2s;
    }

    .nav-link-stitch:hover {
        color: var(--primary);
    }

    .nav-link-active {
        color: var(--primary) !important;
        border-bottom: 2px solid var(--primary);
        font-weight: 600;
    }

    .btn-pill {
        border-radius: 50px;
        padding: 0.7rem 2.2rem;
        font-family: var(--font-display);
        font-weight: 700;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
        text-align: center;
    }

    .btn-blue {
        background-color: var(--primary);
        color: #ffffff;
        border: 2px solid var(--primary);
    }

    .btn-blue:hover {
        background-color: var(--tt-blue-hover);
        border-color: var(--tt-blue-hover);
        color: #ffffff;
    }

    .btn-white {
        background-color: #ffffff;
        color: var(--primary);
        border: 2px solid #ffffff;
    }

    .btn-white:hover {
        background-color: #f0f0f0;
        color: var(--tt-blue-hover);
        border-color: #f0f0f0;
    }

    /* BARRAS DE BÚSQUEDA / FORMULARIOS */
    .search-pill-wrapper {
        background-color: #f1f3f4;
        border-radius: 50px;
        padding: 0.3rem 0.3rem 0.3rem 1.2rem;
    }

    .search-pill-wrapper input {
        color: var(--gray);
        font-weight: 500;
    }

    .search-pill-wrapper input:focus {
        box-shadow: none;
        outline: none;
    }

    .form-control-pill {
        background-color: #d8d8d8;
        /* Gris visual de la imagen */
        color: var(--gray);
        border-radius: 50px;
        border: none;
        padding: 1rem 1.5rem;
        font-weight: 600;
    }

    .form-control-pill::placeholder {
        color: #7a7a7a;
        font-weight: 600;
    }

    .form-control-pill:focus {
        background-color: #c8c8c8;
        box-shadow: none;
    }

    .form-textarea {
        background-color: #d8d8d8;
        color: var(--gray);
        border-radius: 20px;
        border: none;
        padding: 1.5rem;
        font-weight: 600;
    }

    .form-textarea::placeholder {
        color: #7a7a7a;
        font-weight: 600;
    }

    .form-textarea:focus {
        background-color: #c8c8c8;
        box-shadow: none;
    }

    /* SECCIONES BASE */
    .hero-section {
        padding: 6rem 0 7rem 0;
        background-color: #ffffff;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
        color: var(--primary);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--gray);
        margin-bottom: 2.5rem;
        max-width: 90%;
    }

    .experience-section {
        background-color: var(--primary);
        color: #ffffff;
        padding: 5rem 0;
        text-align: center;
    }

    .experience-section h2 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .experience-section h2 strong {
        font-weight: 800;
    }

    .experience-section p {
        font-size: 1.15rem;
        max-width: 800px;
        margin: 0 auto 2.5rem auto;
        line-height: 1.6;
        opacity: 0.95;
    }

    .steps-section {
        background-color: #ffffff;
        padding: 6rem 0;
        text-align: center;
    }

    .steps-section h2 {
        color: var(--primary);
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .steps-section>p {
        color: var(--primary);
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 4rem;
    }

    .card-blue {
        background-color: var(--primary);
        color: #ffffff;
        border-radius: 2rem;
        padding: 3rem 2rem;
        height: 100%;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-blue .step-number {
        font-size: 6rem;
        font-family: var(--font-display);
        font-weight: 800;
        line-height: 0.8;
        opacity: 0.9;
    }

    .community-section {
        background-color: var(--primary);
        padding: 6rem 0;
        text-align: center;
        color: #ffffff;
    }

    .community-section h2 {
        font-size: 2.5rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .community-section h2 strong {
        font-weight: 800;
    }

    .card-white {
        background-color: #ffffff;
        color: var(--primary);
        border-radius: 2rem;
        padding: 3rem 2rem;
        height: 100%;
        text-align: center;
    }

    .faq-section {
        background-color: #ffffff;
        padding: 6rem 0;
    }

    .faq-section h2 {
        color: var(--primary);
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .faq-question {
        background-color: var(--primary);
        color: #ffffff;
        border-radius: 8px;
        padding: 1.2rem 1.5rem;
        font-family: var(--font-display);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .faq-answer {
        background-color: #ffffff;
        border: 2px solid var(--primary);
        border-top: none;
        padding: 1.5rem;
        display: none;
        border-radius: 0 0 8px 8px;
    }

    .faq-question.active {
        border-radius: 8px 8px 0 0;
    }

    .faq-question i {
        transition: transform 0.3s ease;
    }

    .faq-question.active i {
        transform: rotate(180deg);
    }

    /* 2. DEFINICIÓN MENTORÍA */
    .def-mentoria {
        background-color: var(--primary);
        color: var(--white);
        padding: 5rem 0;
    }
    .def-mentoria h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    .def-mentoria p {
        font-size: 1.15rem;
        line-height: 1.6;
        opacity: 0.95;
    }
    .icon-bubbles {
        font-size: 10rem;
        color: var(--white);
        line-height: 1;
    }

    /* 3. FLUJO JUNIOR (Blanco) */
    .flujo-junior {
        background-color: #ffffff;
        padding: 6rem 0;
    }
    .flujo-junior h3 {
        color: var(--gray);
        margin-bottom: 2rem;
    }
    .paso-item {
        margin-bottom: 2rem;
    }
    .paso-item h5 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--gray);
        margin-bottom: 0.5rem;
    }
    .paso-item p {
        font-size: 0.95rem;
        color: var(--gray);
        line-height: 1.5;
        opacity: 0.8;
    }
    .placeholder-image {
        background-color: #d9d9d9;
        width: 100%;
        height: 100%;
        min-height: 500px;
        border-radius: 8px;
    }

    /* 4. FLUJO SENIOR (Azul) */
    .flujo-senior {
        background-color: var(--primary);
        color: var(--white);
        padding: 6rem 0;
    }
    .flujo-senior h3 {
        margin-bottom: 2rem;
    }
    .flujo-senior .paso-item h5 {
        color: var(--white);
    }
    .flujo-senior .paso-item p {
        color: var(--white);
        opacity: 0.9;
    }
    /* En el mockup el texto está alineado a la derecha para contrastar */
    .text-senior {
        text-align: right;
    }
    
    @media (max-width: 991px) {
        .text-senior {
            text-align: left;
            margin-top: 3rem;
        }
        .icon-col {
            text-align: center;
            margin-top: 2rem;
        }
    }

    /* 5. PARA QUÉ SIRVE (Blanco) */
    .para-que-sirve {
        background-color: #ffffff;
        padding: 6rem 0;
    }
    .para-que-sirve h2 {
        color: var(--primary);
        margin-bottom: 1.5rem;
    }
    .para-que-sirve p {
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--gray);
        margin-bottom: 1.5rem;
    }
    .final-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        min-height: 350px;
    }

    .hero-como-funciona {
        position: relative;
        padding: 6rem 0;
        background-color: #1a4f73;
        color: white;
        text-align: center;
        overflow: hidden;
    }
    .hero-como-funciona::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image: url('../img/sala_reuniones.png');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        z-index: 0;
    }
    .hero-como-funciona .container {
        position: relative;
        z-index: 1;
    }
    .hero-como-funciona h2 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        color: white;
    }
    .hero-como-funciona p {
        font-size: 1.25rem;
        font-weight: 500;
        max-width: 800px;
        margin: 0 auto;
    }

    /* 6. NUEVA SECCIÓN COMUNIDADES (BOCETO 3) */
    .hero-comunidades h2 {
        color: var(--primary);
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    .hero-comunidades p {
        font-size: 1.1rem;
        line-height: 1.7;
        color: var(--gray);
    }
    .hero-comunidades img {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .sin-miedo-title {
        color: var(--primary);
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 4rem;
    }
    .sin-miedo-item h4 {
        color: var(--gray);
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    .sin-miedo-item p {
        color: var(--gray);
        line-height: 1.6;
        opacity: 0.9;
    }
    .icon-sin-miedo {
        font-size: 4rem;
        color: var(--primary);
        line-height: 1;
    }

    .que-encontraras h3 {
        color: var(--primary);
        font-size: 2.2rem;
    }
    .que-encontraras h5 {
        color: var(--gray);
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    .que-encontraras p {
        color: var(--gray);
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .card-descubre {
        background-color: var(--primary);
        color: #ffffff;
        border-radius: 2rem;
        padding: 4rem 3rem;
        margin-top: 5rem;
    }
    .card-descubre h2 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }
    .card-descubre p {
        font-size: 1.05rem;
        line-height: 1.6;
        opacity: 0.95;
    }
    .card-descubre-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        min-height: 350px;
    }


/* ============================================================
   === 2. DERIVADOS (ver DESIGN.md) ===========================
   Componentes product que el canon no define. Solo valores de
   la escala del canon: radios 8/12/20px/2rem/50px y tokens.
   ============================================================ */

/* --- FAQ landing (index.php): transición suave del acordeón.
   El canon usa display:none (apertura brusca); aquí se anima por CSS con
   max-height/opacity (ease-out quint, sin rebote). El JS solo togglea
   .active en .faq-question. Respeta prefers-reduced-motion (abajo). --- */
.faq-answer {
    display: block;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(0.22, 1, 0.36, 1),
                padding .35s cubic-bezier(0.22, 1, 0.36, 1),
                border-width .35s ease,
                opacity .25s ease;
}
.faq-question.active + .faq-answer {
    max-height: 260px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-width: 0 2px 2px 2px;
    opacity: 1;
}

/* --- Escala tipográfica product (activar con class="tt-app" en <body>) --- */
.tt-app h1 { font-size: 2rem; }
.tt-app h2 { font-size: 1.5rem; }
.tt-app h3 { font-size: 1.25rem; }
.tt-app h4 { font-size: 1.1rem; }
.tt-app h5 { font-size: 1rem; }
.tt-app h6 { font-size: .9rem; }

/* --- Botones derivados (usar junto a .btn-pill) --- */
.btn-pill-sm {
    padding: .4rem 1.2rem;
    font-size: .9rem;
}

.btn-pill-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-pill-outline:hover {
    background-color: var(--primary-light);
    color: var(--tt-blue-hover);
    border-color: var(--tt-blue-hover);
}

.btn-pill-danger {
    background-color: var(--bs-danger, #dc3545);
    color: var(--white);
    border: 2px solid var(--bs-danger, #dc3545);
}

.btn-pill-danger:hover {
    background-color: #7d0000;
    border-color: #7d0000;
    color: var(--white);
}

.btn-pill-warning {
    background-color: #ff640a;
    color: var(--white);
    border: 2px solid #ff640a;
}

.btn-pill-warning:hover {
    background-color: #c94a01;
    border-color: #c94a01;
    color: var(--white);
}

.btn-pill:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-pill:disabled,
.btn-pill.disabled {
    opacity: .55;
    pointer-events: none;
}

/* --- Formularios derivados ---
   Controles interactivos (selects, chips): blanco + borde, acento azul al
   interactuar. El gris #d8d8d8 del canon queda reservado a los campos de
   texto de formularios brand (login/signup/contacto). */
.form-select-pill {
    background-color: var(--white);
    color: var(--gray);
    border-radius: 50px;
    border: 1.5px solid var(--secondary-light);
    padding: .65rem 2.25rem .65rem 1.25rem;
    font-weight: 600;
    transition: border-color .2s ease;
}

.form-select-pill:hover {
    border-color: var(--primary);
}

.form-select-pill:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tt-app .form-control-pill {
    padding: .6rem 1.25rem;
    font-weight: 500;
}

.form-control-pill.is-invalid,
.form-select-pill.is-invalid {
    border: 2px solid var(--bs-danger, #dc3545);
}

/* --- Panel de datos (histórico, monedero, ajustes, admin) --- */
.tt-panel {
    background-color: var(--white);
    border: 1px solid var(--secondary-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.tt-panel-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* --- Ficha de usuario/recurso (search, miembros, deseos) --- */
.tt-ficha {
    background-color: var(--white);
    border: 1px solid var(--secondary-light);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tt-ficha:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.tt-ficha-ambito {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--tt-blue-hover);
    border-radius: 50px;
    padding: .2rem .8rem;
    font-size: .75rem;
    font-weight: 700;
}

/* --- Badges de estado de Tip (BD: 1 solicitado, 2 aceptado, 3 finalizado, 4 rechazado) --- */
.tt-badge {
    display: inline-block;
    border-radius: 50px;
    padding: .25rem .9rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.tt-badge-solicitado {
    background-color: var(--primary-light);
    color: var(--tt-blue-hover);
}

.tt-badge-aceptado {
    background-color: var(--primary);
    color: var(--white);
}

.tt-badge-finalizado {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.tt-badge-rechazado {
    background-color: #f8d7da;
    color: #842029;
}

/* --- Tablas --- */
.tt-table-wrap {
    border: 1px solid var(--secondary-light);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
}

.tt-table {
    margin-bottom: 0;
}

.tt-table thead th {
    font-family: var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 700;
    color: var(--gray);
    border-bottom: 2px solid var(--secondary-light);
    background-color: var(--white);
}

.tt-table td {
    border-color: var(--secondary-light);
    vertical-align: middle;
}

.tt-table tbody tr:hover {
    background-color: var(--primary-light);
}

/* --- Alertas / avisos --- */
.tt-alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.tt-alert-info {
    background-color: var(--primary-light);
    color: var(--tt-blue-hover);
}

.tt-alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.tt-alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.tt-alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* --- Cabecera de página interna --- */
.tt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 1rem;
}

.tt-page-header h1 {
    color: var(--primary);
    margin: 0;
}

/* --- Empty state (enseña la interfaz, no dice "no hay nada") --- */
.tt-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.tt-empty-state i {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
}

.tt-empty-state h4 {
    margin: 1rem 0 .5rem;
}

.tt-empty-state p {
    color: var(--gray);
    opacity: .8;
    max-width: 48ch;
    margin: 0 auto 1.5rem;
}

/* --- Skeleton de carga (AJAX) --- */
.tt-skeleton {
    background-color: #f1f3f4;
    border-radius: 8px;
    min-height: 1rem;
    animation: tt-pulse 1.2s ease-in-out infinite;
}

@keyframes tt-pulse {
    50% { opacity: .5; }
}

/* --- Modal --- */
.tt-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

/* --- Progreso de asistente (senior_req 1-5) --- */
.tt-wizard-progress {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
}

.tt-wizard-step {
    flex: 1;
    height: .5rem;
    border-radius: 50px;
    background-color: var(--secondary-light);
}

.tt-wizard-step.active {
    background-color: var(--primary);
}

/* --- Overrides de librerías de terceros (T1.7; NO editar sus archivos) --- */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: #d8d8d8;
    border: none;
    border-radius: 50px;
    min-height: 2.6rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.6rem;
    padding-left: 1.25rem;
    font-weight: 600;
    color: var(--gray);
}

.select2-dropdown {
    border: 1px solid var(--secondary-light);
    border-radius: 12px;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
}

.bootstrap-datetimepicker-widget {
    border-radius: 12px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: var(--primary);
}

.note-editor.note-frame {
    border-radius: 8px;
    border-color: var(--secondary-light);
}

/* --- Offcanvas de administración (dashboard y comunidades) --- */
.tt-offcanvas .offcanvas-title {
    font-weight: 800;
}

.tt-offcanvas .nav-link {
    color: var(--gray);
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}

.tt-offcanvas .nav-link:hover {
    background-color: var(--primary-light);
    color: var(--tt-blue-hover);
}

.tt-offcanvas .nav-link i {
    color: var(--primary);
}

/* --- Banner de cookies (lib/footer.php) --- */
.tt-cookie {
    background-color: var(--white);
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
    z-index: 1080;
}
.tt-cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tt-cookie-text { color: var(--secondary-dark); font-size: .9rem; flex: 1 1 280px; }
.tt-cookie-text a { color: var(--primary); text-decoration: underline; }
.tt-cookie-acc { display: flex; gap: .5rem; flex: 0 0 auto; }
@media (max-width: 575px) { .tt-cookie-inner { justify-content: center; text-align: center; } .tt-cookie-acc { width: 100%; } .tt-cookie-acc button { flex: 1 1 auto; } }
/* Botón "Solicitar Tip" con selección incompleta: aspecto inhabilitado pero clicable
   (para avisar de lo que falta). NO usar pointer-events:none. */
.tt-btn-incompleto { opacity: .5; cursor: not-allowed; }

/* --- Navbar de aplicación (canon en modo fijo; el landing usa la suya no fija) --- */
.navbar-stitch.fixed-top {
    padding: .6rem 0;
    background-color: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.navbar-stitch .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--secondary-light);
}

.navbar-stitch .dropdown-item:focus,
.navbar-stitch .dropdown-item:hover {
    background-color: var(--primary-light);
}

/* --- Accesibilidad: movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
    .tt-skeleton { animation: none; }
    .btn-pill, .tt-ficha, .nav-link-stitch, .faq-question i, .faq-answer { transition: none; }
}

/* ============================================================
   === 3. PÁGINAS =============================================
   Reglas puntuales por página añadidas durante la Fase 2.
   Cada bloque con comentario "usado en: pagina.php".
   ============================================================ */

/* --- usado en: como_funciona.php (hero con foto + velo azul) --- */
    .hero-banner {
        position: relative;
        padding: 8rem 0;
        background-image: url('../img/sala_reuniones.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .hero-banner::before {
        content: "";
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(54, 169, 225, 0.75); /* --primary semitransparente */
        z-index: 1;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        color: var(--white);
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        font-weight: 800;
    }
    .hero-content p {
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto;
        opacity: 0.95;
    }

/* --- usado en: search.php (tarjetas de resultados; tambien emitidas por buscar_perfiles en lib/funciones_ws.php) --- */
.card_search {
    border: 1px solid var(--secondary-light) !important;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.card_search:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1) !important;
}

/* --- usado en: search.php + filtros_search/get_habilidades (chips de ambito) --- */
.w_hab {
    background-color: var(--white);
    border: 1.5px solid var(--secondary-light);
    border-radius: 50px;
    padding: .4rem 1.1rem;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.w_hab:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.w_hab .btn {
    color: var(--gray);
    font-weight: 600;
}

.w_hab:hover .btn {
    color: var(--tt-blue-hover);
}

.w_hab.bg-primary {
    border-color: var(--primary);
}

.w_hab.bg-primary .btn,
.w_hab.bg-primary p {
    color: var(--white);
}

#filter_search {
    font-family: var(--bs-body-font-family);
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray);
    opacity: .75;
    letter-spacing: 0;
}

/* --- usado en: historico.php (cabecera de tabla azul canon) --- */
.tt-table thead.bg-primary th,
.tt-table thead tr.bg-primary th {
    background-color: var(--primary);
    color: var(--white);
    border-bottom: none;
}
/* los botones de ordenación de la cabecera azul deben verse en blanco */
.tt-table thead tr.bg-primary th .btn { color: var(--white) !important; }

/* --- usado en: monedero.php (tarjetas de saldo y filtros de fecha) --- */
.tt-saldo-card {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 12px;
    border: none;
}

.tt-saldo-card .card-title {
    color: var(--white);
    font-size: 1rem;
}

.tt-saldo-card .card-text {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
}

.tt-app input[type="date"].form-control-pill {
    background-color: var(--white);
    border: 1.5px solid var(--secondary-light);
    transition: border-color .2s ease;
}

.tt-app input[type="date"].form-control-pill:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* --- usado en: msg.php + _msg.php + _chats.php + _cab_chat_select.php (mensajeria) --- */
/* El color de texto se redefine SIEMPRE: style.css legacy deja color blanco
   en .message-sent (de cuando la burbuja era azul pleno) y resultaba ilegible
   sobre el tinte claro. */
.message-sent {
    background-color: #d9efff; /* derivado solido de --primary-light: tinte azul = "mio" */
    color: var(--gray);
    border-radius: 12px 12px 4px 12px;
    padding: .65rem 1rem;
}

.message-received {
    background-color: #f1f3f4;
    color: var(--gray);
    border-radius: 12px 12px 12px 4px;
    padding: .65rem 1rem;
}

.message-sent p,
.message-received p {
    margin-bottom: 0;
}

.messages-chat .message time {
    font-size: .75rem;
    color: #8a8f94;
}

.notification {
    transition: background-color .2s ease;
    cursor: pointer;
}

.notification:hover {
    background-color: var(--primary-light) !important;
}

/* chat abierto en el listado (la clase la re-aplica el JS tras cada refresco) */
.notification-activa {
    background-color: var(--primary-light) !important;
}

/* presencia online: punto azul (users.ultima_actividad < 5 min) */
.tt-dot-online {
    position: relative;
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--primary);
}

.avatar-dot-wrap {
    position: relative;
    display: inline-block;
}

.tt-dot-avatar {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--white);
}

@media (prefers-reduced-motion: no-preference) {
    /* eco "sonar" del punto: estado vivo, solo transform/opacity */
    .tt-dot-online::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background-color: var(--primary);
        opacity: .4;
        animation: tt-dot-eco 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    }

    @keyframes tt-dot-eco {
        from { transform: scale(1); opacity: .4; }
        to   { transform: scale(2.4); opacity: 0; }
    }

    /* entrada de mensajes (el polling los inserta de uno en uno) */
    .messages-chat .message {
        transition: opacity .18s cubic-bezier(0.23, 1, 0.32, 1), transform .18s cubic-bezier(0.23, 1, 0.32, 1);
    }

    @starting-style {
        .messages-chat .message {
            opacity: 0;
            transform: translateY(6px);
        }
    }
}

/* feedback fisico del boton de envio */
#chat-form button[type="submit"] {
    transition: transform .16s cubic-bezier(0.23, 1, 0.32, 1);
}

#chat-form button[type="submit"]:active {
    transform: scale(0.92);
}

.tt-app input[type="search"].form-control-pill {
    background-color: var(--white);
    border: 1.5px solid var(--secondary-light);
    transition: border-color .2s ease;
}

.tt-app input[type="search"].form-control-pill:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}


/* --- DERIVADO responsive: el canon no define móvil; escala sane <576px sin tocar desktop --- */
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.25rem; }
    .hero-section { padding: 3rem 0 3.5rem 0; }
    .experience-section h2,
    .steps-section h2,
    .community-section h2,
    .faq-section h2 { font-size: 1.75rem; }
    .hero-como-funciona h2 { font-size: 2.25rem; }
    .card-descubre h2 { font-size: 2rem; }
    .hero-comunidades h2 { font-size: 2.25rem; }
    .experience-section,
    .steps-section,
    .community-section,
    .faq-section,
    .def-mentoria,
    .flujo-junior,
    .flujo-senior,
    .para-que-sirve { padding: 3.5rem 0; }
    .icon-bubbles { font-size: 6rem; }
}


/* --- Badges de estado ampliados (8 estados; ver cmp_badge_estado_tip) --- */
.tt-badge-realizado {
    background-color: #d1e7dd;
    color: #0f5132;
}

.tt-badge-reintegrado {
    background-color: #fff3cd;
    color: #664d03;
}


/* --- usado en: como_funciona.php (contadores de social proof, N7) --- */
.tt-counter {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.25rem;
    line-height: 1;
}

.tt-counter-label {
    font-size: 1.05rem;
    opacity: .9;
}


/* --- usado en: profile.php (distribución de estrellas, N14) --- */
.tt-rating-dist {
    max-width: 320px;
}

.tt-rating-track {
    height: 8px;
    background-color: var(--secondary-light);
    border-radius: 50px;
    overflow: hidden;
}

.tt-rating-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 50px;
}


/* --- usado en: msg.php — layout de app a pantalla completa (estilo WhatsApp Web) ---
   Dos paneles que llenan el viewport bajo la navbar fija (4.5rem de .navbar-fixed):
   la página NO scrollea; scrollean la lista de chats y la zona de mensajes.
   Sustituye los topes legacy de style.css (max-height en rem/vh), que siguen ahí
   pero solo aplican fuera de .tt-chat-page (es decir, en ninguna parte). */
.tt-chat-page {
    overflow: hidden;
}

.tt-chat-main {
    max-width: 1600px;
    margin: 0 auto;
}

.tt-chat-shell {
    height: calc(100vh - 4.5rem);
    height: calc(100dvh - 4.5rem);
}

.tt-chat-page #chat {
    height: 100%;
    background-color: var(--white);
}

/* panel izquierdo: lista de chats con scroll propio */
.tt-chat-page .column-chat-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem .5rem 0 1rem !important; /* legacy mete 1.5rem laterales con !important */
    border-right: 1px solid #e9ecef;
}

.tt-chat-page .column-chat-left-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: .5rem;
    padding-bottom: 1rem;
}

/* panel derecho: cabecera fija + mensajes scrolleables + barra de envío */
.tt-chat-page .column-chat-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 0 !important;
    border-left: none;
}

@media (min-width: 992px) {
    .tt-chat-page .column-chat-left {
        flex: 0 0 clamp(320px, 32%, 420px);
        max-width: 420px;
    }
}

.tt-chat-page .tt-chat-header {
    min-height: 64px;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background-color: var(--white);
}

.tt-chat-page #columna_derecha > .col {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.tt-chat-page .messages-chat {
    flex: 1 1 auto;
    min-height: 0 !important;  /* legacy fija min/max-height en vh con !important */
    max-height: none !important;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* con pocos mensajes, la conversación arranca pegada abajo (como WhatsApp) */
.tt-chat-page .messages-chat > :first-child {
    margin-top: auto;
}

.tt-chat-page .tt-chat-inputbar {
    padding: .75rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background-color: var(--white);
}

/* estado vacío "Elige chat" */
.tt-chat-page #chooseChat {
    color: var(--secondary-light);
}

.tt-chat-page #chooseChat h2 {
    color: var(--secondary-light);
    font-size: 1.5rem;
}

.tt-chat-empty-icon {
    font-size: 3.5rem;
    display: block;
    line-height: 1;
    margin-bottom: .75rem;
}

/* scrollbars discretas en los dos paneles */
.tt-chat-page .column-chat-left-content::-webkit-scrollbar,
.tt-chat-page .messages-chat::-webkit-scrollbar {
    width: 6px;
}

.tt-chat-page .column-chat-left-content::-webkit-scrollbar-thumb,
.tt-chat-page .messages-chat::-webkit-scrollbar-thumb {
    background-color: #d5dadd;
    border-radius: 50px;
}

.tt-chat-page .column-chat-left-content::-webkit-scrollbar-track,
.tt-chat-page .messages-chat::-webkit-scrollbar-track {
    background-color: transparent;
}

/* el footer legal no cabe en una vista de app fija; el banner de cookies
   (fixed-bottom, dentro del mismo include) se conserva */
.tt-chat-page #footer > .position-absolute.bottom-0 {
    display: none;
}


/* --- usado en: profile.php (picker calendario del modal de reserva) --- */
.tt-res-lbl {
    font-size: .8rem;
    color: #7a8691;
    margin-right: .25rem;
}

.tt-res-duraciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.tt-dur-pill,
.tt-slot-chip {
    border: 1.5px solid var(--secondary-light);
    background-color: var(--white);
    color: var(--gray);
    border-radius: 50px;
    padding: .45rem .9rem;
    font-size: .875rem;
    min-height: 40px;
    transition: border-color .2s ease, background-color .2s ease;
}

.tt-dur-pill:hover,
.tt-slot-chip:hover {
    border-color: var(--primary);
}

.tt-dur-sel,
.tt-slot-sel,
.tt-dur-sel:hover,
.tt-slot-sel:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.tt-slot-ocupado,
.tt-slot-ocupado:hover {
    background-color: #f4f6f7;
    border-color: #eef1f3;
    color: #b7c0c7;
    text-decoration: line-through;
}

.tt-res-grid .tt-res-cal {
    padding-right: 1rem;
}

.tt-res-grid .tt-res-slots {
    border-left: 1px solid #e9ecef;
    padding-left: 1rem;
}

@media (max-width: 767.98px) {
    .tt-res-grid .tt-res-cal {
        padding-right: 0;
    }

    .tt-res-grid .tt-res-slots {
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
}

.tt-cal-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.tt-cal-titulo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gray);
    text-transform: capitalize;
}

.tt-cal-nav {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 1.1rem;
    padding: .25rem .5rem;
    border-radius: 50px;
}

.tt-cal-nav:disabled {
    color: var(--gray-light);
}

.tt-cal-dows,
.tt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.tt-cal-dows span {
    font-size: .7rem;
    color: #9aa4ad;
    text-transform: lowercase;
    padding-bottom: .25rem;
}

.tt-cal-dia {
    width: 40px;
    height: 40px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    font-size: .875rem;
    background: none;
}

.tt-cal-off {
    color: #c3cad0;
}

.tt-cal-disp {
    background-color: #d9efff;
    color: #10618f;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.tt-cal-disp:hover {
    background-color: #bfe3fb;
}

.tt-cal-hoy {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tt-cal-sel,
.tt-cal-sel:hover {
    background-color: var(--primary);
    color: var(--white);
}

.tt-cal-leyenda {
    display: flex;
    gap: 1rem;
    margin-top: .6rem;
    font-size: .75rem;
    color: #7a8691;
}

.tt-cal-leyenda > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tt-leyenda-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tt-leyenda-disp { background-color: #d9efff; }
.tt-leyenda-sel { background-color: var(--primary); }

.tt-res-dia-titulo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    color: var(--gray);
    margin-bottom: .5rem;
}

.tt-res-huecos {
    max-height: 300px;
    overflow-y: auto;
    padding-right: .25rem;
}

.tt-slot-grupo {
    font-size: .75rem;
    color: #9aa4ad;
    margin: .5rem 0 .35rem;
}

.tt-slot-lista {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.tt-res-vacio {
    color: #9aa4ad;
    font-size: .875rem;
    padding: 1rem 0;
}

.tt-res-resumen {
    background-color: #f6fbfe;
    border-radius: 12px;
    padding: .6rem 1rem;
    font-size: .9rem;
    color: var(--gray);
}

.tt-res-resumen .bi {
    color: var(--primary);
    margin-right: .25rem;
}


/* --- usado en: historico.php + _tips_anteriores.php (tarjetas de tip) --- */
.tt-tip-lista {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.tt-tip-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    background-color: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: .9rem 1.1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tt-tip-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(54, 169, 225, .10);
}

.tt-tip-fecha {
    flex: 0 0 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background-color: #f6fbfe;
    border-radius: 12px;
    padding: .6rem .5rem;
    text-decoration: none;
}

.tt-tip-dia {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--primary);
}

.tt-tip-mes {
    font-size: .78rem;
    color: #5d6a75;
    text-transform: lowercase;
    white-space: nowrap;
}

.tt-tip-horas {
    font-size: .75rem;
    color: #7a8691;
    white-space: nowrap;
}

.tt-tip-cuerpo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
}

.tt-tip-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.tt-tip-id {
    font-size: .75rem;
    color: #9aa4ad;
    text-decoration: none;
}

.tt-tip-id:hover {
    color: var(--primary);
}

.tt-badge-rol {
    background-color: #eef7fd;
    color: #10618f;
}

.tt-tip-quien {
    font-size: .95rem;
}

.tt-tip-quien .nav-link {
    display: inline;
    padding: 0;
    font-weight: 600;
    color: var(--gray);
}

.tt-tip-quien .nav-link:hover {
    color: var(--primary);
}

.tt-tip-desc {
    font-size: .875rem;
    color: #5d6a75;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tt-tip-desc a {
    color: inherit;
    text-decoration: none;
}

.tt-tip-acciones {
    flex: 0 0 auto;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tt-tip-acciones .btn {
    padding: .25rem .4rem;
}

/* variante compacta del histórico */
.tt-tip-hist {
    padding: .6rem 1rem;
}

.tt-tip-hist .tt-tip-fecha {
    flex-basis: 100px;
    background-color: #f8f9fa;
}

.tt-tip-hist .tt-tip-dia {
    font-size: 1.2rem;
    color: #5d6a75;
}

/* --- toolbar de "Tus Tips": pestañas, buscador y chips de filtro --- */
.tt-tips-tabs {
    display: flex;
    gap: .5rem;
}

.tt-chip {
    border: 1.5px solid var(--secondary-light);
    background-color: var(--white);
    color: var(--gray);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .875rem;
    min-height: 40px;
    transition: border-color .2s ease, background-color .2s ease;
}

.tt-chip:hover {
    border-color: var(--primary);
}

.tt-chip-activo,
.tt-chip-activo:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.tt-tips-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.tt-tips-buscador {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    gap: .5rem;
    background-color: #f1f3f4;
    border-radius: 50px;
    padding: .45rem 1.1rem;
}

.tt-tips-buscador .bi {
    color: #8a949e;
}

.tt-tips-buscador input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: .9rem;
    min-width: 0;
}

.tt-tips-chips {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.tt-tips-chips .tt-chip {
    padding: .3rem .85rem;
    min-height: 36px;
    font-size: .8125rem;
}

.tt-chip-sep {
    width: 1px;
    height: 22px;
    background-color: var(--secondary-light);
    margin: 0 .25rem;
}

/* grupos de la agenda */
.tt-tips-grupo {
    margin-bottom: 1.5rem;
}

.tt-grupo-titulo {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7a8691;
    margin-bottom: .5rem;
}

.tt-grupo-atencion {
    color: #a3334b;
}

/* tarjeta que requiere respuesta y próxima sesión destacada */
.tt-tip-atencion {
    border: 1.5px solid #f0b9c4;
    background-color: #fdf6f7;
}

.tt-tip-atencion:hover {
    border-color: #e08aa0;
    box-shadow: 0 2px 12px rgba(212, 83, 126, .10);
}

.tt-tip-atencion .tt-tip-fecha {
    background-color: var(--white);
}

.tt-tip-destacada {
    border: 1.5px solid var(--primary);
}

.tt-tip-nota {
    font-size: .8125rem;
    color: #1779b8;
}

.tt-tip-atencion .tt-tip-nota {
    color: #a3334b;
    font-weight: 600;
}

/* acciones: primaria con texto + menú de tres puntos */
.tt-tip-acciones {
    gap: .5rem;
}

.tt-tip-menu .tt-tip-menu-btn {
    padding: .25rem .4rem;
    color: #8a949e;
    font-size: 1.1rem;
}

.tt-tip-menu .tt-tip-menu-btn:hover {
    color: var(--primary);
}

.tt-tip-menu .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--secondary-light);
    font-size: .875rem;
}

.tt-tip-menu .dropdown-item:focus,
.tt-tip-menu .dropdown-item:hover {
    background-color: var(--primary-light);
}

/* skeleton de carga del historial */
.tt-skel-card {
    height: 84px;
    border-radius: 16px;
    margin-bottom: .75rem;
}


/* --- usado en: agenda.php (calendario mensual de tips) --- */
.tt-ag-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.tt-ag-nav .tt-chip {
    min-height: 34px;
    padding: .25rem .85rem;
    font-size: .8125rem;
}

.tt-ag-dows {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: .7rem;
    color: #9aa4ad;
    text-transform: lowercase;
    margin-bottom: .35rem;
}

.tt-agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.tt-ag-dia {
    min-height: 92px;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tt-ag-dia-num {
    font-size: .8rem;
    color: #5d6a75;
    line-height: 1.4;
}

.tt-ag-hoy .tt-ag-dia-num {
    display: inline-block;
    width: 22px;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
}

.tt-ag-con {
    cursor: pointer;
    transition: border-color .15s ease;
}

.tt-ag-con:hover {
    border-color: var(--primary);
}

.tt-ag-sel {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.tt-ag-ev {
    display: block;
    font-size: .7rem;
    line-height: 1.5;
    padding: 0 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-ag-ev-solicitado { background-color: #d9efff; color: #10618f; }
.tt-ag-ev-aceptado { background-color: var(--primary); color: var(--white); }
.tt-ag-ev-realizado { background-color: #d1e7dd; color: #0f5132; }
.tt-ag-ev-ko { background-color: #fcebee; color: #a3334b; }

.tt-ag-mas {
    font-size: .7rem;
    color: #7a8691;
}

.tt-ag-punto {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tt-ag-dots {
    display: none;
    gap: 3px;
    margin-top: 2px;
}

.tt-ag-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
    font-size: .75rem;
    color: #7a8691;
}

.tt-ag-leyenda > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tt-ag-detalle {
    margin-top: 1.25rem;
    border-top: 1px solid #edf0f2;
    padding-top: 1rem;
}

.tt-ag-det-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: .5rem;
    text-decoration: none;
    color: var(--gray);
    transition: border-color .15s ease;
}

.tt-ag-det-item:hover {
    border-color: var(--primary);
    color: var(--gray);
}

.tt-ag-det-hora {
    font-size: .8125rem;
    color: #5d6a75;
    white-space: nowrap;
}

.tt-ag-det-quien {
    font-weight: 600;
    font-size: .9rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-ag-det-item .bi-chevron-right {
    color: var(--primary);
}

/* --- navbar de aplicación: densidad (los items no parten en dos líneas) --- */
.navbar-app .nav-link-stitch {
    white-space: nowrap;
}

@media (min-width: 691px) and (max-width: 1399.98px) {
    .navbar-app .nav-link-stitch {
        font-size: .85rem;
        padding-left: .3rem;
        padding-right: .3rem;
    }

    .navbar-app .navbar-nav {
        gap: .25rem;
    }

    .navbar-app .tt-badge-zona-senior {
        font-size: .7rem;
        padding: .2rem .6rem;
    }
}

@media (min-width: 691px) and (max-width: 1399.98px) {
    .navbar-app .nav-link-stitch .bi {
        display: none;
    }
}

@media (min-width: 691px) and (max-width: 1099.98px) {
    .navbar-app .nav-link-stitch {
        font-size: .8rem;
    }
}

/* Rango estrecho (plegables 691-991): el navbar de app debe mostrar TODOS los
   items en una linea. Bootstrap capa .container a 540px desde 576 -> ancho
   completo; fuente y gaps minimos; logo compacto para liberar espacio. */
@media (min-width: 691px) and (max-width: 991.98px) {
    .navbar-app.navbar-expand-md > .container { max-width: 100%; padding-left: .5rem; padding-right: .5rem; }
    .navbar-app .nav-link-stitch { font-size: .62rem; padding-left: .12rem; padding-right: .12rem; }
    .navbar-app .navbar-nav { gap: .03rem; }
    .navbar-app .tt-brand-app svg { height: 24px; width: auto; }
    /* idioma logado va en el perfil; se oculta en este rango para que quepan los items */
    .navbar-app .tt-nav-idioma-app { display: none !important; }
}

/* --- Breakpoint plegables (691px): el navbar de aplicación se mantiene en
   formato escritorio desde 691px; por debajo, móvil (hamburguesa). Replica el
   "expand" de Bootstrap pero en el corte 691 en lugar de 768 (navbar-expand-md). --- */
@media (min-width: 691px) {
    .navbar-app.navbar-expand-md { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-app.navbar-expand-md .navbar-nav { flex-direction: row; }
    .navbar-app.navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; }
    .navbar-app.navbar-expand-md .navbar-toggler { display: none !important; }
}

/* Mismo corte 691 para el navbar PUBLICO (landing, navbar-expand-lg). El buscador
   grande sigue oculto <992 (d-lg-block) para que quepa; enlaces + idioma + login
   van en linea desde 691. El logo se compacta entre 691 y 991. */
@media (min-width: 691px) {
    .navbar-stitch.navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-stitch.navbar-expand-lg .navbar-nav { flex-direction: row; }
    .navbar-stitch.navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
    .navbar-stitch.navbar-expand-lg .navbar-toggler { display: none !important; }
    .navbar-stitch.navbar-expand-lg .tt-nav-idioma { display: flex !important; }
}
.tt-brand-landing { transform: scale(1.6); transform-origin: left center; margin-left: 20px; margin-right: 60px; }
@media (max-width: 991.98px) {
    .tt-brand-landing { transform: scale(1.15); margin-left: 2px; margin-right: 10px; }
}
@media (min-width: 691px) and (max-width: 991.98px) {
    /* Bootstrap fija .container a 540px desde 576px; el navbar necesita el ancho
       completo para que quepan logo + enlaces + idioma + login en una linea. */
    .navbar-stitch.navbar-expand-lg > .container { max-width: 100%; }
    .navbar-stitch.navbar-expand-lg .nav-link-stitch { font-size: .85rem; padding-left: .35rem; padding-right: .35rem; }
    .navbar-stitch.navbar-expand-lg .navbar-nav { gap: .1rem; }
}

/* --- navbar zona sénior: tema azul profundo (#1a4f73, token overlay del canon).
   Misma navbar canon con tema de MODO: el usuario está operando como mentor. --- */
.navbar-stitch.navbar-senior {
    background-color: #1a4f73;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.navbar-senior .navbar-nav .nav-link,
.navbar-senior .nav-link-stitch {
    color: #cfe4f2;
}

.navbar-senior .navbar-nav .nav-link:hover,
.navbar-senior .navbar-nav .nav-link:focus,
.navbar-senior .nav-link-stitch:hover,
.navbar-senior .nav-link-stitch:focus {
    color: var(--white);
}

.tt-badge-zona-senior {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    padding: .25rem .8rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    align-self: center;
    margin-left: .25rem;
    margin-right: auto;
}

.navbar-senior img.avatar-xs {
    outline: 2px solid var(--primary);
}

.navbar-senior .dropdown-menu {
    border-color: #1a4f73;
}

/* enlace a la zona sénior: del color de su navbar, para dar continuidad */
.dropdown-menu .dropdown-item.tt-item-zona-senior {
    display: block;
    width: auto;
    margin: .15rem .5rem;
    border-radius: 8px;
    background-color: #1a4f73;
    color: var(--white);
}

.dropdown-menu .dropdown-item.tt-item-zona-senior:hover,
.dropdown-menu .dropdown-item.tt-item-zona-senior:focus {
    background-color: #16415f;
    color: var(--white);
}

/* variante en el menú móvil desplegado */
.navbar-app .nav-link.tt-item-zona-senior {
    color: #1a4f73;
    font-weight: 600;
}

.navbar-senior .nav-link.tt-item-zona-senior {
    color: var(--white);
}

/* enlace a ADMIN: destacado con color propio (granate), distinto de la zona sénior */
.dropdown-menu .dropdown-item.tt-item-admin {
    display: block;
    width: auto;
    margin: .15rem .5rem;
    border-radius: 8px;
    background-color: #5b4b8a;
    color: var(--white);
}

.dropdown-menu .dropdown-item.tt-item-admin:hover,
.dropdown-menu .dropdown-item.tt-item-admin:focus {
    background-color: #4a3d73;
    color: var(--white);
}

/* variante en el menú móvil desplegado */
.navbar-app .nav-link.tt-item-admin {
    color: #5b4b8a;
    font-weight: 600;
}


/* --- usado en: profile.php (perfil público: hero + paneles) --- */
.tt-perfil-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tt-ph-avatar img,
.tt-ph-avatar svg {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 16px;
}

.tt-ph-centro {
    flex: 1 1 300px;
    min-width: 0;
}

.tt-ph-nombre {
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: .1rem;
}

.tt-ph-profesion {
    margin-bottom: .25rem;
}

.tt-ph-ambitos {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.tt-ph-ambitos .w_hab {
    width: auto;
}

.tt-ph-ambitos .w_hab h6 {
    font-size: .8rem;
    margin-bottom: 0;
}

.tt-ph-reserva {
    flex: 0 0 250px;
    background-color: #f6fbfe;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    align-self: center;
}

.tt-ph-metricas {
    display: flex;
    justify-content: space-around;
    gap: .5rem;
    margin-bottom: .75rem;
}

.tt-ph-metricas span {
    display: flex;
    flex-direction: column;
    font-size: .72rem;
    color: #5d6a75;
    max-width: 110px;
}

.tt-ph-metricas strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray);
}

.tt-panel-perfil {
    background-color: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.tt-panel-reserva {
    border: 1.5px solid var(--primary);
}

.tt-panel-perfil .description {
    text-align: left;
}

.tt-exp-item {
    display: flex;
    gap: .75rem;
    margin-bottom: .9rem;
    text-align: left;
}

.tt-exp-fecha {
    flex: 0 0 auto;
    background-color: #f6fbfe;
    color: #10618f;
    border-radius: 8px;
    padding: .25rem .6rem;
    font-size: .75rem;
    white-space: nowrap;
    height: fit-content;
}

.tt-exp-cuerpo {
    min-width: 0;
}

.tt-exp-titulo {
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray);
}

.tt-exp-sub {
    font-size: .8125rem;
    color: #7a8691;
}

.tt-horario-fila {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .875rem;
    padding: .15rem 0;
}

@media (max-width: 767.98px) {
    .tt-perfil-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tt-ph-nombre {
        text-align: center;
    }

    .tt-ph-ambitos {
        justify-content: center;
    }

    .tt-ph-reserva {
        width: 100%;
        flex-basis: auto;
    }
}


/* --- usado en: detalles_tips.php (anuncio de portada de comunidad) ---
   El legacy ".card img { height:17rem; object-fit:cover }" recortaba el
   banner del anuncio; aquí la imagen se muestra ENTERA, a lo banner. */
.tt-ad-portada img,
.tt-ad-portada svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    background-color: var(--white);
}


@media (max-width: 767.98px) {
    .tt-ag-dia {
        min-height: 52px;
        padding: 4px;
    }

    .tt-ag-ev,
    .tt-ag-mas {
        display: none;
    }

    .tt-ag-dots {
        display: flex;
    }

    .tt-ag-det-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .tt-tip-card {
        flex-direction: column;
        gap: .6rem;
    }

    .tt-tip-fecha,
    .tt-tip-hist .tt-tip-fecha {
        flex-direction: row;
        flex-basis: auto;
        justify-content: flex-start;
        gap: .5rem;
        padding: .45rem .75rem;
    }

    .tt-tip-dia {
        font-size: 1.15rem;
    }

    .tt-tip-acciones {
        max-width: none;
        justify-content: flex-start;
        border-top: 1px solid #f0f2f4;
        padding-top: .35rem;
    }

    /* toolbar móvil: chips en una línea con scroll horizontal */
    .tt-tips-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .25rem;
        width: 100%;
    }

    .tt-tips-chips .tt-chip {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .tt-tips-tabs {
        width: 100%;
    }

    .tt-tips-tabs .tt-chip {
        flex: 1 1 50%;
    }
}

/* apilado (<992px de VIEWPORT): solo un panel a la vez. Si el chat está
   abierto, la lista se oculta también por CSS — cubre ventanas de escritorio
   estrechas y redimensionados donde los scripts de carga no re-evalúan */
@media (max-width: 991.98px) {
    .tt-chat-page #chooseChat {
        display: none !important;
    }

    .tt-chat-page #chat:has(#columna_derecha:not(.d-none)) .column-chat-left {
        display: none;
    }

    .tt-chat-page .column-chat-left {
        border-right: none;
    }
}

/* los wrappers .message no heredan el padding/radius legacy de
   ".messages-chat div" (la burbuja interior ya trae el suyo) */
.tt-chat-page .messages-chat .message {
    padding: 0;
    border-radius: 0;
}

/* caja de escribir: control blanco con borde (regla del DS para controles
   en superficie product) y botón de envío centrado verticalmente */
.tt-chat-page #chat-form [type=text] {
    background-color: var(--white);
    border: 1.5px solid var(--secondary-light);
    padding: .7rem 3.25rem .7rem 1.25rem;
    transition: border-color .2s ease;
}

.tt-chat-page #chat-form [type=text]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.tt-chat-page #chat-form .input-group span {
    top: 50%;
    transform: translateY(-50%);
    right: .3rem;
    z-index: 5;
}

.tt-chat-page #chat-form .input-group span button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   MONITOR BBB (admin/bbb_monitor.php)
   ============================================================ */
.tt-mon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .85rem;
}
.tt-mon-cards-rec { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tt-mon-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 3px rgba(16,97,143,.05);
}
.tt-mon-card > i {
    font-size: 1.6rem;
    color: var(--primary);
    background: #eaf4fb;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 44px;
}
.tt-mon-card-pri { background: #eaf4fb; border-color: #d4e7f5; }
.tt-mon-card-pri > i { background: var(--primary); color: #fff; }
.tt-mon-card-sm { padding: .8rem 1rem; }
.tt-mon-card > div { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.tt-mon-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #11324a; }
.tt-mon-lbl { font-size: .76rem; color: #6c8294; margin-top: .15rem; }

.tt-mon-panel {
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
}
/* Contenedor de altura FIJA para los canvas de Chart.js (responsive +
   maintainAspectRatio:false). Sin esto el canvas crece sin fin. */
.tt-mon-canvas { position: relative; width: 100%; height: 300px; }
.tt-mon-canvas-donut { height: 260px; }
.tt-mon-canvas canvas { position: absolute; inset: 0; }

.tt-mon-estado {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}
.tt-mon-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tt-mon-estado-ok   { color: #1c7c3a; background: #e4f6ea; }
.tt-mon-estado-ok .tt-mon-dot { animation: ttMonPulse 1.6s ease-in-out infinite; }
.tt-mon-estado-err  { color: #b02a2a; background: #fbe6e6; }
.tt-mon-estado-load { color: #8a6d1f; background: #fdf3da; }
@keyframes ttMonPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tt-mon-estado-ok .tt-mon-dot { animation: none; } }

/* ============================================================
   SALAS DIRECTAS — tabla (reutiliza .tt-table del DS) + apilado móvil
   ============================================================ */
.tt-table-nombre { font-weight: 700; color: #11324a; }
.tt-table-acciones { display: flex; gap: .35rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.tt-table-acciones form { display: inline; margin: 0; }
.tt-sd-hist-del { color: #b02a2a; border-color: #e4b7b7; }
.tt-sd-hist-del:hover { background: #fbe6e6; color: #b02a2a; }
.tt-sd-rec { color: #1c7c3a; border-color: #b6dcc1; }
.tt-sd-rec:hover { background: #e4f6ea; color: #1c7c3a; }
.tt-sd-rec-wait { color: #8a6d1f; border-color: #e7d8a6; opacity: .8; cursor: default; }

/* En móvil la tabla se apila: cada fila es una tarjeta con etiquetas */
@media (max-width: 768px) {
    .tt-table-salas thead { display: none; }
    .tt-table-salas, .tt-table-salas tbody, .tt-table-salas tr, .tt-table-salas td { display: block; width: 100%; }
    .tt-table-salas tbody tr {
        border: 1px solid var(--secondary-light);
        border-radius: 12px;
        margin: .6rem .4rem;
        padding: .3rem .2rem;
        background: #fff;
    }
    .tt-table-salas tbody tr:hover { background: #fff; }
    .tt-table-salas td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border: none;
        padding: .45rem .85rem;
        text-align: right;
    }
    .tt-table-salas td::before {
        content: attr(data-lbl);
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #6c8294;
        font-weight: 700;
        text-align: left;
    }
    .tt-table-salas td[data-lbl="Acciones"] { justify-content: space-between; }
}

/* ============================================================
   MURO DE LOS DESEOS (muro_deseos, muro_general, candidatos, detalle)
   Tarjetas responsive en lugar de tablas con scroll horizontal.
   ============================================================ */
.tt-deseos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
}
.tt-deseo-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.tt-deseo-card:hover { box-shadow: 0 6px 18px rgba(16, 97, 143, .10); transform: translateY(-2px); }
.tt-deseo-cab { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.tt-deseo-fecha { font-size: .78rem; color: #6c8294; white-space: nowrap; }
.tt-deseo-fecha i { margin-right: .25rem; }
.tt-deseo-cuerpo {
    color: #33414d;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-deseo-pie {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .6rem;
    border-top: 1px solid #eef3f7;
}
.tt-deseo-cand {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: #eaf4fb;
    padding: .32rem .75rem;
    border-radius: 999px;
}
.tt-deseo-cand:hover { background: #d9ecf9; color: var(--primary); }
.tt-deseo-cand.tt-deseo-cand-0 { background: #f1f5f8; color: #6c8294; }
.tt-deseo-acc { display: flex; gap: .4rem; flex-wrap: wrap; }
.tt-deseo-solicitante { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: #33414d; font-weight: 600; }
.tt-deseo-solicitante i { color: var(--primary); }
.tt-deseo-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }

/* ============================================================
   LISTADO DE COMUNIDADES ("Descubre nuevas comunidades")
   Tarjetas iguales en grid, con banda de logo estandarizada,
   descripción recortada y pie con contador + CTA.
   ============================================================ */
.tt-com-head { margin-bottom: 1.4rem; }
.tt-com-head h2 { color: var(--primary); margin: 0 0 .25rem; }
.tt-com-head p { color: #6c8294; margin: 0; font-size: .95rem; }
.tt-com-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.7rem; }
.tt-com-toolbar .tt-com-search { flex: 1 1 280px; min-width: 0; }
.tt-com-toolbar .tt-com-search .input-group { position: relative; }
.tt-com-toolbar .tt-com-search input { padding-left: 2.6rem; }
.tt-com-toolbar .tt-com-search .tt-com-search-btn {
    position: absolute; left: .35rem; top: 50%; transform: translateY(-50%);
    z-index: 4; border: 0; background: transparent; color: var(--primary);
    width: 2rem; height: 2rem; border-radius: 999px; cursor: pointer;
}
.tt-com-toolbar select { flex: 0 1 190px; }
@media (max-width: 575px) { .tt-com-toolbar > * { flex: 1 1 100%; } }

.tt-com-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.4rem;
}
.tt-com-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.tt-com-card:hover { box-shadow: 0 10px 26px rgba(16, 97, 143, .12); transform: translateY(-3px); }
.tt-com-media {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #eaf4fb 0%, #f4f9fc 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tt-com-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-com-media svg { width: 70px; height: 70px; opacity: .55; }
.tt-com-badge {
    position: absolute; top: .65rem; right: .65rem;
    background: rgba(255, 255, 255, .94); color: var(--primary);
    font-size: .72rem; font-weight: 700; line-height: 1;
    padding: .35rem .65rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: .3rem;
    box-shadow: 0 1px 5px rgba(16, 97, 143, .15);
}
.tt-com-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem 1.2rem 1.2rem; }
.tt-com-nombre {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700; color: #1b2b36;
    margin: 0 0 .1rem; text-transform: capitalize; line-height: 1.25;
}
.tt-com-lema { font-size: .84rem; color: var(--primary); font-weight: 600; margin: 0 0 .65rem; line-height: 1.35; }
.tt-com-desc {
    color: #56697a; font-size: .9rem; line-height: 1.5; margin: 0 0 1.05rem;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-com-pie {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding-top: .85rem; border-top: 1px solid #eef3f7;
}
.tt-com-miembros {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .85rem; font-weight: 700; color: #33414d; text-decoration: none;
}
.tt-com-miembros i { color: var(--primary); }
.tt-com-miembros:hover { color: var(--primary); }
.tt-com-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--primary); color: #fff; border: 0;
    font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    padding: .48rem .95rem; border-radius: 999px;
    transition: background .15s ease, transform .15s ease;
}
.tt-com-btn:hover { background: var(--tt-blue-hover); color: #fff; transform: translateX(1px); }
.tt-com-vacio {
    grid-column: 1 / -1;
    text-align: center; color: #6c8294;
    padding: 3rem 1rem; border: 1px dashed #d6e3ec; border-radius: 16px; background: #fbfdff;
}
.tt-com-vacio i { font-size: 2rem; color: #b9cddc; display: block; margin-bottom: .6rem; }
/* pie con varias acciones (Mis comunidades) */
.tt-com-foot { margin-top: auto; padding-top: .85rem; border-top: 1px solid #eef3f7; display: flex; flex-direction: column; gap: .7rem; }
.tt-com-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.tt-com-acciones .tt-com-btn, .tt-com-acciones .tt-com-btn-sec { flex: 1 1 auto; justify-content: center; }
.tt-com-btn-sec {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: #eaf4fb; color: var(--primary); border: 0;
    font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    padding: .48rem .95rem; border-radius: 999px; transition: background .15s ease;
}
.tt-com-btn-sec:hover { background: #d9ecf9; color: var(--primary); }
/* control segmentado Todas | Mis comunidades */
.tt-com-seg { display: inline-flex; background: #eef3f7; border-radius: 999px; padding: .25rem; gap: .2rem; }
.tt-com-seg a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem; border-radius: 999px;
    font-size: .88rem; font-weight: 600; color: #56697a; text-decoration: none;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tt-com-seg a:hover:not(.active) { color: var(--primary); }
.tt-com-seg a.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16, 97, 143, .12); }
.tt-com-seg a i { font-size: .95rem; }
/* botón-icono de acción secundaria en la tarjeta (ajustes/editar) */
.tt-com-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 999px; background: #eaf4fb; color: var(--primary); text-decoration: none; }
.tt-com-ico:hover { background: #d9ecf9; color: var(--primary); }
.tt-com-ico.tt-ico-danger { background: #fdeaea; color: #c0392b; }
.tt-com-ico.tt-ico-danger:hover { background: #f8d7d7; color: #c0392b; }
@media (max-width: 575px) { .tt-com-seg { width: 100%; } .tt-com-seg a { flex: 1 1 auto; justify-content: center; } }

/* ============================================================
   CONTACTOS Y GRUPOS (panel en Mensajes)
   ============================================================ */
.tt-chat-seg { width: 100%; }
.tt-chat-seg a { flex: 1 1 auto; justify-content: center; }
.tt-contactos { display: flex; flex-direction: column; gap: 1rem; padding: .25rem; }
.tt-contactos-add { position: relative; }
.tt-contactos-res { display: flex; flex-direction: column; gap: .25rem; margin-top: .4rem; max-height: 220px; overflow-y: auto; }
.tt-contacto-res { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; border: 1px solid var(--secondary-light); background: #fff; border-radius: 999px; padding: .4rem .85rem; cursor: pointer; text-align: left; color: var(--secondary-dark); }
.tt-contacto-res:hover { border-color: var(--primary); color: var(--primary); }
.tt-contacto-res.ya { opacity: .55; }
.tt-contacto-res i { flex: 0 0 auto; color: var(--primary); }
.tt-contactos-sec { display: flex; flex-direction: column; gap: .5rem; }
.tt-contactos-head { font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .4rem; font-size: .95rem; }
.tt-contacto-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid var(--secondary-light); border-radius: 12px; padding: .35rem .35rem .35rem .85rem; }
.tt-contacto-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-contacto-acc { display: flex; gap: .25rem; flex: 0 0 auto; }
.tt-contacto-acc .tt-com-ico { width: 32px; height: 32px; }
.tt-grupo-nuevo { display: flex; gap: .4rem; align-items: center; }
.tt-grupo-nuevo .tt-com-ico { flex: 0 0 auto; }
.tt-grupo-item { border: 1px solid var(--secondary-light); border-radius: 12px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .5rem; }
.tt-grupo-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tt-grupo-miembros { display: flex; flex-wrap: wrap; gap: .35rem; }
.tt-grupo-chip { background: #eef3f7; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.tt-grupo-chip i { cursor: pointer; color: #c0392b; }
.tt-grupo-add { font-size: .85rem; }
/* Modal "Proponer sesión" */
.tt-sol-dests { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; border: 1px solid var(--secondary-light); border-radius: 12px; padding: .5rem; }
.tt-sol-dest { display: flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; }
.tt-sol-modo { display: flex; gap: 1rem; flex-wrap: wrap; }
.tt-sol-modo label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; cursor: pointer; }
/* Tarjeta de solicitud de tip en el chat */
.tt-solc-card { border: 1px solid var(--secondary-light); border-radius: 14px; background: #fff; overflow: hidden; width: 100%; }
.tt-solc-head { display: flex; align-items: center; gap: .5rem; background: #eef3f7; padding: .5rem .85rem; font-weight: 700; color: var(--primary); }
.tt-solc-head > span:first-of-type { flex: 1 1 auto; }
.tt-solc-body { padding: .65rem .85rem; display: flex; flex-direction: column; gap: .5rem; }
.tt-solc-desc { margin: 0; color: var(--secondary-dark); }
.tt-solc-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .85rem; color: #5a7184; }
.tt-solc-meta i { color: var(--primary); }
.tt-solc-acc { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }

/* ============================================================
   VISOR DE COMUNIDAD (comunidad_profile)
   Hero con cover + avatar + stats, paneles y tarjetas de recursos.
   ============================================================ */
.tt-comp-hero {
    --brand: var(--primary, #36A9E1);
    position: relative;
    background: #fff;
    border: 1px solid #e7eef4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    margin-bottom: 1.6rem;
}
.tt-comp-cover {
    position: relative;
    height: 150px;
    background: linear-gradient(120deg, var(--brand) 0%, #1b6ca8 100%);
    overflow: hidden;
}
.tt-comp-cover-bg {
    position: absolute; inset: -24px;
    background-size: cover; background-position: center;
    filter: blur(20px) brightness(.92); transform: scale(1.12);
}
.tt-comp-cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .38));
}
.tt-comp-hero-inner {
    position: relative;
    padding: 0 1.6rem 1.4rem;
}
.tt-comp-avatar {
    width: 112px; height: 112px;
    margin-top: -56px; margin-bottom: .9rem;
    border-radius: 22px; background: #fff; border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(16, 97, 143, .2);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.tt-comp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tt-comp-avatar svg { width: 62px; height: 62px; opacity: .55; }
.tt-comp-id-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tt-comp-id { flex: 1 1 240px; }
.tt-comp-nombre {
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 800; color: #1b2b36;
    margin: 0 0 .1rem; text-transform: capitalize; line-height: 1.15;
}
.tt-comp-lema { color: var(--primary); font-weight: 600; font-size: .98rem; margin: 0 0 .7rem; }
.tt-comp-stats { display: flex; flex-wrap: wrap; gap: .45rem .95rem; align-items: center; }
.tt-comp-stat { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: #56697a; text-decoration: none; }
.tt-comp-stat:hover { color: var(--primary); }
.tt-comp-stat b { color: #1b2b36; font-weight: 700; }
.tt-comp-stat i { color: var(--primary); }
.tt-comp-miembro-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .76rem; font-weight: 700; color: #fff; background: var(--primary);
    padding: .26rem .65rem; border-radius: 999px;
}
.tt-comp-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-bottom: .25rem; }
.tt-comp-gear {
    width: 42px; height: 42px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #eaf4fb; color: var(--primary);
    text-decoration: none; font-size: 1.1rem; transition: background .15s ease;
}
.tt-comp-gear:hover { background: #d9ecf9; color: var(--primary); }

.tt-comp-section {
    background: #fff; border: 1px solid #e7eef4; border-radius: 18px;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    padding: 1.4rem 1.5rem; margin-bottom: 1.6rem;
}
.tt-comp-section-head { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; }
.tt-comp-section-head i { color: var(--primary); font-size: 1.2rem; }
.tt-comp-section-head h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #1b2b36; margin: 0; }
.tt-comp-desc { color: #445663; font-size: 1rem; line-height: 1.7; }
.tt-comp-desc p { margin: 0 0 .9rem; }
.tt-comp-desc :last-child { margin-bottom: 0; }

.tt-comp-anuncio { padding: 1.15rem 0; border-bottom: 1px solid #eef3f7; }
.tt-comp-anuncio:first-of-type { padding-top: 0; }
.tt-comp-anuncio:last-of-type { border-bottom: 0; padding-bottom: 0; }
.tt-comp-anuncio-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .35rem; }
.tt-comp-anuncio-tit { font-size: 1.05rem; font-weight: 700; color: #1b2b36; margin: 0; line-height: 1.3; }
.tt-comp-fecha { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: #6c8294; background: #f1f6fa; padding: .28rem .62rem; border-radius: 999px; white-space: nowrap; }
.tt-comp-anuncio-leed { display: inline-block; color: var(--primary); font-weight: 600; font-size: .9rem; margin: 0 0 .45rem; }
.tt-comp-anuncio-cuerpo {
    color: #56697a; font-size: .93rem; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.tt-comp-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; }
.tt-comp-rec-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e7eef4; border-radius: 14px; overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.tt-comp-rec-card:hover { box-shadow: 0 8px 20px rgba(16, 97, 143, .1); transform: translateY(-2px); }
.tt-comp-rec-media { height: 120px; background: linear-gradient(135deg, #eaf4fb, #f4f9fc); overflow: hidden; }
.tt-comp-rec-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-comp-rec-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.tt-comp-rec-tit { font-size: .98rem; font-weight: 700; color: #1b2b36; margin: 0 0 .3rem; line-height: 1.3; }
.tt-comp-rec-desc { color: #56697a; font-size: .85rem; line-height: 1.45; margin: 0 0 .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-comp-rec-fecha { margin-top: auto; font-size: .72rem; color: #8a9aa6; }
.tt-comp-vacio { text-align: center; color: #6c8294; padding: 1.4rem 1rem; }
.tt-comp-mas { display: flex; justify-content: center; margin-top: 1.35rem; }

@media (max-width: 575px) {
    .tt-comp-hero-inner { padding: 0 1rem 1.2rem; }
    .tt-comp-avatar { width: 86px; height: 86px; margin-top: -46px; border-radius: 18px; }
    .tt-comp-avatar svg { width: 46px; height: 46px; }
    .tt-comp-nombre { font-size: 1.35rem; }
    .tt-comp-id-row { gap: .7rem; }
    .tt-comp-actions { width: 100%; }
    .tt-comp-section { padding: 1.15rem 1.1rem; }
}

/* ---- Cabecera compacta + subnav (subpáginas de comunidad) ---- */
.tt-comp-mini {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid #e7eef4; border-radius: 18px;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    padding: .9rem 1.1rem; margin-bottom: 1rem;
}
.tt-comp-mini-logo {
    flex: 0 0 auto; width: 62px; height: 62px;
    border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #eaf4fb, #f4f9fc);
    display: flex; align-items: center; justify-content: center;
}
.tt-comp-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.tt-comp-mini-logo svg { width: 34px; height: 34px; opacity: .55; }
.tt-comp-mini-id { flex: 1 1 auto; min-width: 0; }
.tt-comp-mini-nombre {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: #1b2b36; text-decoration: none; text-transform: capitalize;
    display: block; line-height: 1.2;
}
.tt-comp-mini-nombre:hover { color: var(--primary); }
.tt-comp-mini-lema { color: var(--primary); font-weight: 600; font-size: .84rem; margin-top: .1rem; }
.tt-comp-mini-stat { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: #6c8294; text-decoration: none; margin-top: .2rem; }
.tt-comp-mini-stat i { color: var(--primary); }
.tt-comp-mini-stat:hover { color: var(--primary); }
.tt-comp-mini-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; }
@media (max-width: 575px) { .tt-comp-mini { gap: .8rem; padding: .85rem .9rem; } .tt-comp-mini-logo { width: 52px; height: 52px; } }

.tt-comp-back { display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); text-decoration: none; font-weight: 600; font-size: .9rem; margin: .2rem 0 .8rem; }
.tt-comp-back:hover { color: var(--tt-blue-hover); }

.tt-comp-subnav { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tt-comp-subnav a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .95rem; border-radius: 999px;
    font-size: .9rem; font-weight: 600; color: #56697a;
    background: #fff; border: 1px solid #e7eef4; text-decoration: none;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tt-comp-subnav a:hover { color: var(--primary); border-color: #cfe4f2; }
.tt-comp-subnav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Artículo (anuncio del blog) ---- */
.tt-comp-art {
    background: #fff; border: 1px solid #e7eef4; border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16, 97, 143, .05);
    padding: 1.3rem 1.4rem; margin-bottom: 1.1rem;
}
.tt-comp-art-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .45rem; }
.tt-comp-art-tit { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #1b2b36; margin: 0; line-height: 1.3; }
.tt-comp-art-leed { color: var(--primary); font-weight: 600; font-size: .95rem; margin: 0 0 .6rem; }
.tt-comp-art-cuerpo { color: #445663; font-size: .97rem; line-height: 1.65; }
.tt-comp-art-cuerpo p { margin: 0 0 .8rem; }
.tt-comp-art-cuerpo :last-child { margin-bottom: 0; }
.tt-comp-rec-hero { margin: 0 0 1.2rem; border-radius: 12px; overflow: hidden; max-width: 520px; border: 1px solid #eef3f7; }
.tt-comp-rec-hero img { width: 100%; height: auto; display: block; }

/* ---- Toolbar de búsqueda de subpáginas ---- */
.tt-comp-search { position: relative; max-width: 360px; margin-bottom: 1.4rem; }
.tt-comp-search input { padding-left: 2.6rem; }
.tt-comp-search .tt-comp-search-btn {
    position: absolute; left: .35rem; top: 50%; transform: translateY(-50%);
    z-index: 4; border: 0; background: transparent; color: var(--primary);
    width: 2rem; height: 2rem; border-radius: 999px; cursor: pointer;
}

/* ============================================================
   DETALLE DE TIP (detalles_tips.php)
   Layout responsive 2 columnas (detalle + participantes).
   ============================================================ */
.tt-tipdet-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
@media (min-width: 992px) { .tt-tipdet-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

.tt-tipdet-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.tt-tipdet-head-l { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.tt-tipdet-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--primary); margin: 0; }

.tt-tipdet-com { display: inline-flex; align-items: center; gap: .5rem; background: #f4f9fc; border: 1px solid #e2edf5; border-radius: 999px; padding: .3rem .7rem .3rem .35rem; margin-bottom: 1rem; }
.tt-tipdet-com img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tt-tipdet-com span { font-weight: 600; font-size: .9rem; color: #33414d; text-transform: capitalize; }

.tt-tipdet-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.tt-tipdet-chip { display: inline-flex; align-items: center; gap: .45rem; background: #f4f9fc; border: 1px solid #e2edf5; border-radius: 10px; padding: .5rem .8rem; font-size: .9rem; color: #33414d; }
.tt-tipdet-chip i { color: var(--primary); font-size: 1rem; }
.tt-tipdet-chip b { font-weight: 700; }

.tt-tipdet-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #8a9aa6; font-weight: 700; margin: 0 0 .35rem; }
.tt-tipdet-desc { color: #445663; font-size: .98rem; line-height: 1.65; margin: 0 0 1.3rem; white-space: pre-line; word-break: break-word; }

.tt-tipdet-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid #eef3f7; }
.tt-tipdet-stars { display: inline-flex; align-items: center; gap: .25rem; }
.tt-tipdet-stars i { color: #f5b50a; }
.tt-tipdet-stars .tt-star-off { color: #dde6ec; }
.tt-tipdet-sala { margin-top: 1.3rem; }
.tt-tipdet-kebab .dropdown-toggle::after { display: none; }
.tt-tipdet-kebab .btn { color: #8a9aa6; }

.tt-tipdet-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 1rem; }
.tt-part-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid #e7eef4; border-radius: 14px; padding: 1.1rem .8rem; box-shadow: 0 1px 3px rgba(16, 97, 143, .04); transition: box-shadow .2s ease, transform .2s ease; }
.tt-part-card:hover { box-shadow: 0 8px 18px rgba(16, 97, 143, .1); transform: translateY(-2px); }
.tt-part-avatar { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #eaf4fb, #f4f9fc); display: flex; align-items: center; justify-content: center; margin-bottom: .65rem; }
.tt-part-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tt-part-avatar svg { width: 46px; height: 46px; opacity: .5; }
.tt-part-nombre { font-weight: 700; color: #1b2b36; font-size: .92rem; line-height: 1.25; text-transform: capitalize; }
.tt-part-rol { margin-top: .45rem; display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; text-transform: capitalize; }
.tt-part-rol-senior { background: var(--primary); color: #fff; }
.tt-part-rol-junior { background: #eaf4fb; color: var(--primary); }
.tt-part-rol-invitado { background: #f1f5f8; color: #6c8294; }
.tt-part-msg { margin-top: .5rem; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf4fb; color: var(--primary); text-decoration: none; border: 0; }
.tt-part-msg:hover { background: #d9ecf9; color: var(--primary); }

/* ============================================================
   ADMINISTRACIÓN DE COMUNIDAD (comunidades/admin/*)
   Cabecera de identidad + subnav horizontal (sustituye al offcanvas).
   ============================================================ */
.tt-adm-bar { border-left: 4px solid var(--primary); }
.tt-adm-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a9aa6; margin-top: .2rem; }
.tt-adm-tag i { color: var(--primary); }
.tt-adm-nav { flex-wrap: wrap; }
.tt-adm-nav a { white-space: nowrap; }
@media (max-width: 575px) { .tt-adm-nav { gap: .35rem; } .tt-adm-nav a { font-size: .82rem; padding: .42rem .8rem; } }
/* formularios admin dentro de panel canon */
.tt-adm-form { max-width: 720px; }
.tt-adm-form .form-label { font-size: .82rem; font-weight: 600; color: #56697a; margin-bottom: .3rem; }
.tt-adm-grid2 { display: grid; grid-template-columns: 1fr; gap: 1rem 1.3rem; }
@media (min-width: 768px) { .tt-adm-grid2 { grid-template-columns: 1fr 1fr; } }
.tt-adm-grid2 .tt-adm-full { grid-column: 1 / -1; }
