/* /turnos/public/css/umana_skin.css
   “Skin” cálido UMANA (colores + sombras + estados)
   LIMPIO (sin duplicados / sin JS incrustado)
*/

:root{
  --rojo:#C73A2C;
  --rojo-hover:#E0553D;

  --ok:#3E8F5B;

  --um-cream:#F7F1EB;
  --um-cream-2:#F4EFE9;

  --text:#1F2937;
  --muted:#6B7280;

  --line: rgba(120,90,60,.18);

  --shadow: 0 14px 34px rgba(120,90,60,.10);
  --shadow2: 0 22px 52px rgba(120,90,60,.14);
}

/* Fondo cálido */
html{
  min-height:100%;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(199,58,44,.10), transparent 55%),
    radial-gradient(900px 520px at 100% 10%, rgba(62,143,91,.08), transparent 55%),
    linear-gradient(180deg, var(--um-cream) 0%, var(--um-cream-2) 100%);
}

body{
  min-height:100%;
  margin:0;
  font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;
  color:var(--text);
  background:transparent;
}

/* Card principal */
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(120,90,60,.26);
  box-shadow:
    0 48px 110px rgba(120,90,60,.26),
    0 18px 44px rgba(120,90,60,.16),
    0 3px 10px rgba(120,90,60,.10);
  backdrop-filter: blur(10px);
  position:relative;
}

.card::before{
  content:"";
  position:absolute;
  inset:-14px;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(199,58,44,.10), transparent 70%);
  filter: blur(10px);
  opacity:.9;
  z-index:-1;
  pointer-events:none;
}

/* Título */
h1{
  font-family:"Playfair Display",serif;
  color: var(--rojo);
  letter-spacing:.01em;
}
.sub{ color: var(--muted); }

/* ===== Línea “Agenda de …” ===== */
.um-profline{
  margin-top:-6px;
  font-size:14px;
  color: rgba(31,41,55,.55);
  font-weight:500;
}
.um-profline .um-prof-label{
  font-weight:500;
  color: rgba(31,41,55,.55);
}
.um-profline .um-prof-name{
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  text-shadow: 0 2px 10px rgba(15,23,42,.18);
}

/* ===== Mes (pill) con relieve ===== */
.mb-title{
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.82) 100%);
  border: 1px solid rgba(120,90,60,.30);
  box-shadow:
    0 30px 70px rgba(120,90,60,.24),
    0 10px 22px rgba(120,90,60,.16),
    0 2px 6px rgba(120,90,60,.10),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(255,255,255,.70);
  position:relative;
  overflow:hidden;
  color: var(--text);
}

.mb-title::before{
  content:"";
  position:absolute;
  left:10px; right:10px;
  top:6px;
  height:46%;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events:none;
}

.mb-btn{
  background:#fff;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background .12s ease, box-shadow .12s ease, transform .06s ease;
}
.mb-btn:hover{
  background: rgba(199,58,44,.06);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* ===== Días ===== */
.day{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .10s ease, box-shadow .12s ease, border-color .12s ease;
}
.day:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(120,90,60,.14);
}
.day.selected{
  border-color: rgba(199,58,44,.55);
  box-shadow: 0 18px 40px rgba(199,58,44,.16);
}
.day.selected .dnum{ color: var(--rojo); }
.day .dw{ color: rgba(31,41,55,.55); }

/* Dot (si lo usás) */
.dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(62,143,91,.12);
}
.dot.zero{
  background:#d1d5db;
  box-shadow:none;
}

/* ===== Slots (general) ===== */
.slot{
  background:#fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .06s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.slot:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(120,90,60,.14);
  background: rgba(199,58,44,.06);
  border-color: rgba(199,58,44,.28);
}

/* Seleccionado = VERDE UMANA */
.slot.is-selected{
  background: var(--ok) !important;
  border-color: var(--ok) !important;
  color:#fff !important;
  box-shadow: 0 18px 40px rgba(62,143,91,.22) !important;
}

