/* Modern Reset & Variables */
:root {
    /* MGV Dental — sistema visual (PDF marca) */
    --brand-cream: #F7F5F0;
    --brand-gray: #D1D7DC;
    --brand-blue: #173858;
    --brand-cyan: #5FA9DD;

    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --primary: var(--brand-blue);
    --primary-dark: rgba(23, 56, 88, 0.88);
    --primary-light: rgba(23, 56, 88, 0.08);
    --primary-bg: rgba(95, 169, 221, 0.15);

    --secondary: var(--brand-cyan);
    --secondary-light: rgba(95, 169, 221, 0.12);

    --text-main: var(--brand-blue);
    --text-secondary: rgba(23, 56, 88, 0.65);
    --bg-body: var(--brand-cream);
    --bg-page: var(--brand-cream);
    --bg-card: #ffffff;
    --border-color: var(--brand-gray);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-sm: 0.375rem;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding: 2rem 1rem;
}

/* Layout */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--brand-cyan);
}

/* Typography — Poppins títulos/CTA, Montserrat cuerpo */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--brand-blue);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

h3 { margin-top: 0; font-weight: 700; }

.subtitle {
    color: var(--brand-blue);
    opacity: 0.75;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.subtitle-sm { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* =============================================
   HEADER / BRANDING
   ============================================= */
.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--brand-gray);
}

.brand-logo {
    flex-shrink: 0;
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    text-align: left;
}

.brand-text h1 {
    font-family: var(--font-display);
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-text .subtitle {
    font-family: var(--font-body);
    text-align: left;
    margin-left: 0;
    font-size: 1.05rem;
    color: var(--brand-blue);
    opacity: 0.7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =============================================
   TABS
   ============================================= */
.tabs-container {
    margin-bottom: 2rem;
}

.nav-buttons-container {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(209, 215, 220, 0.35);
    padding: 0.4rem;
    border-radius: var(--radius-lg);
}

.nav-button {
    font-family: var(--font-display);
    padding: 0.65rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-button:hover {
    color: var(--text-main);
}

.nav-button.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: slideUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--secondary);
    margin-right: 0.75rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* =============================================
   SEDE SELECTOR
   ============================================= */
.sede-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sede-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.sede-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sede-btn {
    font-family: var(--font-display);
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 9999px;
    background: white;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sede-btn:hover { border-color: var(--primary); color: var(--primary); }
.sede-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 6px -1px rgba(23, 56, 88, 0.25); }

/* =============================================
   BOOKING MODE SELECTOR
   ============================================= */
.booking-mode-container {
    margin-bottom: 2.5rem;
    background: rgba(247, 245, 240, 0.85);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.mode-label {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.mode-buttons-row {
    display: flex;
    gap: 0.75rem;
}

.mode-btn {
    font-family: var(--font-display);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.mode-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.mode-btn.active {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 56, 88, 0.08);
}

.mode-icon { flex-shrink: 0; }

/* =============================================
   CARDS GRID (Especialidad & Profesional)
   ============================================= */
.esp-grid, .prof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.esp-card, .prof-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
    box-shadow: var(--shadow-sm);
}

.esp-card:hover, .prof-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(95, 169, 221, 0.25);
}

.esp-card.selected, .prof-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(23, 56, 88, 0.1);
}

.esp-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #f1f5f9;
    transition: all 0.2s;
}

.esp-card:hover .esp-card-icon { background: var(--secondary-light); color: var(--brand-cyan); }
.esp-card.selected .esp-card-icon { background: var(--primary); color: white; }

.esp-card-name, .prof-card-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    line-height: 1.2;
}

.esp-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.prof-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    background: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.prof-card.selected .prof-card-avatar {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.prof-card-badge {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   FORMS
   ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group { min-width: 0; }
.form-group.full-width, .full-width { grid-column: 1 / -1; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    background-color: white;
    transition: all 0.2s ease-in-out;
    height: 50px;
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
}

.form-input:hover, .form-select:hover {
    border-color: #cbd5e1;
    background-color: #fcfcfc;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(95, 169, 221, 0.2);
    background-color: white;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

/* Phone prefix */
.phone-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.phone-wrapper:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(95, 169, 221, 0.2);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--brand-cream);
    color: var(--text-secondary);
    font-weight: 700;
    border-right: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.phone-field {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    height: 46px;
}

.field-hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; font-weight: 500; }

/* =============================================
   BUTTONS
   ============================================= */
.save-button {
    font-family: var(--font-display);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    font-size: 1rem;
}

.save-button:hover { background-color: var(--primary-dark); }

.save-button:active { transform: scale(0.985); }

.save-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.65;
}

