/* =========================================================
   TOTAL CLEAN — Wizard CSS (LIMPIO)
   Basado en tc-wizard.css actual, reorganizado y sin duplicados
   ========================================================= */

/* -------------------------
   Layout general
-------------------------- */
.tc-wizard2{
  max-width:1180px;
  margin:0 auto;
  padding:18px;
}

.tc-grid{
  display:grid;
  grid-template-columns:1.6fr .9fr;
  gap:22px;
  align-items:start;
}

@media (max-width:980px){
  .tc-grid{ grid-template-columns:1fr; }
  .tc-right{ position:static; }
}

/* -------------------------
   Hero
-------------------------- */
.tc-hero{
  border-radius:18px;
  padding:34px;
  background:rgba(0,0,0,.45);
  color:#fff;
  margin-bottom:22px;
}
.tc-hero h1{
  margin:0;
  font-size:44px;
  line-height:1.05;
}
.tc-hero p{
  margin-top:10px;
  opacity:.9;
  max-width:760px;
}

/* -------------------------
   Cards / steps
-------------------------- */
.tc-cardstep{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:18px;
  box-shadow:0 6px 22px rgba(0,0,0,.05);
  margin:0 0 20px 0;
}

.tc-stephead{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.tc-stepnum{
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.06);
  font-weight:700;
}

.tc-row{ margin-top:12px; }
.tc-row label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}
.tc-row input,
.tc-row select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
}

.tc-hint{ opacity:.75; margin-top:8px; }
.tc-muted{ opacity:.75; margin-top:6px; }
.tc-small{ font-size:12px; }

/* -------------------------
   Errores / mensajes
-------------------------- */
.tc-errors{
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(200,0,0,.20);
  background:rgba(200,0,0,.05);
  border-radius:14px;
}

/* -------------------------
   Botones
-------------------------- */
.tc-cta{
  width:100%;
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  border:none;
  background:#0b63ff;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.tc-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
}
.tc-actions button{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}
.tc-actions button#tc_next,
.tc-actions button#tc_next_2,
.tc-actions button#tc_next_3,
.tc-actions button#tc_next_4,
.tc-actions button#tc_confirm{
  background:#0b63ff;
  color:#fff;
  border-color:transparent;
}

/* -------------------------
   Sidebar resumen
-------------------------- */
.tc-right{
  position:sticky;
  top:18px;
}

.tc-summarycard{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:18px;
  box-shadow:0 6px 22px rgba(0,0,0,.05);
  margin:0 0 20px 0;
}

.tc-sumrows{ margin-top:14px; }

/* Compatibilidad: tu HTML actual usa .tc-srow/.tc-skey/.tc-sval */
.tc-srow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.tc-srow:last-child{ border-bottom:none; }

.tc-skey{
  font-size:13px;
  opacity:.75;
}
.tc-sval{
  font-size:13px;
  font-weight:700;
  text-align:right;
}

.tc-sumprice{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.08);
  font-size:22px;
  font-weight:800;
}

/* Bloques de precio (si el JS los pinta) */
.tc-price-total{
  font-size:28px;
  font-weight:700;
  line-height:1.1;
}
.tc-price-sub{
  margin-top:6px;
  opacity:.7;
  font-size:13px;
  line-height:1.25;
}
.tc-price-unit{
  font-size:14px;
  font-weight:600;
  opacity:.75;
}

/* Desglose opcional */
#tc_side_price .tc-price-breakdown{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
  font-size:13px;
  line-height:1.25;
  opacity:.9;
}
#tc_side_price .tc-price-breakdown .tc-price-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:4px 0;
}
#tc_side_price .tc-price-breakdown .tc-price-line span:first-child{
  opacity:.8;
  font-weight:500;
}
#tc_side_price .tc-price-breakdown .tc-price-line span:last-child{
  font-weight:600;
  white-space:nowrap;
}
#tc_side_price strong{ font-weight:600; }

/* -------------------------
   Módulo 1: Modalidad (segmentado)
-------------------------- */
.tc-mod .tc-modgrid{
  display:flex;
  gap:12px;
  margin-top:12px;
  padding:10px;
  background:#f1f4f8;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
}

.tc-mod .tc-modopt{
  flex:1;
  margin:0;
  cursor:pointer;
}

.tc-mod .tc-modopt input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.tc-mod .tc-modbox{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-height:56px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}

.tc-mod .tc-modtitle{
  font-weight:700;
  line-height:1.1;
}

.tc-mod .tc-modtext{
  opacity:.70;
  font-size:13px;
  line-height:1.2;
}

.tc-mod .tc-modopt input:checked + .tc-modbox{
  border-color: rgba(11,99,255,.35);
  box-shadow: 0 0 0 3px rgba(11,99,255,.12);
}

.tc-mod .tc-modhint{
  margin-top:10px;
  font-size:13px;
  opacity:.75;
}

/* -------------------------
   Módulo 2: Espacios (cards)
-------------------------- */
.tc-spacegrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}