/* Quitar halo azul iOS/Safari + tap highlight */
.slot, button.slot{
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.slot:focus, .slot:focus-visible, .slot:active,
button.slot:focus, button.slot:focus-visible, button.slot:active{
  outline: none !important;
}

/* Focus accesible pero verde (solo teclado) */
.slot:focus-visible{
  box-shadow: 0 0 0 4px rgba(62,143,91,.20) !important;
}

/* ===== Summary derecha ===== */
.um-summary-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
.um-sum-row{
  border-bottom: 1px solid rgba(120,90,60,.14);
}
.um-sum-row span{ color: rgba(31,41,55,.65); }
.um-sum-hint{ color: rgba(31,41,55,.65); }

/* Valor: sin saltos (controlado por JS con clases) */
#umSumPriceRow{
  opacity:1;
  visibility:visible;
  transition: opacity .12s ease;
}
#umSumPriceRow.is-hidden{
  opacity:0;
  visibility:hidden; /* mantiene espacio si el row es grid en layout.css */
}
#umSumPriceRow.is-loading{
  opacity:.55;
  visibility:visible;
}

/* CTA */
.um-cta{
  background: var(--rojo);
  color:#fff;
  transition: background .12s ease, transform .06s ease, box-shadow .12s ease;
}
.um-cta:hover{
  background: var(--rojo-hover);
  box-shadow: 0 18px 40px rgba(199,58,44,.18);
  transform: translateY(-1px);
}

/* ===== Picker modalidades ===== */
.um-mode-picker{
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(210,198,190,.55);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(120,90,60,.08);
  padding: 12px 16px;
  margin: 10px auto 18px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.um-mode-picker-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #243041;
}

.um-mode-picker-buttons{
  display:inline-flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}

.um-mode-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid #D7CBC4;
  background: linear-gradient(180deg, #FFFDFC 0%, #F7F2EE 100%);
  cursor:pointer;
  font-size: 13px;
  font-weight: 700;
  color: #5E6672;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 6px 14px rgba(120,90,60,.06);
  transition:
    background .16s ease,
    box-shadow .16s ease,
    transform .10s ease,
    border-color .16s ease,
    color .16s ease;
}

.um-mode-btn:hover{
  transform: translateY(-1px);
  border-color: #CBBDB5;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F1ED 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 18px rgba(120,90,60,.09);
}

.um-mode-btn.is-active{
  background: linear-gradient(180deg, #F4F8FB 0%, #EAF1F6 100%);
  border-color: #86A3B8;
  color: #35516A;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 22px rgba(83,117,145,.14);
}

.um-mode-icon{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid currentColor;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.62);
  flex: 0 0 20px;
}

.um-mode-icon svg{
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.um-mode-btn:focus,
.um-mode-btn:focus-visible,
.um-mode-btn:active{
  outline: none !important;
}
/* ===== Sheet / Modales base ===== */
.sheet-mask,.modal-mask,.info-mask{
  position: fixed;
  inset:0;
  background: rgba(15, 23, 42, .45);
  display:none;
}

/* Z-index ordenado */
#sheetMask{ z-index: 8000; }
#sheetBox{  z-index: 8001; }

#okMask{    z-index: 8400; }
#okBox{     z-index: 8401; }

#policyMask{ z-index: 9000; }
#policyBox{  z-index: 9001; }

.sheet,.modal,.info-box{
  position: fixed;
  left:50%;
  transform: translateX(-50%);
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  display:none;
}

/* ===== Sheet PRO ===== */
#sheetBox.sheet{
  border-radius: 22px;
  border: 1px solid rgba(120,90,60,.22);
  background: rgba(255,255,255,.97);
  box-shadow:
    0 42px 120px rgba(15,23,42,.22),
    0 18px 52px rgba(120,90,60,.18);
  padding: 18px 20px 18px;
}

#sheetBox #sheetClose.x{
  border-radius: 14px;
  border: 1px solid rgba(120,90,60,.25);
  background: #fff;
  box-shadow: 0 10px 24px rgba(120,90,60,.12);
}

#sheetBox h2{
  margin: 2px 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #111827;
  letter-spacing: -.01em;
}

/* Inputs del sheet */
#sheetBox input[type="text"],
#sheetBox input[type="email"],
#sheetBox input[type="tel"],
#sheetBox textarea{
  border-radius: 14px;
  border: 1px solid rgba(120,90,60,.22);
  background: #fff;
  box-shadow: 0 10px 22px rgba(120,90,60,.08);
  padding: 12px 12px;
}
#sheetBox textarea{ min-height:110px; }

