﻿/* === VARIABLES === */
:root {
    --color-bg:         rgb(26, 49, 54);
    --color-bg-alt:     rgb(33, 60, 66);
    --color-bg-page:    rgb(37, 67, 74);
    --color-panel:      rgb(51, 64, 84);
    --color-card:       rgb(247, 247, 247);
    --color-accent:     rgb(65, 114, 125);
    --color-text-light: rgb(240, 240, 240);
    --color-danger:     rgb(138, 37, 0);
    --font-main:        'Helvetica', 'Arial', sans-serif;
    --col-width:        600px;
}

/* === BASE === */
html {
    overflow-x: hidden;
    touch-action: pan-y;
}

body {
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* === SWIPE NAV (navegación por arrastre estilo Tinder) === */
body.swipe-dragging {
    transition: none;
    user-select: none;
}

body.swipe-snapping {
    transition: transform 0.2s ease;
}

.swipe-hint {
    position: fixed;
    top: 50%;
    z-index: 60;
    padding: 10px 18px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.55);
    color: var(--color-text-light);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.85);
    transition: opacity 0.1s linear;
}

.swipe-hint--left {
    left: 16%;
}

.swipe-hint--right {
    left: 84%;
}

.swipe-transition-cover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background-color: var(--color-bg-page);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.swipe-transition-cover.is-visible {
    opacity: 1;
}

.swipe-transition-cover__label {
    color: var(--color-text-light);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.swipe-transition-cover__spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(240, 240, 240, 0.25);
    border-top-color: var(--color-text-light);
    animation: swipe-spin 0.7s linear infinite;
}

@keyframes swipe-spin {
    to { transform: rotate(360deg); }
}

.bodyPage {
    background-color: var(--color-bg-page);
}

/* === LAYOUT === */
.container {
    text-align: center;
    margin-top: 100px;
}

.container--form {
    margin-top: 40px;
}

.panelContainer {
    height: 75%;
    overflow: auto;
    text-align: center;
    background-color: var(--color-panel);
    width: 95%;
    max-width: var(--col-width);
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    margin-top: 16px;
    padding: 4px 2px;
}

.centerCont {
    display: flex;
    height: 25px;
    align-items: center;
}

.inlineLeft {
    display: inline-block;
    text-align: left;
}

.fullBody {
    height: 95vh;
    text-align: center;
    margin-top: 15px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--color-bg-page);
    text-align: center;
    margin-bottom: 2px;
}

.footer {
    text-align: center;
    margin-top: 8px;
}

.menu {
    margin-bottom: 10px;
    min-height: 37px;
}

.notDisplayed {
    display: none;
}