.status-msg {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: none;
}
.status-msg.active { display: block; background: #fee2e2; color: var(--danger); }
.status-msg.success { background: #dcfce7; color: var(--success); }

.placeholder-text { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }

/* Loading spinner on button */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 1.1rem; height: 1.1rem;
    margin: -0.55rem 0 0 -0.55rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    color: white;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* =============================================
   DATE PICKER
   ============================================= */
.date-picker-wrapper { display: flex; align-items: center; width: 100%; gap: 0.5rem; }

.scroll-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.scroll-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.date-picker-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
}

.date-picker-container::-webkit-scrollbar { display: none; }

.date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 92px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.date-card.has-slots { border-color: var(--secondary); }
.date-card.has-slots:hover { border-color: var(--primary); transform: translateY(-2px); }

.date-card.selected {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 16px -4px rgba(23, 56, 88, 0.3);
}

.date-card.is-current-day { box-shadow: 0 0 0 2px var(--primary-bg) inset; }

.date-card .day-name { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.date-card .day-number { font-size: 1.5rem; font-weight: 900; line-height: 1; margin: 0.25rem 0; }
.date-card .month-year { font-size: 0.7rem; font-weight: 700; opacity: 0.8; }

/* =============================================
   TIME SLOTS
   ============================================= */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem;
}

.time-slot-btn {
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.time-slot-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.time-slot-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

.time-slot-btn.is-current {
    background: #f1f5f9;
    color: var(--text-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.7;
    font-size: 0.78rem;
}

/* =============================================
   TURNO CARDS (Ver Turnos)
   ============================================= */
.turno-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.turno-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.turno-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.turno-fecha { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.turno-hora { background: var(--primary-bg); color: var(--primary); padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 800; }

.turno-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.turno-info-label { color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin-bottom: 0.25rem; }
.turno-info div:last-child { font-weight: 600; color: var(--text-main); }

.turno-actions { display: flex; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); }

.btn-reagendar, .btn-cancelar {
    font-family: var(--font-display);
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-reagendar { background: white; color: var(--primary); border-color: var(--primary); }
.btn-reagendar:hover:not(:disabled) { background: var(--primary); color: white; }
.btn-cancelar { background: white; color: var(--danger); border-color: var(--danger); }
.btn-cancelar:hover:not(:disabled) { background: var(--danger); color: white; }
.btn-reagendar:disabled, .btn-cancelar:disabled { opacity: 0.5; cursor: not-allowed; }

/* Info del turno actual en modal de reagendar */
.reschedule-current {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}
.reschedule-current:empty { display: none; }

/* =============================================
   STATUS & BADGES
   ============================================= */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-confirmed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }

.no-results {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    padding: 3rem 2.5rem 2.5rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover { background: #e2e8f0; color: var(--primary); transform: rotate(90deg); }

.success-icon {
    width: 80px; height: 80px;
    background: #dcfce7;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.warning-icon {
    width: 80px; height: 80px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Search row */
.search-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    body { padding: 0; background: white; }
    .container { border-radius: 0; box-shadow: none; min-height: 100vh; padding: 1.5rem; }
    .header-brand { flex-direction: column; gap: 0.75rem; text-align: center; }
    .brand-text { text-align: center; }
    .brand-text h1, .brand-text .subtitle { text-align: center; }
    h1 { font-size: 1.75rem; }
    .esp-grid, .prof-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-button { padding: 1rem 0.75rem; font-size: 0.85rem; }

    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-content {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
        padding: 2.5rem 1.5rem 2rem;
        transform: translateY(100%);
        animation: slideInUp 0.3s forwards;
    }
    @keyframes slideInUp { to { transform: translateY(0); } }
}

@media (max-width: 480px) {
    .esp-grid, .prof-grid { grid-template-columns: 1fr; }
    .mode-buttons-row { flex-direction: column; }
    .date-card { min-width: 68px; }
}

/* ===================== TRATAMIENTO CHIPS ===================== */
.tratamiento-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    min-height: 2.5rem;
}

.tratamiento-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    text-align: left;
}

.tratamiento-chip:hover {
    border-color: var(--brand-cyan);
    background: var(--secondary-light);
}

.tratamiento-chip.selected {
    border-color: var(--brand-cyan);
    background: var(--primary-bg);
    color: var(--brand-blue);
    font-weight: 600;
}

.chip-badge {
    display: inline-block;
    background: var(--brand-cyan);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ===== Aviso "Antes de agendar" ===== */
.aviso-box {
    background: rgba(95, 169, 221, 0.10);
    border: 1px solid rgba(95, 169, 221, 0.35);
    border-left: 4px solid #5FA9DD;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #173858;
}
.aviso-title { font-weight: 600; margin-bottom: 0.5rem; }
.aviso-box ul { margin: 0 0 0.5rem 1.1rem; padding: 0; line-height: 1.6; }
.aviso-box li { margin-bottom: 0.25rem; }
.aviso-contacto { font-size: 0.82rem; color: rgba(23, 56, 88, 0.75); margin-top: 0.5rem; }
.aviso-contacto a { color: #5FA9DD; text-decoration: none; font-weight: 600; }