#sheetBox label.small{
  font-weight: 900;
  color: rgba(31,41,55,.72);
  letter-spacing: .01em;
}

#sheetBox input[type="radio"]{
  width: 18px;
  height: 18px;
  accent-color: var(--rojo);
}

/* Botonera */
#sheetBox .actions{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(120,90,60,.16);
}

#sheetBox #btnConfirm.btn.red{
  box-shadow: 0 18px 40px rgba(199,58,44,.22);
}

/* Políticas box */
#policyBox{
  top:50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
#policyBox iframe{
  width:100%;
  height:65vh;
  border:0;
  display:block;
}

/* Mobile */
@media (max-width:640px){
  #sheetBox.sheet{
    border-radius: 22px 22px 0 0;
    padding: 14px 14px 18px;
    box-shadow: 0 -22px 60px rgba(120,90,60,.22);
  }
  #sheetBox h2{ font-size: 20px; }
}

/* =========================================================
   MODAL RESERVAR TURNO — glass compact clean v4
   ========================================================= */

:root{
  --um-red:#D32F2F;
  --um-red-2:#ef4444;
  --um-ink:#172033;
  --um-text:#344054;
  --um-muted:#667085;
  --um-glass:rgba(255,255,255,.62);
  --um-glass-strong:rgba(255,255,255,.76);
  --um-line:rgba(255,255,255,.36);
  --um-shadow:0 18px 50px rgba(15,23,42,.18);
  --um-shadow-soft:0 10px 24px rgba(15,23,42,.10);
}

/* overlay */
#sheetMask{
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.15), transparent 42%),
    rgba(15,23,42,.34);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

/* caja */
#sheetBox,
#sheetBox.sheet{
  width:min(760px, calc(100vw - 24px)) !important;
  max-height:calc(100vh - 24px) !important;
  overflow:auto;
  padding:16px 18px 14px !important;
  border-radius:24px !important;
  border:1px solid rgba(255,255,255,.40) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.68) 100%) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:var(--um-shadow) !important;
  color:var(--um-text);
  scrollbar-width:thin;
  scrollbar-color:rgba(100,116,139,.30) transparent;
}

#sheetBox::-webkit-scrollbar{ width:10px; }
#sheetBox::-webkit-scrollbar-thumb{
  background:rgba(100,116,139,.24);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}

/* cerrar */
#sheetClose,
#sheetBox #sheetClose.x{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,255,255,.48) !important;
  background:rgba(255,255,255,.56) !important;
  color:#111827;
  box-shadow:var(--um-shadow-soft) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#sheetClose:hover,
#sheetBox #sheetClose.x:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.74) !important;
}

/* título */
#sheetBox h1,
#sheetBox h2,
#sheetBox .um-sheet-title{
  margin:2px 0 8px !important;
  font-family:"Playfair Display",serif !important;
  font-size:clamp(24px, 2.2vw, 32px) !important;
  line-height:1.02 !important;
  letter-spacing:-.02em !important;
  color:var(--um-ink) !important;
}

/* fila seleccionado */
#sheetBox .um-selected-row,
#sheetBox .selected-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 14px;
  margin:0 0 10px !important;
  font-size:14px !important;
  color:var(--um-muted);
}

#selDateLabel,
#selTimeLabel{
  font-size:18px !important;
  font-weight:800 !important;
  color:#344054 !important;
  letter-spacing:-.01em;
}

/* textos auxiliares */
#sheetBox p,
#sheetBox .um-mode-note,
#sheetBox .mode-note{
  font-size:14px !important;
  line-height:1.45 !important;
  color:var(--um-muted) !important;
  margin:0 0 10px !important;
}

/* labels */
#sheetBox .um-field > label,
#sheetBox .field > label,
#sheetBox label.small,
#sheetBox label:not(:has(input[name="mode"])):not(:has(#acceptPolicy)){
  display:block;
  margin:0 0 7px !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:#5b6473 !important;
  letter-spacing:-.01em;
}

/* inputs */
#sheetBox input[type="text"],
#sheetBox input[type="email"],
#sheetBox input[type="tel"],
#sheetBox input[type="number"],
#sheetBox textarea,
#sheetBox select{
  width:100%;
  border:1px solid rgba(209,213,219,.72) !important;
  background:rgba(255,255,255,.52) !important;
  color:#334155 !important;
  border-radius:16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#sheetBox input[type="text"],
