﻿/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 600px) {
    .modal {
        max-width: 98vw;
        padding: 0;
    }
    .modal-header, .modal-footer {
        padding: 10px 8px;
    }
    .modal-body {
        padding: 10px 8px;
    }
    .form-group input, .form-group textarea, .form-group select {
        padding: 10px 10px;
        font-size: 1rem;
    }
    .form-group label {
        font-size: 0.98rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .data-table th, .data-table td {
        padding: 7px 5px;
        font-size: 0.78rem;
    }
    .btn-login, .btn-save, .btn-cancel, .btn-delete {
        padding: 10px 0;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 8px;
    }
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .pw-group {
        flex-direction: column;
        gap: 4px !important;
    }
    .pw-toggle {
        min-width: 36px;
        padding: 0 4px;
        font-size: 1.1rem;
        background: none;
        border: none;
        color: var(--primary-light);
        cursor: pointer;
    }
}
/* ============================================
   INTRANET - Ministerio Apostólico de Gloria en Gloria Internacional
   Panel Administrativo - Estilos
   ============================================ */

/* === VARIABLES === */
:root {
    --sidebar-bg: #0f1923;
    --sidebar-hover: #1a2d3d;
    --sidebar-active: #1e3a50;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --primary: #1a3a5c;
    --primary-light: #2c5f8a;
    --accent: #d4a843;
    --accent-light: #e8c56d;
    --danger: #e74c3c;
    --danger-dark: #c0392b;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --bg: #f0f2f5;
    --white: #ffffff;
    --text: #2c3e50;
    --text-secondary: #7f8c8d;
    --border: #e1e5eb;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1923 0%, #1a3a5c 50%, #2c5f8a 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-brand {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.login-brand h1 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.15);
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

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

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.form-group .checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

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

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    margin-top: 15px;
    padding: 12px;
    background: #fce4e4;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
}

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

.login-footer a {
    color: var(--primary-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--accent);
}

/* Forgot password */
.forgot-section {
    margin-top: 18px;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition);
}

.link-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.forgot-form {
    margin-top: 12px;
}

.forgot-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.btn-forgot {
    background: var(--accent);
    margin-top: 10px;
}

.btn-forgot:hover {
    background: #b8922a;
    filter: brightness(1.1);
}

.forgot-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-align: center;
}

.forgot-msg.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.forgot-msg.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-brand span {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-divider {
    padding: 15px 20px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.4;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--accent-light);
    border-left-color: var(--accent);
}

.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 101;
    background: var(--sidebar-bg);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.sidebar-close { display: none; }
.sidebar-backdrop { display: none; }

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    padding: 0 30px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h2 {
    font-size: 1.3rem;
    color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.topbar-user:hover {
    background: rgba(0,0,0,0.04);
}

.topbar-user .chevron {
    font-size: 0.6rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.topbar-user.open .chevron {
    transform: rotate(180deg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--border);
    overflow: hidden;
}

.user-dropdown.open {
    display: block;
    animation: fadeIn 0.15s ease;
}

.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
}

.user-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.user-dropdown-header small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    background: #f0f2f5;
}

.user-dropdown-item.danger {
    color: var(--danger);
}

.user-dropdown-item.danger:hover {
    background: #fce4e4;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.content-area {
    padding: 25px 30px;
    flex: 1;
}

/* === PANELS === */
.panel {
    display: none;
}

.panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-blue { border-left-color: var(--info); }
.stat-green { border-left-color: var(--success); }
.stat-purple { border-left-color: #9b59b6; }
.stat-red { border-left-color: var(--danger); }
.stat-orange { border-left-color: #f39c12; }

.stat-icon {
    font-size: 2.2rem;
}

.stat-info h3 {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* === RECENT GRID === */
.recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.card-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item strong {
    font-size: 0.9rem;
    color: var(--text);
}

.recent-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.empty-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-style: italic;
}

/* === PANEL TOOLBAR === */
.panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-toolbar h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.panel-hint {
    font-size: 0.85rem;
    color: #888;
    margin: -5px 0 15px;
    padding: 0 5px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.btn-add {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* === PERMISSION-BASED VISIBILITY === */
.panel[data-can-write="false"] .btn-add,
.panel[data-can-write="false"] .btn-edit,
.panel[data-can-write="false"] .btn-star {
    display: none !important;
}
.panel[data-can-delete="false"] .btn-del {
    display: none !important;
}
.panel[data-can-write="false"] .panel-readonly-hint {
    display: block;
}
.panel-readonly-hint {
    display: none;
    background: #fff8e1;
    border-left: 3px solid #f5c518;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    color: #6b5400;
    font-size: 0.9rem;
}

/* Permissions checkbox grid in admin form */
.perms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}
.perm-check:hover {
    background: #eef2f6;
    border-color: var(--primary);
}
.perm-check input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.perm-check:has(input:checked) {
    background: rgba(26, 58, 92, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* === DATA TABLES === */
.table-responsive {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fb;
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text);
}

.data-table tbody tr:hover {
    background: #fafbfc;
}

.data-table .actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    background: transparent;
}

.btn-edit {
    background: #e8f4fd;
}

.btn-edit:hover {
    background: #cce5ff;
}

.btn-del {
    background: #fce4e4;
}

.btn-del:hover {
    background: #f5c6c6;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #fff3cd;
    color: #856404;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-danger {
    background: #f8d7da;
    color: #721c24;
}

/* === STATUS SELECT (CITAS) === */
.status-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    cursor: pointer;
    background: white;
}

/* === CITA DETAIL === */
.cita-detail .detail-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cita-detail .detail-row strong {
    display: inline-block;
    min-width: 100px;
    color: var(--primary);
}

.empty-row {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 30px !important;
}

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.gallery-info {
    padding: 15px;
}

.gallery-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text);
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.gallery-info .badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4fd;
    color: var(--info);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.gallery-actions {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

/* === PROFILES GRID === */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 25px auto 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-card .profile-role {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f4fd;
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.profile-card .profile-bio {
    padding: 0 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-card .profile-contact {
    padding: 0 20px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid #f5f5f5;
}

/* === STREAMS GRID === */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.stream-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stream-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stream-card.destacado {
    border: 2px solid var(--accent);
}

.stream-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.stream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stream-thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-thumbnail .play-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stream-info {
    padding: 15px;
}

.stream-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.stream-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stream-info .stream-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stream-info .badge-live {
    display: inline-block;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 5px;
}

.stream-actions {
    display: flex;
    gap: 6px;
    padding: 10px 15px;
    border-top: 1px solid #f5f5f5;
}

/* === MULTI-IMAGE UPLOAD === */
.multi-image-upload {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.image-upload-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
}

.image-upload-slot:hover {
    border-color: var(--primary-light);
    background: #f0f4f8;
}

.image-upload-add .upload-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.image-upload-add .upload-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.image-slot-filled {
    border: 2px solid var(--border);
    cursor: default;
}

.image-slot-filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-slot-filled:hover .image-slot-remove {
    opacity: 1;
}

.image-slot-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-sm {
    max-width: 420px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.15rem;
    color: var(--primary);
}

.modal-header-danger h3 {
    color: var(--danger);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.modal-close:hover {
    background: #e0e0e0;
    color: var(--text);
}

#modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-cancel {
    padding: 10px 22px;
    background: #f5f5f5;
    color: var(--text);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-save {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.btn-delete {
    padding: 10px 22px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: var(--danger-dark);
}

.preview-img {
    max-width: 200px;
    max-height: 120px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border: 1px solid var(--border);
}

/* Image position control */
.img-position-control {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.img-position-control label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.img-position-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.img-position-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.img-position-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.img-position-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Change password modal */
.change-pw-form .form-group {
    margin-bottom: 15px;
}

.change-pw-form .pw-strength {
    font-size: 0.8rem;
    margin-top: 4px;
}

.pw-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw-inline input {
    flex: 1;
}

.pw-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f7f9fb;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.pw-toggle:hover {
    background: #eef2f6;
}

.pw-match-msg {
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 1.1em;
    font-weight: 500;
}
.pw-match-msg.ok { color: #0a8f4f; }
.pw-match-msg.err { color: #c62828; }

.data-table tbody tr.row-readonly {
    background: #fafbfc;
    color: var(--text-secondary);
}
.data-table tbody tr.row-readonly td .badge {
    background: #eef2f6;
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.btn-star {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 36px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    transition: all 0.15s ease;
    color: #b0b0b0;
}
.btn-star:hover {
    background: #fff8e1;
    border-color: #f5c518;
    color: #f5c518;
}
.btn-star.is-featured {
    background: #fff8e1;
    border-color: #f5c518;
    color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
}
.data-table tbody tr.row-featured {
    background: #fffdf3;
    border-left: 3px solid #f5c518;
}

.rich-editor-wrap {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}

.rich-editor-toolbar button {
    border: 1px solid #d8dee6;
    background: #fff;
    color: #2c3e50;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 0.82rem;
    cursor: pointer;
}

.rich-editor-toolbar button:hover {
    background: #edf3fb;
    border-color: #b8c8dd;
}

.rich-editor {
    min-height: 220px;
    padding: 14px;
    line-height: 1.7;
    outline: none;
}

.rich-editor:empty:before {
    content: attr(data-placeholder);
    color: #95a5a6;
}

.rich-editor h2,
.rich-editor h3 {
    color: var(--primary);
    margin: 12px 0 8px;
}

.rich-editor ul,
.rich-editor ol {
    margin: 8px 0 8px 20px;
}

.rich-editor blockquote {
    border-left: 4px solid var(--primary-light);
    margin: 10px 0;
    padding: 8px 12px;
    background: #f2f7fc;
    color: #385a77;
    font-style: italic;
}

.form-section-divider {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(26,58,92,0.06), rgba(66,165,245,0.08));
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

.yt-preview {
    margin-top: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.yt-preview iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* === TOAST === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 25px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    /* Hide floating hamburger when sidebar is open (close button inside takes over) */
    .sidebar.open ~ .sidebar-toggle {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.8);
    }

    /* Backdrop behind the open sidebar */
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .sidebar-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Close button inside the sidebar brand (top-right) */
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: white;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        line-height: 1;
        z-index: 2;
    }
    .sidebar-close:hover,
    .sidebar-close:active {
        background: rgba(255, 255, 255, 0.18);
    }

    .sidebar-brand {
        position: relative;
        padding-right: 56px;
        padding-left: 18px;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding-left: 60px;
    }

    .content-area {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .panel-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-toolbar h3 {
        text-align: center;
    }

    .toolbar-actions {
        flex-direction: column;
        width: 100%;
    }

    .toolbar-actions .search-input,
    .toolbar-actions .btn-add,
    .toolbar-actions select {
        width: 100%;
    }

    .btn-add {
        text-align: center;
    }

    .search-input {
        width: 100%;
    }

    .gallery-grid,
    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .streams-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        max-height: 95vh;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .modal-header {
        padding: 15px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 12px 18px;
        flex-wrap: wrap;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .data-table .actions {
        flex-direction: row;
        gap: 4px;
    }

    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    /* Citas toolbar */
    .btn-tab {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    #filter-citas {
        margin-left: 0 !important;
        width: 100%;
    }

    .citas-cal-grid {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 25px;
    }

    .topbar h2 {
        font-size: 1rem;
    }

    .topbar-right span {
        display: none;
    }

    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-icon {
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.2rem;
    }

    .stat-info p {
        font-size: 0.75rem;
    }

    .content-area {
        padding: 10px;
    }

    .panel-toolbar h3 {
        font-size: 1rem;
    }

    .btn-add {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 8px;
        font-size: 0.75rem;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 10px 15px;
    }

    .modal-footer .btn-cancel,
    .modal-footer .btn-save,
    .modal-footer .btn-delete {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* === CITAS TAB BUTTONS === */
.btn-tab {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.btn-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* === PENDING BAR === */
.pending-bar {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

/* === CITAS CALENDAR VIEW === */
.citas-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.citas-cal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    min-width: 180px;
    text-align: center;
}
.citas-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.citas-cal-grid .cal-header {
    background: var(--primary);
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.citas-cal-grid .cal-day {
    background: var(--white);
    min-height: 80px;
    padding: 4px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.citas-cal-grid .cal-day:hover {
    background: #f0f4ff;
}
.citas-cal-grid .cal-day.other-month {
    background: #f9f9f9;
    color: #ccc;
}
.citas-cal-grid .cal-day.today {
    background: #e8f5e9;
}
.citas-cal-grid .cal-day .day-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.citas-cal-grid .cal-day.today .day-num {
    color: var(--primary);
}
.cal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 1px;
}
.cal-dot.pendiente { background: #ffc107; }
.cal-dot.confirmada { background: #28a745; }
.cal-dot.completada { background: #6c757d; }
.cal-dot.cancelada { background: #dc3545; }
.cal-cita-mini {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.cal-cita-mini.pendiente { background: #fff3cd; color: #856404; }
.cal-cita-mini.confirmada { background: #d4edda; color: #155724; }
.cal-cita-mini.completada { background: #e2e3e5; color: #383d41; }
.cal-cita-mini.cancelada { background: #f8d7da; color: #721c24; }

/* === CITAS DAY DETAIL === */
.citas-day-detail {
    margin-top: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.citas-day-detail h4 {
    margin: 0 0 12px;
    color: var(--primary);
}
.cita-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.cita-card.pendiente { border-left-color: #ffc107; }
.cita-card.confirmada { border-left-color: #28a745; }
.cita-card.completada { border-left-color: #6c757d; }
.cita-card.cancelada { border-left-color: #dc3545; }
.cita-card-info { flex: 1; }
.cita-card-info h5 { margin: 0 0 4px; font-size: 0.9rem; }
.cita-card-info p { margin: 2px 0; font-size: 0.8rem; color: var(--text-secondary); }
.cita-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cita-card-actions .btn-accept {
    background: #28a745; color: white; border: none; padding: 4px 10px;
    border-radius: 5px; cursor: pointer; font-size: 0.75rem;
}
.cita-card-actions .btn-reject {
    background: #dc3545; color: white; border: none; padding: 4px 10px;
    border-radius: 5px; cursor: pointer; font-size: 0.75rem;
}

/* === RESPONSIVE: Multi-image === */
@media (max-width: 480px) {
    .multi-image-upload {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .image-slot-remove {
        opacity: 1;
    }
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    /* Prevent horizontal page scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .app-layout,
    .admin-layout,
    .main-content,
    .content-area {
        max-width: 100%;
        overflow-x: hidden;
    }
    .panel {
        min-width: 0;
        max-width: 100%;
    }

    /* Hide redundant section title on mobile (topbar already shows it) */
    .panel-toolbar h3 {
        display: none;
    }
    .panel-toolbar {
        justify-content: flex-end;
    }

    /* Login page */
    .login-page {
        padding: 15px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-brand h1 {
        font-size: 1.15rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }

    /* Form inputs: bigger touch targets, prevent iOS zoom */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: var(--radius-sm);
        width: 100%;
        max-width: 100%;
    }

    .form-group label {
        font-size: 0.88rem;
        margin-bottom: 5px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-group input[type="file"] {
        padding: 12px 10px;
        font-size: 14px;
    }

    .form-group .checkbox-label {
        padding: 8px 0;
        font-size: 0.92rem;
    }

    .form-group .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .btn-login {
        padding: 16px;
        font-size: 1rem;
    }

    /* Topbar */
    .topbar {
        padding: 0 12px 0 55px;
        height: 50px;
    }

    .topbar h2 {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Modal: full-width on mobile */
    .modal-overlay {
        padding: 8px;
        align-items: flex-start;
        padding-top: 15px;
    }

    .modal {
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 30px);
        margin: 0;
        border-radius: var(--radius-sm);
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-body .form-group input,
    .modal-body .form-group textarea,
    .modal-body .form-group select {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }

    .modal-body .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .modal-footer .btn-cancel,
    .modal-footer .btn-save,
    .modal-footer .btn-delete {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    /* Table: horizontal scroll within card only */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        max-width: 100%;
    }

    .data-table {
        min-width: 540px;
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    /* Toast: bottom center on mobile */
    .toast {
        left: 12px;
        right: 12px;
        bottom: 15px;
        max-width: none;
        text-align: center;
    }

    /* Citas calendar */
    .citas-cal-grid .cal-day {
        min-height: 50px;
        padding: 2px;
    }

    .citas-cal-header h4 {
        font-size: 0.95rem;
        min-width: 140px;
    }

    .cita-card {
        flex-direction: column;
    }

    .cita-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Pending bar */
    .pending-bar {
        flex-direction: column;
        text-align: center;
        font-size: 0.85rem;
    }

    /* Form section divider */
    .form-section-divider {
        font-size: 0.9rem;
        padding: 8px 12px;
        margin: 15px 0 8px;
    }

    /* Preview image */
    .preview-img {
        max-width: 100%;
    }

    /* YT preview */
    .yt-preview {
        margin-top: 8px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 20px 15px;
    }

    .login-brand h1 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 10px;
    }

    .content-area {
        padding: 8px;
    }

    .stat-card {
        padding: 10px;
        gap: 10px;
    }

    .stat-icon {
        font-size: 1.1rem;
    }

    .stat-info h3 {
        font-size: 1.1rem;
    }
}

/* === DISPONIBILIDAD CITAS === */
.cita-cfg-card{background:var(--card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:10px;padding:14px 16px;margin-bottom:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cita-cfg-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;border-bottom:1px solid var(--border,#eee);padding-bottom:8px}
.cita-cfg-head h4{margin:0;font-size:1.05rem}
.cita-cfg-body .form-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.chip-check{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--border,#d1d5db);border-radius:999px;cursor:pointer;font-size:.9rem;background:#f9fafb}
.chip-check input{accent-color:var(--primary,#2563eb)}
.chip-check:has(input:checked){background:#dbeafe;border-color:#2563eb;color:#1e3a8a}
.panel-hint{color:#6b7280;font-size:.9rem;margin:0 0 14px}
@media (max-width:600px){.cita-cfg-body .form-row{grid-template-columns:1fr}}