/* En el wizard nuevo, el módulo espacios usa 3 columnas en desktop */
.tc-space .tc-spacegrid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width:980px){
  .tc-space .tc-spacegrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:520px){
  .tc-space .tc-spacegrid{ grid-template-columns: 1fr; }
}

.tc-spacecard{
  text-align:left;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  background:#fff;
  padding:10px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position:relative;
  overflow:hidden;
}

.tc-spacecard:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  background:#d3d5d9;
}

.tc-spacecard.is-disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* Selección: soporta is-selected y is-active */
.tc-spacecard.is-selected,
.tc-spacecard.is-active{
  border-color:#0b63ff;
  box-shadow: 0 0 0 3px rgba(11,99,255,.12);
  background:#f5f7fa;
}

/* Check esquina (sin iconos externos) */
.tc-spacecard.is-selected::after,
.tc-spacecard.is-active::after{
  content:"";
  position:absolute;
  top:12px;
  right:12px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#0b63ff;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.tc-spacecard.is-selected::before,
.tc-spacecard.is-active::before{
  content:"";
  position:absolute;
  top:19px;
  right:19px;
  width:10px;
  height:6px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform: rotate(-45deg);
  z-index:2;
}

.tc-spaceimg{
  width:100%;
  height:140px;
  border-radius:12px;
  background-size:cover;
  background-position:center;
  background-color:#f2f2f2;
}

.tc-spacename{
  margin-top:10px;
  font-weight:700;
  text-align:center;
  color:#111827;
}
.tc-spacename__text{ color:#111827; }

/* -------------------------
   Tooltip (ÚNICO)
   Usa data-tip en el span.tc-tooltip
-------------------------- */
.tc-spacegrid,
.tc-spacecard,
.tc-spacename{
  overflow: visible;
}

.tc-tooltip{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(0,0,0,.06);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  z-index: 5;
}

.tc-tooltip::before{ content: "i"; }

.tc-tooltip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.tc-tooltip:hover::after,
.tc-tooltip:focus::after{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------
   Módulo 3: Tipo de limpieza
-------------------------- */
.tc-choicegrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:12px;
}
@media (max-width:720px){
  .tc-choicegrid{ grid-template-columns:1fr; }
}

.tc-choice input{ display:none; }

.tc-choicebox{
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
  min-height:120px;
}

.tc-choicetag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  font-weight:600;
  font-size:18px;
  margin-bottom:10px;
}

.tc-choicetext{ margin-top:6px; opacity:.75; }

.tc-choice input:checked + .tc-choicebox{
  border-color:#0b63ff;
  box-shadow:0 0 0 3px rgba(11,99,255,.12);
}

/* -------------------------
   Calendario
-------------------------- */
.tc-cal{
  margin-top:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:12px;
}

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

.tc-calnav button{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}

.tc-calgrid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
}

.tc-day{
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
  text-align:center;
}

.tc-day.is-disabled{
  opacity:.35;
  cursor:not-allowed;
}

.tc-day.is-selected{
  border-color:#0b63ff;
  box-shadow:0 0 0 3px rgba(11,99,255,.12);
}

.tc-day small{
  display:block;
  opacity:.7;
  margin-top:4px;
  font-size:11px;
}

/* -------------------------
   Citas (appointments)
-------------------------- */
.tc-appointments{ margin-top:14px; }

.tc-appt-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.tc-appt-row select{
  width:auto;
  min-width:140px;
}

.tc-check{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}

/* -------------------------
   Mapa (Leaflet) — evitar que “se coma” capas externas
-------------------------- */
#tc_map,
#tc_map .leaflet-container{
  position: relative;
  z-index: 1;
}

#tc_map .leaflet-control-container{
  z-index: 2;
  position: relative;
}
/* =========================
   HARDENING Calendario + Citas
   (evita que el theme meta estilos rosa/outline)
========================= */

/* Calendario: asegurar estilo aunque sean botones sin clase */
#tc_cal_grid button,
#tc_cal_grid .tc-day{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: inherit;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  line-height: 1.1;
  font: inherit;
}

#tc_cal_grid button:hover,
#tc_cal_grid .tc-day:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

#tc_cal_grid button:focus,
#tc_cal_grid .tc-day:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,99,255,.12);
}

/* Estado disabled: soporte para class o atributo */
#tc_cal_grid button.is-disabled,
#tc_cal_grid .tc-day.is-disabled,
#tc_cal_grid button:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Estado seleccionado (class típica) */
#tc_cal_grid button.is-selected,
#tc_cal_grid .tc-day.is-selected{
  border-color:#0b63ff;
  box-shadow: 0 0 0 3px rgba(11,99,255,.12);
}

/* Si tu JS mete un <small> dentro */
#tc_cal_grid small{
  display:block;
  opacity:.7;
  margin-top:4px;
  font-size:11px;
}

/* Citas: maqueta robusta aunque el JS no ponga .tc-appt-row */
#tc_appointments_list > *{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Si hay selects dentro (slot AM/PM) */
#tc_appointments_list select{
  width:auto;
  min-width:140px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

/* Botón quitar: aunque venga sin clase */
#tc_appointments_list button{
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

#tc_appointments_list button:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