#sheetBox input[type="email"],
#sheetBox input[type="tel"],
#sheetBox input[type="number"],
#sheetBox select{
  height:48px !important;
  padding:0 14px !important;
  font-size:15px !important;
}

#sheetBox textarea{
  min-height:108px !important;
  padding:12px 14px !important;
  font-size:15px !important;
  resize:vertical;
}

#sheetBox input::placeholder,
#sheetBox textarea::placeholder{
  color:#98a2b3;
}

#sheetBox input:focus,
#sheetBox textarea:focus,
#sheetBox select:focus{
  border-color:rgba(211,47,47,.34) !important;
  background:rgba(255,255,255,.72) !important;
  box-shadow:
    0 0 0 4px rgba(211,47,47,.08),
    0 10px 22px rgba(211,47,47,.07) !important;
  transform:translateY(-1px);
}

/* helper */
#sheetBox small,
#sheetBox .um-help,
#sheetBox .help-text{
  display:block;
  margin-top:6px !important;
  font-size:12px !important;
  color:#8a94a6 !important;
}

/* campos */
#sheetBox .um-field,
#sheetBox .field{
  margin-bottom:12px !important;
}

/* modalidades */
#sheetBox .um-modes,
#sheetBox .modes-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 10px !important;
}

#sheetBox label:has(input[name="mode"]){
  position:relative;
  display:inline-flex !important;
  align-items:center;
  gap:10px;
  height:46px !important;
  min-width:132px !important;
  padding:0 14px !important;
  margin:0 8px 8px 0 !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.46) !important;
  background:rgba(255,255,255,.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 8px 20px rgba(15,23,42,.07) !important;
  color:#445064 !important;
  overflow:hidden;
  cursor:pointer;
  user-select:none;
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, opacity .18s ease;
}

#sheetBox label:has(input[name="mode"])::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 20%, rgba(255,255,255,.24) 50%, transparent 80%);
  transform:translateX(-120%);
  transition:transform .7s ease;
  pointer-events:none;
}

#sheetBox label:has(input[name="mode"]):hover::before{
  transform:translateX(120%);
}

#sheetBox label:has(input[name="mode"]) input{
  appearance:none;
  -webkit-appearance:none;
  width:18px !important;
  height:18px !important;
  margin:0 !important;
  border-radius:50%;
  border:1.5px solid rgba(148,163,184,.65) !important;
  background:rgba(255,255,255,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  position:relative;
  flex:0 0 18px !important;
}

#sheetBox label:has(input[name="mode"]) input::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background:transparent;
  transform:scale(.65);
  opacity:0;
  transition:.2s ease;
}

/* activa */
#sheetBox label:has(input[name="mode"]:checked),
#sheetBox label.is-selected{
  color:#1f2937 !important;
  border-color:rgba(211,47,47,.26) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,247,247,.60)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 10px 24px rgba(211,47,47,.11) !important;
  animation:umModeBreath 2.2s ease-in-out infinite;
}

#sheetBox label:has(input[name="mode"]:checked) input,
#sheetBox label.is-selected input{
  border-color:rgba(211,47,47,.72) !important;
  background:rgba(255,255,255,.72) !important;
  box-shadow:0 0 0 4px rgba(211,47,47,.10) !important;
}

#sheetBox label:has(input[name="mode"]:checked) input::after,
#sheetBox label.is-selected input::after{
  background:linear-gradient(180deg, var(--um-red-2), var(--um-red));
  opacity:1;
  transform:scale(1);
}

#sheetBox label:has(input[name="mode"]:checked)::after,
#sheetBox label.is-selected::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, rgba(211,47,47,.92), transparent);
  opacity:.9;
  animation:umActiveLine 1.8s ease-in-out infinite;
}

/* apagada */
#sheetBox label:has(input[name="mode"]:disabled),
#sheetBox label.is-off{
  opacity:.42 !important;
  filter:grayscale(.10);
  background:rgba(255,255,255,.18) !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25) !important;
  cursor:not-allowed;
  pointer-events:none;
}

/* política */
#policyWrap{
  margin-top:12px !important;
  padding:14px 16px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.42) !important;
  background:rgba(255,255,255,.36) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
}

