/* ============== VARIABLES ============== */
:root {
    --primary: #3a8c3f;
    --primary-dark: #2d6e31;
    --primary-light: #e8f5e9;
    --primary-lighter: #f1f9f1;
    --accent: #5b4a42;
    --bg: #f5f7f5;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #737373;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --whatsapp: #25d366;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* ============== RESET ============== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 72px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ============== TOP NAVBAR ============== */
.navbar {
    background: var(--bg-card);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.brand-le { color: var(--accent); }
.brand-massage { color: var(--primary); }

.nav-ca {
    margin-left: auto;
    text-align: right;
}

.nav-ca-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.nav-ca-pot {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ============== BOTTOM NAVIGATION ============== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    min-height: 48px;
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg { opacity: 0.5; transition: opacity 0.15s; }

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active svg,
.bottom-nav-item:hover svg {
    opacity: 1;
}

/* Hide old nav-menu */
.nav-menu, .nav-toggle { display: none; }

/* ============== MAIN CONTENT ============== */
.main-content {
    padding: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* ============== ALERTS ============== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-whatsapp {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    flex-direction: column;
    gap: 8px;
}
.wa-alert-content { display: flex; gap: 8px; align-items: center; }
.alert-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; opacity: 0.4; padding: 0 4px; }

/* ============== TYPOGRAPHY ============== */
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.8rem; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-completado { color: var(--success); }
.text-cancelado { color: var(--danger); }
.text-activo { color: var(--primary); }

/* ============== CARDS ============== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ============== PAGE HEADERS ============== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-title, .section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.section-subtitle {
    margin-top: 20px;
    font-size: 0.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.link-more {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.link-small {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-secondary { background: var(--primary-light); color: var(--primary-dark); }
.btn-secondary:hover { background: #d4edda; }

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

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
    background: transparent;
    color: #fff;
    opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn-whatsapp:hover { background: #20bd5a; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ============== FORMS ============== */
.form-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.form-header h1 {
    font-size: 1.15rem;
    font-weight: 600;
}

.form-header .text-muted {
    font-size: 0.85rem;
}

.back-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: background 0.15s;
}
.back-btn:hover { background: #d4edda; }

.back-btn-light {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
}

.form-hint { display: block; font-size: 0.75rem; color: var(--text-gray); margin-top: 4px; }
.field-error { display: block; font-size: 0.75rem; color: #dc2626; margin-top: 4px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    background: var(--bg-card);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-color: var(--primary);
}

.form-group input:focus:not(:focus-visible),
.form-group select:focus:not(:focus-visible),
.form-group textarea:focus:not(:focus-visible) {
    outline: none;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-label input { width: auto; }

/* ============== DASHBOARD ============== */
.dashboard { padding-bottom: 20px; }

.kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.kpi-row-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.kpi-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.dash-section {
    margin-bottom: 24px;
}

.dash-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.15s;
}

.dash-card:hover { box-shadow: var(--shadow-md); }

.dash-card-session {
    background: var(--primary-lighter);
    border-color: var(--primary-light);
}

.dash-card-left {
    text-align: center;
    min-width: 44px;
}

.dash-card-day {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dash-card-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.dash-card-center {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dash-card-center strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card-center .text-muted {
    font-size: 0.78rem;
}

.dash-card-right {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.occupancy-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

.occupancy-badge.full {
    background: #fef2f2;
    color: var(--danger);
}

.pending-amount {
    font-weight: 700;
    color: var(--warning);
    font-size: 0.95rem;
}

.pending-amount-sm {
    font-weight: 600;
    color: var(--warning);
    font-size: 0.8rem;
}

.paid-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--success);
}

/* Hero Actions */
.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(58, 140, 63, 0.3);
}

.hero-btn svg { flex-shrink: 0; }

.secondary-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.secondary-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    padding: 6px 0;
}

.secondary-links a:hover {
    text-decoration: underline;
}

/* Legacy quick actions (kept for other pages) */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.15s;
}

.quick-action-btn:hover { box-shadow: var(--shadow-md); }
.quick-action-btn svg { color: var(--primary); flex-shrink: 0; }

/* ============== GRUPO CARDS ============== */
.grupo-card {
    display: block;
    transition: box-shadow 0.15s;
}
.grupo-card:hover { box-shadow: var(--shadow-md); }
.grupo-card.inactive { opacity: 0.6; }

.grupo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.grupo-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.grupo-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.grupo-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary);
}

.inactive-tag {
    background: #fef2f2;
    color: var(--danger);
}

/* ============== GRUPO VIEW HEADER ============== */
.grupo-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.grupo-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.grupo-header h1 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.grupo-header p {
    opacity: 0.85;
    font-size: 0.88rem;
}

