/* TuCelebración · Celebración V2 simplificada + ajustes UI V2.5 integrados */

.tc-v2-intro{
  display:grid;gap:4px;margin:0 0 16px;padding:14px 15px;border:1px solid #e4e8ee;
  border-radius:14px;background:#f8fafc;color:#172033
}
.tc-v2-intro strong{font-size:.9rem;line-height:1.25}
.tc-v2-intro span{color:#667085;font-size:.75rem;line-height:1.45}

.tc-v2-advanced-toggle{
  width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;
  margin:12px 0;padding:14px 15px;border:1px solid #dce2ea;border-radius:14px;background:#fff;
  color:#172033;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(15,23,42,.04)
}
.tc-v2-advanced-toggle span{font:800 .86rem/1.25 Inter,system-ui,sans-serif}
.tc-v2-advanced-toggle small{grid-column:1;color:#768195;font:600 .68rem/1.35 Inter,system-ui,sans-serif}
.tc-v2-advanced-toggle b{grid-column:2;grid-row:1/3;font:500 1.35rem/1 Inter,system-ui,sans-serif}
.tc-v2-simplified:not(.tc-v2-advanced-open) [data-tc-v2-advanced="1"]{display:none!important}

/* Barra compacta de ejemplos: nunca crea una tercera columna. */
.tc-v2-presets{
  display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;
  margin:0 0 12px;padding:7px 9px;border:1px solid rgba(218,223,231,.92);border-radius:14px;
  background:rgba(255,255,255,.94);box-shadow:0 6px 20px rgba(15,23,42,.055);overflow:hidden
}
.tc-v2-presets-label{
  flex:0 0 auto;color:#667085;font:800 .68rem/1 Inter,system-ui,sans-serif;text-transform:uppercase;
  letter-spacing:.045em;padding:0 2px
}
.tc-v2-preset-grid{
  display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto;overflow-x:auto;
  overscroll-behavior-inline:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch
}
.tc-v2-preset-grid::-webkit-scrollbar{display:none}

/* V2.5: mismo lenguaje oscuro que Vista previa completa / Pago seguro. */
#tc_editor_wrap .tc-v2-preset-btn,
#tc_editor_wrap .tc-v2-example-full{
  flex:0 0 auto;min-height:34px;padding:8px 11px;border:1px solid #172033!important;border-radius:9px;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#172033,#263244)!important;
  box-shadow:0 7px 18px rgba(23,32,51,.15)!important;cursor:pointer;white-space:nowrap;
  transition:.16s ease;font:800 .69rem/1 Inter,system-ui,sans-serif
}
#tc_editor_wrap .tc-v2-preset-btn:hover,
#tc_editor_wrap .tc-v2-example-full:hover{
  border-color:#101827!important;background:linear-gradient(135deg,#101827,#202c3d)!important;
  box-shadow:0 9px 22px rgba(23,32,51,.22)!important;transform:translateY(-1px)
}
#tc_editor_wrap .tc-v2-preset-btn.is-active{
  border-color:#ff5b72!important;background:linear-gradient(135deg,#0c1422,#172033)!important;
  box-shadow:0 0 0 2px rgba(255,91,114,.28),0 10px 24px rgba(15,23,42,.28)!important
}
#tc_editor_wrap .tc-v2-preset-btn.is-active span{color:#fff!important;-webkit-text-fill-color:#fff!important}

.tc-v2-preset-status{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}

/* V2.5: barra de progreso con contraste alto, sin tocar su lógica. */
#tc_editor_wrap .tc-editor-progress-steps button,
#tc_editor_wrap .tc-editor-progress-steps button.is-optional,
#tc_editor_wrap .tc-editor-progress-steps button.is-complete{
  border-color:#263244!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#172033,#263244)!important
}
#tc_editor_wrap .tc-editor-progress-steps button:hover{
  border-color:#101827!important;background:linear-gradient(135deg,#101827,#202c3d)!important
}
#tc_editor_wrap .tc-editor-progress-steps button::before{background:rgba(255,255,255,.55)!important}
#tc_editor_wrap .tc-editor-progress-steps button.is-complete{
  border-color:#22c55e!important;box-shadow:inset 0 0 0 1px rgba(34,197,94,.16)!important
}
#tc_editor_wrap .tc-editor-progress-steps button.is-complete::before{background:#22c55e!important}

#tc_editor_wrap .tc-save-progress-btn,
#tc_editor_wrap .tc-save-progress-btn:visited{
  border-color:#172033!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#172033,#263244)!important;box-shadow:0 10px 22px rgba(23,32,51,.16)!important
}
#tc_editor_wrap .tc-save-progress-btn:hover{
  border-color:#101827!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:linear-gradient(135deg,#101827,#202c3d)!important
}

#tc_editor_wrap .tc-v2-preset-btn:focus-visible,
#tc_editor_wrap .tc-v2-example-full:focus-visible,
#tc_editor_wrap .tc-editor-progress-steps button:focus-visible,
#tc_editor_wrap .tc-save-progress-btn:focus-visible{
  outline:3px solid rgba(255,91,114,.32)!important;outline-offset:2px!important
}

@media(max-width:700px){
  .tc-v2-presets{gap:5px;margin-bottom:9px;padding:6px;border-radius:12px}
  .tc-v2-presets-label{display:none}
  .tc-v2-preset-grid{gap:5px;overflow-x:auto!important}
  #tc_editor_wrap .tc-v2-preset-btn,
  #tc_editor_wrap .tc-v2-example-full{flex:0 0 auto!important;min-width:max-content;min-height:32px;padding:7px 10px;font-size:.65rem}
}