.buttonGroup {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.iminContainer {
    text-align: center;
    width: 100%;
    padding-top: 4px;
}

.description {
    max-height: 65px;
    overflow: auto;
}

/* === LOGO === */
.drunkslogo {
    max-width: 315px;
    width: 54%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

.drunkslogo--sm {
    max-width: 200px;
    width: 53%;
    margin-bottom: 14px;
    margin-top: 68px;
}

.drunkslogo--xs {
    max-width: 130px;
    width: 30%;
    margin-bottom: 12px;
}

.invaderslogo {
    max-width: 350px;
    width: 30%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 130px;
}

.drunkslogo--form {
    max-width: 236px;
    width: 40%;
    margin-bottom: 12px;
}

.wiplogo {
    max-width: 350px;
    width: 50%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === TARJETAS === */
.card {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: var(--col-width);
    background-color: var(--color-card);
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 6px;
    text-align: left;
    padding: 10px;
}

.cardUser {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: var(--col-width);
    background-color: var(--color-card);
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 6px;
    padding: 10px;
}

/* === ICONOS === */
.activityIcon {
    width: 30px;
    height: auto;
    margin-right: 8px;
}

.userIcon {
    width: 25px;
    height: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.waIcon {
    margin-right: 4px;
    width: 20px;
    height: auto;
}

.detailIcon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 4px;
    border-style: solid;
    float: right;
}

/* === BOTONES === */
.newButton {
    background-color: var(--color-text-light);
    font-family: var(--font-main);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-bg);
    padding: 2px 2px;
    text-decoration: none;
    margin: 6px 2px;
    cursor: pointer;
    width: 120px;
    height: 28px;
}

.newButton--bordered {
    height: 30px;
    border: 2px solid;
}

.sectionButtons {
    background-color: var(--color-bg);
    font-family: var(--font-main);
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: white;
    padding: 8px 8px;
    text-decoration: none;
    margin: 0px 2px;
    cursor: pointer;
}

.redButton {
    color: var(--color-danger);
}

.greenButton {
    color: #2e7d32;
}

.deleteButton {
    margin-left: 4px;
    color: var(--color-danger);
    background-color: rgb(217, 183, 176);
    border-color: var(--color-danger);
    border-radius: 2px;
    border: 1px solid;
    padding: 2px 6px;
}

.modifyButton {
    margin-left: 4px;
    width: 80px;
    height: auto;
}

/* === INPUTS === */
.loginInput {
    width: 200px;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 15px;
    margin-left: 20px;
}

.createInput {
    width: 200px;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 15px;
    margin-left: 20px;
}

.togglePasswordBtn {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 4px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-text-light);
    color: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.togglePasswordBtn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    overflow: visible;
}

.formGroup {
    margin-bottom: 12px;
    display: inline-block;
    width: 200px;
    max-width: 300px;
    text-align: left;
}

.formGroup .createInput {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
}

.formLabel {
    display: block;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 3px;
}

.fieldError {
    display: block;
    font-family: var(--font-main);
    font-size: 11px;
    color: rgb(214, 82, 30);
    margin-top: 1px;
}

.createInput--error {
    border: 1.5px solid rgb(214, 82, 30);
    outline-color: rgb(214, 82, 30);
}

.typeSelect {
    width: 120px;
    height: 30px;
    font-family: var(--font-main);
    font-size: 15px;
}

.code {
    height: 25px;
    width: 60%;
    max-width: 200px;
    font-size: 16px;
    text-align: center;
    border-style: solid;
    border-color: var(--color-accent);
    font-weight: 600;
    margin-top: 8px;
}

.codeGroup {
    margin-top: 50px;
}

/* === TEXTO === */
.linkText {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-accent);
}

.errortext {
    font-size: 14px;
    color: white;
    font-family: var(--font-main);
    margin-left: 5px;
}

.titletext {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-text-light);
}

.wiptext {
    font-size: 16px;
    font-family: var(--font-main);
    color: var(--color-text-light);
}

.priceData {
    margin-left: 8px;
}

/* === FECHAS === */
.dateStyle {
    margin-left: auto;
    order: 3;
    text-align: center;
}

.timeStyle {
    float: right;
}

/* === FORMULARIO CREAR/MODIFICAR ACTIVIDAD === */
.nameInput {
    width: 80%;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 15px;
}

.capacityInput {
    width: 80px;
    height: 20px;
    font-family: var(--font-main);
    font-size: 15px;
    margin-left: 4px;
}

.dateInput {
    width: 160px;
    height: 20px;
    font-family: var(--font-main);
    font-size: 15px;
}

.dateLabel {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-light);
    margin-right: 8px;
}

.descriptionInput {
    font-family: var(--font-main);
    font-size: 14px;
}

/* --- Editor Quill --- */
.quillEditor {
    background: #fff;
    min-height: 160px;
    margin: 0 8%;
}
.ql-toolbar.ql-snow {
    border-radius: 6px 6px 0 0;
    font-family: var(--font-main);
    border-color: #ccc;
    background-color: #fff;
}
.ql-container.ql-snow {
    border-radius: 0 0 6px 6px;
    font-family: var(--font-main);
    font-size: 14px;
    border-color: #ccc;
    background-color: #fff;
}
.ql-editor {
    min-height: 140px;
}
.ql-editor.ql-blank::before {
    font-style: normal;
    color: #aaa;
}