.grupo-header-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============== ACTION BAR ============== */
.action-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.action-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    flex: 1;
    justify-content: center;
    transition: all 0.15s;
}

.action-bar-btn:hover { box-shadow: var(--shadow-md); }

.action-bar-btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.action-bar-btn svg { flex-shrink: 0; }

/* ============== NEXT SESSION CARD ============== */
.next-session-card {
    text-align: center;
    padding: 18px;
    background: var(--primary-lighter);
    border-color: var(--primary-light);
}

.next-session-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.next-session-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}

.next-session-time {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ============== PARTICIPANT CARDS ============== */
.participant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.15s;
}

.participant-card:hover { box-shadow: var(--shadow-md); }
.participant-card.inactive { opacity: 0.6; }

.participant-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.participant-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.participant-info strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-info .text-muted { font-size: 0.75rem; }

.participant-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.alert-badge {
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============== PARTICIPANT HEADER ============== */
.participant-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-header-info {
    flex: 1;
    min-width: 0;
}

.participant-header h1 {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-header p {
    opacity: 0.85;
    font-size: 0.85rem;
}

/* ============== PAYMENT SUMMARY ============== */
.payment-summary-card { border-color: var(--primary-light); }

.payment-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    text-align: center;
}

.payment-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-summary-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.payment-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.payment-summary-mini {
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 20px;
}

.psm-name { font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.psm-concepto { font-size: 0.82rem; color: var(--text-gray); margin-bottom: 10px; }

.psm-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
}

.psm-pending {
    font-weight: 600;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 8px;
    margin-top: 4px;
}

/* ============== SESSION DATES ============== */
.session-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.session-date-num {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.session-date-info {
    flex: 1;
    font-size: 0.88rem;
    text-transform: capitalize;
}

.session-date-status { flex-shrink: 0; }

.status-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-check.present { background: var(--primary-light); color: var(--success); }
.status-check.absent { background: #fef2f2; color: var(--danger); }

/* ============== CONTACT ============== */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.88rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.wa-chip {
    background: var(--whatsapp);
    color: #fff;
    padding: 6px 8px;
}

/* ============== PAYMENT ROWS ============== */
.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.payment-row-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.payment-row-info strong { font-size: 0.88rem; }
.payment-row-info .text-muted { font-size: 0.78rem; }

.payment-row-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--success);
}

/* ============== ATTENDANCE ============== */
.attendance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.attendance-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-info strong { font-size: 0.9rem; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d1d5db;
    border-radius: 30px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.date-picker-row { display: flex; gap: 8px; }

.date-picker-row input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    flex: 1;
}

/* ============== TIPO SERVICE CARDS ============== */
.tipo-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tipo-card {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    display: block;
}

.tipo-card input { display: none; }

.tipo-card.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.tipo-card-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}

.tipo-card-content strong { font-size: 0.85rem; }
.tipo-card-content .text-muted { font-size: 0.75rem; }

.tipo-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============== PAYMENT OPTIONS ============== */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.payment-option:hover { border-color: var(--primary); }
.payment-option input { display: none; }
.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.payment-content { text-align: center; }
.payment-icon { font-size: 1.4rem; margin-bottom: 2px; }
.payment-label { font-size: 0.8rem; font-weight: 500; }

.payment-options-sm { display: flex; gap: 8px; }

.payment-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.payment-opt input { display: none; }
.payment-opt:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 500;
}

/* ============== PAYMENT LIST (pagos page) ============== */
.payment-list-card { padding: 14px; }

.payment-list-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.payment-list-main strong { font-size: 0.9rem; }

.payment-list-right { text-align: right; }

.payment-list-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--success);
    display: block;
}

.payment-list-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-method-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f3f4f6;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* ============== CLIENT PROFILE ============== */
.client-profile {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.client-profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 auto 12px;
}

.client-profile h1 { font-size: 1.2rem; margin-bottom: 4px; }
.client-profile p { color: var(--text-secondary); font-size: 0.88rem; }