#policyWrap label{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 !important;
  font-size:14px !important;
  line-height:1.42 !important;
  color:#344054 !important;
}

#acceptPolicy{
  appearance:none;
  -webkit-appearance:none;
  width:20px !important;
  height:20px !important;
  margin-top:1px !important;
  border-radius:6px !important;
  border:1.5px solid rgba(100,116,139,.65) !important;
  background:rgba(255,255,255,.6) !important;
  position:relative;
  flex:0 0 20px !important;
}

#acceptPolicy:checked{
  border-color:rgba(211,47,47,.8) !important;
  background:linear-gradient(180deg, var(--um-red-2), var(--um-red)) !important;
  box-shadow:0 0 0 4px rgba(211,47,47,.10) !important;
}

#acceptPolicy:checked::after{
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:5px;
  height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

#policyWrap a{
  color:var(--um-red) !important;
  text-decoration:none;
  font-weight:800 !important;
}

#policyWrap a:hover{ text-decoration:underline; }

#policyErr{
  margin-top:8px !important;
  font-size:13px !important;
  color:#c8281d !important;
}

#policyWrap.um-policy-wrap-error{
  border-color:rgba(211,47,47,.30) !important;
  background:rgba(255,246,245,.62) !important;
}

/* footer */
#sheetBox .actions,
#sheetBox .um-sheet-footer,
#sheetBox .modal-actions,
#sheetBox .sheet-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px !important;
  padding-top:14px !important;
  border-top:1px solid rgba(148,163,184,.20) !important;
}

#btnCancel,
#btnConfirm{
  height:48px !important;
  min-width:150px !important;
  padding:0 18px !important;
  border-radius:16px !important;
  font-size:15px !important;
  font-weight:800 !important;
  letter-spacing:-.01em;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

#btnCancel{
  border:1px solid rgba(148,163,184,.28) !important;
  background:rgba(255,255,255,.46) !important;
  color:#243041 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#btnConfirm{
  border:1px solid rgba(211,47,47,.28) !important;
  color:#fff !important;
  background:linear-gradient(135deg, #df3b32 0%, #D32F2F 55%, #bf2626 100%) !important;
  box-shadow:
    0 10px 22px rgba(211,47,47,.22),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

#btnCancel:hover,
#btnConfirm:hover{
  transform:translateY(-1px);
}

#btnConfirm:disabled{
  opacity:.58 !important;
  box-shadow:none !important;
  cursor:not-allowed;
}

/* animación modalidad */
@keyframes umModeBreath{
  0%,100%{
    transform:translateY(0);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.72),
      0 10px 24px rgba(211,47,47,.10);
  }
  50%{
    transform:translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.78),
      0 14px 28px rgba(211,47,47,.16);
  }
}

@keyframes umActiveLine{
  0%,100%{ opacity:.42; transform:scaleX(.76); }
  50%{ opacity:1; transform:scaleX(1); }
}

/* mobile */
@media (max-width: 900px){
  #sheetBox,
  #sheetBox.sheet{
    width:calc(100vw - 14px) !important;
    max-height:calc(100vh - 14px) !important;
    padding:14px 14px 12px !important;
    border-radius:22px !important;
  }

  #sheetClose,
  #sheetBox #sheetClose.x{
    width:40px !important;
    height:40px !important;
    border-radius:13px !important;
  }

  #sheetBox h1,
  #sheetBox h2,
  #sheetBox .um-sheet-title{
    font-size:26px !important;
  }

  #sheetBox .um-selected-row,
  #sheetBox .selected-row{
    font-size:13px !important;
    gap:7px 10px !important;
  }

  #selDateLabel,
  #selTimeLabel{
    font-size:16px !important;
  }

  #sheetBox input[type="text"],
  #sheetBox input[type="email"],
  #sheetBox input[type="tel"],
  #sheetBox input[type="number"],
  #sheetBox select{
    height:46px !important;
    font-size:14px !important;
  }

  #sheetBox textarea{
    min-height:100px !important;
    font-size:14px !important;
  }

  #sheetBox label:has(input[name="mode"]){
    min-width:0 !important;
    height:44px !important;
    padding:0 12px !important;
    gap:8px !important;
    font-size:13px !important;
  }

  #btnCancel,
  #btnConfirm{
    height:46px !important;
    font-size:14px !important;
  }
}