.linkInput {
    width: 60%;
    max-width: 300px;
    font-family: var(--font-main);
    font-size: 15px;
}

.hrDivider {
    width: 80%;
    border-color: rgb(220, 220, 220);
}

/* === SNACKBAR === */
#snackbar {
    font-family: var(--font-main);
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 90px;
    font-size: 17px;
    border-radius: 8px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to   { bottom: 30px; opacity: 1; }
}
@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to   { bottom: 30px; opacity: 1; }
}
@-webkit-keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to   { bottom: 0; opacity: 0; }
}
@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to   { bottom: 0; opacity: 0; }
}

/* === ACTIVITIES V2 â€” TARJETAS === */
.activity-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin: 8px 0;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    text-align: left;
    box-sizing: border-box;
}

.card-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 8px 0;
}

.info-sep {
    width: 1px;
    height: 14px;
    background: #dddddd;
    flex-shrink: 0;
}

.activity-card--enrolled {
    border: 2px solid rgb(215, 165, 91);
    background: rgb(243, 228, 205);
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-title {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
    color: #1a2b2e;
    line-height: 1.3;
    font-family: var(--font-main);
    align-self: center;
}

/* === ACTIVITIES V2 â€” BADGE FECHA === */
.date-badge {
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 3px 8px;
    min-width: 39px;
    flex-shrink: 0;
    background: white;
}

.date-badge__dayname {
    font-size: 8px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.date-badge__daynum {
    font-size: 17px;
    font-weight: 800;
    color: #1a2b2e;
    line-height: 1.1;
    font-family: var(--font-main);
}

.date-badge__month {
    font-size: 8px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.date-badge--multi {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.date-badge__sep {
    font-size: 13px;
    color: #aaa;
    font-weight: 300;
    align-self: center;
}

/* === ACTIVITIES V2 â€” ICONOS DE TIPO === */
.type-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid;
    font-size: 18px;
}

.type-icon--party    { background: #b5aae5; border-color: #7c71ab; }
.type-icon--food     { background: #d9b89a; border-color: #a86b34; }
.type-icon--route    { background: #c6d8a4; border-color: #91a073; }
.type-icon--event    { background: #e1aeac; border-color: #976563; }
.type-icon--travel   { background: #acd0e1; border-color: #7392a0; }
.type-icon--activity { background: #e6cb7e; border-color: #c1a658; }

/* === ACTIVITIES V2 â€” FILA INFO === */
.card-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #444;
    margin: 6px 0 10px;
    font-family: var(--font-main);
}

.card-info-row svg {
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 2px;
}

/* === ACTIVITIES V2 â€” BADGES ESTADO === */
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-main);
    white-space: nowrap;
}

.badge--completo  { background: #fde8e8; color: #c0392b; border: 1px solid #e74c3c; }
.badge--plazas    { background: #e8f8e8; color: #27ae60; border: 1px solid #2ecc71; }
.badge--ultimas   { background: #fef3e2; color: #e67e22; border: 1px solid #f39c12; }
.badge--cancelado { background: #ececec; color: #555;    border: 1px solid #888;    }

/* === ACTIVITIES V2 â€” BOTONES TARJETA === */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-join {
    flex: 1;
    border: 1.5px solid var(--color-accent);
    background: white;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-main);
}

.btn-join--enrolled {
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-join--full {
    border-color: #ccc;
    color: #999;
    background: #f5f5f5;
    cursor: default;
}

.btn-join[disabled] {
    border-color: #bbb;
    color: #b8b8b8;
    background: #ebebeb;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-detail {
    flex: 1;
    border: 1.5px solid #ccc;
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-chat {
    flex: 1;
    border: 1.5px solid var(--color-accent);
    background: white;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-chat--locked {
    border-color: #ccc;
    color: #999;
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

@keyframes breathe-unread {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 80, 20, 0.7), 0 0 6px rgba(220, 80, 20, 0.3);
        border-color: #e05010;
        color: #e05010;
        background: transparent;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 80, 20, 0), 0 0 18px rgba(220, 80, 20, 0.6);
        border-color: #ff6020;
        color: #fff;
        background: rgba(220, 80, 20, 0.18);
        transform: scale(1.07);
    }
}

.btn-chat--unread {
    animation: breathe-unread 1.1s ease-in-out infinite;
    border-color: #e05010 !important;
    color: #e05010 !important;
}

/* Botones flotantes del chat */
.chat-float-btns {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
    align-items: center;
}

.chat-float-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: opacity 0.15s;
}

.chat-float-btn--scroll {
    background: #f0f0f0;
    border-color: #aaa;
    color: #555;
}

.chat-float-btn--unread {
    background: #ffe8d6;
    border-color: #e05010;
    color: #b03000;
}

.chat-unread-sep {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #c04000;
    padding: 4px 12px;
    margin: 6px 0;
    border-top: 1px solid rgba(224,80,16,0.25);
    border-bottom: 1px solid rgba(224,80,16,0.25);
    background: rgba(224,80,16,0.07);
    letter-spacing: 0.03em;
}

/* === ACTIVITIES V2 â€” BARRA INFERIOR FIJA === */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--col-width);
    background: white;
    border-top: 1px solid #ddd;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
    box-sizing: border-box;
}

.btn-add-plan {
    flex: 1;
    background: var(--color-bg);
    color: white;
    border: none;
    padding: 12px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-main);
}

.btn-filter-select {
    flex: 1;
    border: 1.5px solid #ccc;
    background: white;
    color: #333;
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.activities-scroll {
    padding: 0 10px 72px;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

/* Tintes de color para los badges de fecha (por dÃ­a de semana) */
.date-badge--c1 { background: #f0f4ff; border-color: #c5d0ee; } /* DOM - azul */
.date-badge--c2 { background: #fff0f5; border-color: #eec5d0; } /* LUN - rosa */
.date-badge--c3 { background: #f5fff0; border-color: #c5eed0; } /* MAR - verde */
.date-badge--c4 { background: #fffff0; border-color: #eeeed0; } /* MIÃ‰ - amarillo */
.date-badge--c5 { background: #f5f0ff; border-color: #d0c5ee; } /* JUE - lila */
.date-badge--c6 { background: #f0ffff; border-color: #c5e8ee; } /* VIE - cian */
.date-badge--c7 { background: #fff5f0; border-color: #eed0c5; } /* SÃB - melocotÃ³n */

/* Wrapper del select de filtro con icono */
.filter-wrapper {
    flex: 1;
    position: relative;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    box-sizing: border-box;
    cursor: pointer;
    justify-content: center;
}

.filter-wrapper svg {
    flex-shrink: 0;
    color: #555;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-main);
    color: #333;
}

.filter-select-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

/* === ACTIVITIES V2 â€” BOTÃ“N ADMIN === */
.adminButtons {
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-main);
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px;
    text-decoration: none;
    margin: 0px 2px;
    cursor: pointer;
}

/* ============================================================
   DETAIL V2 â€” COMPONENTES ESPECÃFICOS
   ============================================================ */

/* --- Modal (base, usado en detailv2) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal.is-open {
    display: flex;
}

.modal-content--v2 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 20px;
    width: 88%;
    max-width: 340px;
    font-family: var(--font-main);
    font-size: 15px;
    color: #1a2b2e;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content--v2 form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Descripción de actividad --- */
.detail-description {
    font-size: 14px;
    color: #444;
    font-family: var(--font-main);
    line-height: 1.5;
    padding: 2px 0 4px;
    overflow-wrap: break-word;
}
.detail-description a {
    overflow-wrap: anywhere;
}
.detail-description p {
    margin: 0 0 10px;
}
.detail-description ul,
.detail-description ol {
    padding-left: 1.4em;
    margin: 4px 0;
}
.detail-description strong,
.detail-description b {
    font-weight: 700;
}
.detail-description em,
.detail-description i {
    font-style: italic;
}

/* --- Links (WhatsApp, Maps, Calendar) --- */
.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}

.detail-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-family: var(--font-main);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--color-accent);
    background: white;
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

.detail-link-btn--locked {
    border-color: #ccc;
    color: #999;
    background: #f5f5f5;
    cursor: default;
}

/* --- Fila admin (Modificar/Borrar) dentro de tarjeta --- */
.detail-admin-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-detail--danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* --- Botones +1 / -1 --- */
.btn-join--friend {
    border-color: var(--color-accent);
    color: var(--color-accent);
    flex: 0 0 auto;
    padding: 8px 14px;
}

.btn-join--remove {
    border-color: var(--color-danger);
    color: var(--color-danger);
    flex: 0 0 auto;
    padding: 8px 14px;
}

/* --- Toggle participantes --- */
.participants-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.participants-chevron {
    margin-left: auto;
    font-size: 20px;
    color: #888;
    font-weight: 300;
    transition: transform 0.2s ease;
    line-height: 1;
}

.participants-chevron--open {
    transform: rotate(90deg);
}

/* --- Filas de participantes --- */
.participant-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-family: var(--font-main);
    color: #333;
    cursor: pointer;
}

.participant-row:last-child {
    border-bottom: none;
}

.participant-name {
    flex: 1;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.participant-name--creator { color: rgb(113, 45, 145); }
.participant-name--active  { color: rgb(45, 125, 145); }

.participant-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
    flex-shrink: 0;
}

.participant-phone {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

/* --- Rankings --- */
.rankings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 2px 0;
}

.ranking-col { min-width: 0; }

.ranking-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    font-size: 13px;
    font-family: var(--font-main);
    color: #333;
    padding: 3px 0;
    border-bottom: 1px solid #f5f5f5;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ranking-item--highlight {
    font-weight: 700;
    color: rgb(45, 125, 145);
}

/* --- CÃ­rculos de usuario (participantes) --- */
.emoji-circle-admin,
.emoji-circle-user,
.emoji-circle-creator,
.emoji-circle-plus,
.emoji-circle-route,
.emoji-circle-event,
.emoji-circle-travel,
.emoji-circle-food,
.emoji-circle-party,
.emoji-circle-activity,
.emoji-circle-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 17px;
    border-radius: 50%;
    border: 1px solid;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* === CHAT === */
.chat-top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--col-width);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-bg-alt);
    padding: 10px 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    box-sizing: border-box;
}

.chat-wrap {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: var(--col-width);
    margin: 0 auto;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 72px 12px 72px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-row {
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-row--self   { align-items: flex-end; user-select: none; -webkit-user-select: none; }
.chat-row--other  {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}
.chat-row--other > span[class] {
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.chat-sender {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-main);
}
.chat-sender--creator { color: rgb(113, 45, 145); }
.chat-sender--active  { color: rgb(45, 125, 145); }
.chat-sender-badge    { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; color: #888; line-height: 1; }
.chat-rank-emoji      { font-size: 9px; margin-left: 2px; vertical-align: middle; }
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.chat-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    color: rgb(26, 49, 54);
    font-family: var(--font-main);
}

.chat-bubble--other {
    background: #ffffff;
    border-top-left-radius: 4px;
}

.chat-bubble--self {
    background: rgb(243, 228, 205);
    border: 1.5px solid rgb(215, 165, 91);
    border-bottom-right-radius: 4px;
}

.chat-link {
    color: rgb(99, 180, 197);
    text-decoration: underline;
    word-break: break-all;
}
.chat-link:visited {
    color: rgb(130, 160, 170);
}

.chat-time {
    font-size: 10px;
    color: rgba(240,240,240,0.45);
    margin-top: 3px;
    padding: 0 4px;
    font-family: var(--font-main);
}

.chat-date-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
    font-family: var(--font-main);
}

.chat-date-sep::before,
.chat-date-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

.chat-date-sep span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(240,240,240,0.75);
    white-space: nowrap;
    background: var(--color-bg);
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
}

.chat-action-bar {
    position: fixed;
    top: 0; /* sobrescrito por JS al mostrarse */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--col-width);
    background: var(--color-accent);
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    box-sizing: border-box;
}
.chat-action-cancel {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    font-family: var(--font-main);
}
.chat-action-label {
    flex: 1;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
}
.chat-action-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.chat-edit-bar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(240,180,0,0.12);
    border-bottom: 1px solid rgba(240,180,0,0.25);
    gap: 8px;
}
.chat-edit-preview {
    flex: 1;
    min-width: 0;
    border-left: 3px solid #f0b429;
    padding-left: 8px;
}
.chat-edit-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    color: #f0b429;
}
.chat-edit-text {
    display: block;
    font-family: var(--font-main);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-edited-badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.62rem;
    color: rgba(90, 55, 10, 0.65);
    font-style: italic;
    margin-left: 5px;
    vertical-align: middle;
}
.chat-forwarded-badge {
    display: block;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 4px;
    opacity: 0.9;
}
.chat-forwarded-badge .chat-forwarded-icon {
    font-size: 1rem;
    font-style: normal;
    margin-right: 2px;
    vertical-align: middle;
}

.chat-pin-bar {
    position: fixed;
    top: 0; /* sobrescrito por JS */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--col-width);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-bg-alt);
    z-index: 9;
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 8px;
    gap: 8px;
    box-sizing: border-box;
    cursor: pointer;
}
.chat-pin-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    align-self: stretch;
    justify-content: center;
}
.chat-pin-line {
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--color-accent);
    opacity: 0.3;
    transition: opacity 0.2s;
}
.chat-pin-line--active {
    opacity: 1;
}
.chat-pin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.chat-pin-label {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}
.chat-pin-text {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.chat-pin-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.7;
}