.client-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.client-stat {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.client-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.client-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.client-contact-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.client-profile-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

/* ============== FICHA LIST ITEM ============== */
.ficha-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.ficha-list-item:last-child { border-bottom: none; }
.ficha-list-item strong { font-size: 0.88rem; }

.ficha-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ficha-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.ficha-action-btn.wa {
    background: var(--whatsapp);
    color: #fff;
}

.ficha-action-btn.copy {
    background: var(--bg-main);
    color: var(--text-secondary);
}

.status-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-tag.complete, .status-tag.status-validated { background: #dcfce7; color: #166534; }
.status-tag.pending, .status-tag.status-pending { background: #fef3c7; color: #92400e; }
.status-tag.partial, .status-tag.status-partial { background: #dbeafe; color: #1e40af; }

/* ============== PARTICIPATION ITEM ============== */
.participation-item,
.rdv-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.participation-item:last-child,
.rdv-history-item:last-child { border-bottom: none; }

.rdv-history-item strong { font-size: 0.88rem; }

/* ============== DETAIL ROWS ============== */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

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

.detail-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 500;
    text-align: right;
    font-size: 0.88rem;
    word-break: break-word;
}

/* ============== CALENDAR ============== */
.calendar-header {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-nav button,
.calendar-nav a {
    background: var(--primary-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--primary);
}

.calendar-nav button:hover,
.calendar-nav a:hover {
    background: var(--primary);
    color: #fff;
}

.calendar-nav button svg,
.calendar-nav a svg {
    width: 22px;
    height: 22px;
}

.calendar-date { text-align: center; }
.calendar-date h2 { color: var(--primary); font-size: 1.05rem; }
.calendar-date p { color: var(--text-secondary); font-size: 0.82rem; }

/* View toggle (day/week) */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.view-btn {
    padding: 6px 20px;
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
}

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

.today-btn {
    color: var(--primary);
    font-weight: 600;
}
.gcal-btn {
    color: #4285f4;
    padding: 6px 8px !important;
    min-width: unset;
}

/* Time gap between events */
.time-gap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 16px;
}

.time-gap-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.time-gap-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============== WEEK VIEW ============== */
.week-view {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.week-day {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    min-height: 48px;
    align-items: flex-start;
}

.week-day-today {
    border-left: 3px solid var(--primary);
    background: var(--primary-lighter);
}

.week-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    flex-shrink: 0;
}

.week-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
}

.week-day-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.week-day-today .week-day-num {
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.week-day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.week-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    background: var(--bg);
    font-size: 0.84rem;
    transition: background 0.15s;
}

.week-event:hover {
    background: var(--primary-light);
}

.week-event.validated {
    opacity: 0.55;
}

.week-event-session {
    background: var(--primary-light);
}

.week-event-time {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 40px;
    font-size: 0.8rem;
}

.week-event-title {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-event-lieu {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
    white-space: nowrap;
}

/* ============== RDV LIST ============== */
.rdv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rdv-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    transition: box-shadow 0.15s;
    border: 1px solid var(--border-light);
}

.rdv-card:hover { box-shadow: var(--shadow-md); }

.rdv-time {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    align-self: flex-start;
}

.rdv-info { flex: 1; min-width: 0; }
.rdv-client { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.rdv-service { color: var(--primary); font-size: 0.82rem; margin-bottom: 2px; }

.rdv-details {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    gap: 10px;
}

.rdv-status {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rdv-status.planifie { background: #fef3c7; color: #92400e; }
.rdv-status.termine { background: #dcfce7; color: #166534; }
.rdv-status.annule { background: #fef2f2; color: #991b1b; }

/* Group session in calendar */
.grupo-session-card { border-left: 3px solid var(--primary); }
.grupo-time { line-height: 1.3; }
.grupo-time .time-end { font-size: 0.75rem; opacity: 0.7; font-weight: 500; }
.rdv-status.grupo-badge { background: #ede9fe; color: #6d28d9; }

/* ============== EMPTY STATES ============== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state svg { margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; margin-bottom: 14px; }

.empty-state-sm {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ============== RDV VIEW ============== */
.rdv-view-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 12px;
    text-align: center;
}

.rdv-view-header h1 { font-size: 1.2rem; margin-bottom: 6px; }
.rdv-view-header p { opacity: 0.85; }

.rdv-view-details {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* ============== FAB ============== */
.fab {
    position: fixed;
    bottom: 84px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    z-index: 90;
    line-height: 1;
}

.fab:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ============== SEARCH ============== */
.search-box {
    position: relative;
    margin-bottom: 14px;
}

.search-box input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-card);
}

.search-box input:focus { outline: 2px solid var(--primary); outline-offset: -2px; border-color: var(--primary); }
.search-box input:focus:not(:focus-visible) { outline: none; }

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

/* ============== CLIENT SEARCH AUTOCOMPLETE ============== */
.client-search-container { position: relative; }

.client-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.client-search-results.show { display: block; }

.client-search-item {
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.client-search-item:hover { background: var(--primary-lighter); }
.client-search-item:last-child { border-bottom: none; }

.selected-client {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selected-client-info { font-weight: 500; font-size: 0.9rem; }

.selected-client-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
}

/* ============== PRODUCT SEARCH AUTOCOMPLETE ============== */
.product-search-wrap { position: relative; }

.product-search-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-card);
    box-sizing: border-box;
}

.product-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
}

/* ============== SERVICES LIST ============== */
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.service-info h3 { font-size: 0.9rem; margin-bottom: 2px; }
.service-info p { color: var(--text-secondary); font-size: 0.78rem; }

.service-meta { text-align: right; }
.service-price { color: var(--primary); font-weight: 700; font-size: 1rem; }
.service-duration { color: var(--text-secondary); font-size: 0.75rem; }
.service-actions { display: flex; gap: 6px; }

/* ============== CLIENTS LIST ============== */
.client-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-light);
}

.client-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.client-info { flex: 1; min-width: 0; }
.client-info h3 { font-size: 0.9rem; margin-bottom: 1px; }
.client-info p { color: var(--text-secondary); font-size: 0.78rem; }

/* ============== LIEU TOGGLE ============== */
.lieu-toggle {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lieu-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-card);
    font-size: 0.9rem;
}

.lieu-option:hover { background: var(--primary-lighter); }
.lieu-option input { display: none; }
.lieu-option:has(input:checked) {
    background: var(--primary);
    color: #fff;
}

/* ============== MISC ============== */
.radio-group { display: flex; gap: 14px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.radio-option input { width: auto; }

/* ============== PRODUCT CARD ============== */
.product-card {
    margin-bottom: 8px;
}

.product-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.product-card-main strong { font-size: 0.9rem; }

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.status-tag.inactive { background: #f3f4f6; color: #6b7280; }
.status-tag.cancelled { background: #fef2f2; color: var(--danger); }

/* ============== SESSION HEADER ============== */
.session-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-header-info { flex: 1; }
.session-header h1 { font-size: 1.15rem; margin-bottom: 4px; }
.session-header p { opacity: 0.85; font-size: 0.85rem; }

.session-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ============== PARTICIPANT ROW ============== */
.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.participant-row:last-child { border-bottom: none; }
.participant-row-info { flex: 1; }
.participant-row-info a { color: inherit; }
.participant-row-info strong { font-size: 0.9rem; }

.participant-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============== ATTENDANCE ROW ============== */
.attendance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

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

.attendance-toggle {
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
}

.attendance-toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.attendance-row input { display: none; }
.attendance-row input:checked + .attendance-toggle { background: var(--primary); }
.attendance-row input:checked + .attendance-toggle::after { transform: translateX(20px); }

/* ============== CREDIT ROW ============== */
.credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.credit-row:last-child { border-bottom: none; }
.credit-row-info strong { font-size: 0.9rem; }

.credit-count {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 8px;
}

/* ============== CREDIT OPTION (radio card) ============== */
.credit-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.credit-option:hover { border-color: var(--primary); }
.credit-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-lighter);
}
.credit-option input[type="radio"] { width: auto; }

/* Service toggle (credit vs new) */
.service-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.service-toggle-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.service-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

.service-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    margin-left: 4px;
    padding: 0 5px;
}

/* Price summary */
.price-summary {
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.price-row.price-total {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

/* Required field indicator */
.required { color: var(--danger); }

/* ============== PAQUETE ITEM ROW ============== */
.paquete-item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.paquete-item-row select { flex: 1; }

/* ============== SEARCH RESULT ITEM ============== */
.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.search-result-item:hover { background: var(--primary-lighter); }
.search-result-item:last-child { border-bottom: none; }

/* ============== VALIDATED SESSION ============== */
.rdv-card.validated { border-left: 3px solid var(--success); }

/* ============== GOOGLE CALENDAR EVENTS ============== */
.rdv-card-gcal {
    background: #f0f4f8;
    border-left: 3px solid #4285f4;
    opacity: 0.75;
    cursor: default;
}

.rdv-card-gcal .rdv-time {
    background: #e3eaf3;
    color: #4285f4;
}

.gcal-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #e3eaf3;
    color: #4285f4;
}

.week-event-gcal {
    background: #f0f4f8;
    opacity: 0.75;
    cursor: default;
    border-left: 2px solid #4285f4;
}

/* ============== RESPONSIVE ============== */
@media (min-width: 768px) {
    body { padding-bottom: 0; }

    .bottom-nav {
        position: static;
        max-width: 700px;
        margin: 0 auto;
        border-top: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        gap: 4px;
    }

    .bottom-nav-item {
        flex-direction: row;
        font-size: 0.85rem;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
    }

    .bottom-nav-item.active { background: var(--primary-light); }
    .main-content { padding: 20px; }
    .fab { bottom: 24px; right: 24px; }
}
