/* ==========================================================================
   TOTALNET FLOW (Front) — UI (Responsive + iOS safe) 222-2
   ========================================================================== */

.tnflow, .tnflow * { box-sizing: border-box; }

.tnflow{
  --tn-primary: #f00c45;
  --tn-secondary: #698bf8;
  --tn-ink: #0f172a;
  --tn-wa: #25D366;
  --tn-precio-final: #1A1A1A;
  --tn-muted: #484848;
  --tn-border: rgba(15, 23, 42, .10);
  --tn-surface: rgba(255,255,255,.92);
  --tn-shadow: 0 14px 40px rgba(2, 6, 23, .12);

  --tn-radius: 18px;
  --tn-radius-sm: 12px;

  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--tn-ink);

  /* Anti-desborde global (URLs largas, etc.) */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* App wrapper */
.tn-app{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 16px 32px;
  overflow-x: hidden; /* clave para iPhone/Elementor */
}

/* Topbar */
.tn-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .08);
  margin-bottom: 14px;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .tn-topbar{ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.tn-brand{ font-weight: 800; letter-spacing: .2px; font-size: 18px; }
.tn-help{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--tn-muted);
  font-size: 13px;
}
.tn-help a{
  color: var(--tn-secondary);
  text-decoration: none;
  font-weight: 700;
}
.tn-help a:hover{ text-decoration: underline; }