@media (max-width: 640px){
  #sheetBox .actions,
  #sheetBox .um-sheet-footer,
  #sheetBox .modal-actions,
  #sheetBox .sheet-actions{
    flex-direction:column-reverse !important;
  }

  #btnCancel,
  #btnConfirm{
    width:100% !important;
    min-width:0 !important;
  }

  #sheetBox label:has(input[name="mode"]){
    width:100% !important;
    justify-content:flex-start !important;
    margin-right:0 !important;
  }
}
/* =========================================================
   OVERRIDE FINAL — modal 30% más chico + sin scroll interno
   Pegar al FINAL de umana_skin.css
   ========================================================= */

#sheetBox,
#sheetBox.sheet{
  width: min(620px, calc(100vw - 24px)) !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 12px 14px 12px !important;
  border-radius: 20px !important;

  /* evita el "scrollbox" interno */
  top: 12px !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
}

/* título */
#sheetBox h1,
#sheetBox h2,
#sheetBox .um-sheet-title{
  font-size: clamp(21px, 2vw, 26px) !important;
  line-height: 1.02 !important;
  margin: 2px 0 6px !important;
}

/* fila seleccionado */
#sheetBox .um-selected-row,
#sheetBox .selected-row{
  gap: 6px 10px !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
}

#selDateLabel,
#selTimeLabel{
  font-size: 16px !important;
}

/* textos */
#sheetBox p,
#sheetBox .um-mode-note,
#sheetBox .mode-note{
  font-size: 13px !important;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
}

/* campos */
#sheetBox .um-field,
#sheetBox .field{
  margin-bottom: 10px !important;
}

#sheetBox .um-field > label,
#sheetBox .field > label,
#sheetBox label.small,
#sheetBox label:not(:has(input[name="mode"])):not(:has(#acceptPolicy)){
  margin: 0 0 6px !important;
  font-size: 12px !important;
}

/* inputs */
#sheetBox input[type="text"],
#sheetBox input[type="email"],
#sheetBox input[type="tel"],
#sheetBox input[type="number"],
#sheetBox select{
  height: 40px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  border-radius: 13px !important;
}

#sheetBox textarea{
  min-height: 82px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  border-radius: 13px !important;
}

/* pills modalidad */
#sheetBox .um-modes,
#sheetBox .modes-row{
  gap: 8px !important;
  margin: 6px 0 8px !important;
}

#sheetBox label:has(input[name="mode"]){
  height: 38px !important;
  min-width: 118px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  font-size: 13px !important;
  margin: 0 6px 6px 0 !important;
  border-radius: 999px !important;
}

#sheetBox label:has(input[name="mode"]) input{
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}

/* política */
#policyWrap{
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

#policyWrap label{
  font-size: 13px !important;
  line-height: 1.35 !important;
  gap: 10px !important;
}

#acceptPolicy{
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

#policyErr{
  margin-top: 6px !important;
  font-size: 12px !important;
}

/* footer */
#sheetBox .actions,
#sheetBox .um-sheet-footer,
#sheetBox .modal-actions,
#sheetBox .sheet-actions{
  gap: 8px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
}

#btnCancel,
#btnConfirm{
  height: 40px !important;
  min-width: 132px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  border-radius: 13px !important;
}

/* cerrar */
#sheetClose,
#sheetBox #sheetClose.x{
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

/* mobile */
@media (max-width: 640px){
  #sheetBox,
  #sheetBox.sheet{
    width: calc(100vw - 12px) !important;
    top: 6px !important;
    padding: 10px 10px 10px !important;
    border-radius: 18px !important;
  }

  #sheetBox h1,
  #sheetBox h2,
  #sheetBox .um-sheet-title{
    font-size: 20px !important;
  }

  #sheetBox input[type="text"],
  #sheetBox input[type="email"],
  #sheetBox input[type="tel"],
  #sheetBox input[type="number"],
  #sheetBox select{
    height: 38px !important;
    font-size: 13px !important;
  }

  #sheetBox textarea{
    min-height: 72px !important;
    font-size: 13px !important;
  }

  #sheetBox label:has(input[name="mode"]){
    height: 36px !important;
    min-width: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    font-size: 12.5px !important;
  }

  #btnCancel,
  #btnConfirm{
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    font-size: 13px !important;
  }
}