.chat-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--col-width);
    background: var(--color-bg);
    border-top: 1px solid var(--color-bg-alt);
    z-index: 10;
}

.chat-input-bar {
    background: var(--color-bg-alt);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 12px 14px;
    box-sizing: border-box;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 4px;
}

.chat-body {
    background-color: var(--color-bg);
    position: relative;
}

.chat-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/img/pattern.png');
    background-repeat: repeat;
    background-size: 70%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.chat-body > * {
    position: relative;
    z-index: 1;
}

.chat-input {
    flex: 1;
    border-radius: 0;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    background: transparent;
    color: var(--color-text-light);
    outline: none;
    font-family: var(--font-main);
    resize: none;
    overflow: hidden;
    min-height: 38px;
    max-height: 160px;
    line-height: 1.45;
    display: block;
    box-sizing: border-box;
}

.chat-send-btn {
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    border: 1.5px solid var(--color-accent);
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 14px;
    font-family: var(--font-main);
    cursor: pointer;
    white-space: nowrap;
}

.chat-reply-bar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 8px;
}
.chat-reply-preview {
    flex: 1;
    min-width: 0;
    border-left: 3px solid rgba(255,255,255,0.7);
    padding-left: 8px;
}
.chat-reply-sender {
    display: block;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}
.chat-reply-text {
    display: block;
    font-family: var(--font-main);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-reply-cancel {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.chat-quote {
    background: rgba(0,0,0,0.06);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 6px;
}
.chat-quote-sender {
    display: block;
    font-family: var(--font-main);
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--color-accent);
}
.chat-quote-text {
    display: block;
    font-family: var(--font-main);
    font-size: 0.76rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-swipe-icon {
    position: absolute;
    top: 65%;
    left: 4px;
    transform: translateY(-50%) scale(0.5);
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    color: var(--color-accent);
    opacity: 0;
    pointer-events: none;
}

.emoji-circle-admin    { background-color: #e1aeac; border-color: #976563; }
.emoji-circle-user     { background-color: #e6e6e6; border-color: #737373; }
.emoji-circle-creator  { background-color: #e6b85b; border-color: #bd984c; }
.emoji-circle-plus     { background: linear-gradient(90deg, #e6b85b 50%, #e1aeac 50%); border-color: #976563; }
.emoji-circle-route    { background-color: #c6d8a4; border-color: #91a073; }
.emoji-circle-event    { background-color: #e1aeac; border-color: #976563; }
.emoji-circle-travel   { background-color: #acd0e1; border-color: #7392a0; }
.emoji-circle-food     { background-color: #d9b89a; border-color: #a86b34; }
.emoji-circle-party    { background-color: #b5aae5; border-color: #7c71ab; }
.emoji-circle-activity { background-color: #e6cb7e; border-color: #c1a658; }
.emoji-circle-default  { background-color: #e6e6e6; border-color: #737373; }

/* === USERS PANEL — STATUS === */
.user-card--active     { border-left: 4px solid #7a9e7e; }
.user-card--inactive   { border-left: 4px solid #a8614e; }
.user-card--noactivity { border-left: 4px solid #b89450; }

.badge--active     { background: #edf4ee; color: #3d6b40; border: 1px solid #7a9e7e; }
.badge--inactive   { background: #f6eeec; color: #7a3020; border: 1px solid #a8614e; }
.badge--noactivity { background: #f7f0e4; color: #7a5c18; border: 1px solid #b89450; }

.user-card--deleted  { border-left: 4px solid #555; }
.badge--deleted      { background: #ececec; color: #333; border: 1px solid #555; }
.badge--permanente   { background: #1a1a1a; color: #eee; border: 1px solid #000; }
.badge--manual       { background: #e8eaf6; color: #3949ab; border: 1px solid #7986cb; }
.badge--admin        { background: #e8eaf6; color: #3949ab; border: 1px solid #7986cb; }
.badge--usuario      { background: #e8f5e9; color: #2e7d32; border: 1px solid #66bb6a; }

.filter-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    color: rgba(240,240,240,0.5);
    cursor: pointer;
    font-family: var(--font-main);
}

.filter-pill--on {
    background: white;
    color: #333;
    border-color: white;
}

/* === SUGGESTIONS === */
.suggestion-form {
    width: 86%;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}
.suggestion-form .formGroup {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}
.suggestion-form .formLabel {
    font-size: 14px;
    margin-bottom: 5px;
}
.suggestion-form .createInput {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
.suggestion-textarea {
    resize: vertical;
    min-height: 110px;
}
.suggestion-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
.suggestion-header {
    text-align: center;
    margin-bottom: 5px;
}
.suggestion-header svg {
    display: block;
    margin: 0 auto 8px;
}
.suggestion-title {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(240,240,240,0.85);
}
.sg-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-family: var(--font-main);
}
.sg-tag--grey   { background: #e8e8e8; color: #444;    border: 1px solid #999;    }
.sg-tag--purple { background: #f0e8ff; color: #7b2fbe; border: 1px solid #c084fc; }
.sg-tag--green  { background: #e8f8e8; color: #1a7a3a; border: 1px solid #4ade80; }
.sg-tag--red    { background: #fde8e8; color: #b91c1c; border: 1px solid #f87171; }
.sg-tag--blue   { background: #e8f0ff; color: #1d4ed8; border: 1px solid #60a5fa; }
.sg-status-select {
    font-size: 11px;
    font-family: var(--font-main);
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 2px 6px;
    background: #fafafa;
    cursor: pointer;
}

/* === TÉRMINOS === */
.termsHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.termsHeader svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
    fill: none;
    flex-shrink: 0;
}

.termsContainer {
    overflow-y: scroll;
    height: calc(100vh - 180px);
    max-height: 580px;
    text-align: left;
    padding: 0 14px;
}

.termItem {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-bg-alt);
}

.termItem:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.termTitle {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.termBody {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* === RESPONSIVE: TABLET Y ESCRITORIO === */
@media (min-width: 768px) {
    :root { --col-width: 720px; }

    .header {
        max-width: var(--col-width);
        margin-left: auto;
        margin-right: auto;
    }

    .activities-scroll {
        max-width: var(--col-width);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1100px) {
    :root { --col-width: 860px; }
}

@media (min-width: 1440px) {
    .activities-scroll {
        max-width: calc(var(--col-width) * 2 + 24px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
        padding: 0 16px 72px;
    }
}