/* Stepper (Desktop / Tablet) */
.tn-stepper{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}
.tn-step{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--tn-border);
  background: rgba(255,255,255,.75);
  min-height: 56px;
  min-width: 0;
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))){
  .tn-step{ backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.tn-step-num{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 13px;
  background: rgba(15, 23, 42, .06);
  color: var(--tn-ink);
  flex: 0 0 auto;
}
.tn-step-label{
  font-weight: 700;
  font-size: 12px;
  color: #4c4c4c;
  line-height: 1.1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tn-step.is-active{
  border-color: rgba(240, 12, 69, .30);
  box-shadow: 0 10px 22px rgba(240, 12, 69, .10);
}
.tn-step.is-active .tn-step-num{ background: var(--tn-primary); color: #fff; }
.tn-step.is-active .tn-step-label{ color: var(--tn-ink); }
.tn-step.is-done .tn-step-num{
  background: rgba(105, 139, 248, .18);
  color: var(--tn-secondary);
}
.tn-step.is-complete{
  border-color: rgba(22, 163, 74, .35);
  box-shadow: 0 10px 24px rgba(22, 163, 74, .16);
}
.tn-step.is-complete .tn-step-num{
  background: #16a34a;
  color: #fff;
}
.tn-step.is-complete .tn-step-label{
  color: #0f5132;
  font-weight: 800;
}

/* Progress */
.tn-progress{
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  margin: 4px 0 12px;
}
.tn-progress-bar{
  position:absolute;
  left:0;
  top:0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f00c45, #698bf8);
  transition: width .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tn-confetti-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Stepper (Mobile: solo paso activo) */
@media (max-width: 640px){
  .tn-stepper{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tn-step{
    display: none;
    width: 100%;
  }
  .tn-step.is-active{
    display: flex;
  }
  .tn-step-label{
    white-space: normal;
  }
}

/* Titles */
.tn-title{
  margin: 12px 0 6px;
  font-size: clamp(22px, 4.2vw, 22px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: #3B3B3B;
}
.tn-subtitle{
  margin: 0 0 14px;
  color: var(--tn-muted);
  font-size: clamp(14px, 1.7vw, 16px);
}

/* Surfaces */
.tn-surface{
  background: var(--tn-surface);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: var(--tn-shadow);
  padding: 18px;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .tn-surface{ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* Forms */
.tn-form{ width: 100%; }
.tn-field{ margin-bottom: 12px; }
.tn-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, .75);
  margin-bottom: 6px;
}
.tn-input{
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  outline: none;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  max-width: 100%;
}
.tn-hint{
  margin-top: 6px;
  color: var(--tn-muted);
  font-size: 13px;
  line-height: 1.35;
}
.tn-hint.is-error{
  color: #dc2626;
  font-weight: 700;
}
.tn-error{
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
}
.tn-input:focus{
  border-color: rgba(105, 139, 248, .50);
  box-shadow: 0 0 0 4px rgba(105, 139, 248, .12);
}
.tn-input-row{
  display:flex;
  align-items:stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.tn-input-shell{
  position: relative;
  flex: 1 1 260px;
}
.tn-input-inline{
  padding-left: 40px;
  height: 100%;
}
.tn-input-shell .tn-input-inline{
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.tn-input-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .6;
}
.tn-btn-inline{
  flex: 0 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  min-height: 48px;
}
.tn-input-row .tn-input-shell + .tn-btn-inline{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.tn-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Actions / Buttons */
.tn-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Buttons (consolidado) */
.tnflow .tn-btn,
.tnflow button.tn-btn,
.tnflow a.tn-btn{
  appearance:none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .2px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
  user-select:none;
  border: 1.6px solid rgba(240, 12, 69, .42) !important;
  background-clip: padding-box;
  max-width: 100%;
}
.tnflow .tn-btn:active{ transform: translateY(1px); }
.tnflow .tn-btn[disabled]{ opacity:.55; cursor:not-allowed; }
.tnflow .tn-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 12, 69, .12);
}
.tn-link-btn{
  appearance: none;
  border: none;
  background: none;
  color: var(--tn-secondary);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}
.tn-link-btn:hover{ color: var(--tn-primary); }

/* Primary */
.tnflow .tn-btn-primary,
.tnflow button.tn-btn-primary,
.tnflow a.tn-btn-primary{
  background: var(--tn-primary) !important;
  color:#fff !important;
  box-shadow: 0 12px 26px rgba(37, 211, 102, .22);
}
.tnflow .tn-btn-primary:hover{ box-shadow: 0 14px 34px rgba(37, 211, 102, .28); }

/* Secondary */
.tnflow .tn-btn-secondary,
.tnflow button.tn-btn-secondary,
.tnflow a.tn-btn-secondary{
  background: rgba(255,255,255,.92) !important;
  color: var(--tn-ink) !important;
  border-color: rgba(240, 12, 69, .42) !important;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
}
.tnflow .tn-btn-secondary:hover{
  background: rgba(240, 12, 69, .06) !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .08);
}

/* FIX links (Elementor) */
.tnflow a.tn-btn,
.tnflow a.tn-btn:link,
.tnflow a.tn-btn:visited{ color: inherit; }
.tnflow a.tn-btn-primary,
.tnflow a.tn-btn-primary:link,
.tnflow a.tn-btn-primary:visited,
.tnflow a.tn-btn-primary:hover,
.tnflow a.tn-btn-primary:active{ color:#fff !important; }

/* Autocomplete */
.tn-autocomplete{ position: relative; }
.tn-dropdown{
  position:absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, .18);
  overflow:hidden;
  max-width: 100%;
}
.tn-dd-item{
  padding: 12px 12px;
  cursor:pointer;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.tn-dd-item:last-child{ border-bottom: 0; }
.tn-dd-item:hover{ background: rgba(105, 139, 248, .08); }
.tn-dd-main{ font-weight: 900; font-size: 13px; color: var(--tn-ink); }
.tn-dd-sub{ font-size: 12px; color: var(--tn-muted); margin-top: 2px; }

/* Cards grid (Plans / Extras) */
.tn-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tn-card{
  position: relative;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .08);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  min-height: 240px;
  display:flex;
  flex-direction: column;
  max-width: 100%;
}
.tn-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .12);
}
.tn-card.is-selected{
  border-color: rgba(240, 12, 69, .35);
  box-shadow: 0 16px 44px rgba(240, 12, 69, .18);
  background: linear-gradient(180deg, rgba(240,12,69,.04), rgba(255,255,255,.92));
}
.tn-tag{
  position:absolute;
  top: 12px;
  right: 12px;
  background: rgba(105, 139, 248, .18);
  color: #1e3a8a;
  border: 1px solid rgba(105, 139, 248, .24);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.tn-card-title{ margin: 6px 0 4px; font-size: 16px; font-weight: 750; }
.tn-card-sub{ margin: 0 0 10px; color: var(--tn-muted); font-size: 13px; }
.tn-price{
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 950;
  letter-spacing: -0.2px;
  margin: 4px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tn-price small{ font-size: 12px; font-weight: 800; color: var(--tn-muted); }
.tn-price-normal{
  font-size: 14px;
  font-weight: 700;
  color: var(--tn-muted);
  text-decoration: line-through;
}
.tn-price-now{
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tn-discount-badge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(240, 12, 69, .10);
  color: #b4234d;
  font-size: 12px;
  font-weight: 800;
}
.tn-contract-term{
  color: var(--tn-muted);
  font-size: 13px;
  font-weight: 600;
}
.tn-divider{ height: 1px; background: rgba(15, 23, 42, .10); margin: 14px 0; }
.tn-card-footer{ margin-top:auto; display:flex; justify-content:flex-end; }

/* FEATURES: checks verdes en cada característica (sin tocar badge) */
.tn-list{
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(15,23,42,.78);
  font-size: 13px;
  line-height: 1.45;
}
.tn-list li{
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}
.tn-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 900;
  color: #10b981;
}
.tn-list-simple li::before{
  content: none;
}
.tn-list.tn-list-compact li{ margin: 4px 0; }
.tn-muted-strong{ color: var(--tn-ink); font-weight: 700; }
.tn-install-row{ background: rgba(16, 185, 129, .04); padding: 12px; border-radius: 12px; }
.tn-consent{
  display:flex;
  gap: 8px;
  align-items:center;
  font-weight: 800;
  margin-top: 12px;
}
.tn-consent input{ width: 18px; height: 18px; }
.tn-ref-field{
  margin-bottom: 18px;
}
.tn-ref-display{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.tn-ref-value{
  font-weight: 800;
  color: var(--tn-ink);
}
.tn-label-inline{
  margin: 0 0 4px;
  display:block;
}
.tn-ref-row{
  display:flex;
  gap: 10px;
  align-items:center;
}
.tn-ref-row .tn-input{
  flex: 1 1 auto;
}
.tn-ref-surface{
  margin-bottom: 14px;
}

/* Cart */
.tn-cart{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  margin-top: 12px;
}
.tn-cart-panel{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .08);
  max-width: 100%;
}
.tn-cart-title{ font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.tn-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.tn-row:last-child{ border-bottom: 0; }
.muted{ color: var(--tn-muted); font-size: 13px; }
.tn-total{ font-size: 22px; font-weight: 960; color: var(--tn-precio-final); }

/* Alerts */
.tn-alert{
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .10);
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(15, 23, 42, .88);
  font-size: 13px;
}
.tn-alert.is-bad{ background: rgba(240, 12, 69, .08); border-color: rgba(240, 12, 69, .20); }
.tn-alert.is-good{ background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .22); }
.tn-alert-title{ font-weight: 650; margin-bottom: 6px; }
.tn-alert-note{ margin-top: 10px; opacity: .9; }
.tn-surface-success{
  background: linear-gradient(180deg, rgba(240,12,69,.02), #fff);
}
.tn-success-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.tn-success-main{
  background: rgba(255,255,255,.9);
  border: 1px dashed rgba(15,23,42,.12);
  border-radius: 14px;
  padding: 14px;
}
.tn-success-title{ font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.tn-success-sub{ margin: 0 0 8px; color: var(--tn-muted); }
.tn-success-steps{
  margin: 0;
  padding-left: 18px;
  color: rgba(15,23,42,.82);
  line-height: 1.55;
}
.tn-success-side .tn-kv + .tn-kv{ margin-top: 10px; }
.tn-success-block{
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  padding: 14px;
}
.tn-success-actions{
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.tn-ico-wa{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #25d366;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  font-weight: 900;
  margin-right: 8px;
  position: relative;
}
.tn-ico-wa::before{
  content: "✆";
  font-size: 12px;
}
.tn-btn-wa{
  box-shadow: 0 12px 26px rgba(37, 211, 102, .22);
}
.tn-highlight{
  background: linear-gradient(120deg, rgba(16,185,129,.10), rgba(255,255,255,.95));
  border: 1px solid rgba(16, 185, 129, .18);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tn-install__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.tn-install__title{ font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tn-install__status{ font-weight: 600; color: #065f46; }
.tn-install__status.is-free{ color: #047857; }
.tn-install__pill{
  background: #ecfdf3;
  color: #16a34a;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, .25);
  font-weight: 500;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.tn-modal{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 100000;
  animation: tnModalFadeIn .28s ease-out forwards;
}
.tn-modal-box{
  width: min(420px, 96vw);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .28);
  text-align:center;
  transform: scale(.96) translateY(6px);
  opacity: 0;
  animation: tnModalBoxIn .35s cubic-bezier(.16,1,.3,1) forwards;
  position: relative;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))){
  .tn-modal-box{ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.tn-modal-title{
  margin: 10px 0 4px;
  font-weight: 950;
  font-size: 16px;
  opacity: 0;
  transform: translateY(6px);
  animation: tnModalTextIn .35s ease-out .12s forwards;
}
.tn-modal-sub{
  margin: 0;
  color: var(--tn-muted);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  animation: tnModalTextIn .35s ease-out .2s forwards;
}
.tn-loader{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto;
  border: 4px solid rgba(105,139,248,.25);
  border-top-color: var(--tn-secondary);
  position: relative;
  box-shadow: 0 0 0 rgba(105,139,248,0);
  animation: tnspin 1s linear infinite, tnGlow 1.6s ease-in-out infinite;
}
.tn-loader::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border:3px solid rgba(240,12,69,.18);
  border-top-color: transparent;
  animation: tnspinReverse 1.4s linear infinite;
}
.tn-modal-box::after{
  content:"";
  display:block;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105,139,248,.15), rgba(105,139,248,.55), rgba(105,139,248,.15));
  background-size: 200% 100%;
  animation: tnShimmer 1.6s linear infinite;
}
@keyframes tnspin { to { transform: rotate(360deg); } }
@keyframes tnspinReverse{ to{ transform: rotate(-360deg); } }
@keyframes tnModalFadeIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes tnModalBoxIn{ to{ opacity:1; transform: scale(1) translateY(0); } }
@keyframes tnModalTextIn{ to{ opacity:1; transform: translateY(0); } }
@keyframes tnGlow{
  0%{ box-shadow:0 0 0 rgba(105,139,248,0); }
  50%{ box-shadow:0 0 24px rgba(105,139,248,.35); }
  100%{ box-shadow:0 0 0 rgba(105,139,248,0); }
}
@keyframes tnShimmer{ to{ background-position:-200% 0; } }
.tn-modal[aria-hidden="true"]{ animation: tnModalFadeOut .2s ease-in forwards; }
@keyframes tnModalFadeOut{ to{ opacity:0; } }

/* Modal PRO */
.tn-modal.is-done .tn-loader{ display:none; }
.tn-modal-box.tn-v-blue{  --tn-accent: var(--tn-secondary); --tn-accent-soft: rgba(105,139,248,.18); }
.tn-modal-box.tn-v-green{ --tn-accent: #10b981;          --tn-accent-soft: rgba(16,185,129,.16); }
.tn-modal-box.tn-v-red{   --tn-accent: var(--tn-primary); --tn-accent-soft: rgba(240,12,69,.14); }
.tn-modal-box.tn-v-blue .tn-loader{  border: 4px solid rgba(105,139,248,.25); border-top-color: var(--tn-secondary); }
.tn-modal-box.tn-v-green .tn-loader{ border: 4px solid rgba(16,185,129,.25);  border-top-color: #10b981; }
.tn-modal-box.tn-v-red .tn-loader{   border: 4px solid rgba(240,12,69,.22);   border-top-color: var(--tn-primary); }
.tn-modal-mark{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto;
  display:none;
  align-items:center;
  justify-content:center;
  background: var(--tn-accent-soft, rgba(105,139,248,.18));
  border: 1px solid rgba(15,23,42,.10);
}
.tn-modal.is-done .tn-modal-mark{ display:flex; animation: tnPop .22s ease-out; }
.tn-modal-mark svg{
  width: 26px;
  height: 26px;
  stroke: var(--tn-accent, var(--tn-secondary));
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tn-check-path{
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: tnDraw .36s ease-out forwards;
}
@keyframes tnDraw { to { stroke-dashoffset: 0; } }
@keyframes tnPop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   Responsive (mejorado)
   ========================================================================== */

/* Tablets / iPad */
@media (max-width: 1100px){
  .tn-stepper{ grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: stepper scrollable “chips” para que SIEMPRE se vean los 6 pasos */
@media (max-width: 720px){
  .tn-app{ padding: 18px 14px 26px; }

  .tn-topbar{ padding: 12px 14px; }
  .tn-help{ font-size: 12px; gap: 8px; }

  .tn-stepper{
    display:flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    margin: 10px 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .tn-stepper::-webkit-scrollbar{ height: 0; }
  .tn-step{
    flex: 0 0 auto;
    min-width: 190px; /* muestra 1-2 pasos y el resto con swipe */
    scroll-snap-align: start;
  }

  .tn-grid-3{ grid-template-columns: 1fr; }
  .tn-cart{ grid-template-columns: 1fr; }
  .tn-grid-2{ grid-template-columns: 1fr; }

  .tn-surface{ padding: 14px; }
  .tn-card{ min-height: auto; padding: 14px; }

  .tn-actions{
    justify-content: stretch;
  }
  .tn-actions .tn-btn{
    width: 100%;
  }
  .tn-card-footer{
    justify-content: stretch;
  }
  .tn-card-footer .tn-btn{
    width: 100%;
  }
  .tn-input-row{
    flex-direction: column;
  }
  .tn-btn-inline{
    width: 100%;
    border-radius: 14px;
  }
  .tn-input-shell .tn-input-inline{
    border-radius: 14px;
  }
  .tn-success-grid{
    grid-template-columns: 1fr;
  }
}

/* iPhone pequeño / widths muy cortos */
@media (max-width: 420px){
  .tn-step{ min-width: 175px; }
  .tn-input{ padding: 12px 12px; }
}

/* ==========================================================================
   Tus custom rules (se mantienen) wwwww
   ========================================================================== */

/* STEP 2: Check verde sin montarse (forzado) */
.tnflow .tn-title.tn-title-ok{
  position: relative !important;
  display: block !important;
  padding-left: 60px !important;
  line-height: 1.08 !important;
}
.tnflow .tn-title.tn-title-ok::before{
  content: "✓" !important;
  position: absolute !important;
  left: 5px !important;
  top: 0.62em !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(16,185,129,.14) !important;
  border: 1px solid rgba(16,185,129,.35) !important;
  color: #10b981 !important;
  font-weight: 900 !important; /* iOS safe */
  font-size: 22px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/* STEP 2 ONLY: Pin antes de la dirección */
.tnflow .tn-subtitle.tn-subtitle-loc strong{
  position: relative;
  padding-left: 22px;
}




.tnflow .tn-subtitle.tn-subtitle-loc strong{
  position: relative;
  padding-left: 60px; /* espacio para el icono */
}

.tnflow .tn-subtitle.tn-subtitle-loc strong::before{
  content: "";
  position: absolute;
  left: 5px !important;
  top: 0em !important;               /* ajusta finito si lo quieres más arriba/abajo */
  width: 34px;
  height: 34px;
  display: inline-block;

  /* Color del pin */
  background-color: #EF356B;    /* o var(--tn-muted) / var(--tn-ink) */

  /* SVG (pin outline como tu imagen) */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-5.2 7-12a7 7 0 1 0-14 0c0 6.8 7 12 7 12z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-5.2 7-12a7 7 0 1 0-14 0c0 6.8 7 12 7 12z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}



/* =========================================================
   STEP 3: Botón "Seleccionar" (dentro de cards) distinto a "Continuar"
   ========================================================= */

/* Solo afecta botones dentro de las cards (planes/extras) */
.tnflow .tn-card .tn-btn.tn-btn-primary{
  background: var(--tn-secondary) !important;      /* azul */
  border-color: rgba(105, 139, 248, .55) !important;
  box-shadow: 0 12px 26px rgba(105, 139, 248, .18) !important;
}

.tnflow .tn-card .tn-btn.tn-btn-primary:hover{
  box-shadow: 0 14px 34px rgba(105, 139, 248, .24) !important;
}

/* Asegura texto blanco en <a> y <button> */
.tnflow .tn-card a.tn-btn.tn-btn-primary,
.tnflow .tn-card button.tn-btn.tn-btn-primary{
  color:#fff !important;
}


/* =========================================================
   CHECK de selección (Planes / Extras) — SOLO agregar
   ========================================================= */

/* Asegura capas: tag abajo, check arriba */
.tnflow .tn-tag{ position:absolute; z-index: 2; }

.tnflow .tn-card.is-selected::after{
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(105,139,248,.16);
  border: 1px solid rgba(105,139,248,.35);
  color: var(--tn-secondary);

  font-weight: 950;
  font-size: 20px;
  line-height: 1;

  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  z-index: 3;
  pointer-events: none;
}
