/* ============================================================
   ESTILOWEBSIHA.CSS — UPGRADE QUIRÚRGICO
   Reemplaza tu archivo completo con este
   ============================================================ */

/* ── BASE ── */
.agenda-wrap {
    padding: 60px 0;
    background: #f4f7f6;
}

/* ── CARDS ── */
.agenda-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.07);
    padding: 32px;
    height: 100%;
    border-top: 3px solid #20c997;
}

/* ── ETIQUETAS DE SECCIÓN ── */
.slot-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #20c997;
    margin: 20px 0 10px;
}

/* ── SELECTOR DE DÍAS ── */
.day-btn {
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: all .18s;
    min-width: 72px;
}
.day-btn small {
    font-size: 10px;
    display: block;
    color: #adb5bd;
    margin-top: 2px;
    font-weight: 400;
}
.day-btn:hover {
    border-color: #20c997;
    color: #20c997;
    background: #f0fdf8;
}
.day-btn.active {
    background: #20c997;
    border-color: #20c997;
    color: #fff;
    box-shadow: 0 3px 10px rgba(32,201,151,0.35);
}
.day-btn.active small { color: rgba(255,255,255,.8); }

/* ── SLOTS DE HORA ── */
.slot {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 500;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    width: 100%;
    transition: all .15s;
    letter-spacing: .2px;
}
.slot:hover:not(:disabled) {
    border-color: #20c997;
    color: #20c997;
    background: #f0fdf8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(32,201,151,0.2);
}
.slot.selected {
    background: #20c997;
    border-color: #20c997;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(32,201,151,0.35);
}
.slot:disabled {
    background: #f1f3f5;
    color: #dee2e6;
    cursor: not-allowed;
    border-color: #f1f3f5;
    font-weight: 400;
}

/* ── RESUMEN ── */
.summary-box {
    background: #f8fefc;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    font-size: 13px;
}
.summary-box .row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: #6c757d;
    border-bottom: 1px solid #ecfdf5;
}
.summary-box .row-item:last-child { border-bottom: none; }
.summary-box .row-item span:first-child {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #adb5bd;
}
.summary-box .row-item span:last-child {
    font-weight: 600;
    color: #1a3c34;
    font-size: 13px;
}

.badge-ok {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
    font-weight: 700;
}

/* ── INPUTS estilo línea inferior ── */
.agenda-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #dee2e6;
    border-radius: 0;
    padding: 10px 2px;
    font-size: 14px;
    color: #212529;
    background: transparent;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 16px;
}
.agenda-input:focus {
    border-bottom-color: #20c997;
    box-shadow: none;
}
.agenda-input::placeholder { color: #adb5bd; font-size: 13px; }

/* Select2 coherente con el estilo línea */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: none !important;
    border-bottom: 2px solid #dee2e6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-bottom-color: #20c997 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}
.select2-container--default .select2-results__option--highlighted {
    background: #20c997 !important;
}

/* ── UPLOAD ── */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    color: #adb5bd;
    font-size: 13px;
    margin-bottom: 20px;
    transition: all .2s;
    background: #fafafa;
}
.upload-zone:hover {
    border-color: #20c997;
    color: #20c997;
    background: #f0fdf8;
}
.upload-zone i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    color: #ced4da;
    transition: color .2s;
}
.upload-zone:hover i { color: #20c997; }
.upload-zone input[type=file] { display: none; }

/* ── BOTÓN SUBMIT ── */
.btn-agenda {
    width: 100%;
    background: #20c997;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(32,201,151,0.3);
}
.btn-agenda:hover {
    background: #1aab82;
    box-shadow: 0 6px 20px rgba(32,201,151,0.4);
    transform: translateY(-1px);
}
.btn-agenda:active { transform: scale(.99); }

/* ── NOTA PIE ── */
.agenda-note {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}