/* Sistema interno de valoracion - pagina WPresidence */

body.tn-valuation-page {
  background: #f7f8fc !important;
}

body.tn-valuation-page h1.entry-title,
body.tn-valuation-page .breadcrumb_container,
body.tn-valuation-page #secondary,
body.tn-valuation-page .sidebar,
body.tn-valuation-page .widget-area,
body.tn-valuation-page #primary.widget-area-sidebar,
body.tn-valuation-page .widget-area-sidebar,
body.tn-valuation-page #advanced_search_widget-1,
body.tn-valuation-page #footer_latest_widget-1 {
  display: none !important;
}

body.tn-valuation-page .content_wrapper,
body.tn-valuation-page .container.content_wrapper,
body.tn-valuation-page .wpresidence-content-container-wrapper,
body.tn-valuation-page .row.content-fixed-listing {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.tn-valuation-page .single-content,
body.tn-valuation-page .entry-content,
body.tn-valuation-page .wpestate_property_description,
body.tn-valuation-page .col-md-12,
body.tn-valuation-page .col-md-8,
body.tn-valuation-page .col-md-9,
body.tn-valuation-page .col-lg-8,
body.tn-valuation-page .single_width_page {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  float: none !important;
}

body.tn-valuation-page #tn-wrapper {
  width: 100%;
}

body.tn-valuation-page #tn-colophon.tn-site-footer .widget-title,
body.tn-valuation-page #tn-colophon.tn-site-footer .tn-site-footer__panel-text {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: left !important;
}

/* ========================================
   RESET Y BASE
======================================== */

#tn-cf7-source {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

#tn-step-password,
.tn-password-error {
  display: none;
}

/* ========================================
   LANDING PAGE
======================================== */

.tn-main {
  padding: 1.5rem 2rem 4rem !important;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(30, 63, 128, 0.08), transparent 62%),
    radial-gradient(720px 360px at 85% 18%, rgba(45, 90, 168, 0.06), transparent 58%),
    linear-gradient(180deg, #f7f8fc 0%, #f3f5fa 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box !important;
  position: relative !important;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

@media (max-width: 768px) {
  .tn-main {
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
  }
}

/* Modal body */
.tn-modal-body{
  background: #fbfcfe !important;
}

.tn-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.tn-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tn-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.tn-card {
  background: #ffffff;
  backdrop-filter: none !important;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 6px 16px rgba(15, 23, 42, 0.05),
    0 14px 34px rgba(15, 23, 42, 0.06);
  margin: 0 auto 2.5rem;
}

.tn-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: none;
}

.tn-bullets li {
  margin: 0 !important;
  font-size: 0.94rem !important;
  color: #475569 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.14) !important;
  font-weight: 500 !important;
}

.tn-bullets li:last-child {
  border-bottom: none !important;
}

.tn-bullet-icon {
  display: inline-flex;
  justify-content: center;
  align-self: center;
  color: #6b7280;
  transition: none !important;
  line-height: 1;
  vertical-align: middle;
}

.tn-btn-primary {
  background: linear-gradient(135deg, #1E3F80 0%, #234999 100%);
  color: #ffffff;
  border: none;

  padding: 0.875rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  border-radius: 10px;
  cursor: pointer;

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

  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(30,63,128,0.25), 0 1px 3px rgba(30,63,128,0.18);
}

.tn-btn-primary:hover {
  background: linear-gradient(135deg, #172f60 0%, #1e3d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,63,128,0.32), 0 2px 6px rgba(30,63,128,0.18);
}

.tn-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30,63,128,0.2);
}

.tn-note {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-top: 1.75rem;
  font-weight: 400;
}

/* ========================================
   MODAL - DISEÃ‘O PREMIUM
======================================== */

.tn-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.tn-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}

.tn-modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 40px 120px rgba(0, 0, 0, 0.2);
  width: min(920px, calc(100vw - 3rem)) !important;
  max-width: 920px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  animation: tnModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tnModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   HEADER DEL MODAL
======================================== */

.tn-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem; 
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-radius: 16px 16px 0 0;
  min-height: 68px;
}

.tn-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
  padding-right: 0.75rem;
}

.tn-modal-close{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
  transition: all 0.18s ease;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.tn-modal-close:hover{
  background: rgba(30, 63, 128, 0.10);
  color: #1E3F80;
  transform: scale(1.03);
}

.tn-modal-close:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.18);
}

/* ========================================
   BODY DEL MODAL - OPTIMIZADO
======================================== */

.tn-modal-body {
  padding: 1.5rem 2.5rem 2rem !important;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

.tn-modal-body::-webkit-scrollbar {
  width: 8px;
}

.tn-modal-body::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.tn-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tn-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   BARRA DE PROGRESO - ELEGANTE
======================================== */

.tn-progress-bar {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.625rem;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  display: none !important;
}

.tn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1E3F80 0%, #2d5aa8 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(30, 63, 128, 0.3);
}

.tn-step-indicator {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   FORMULARIO - TIPOGRAFÃA Y ESPACIADO
======================================== */

.tn-modal-body .wpcf7 {
  margin: 0 !important;
}

.tn-modal-body h3 {
  font-size: 1.05rem;
  color: #0f172a;
  margin: 2rem 0 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(30, 63, 128, 0.06);
  border: 1px solid rgba(30, 63, 128, 0.14);
  border-left: 4px solid #1E3F80;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tn-modal-body h3:first-of-type {
  margin-top: 0;
}

.tn-modal-body p {
  margin: 0 0 1.25rem;
}

/* Pregunta (texto) sin caja: estilo editorial */
.tn-modal-body .wpcf7 form > p {
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.tn-modal-body .wpcf7 form > p strong {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.tn-modal-body strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}

/* ========================================
   CAMPOS DE FORMULARIO - PREMIUM
======================================== */

.tn-modal-body input[type="text"],
.tn-modal-body input[type="email"],
.tn-modal-body input[type="number"],
.tn-modal-body input[type="tel"],
.tn-modal-body select,
.tn-modal-body textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
  font-weight: 400;
}

.tn-modal-body input:hover,
.tn-modal-body input[type="tel"]:hover,
.tn-modal-body select:hover,
.tn-modal-body textarea:hover {
  border-color: #cbd5e1;
}

.tn-modal-body input:focus,
.tn-modal-body input[type="tel"]:focus,
.tn-modal-body select:focus,
.tn-modal-body textarea:focus {
  outline: none;
  border-color: #1E3F80;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.08);
  background: #ffffff;
}

.tn-modal-body input::placeholder,
.tn-modal-body input[type="tel"]::placeholder,
.tn-modal-body textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.tn-modal-body textarea {
  resize: vertical;
  min-height: 75px;
  line-height: 1.6;
}

.tn-modal-body select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.tn-modal-body select::-ms-expand {
  display: none;
}

/* ========================================
   RADIO BUTTONS - ELEGANTE
======================================== */

.tn-modal-body .wpcf7-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.tn-modal-body label {
  margin-right: 1.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.tn-modal-body .wpcf7-radio label {
  margin-right: 0;
}

.tn-modal-body label:hover {
  color: #1E3F80;
}

.tn-modal-body .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.tn-modal-body .wpcf7 .wpcf7-radio {
  width: 100%;
  display: flex;
  gap: 0.5rem;                          /* menos aire */
  padding: 0.35rem;                      /* mÃ¡s fino */
  border-radius: 14px;                   /* adiÃ³s pÃ­ldora */
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
  align-items: stretch;
  box-shadow: none;                      /* sin â€œinfladoâ€ */
}

.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item {
  width: 100%;
  margin: 0 !important;
}

.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item label {
  width: 100%;
  display: flex !important;
  align-items: center;
  margin: 0;
}

/* Chips visibles (pastillas) */
.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;                     /* mÃ¡s fino */
  padding: 0.45rem 0.9rem;              /* menos â€œhinchadoâ€ */

  border: 1px solid rgba(15, 23, 42, 0.12);  /* mÃ¡s fino */
  border-radius: 12px;                  /* mÃ¡s moderno */

  background: rgba(255,255,255,0.95) !important;
  color: #334155;
  font-weight: 650;
  letter-spacing: -0.01em;

  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;                     /* sin 3D */
}

/* Estado seleccionado â€“ efecto botÃ³n presionado elegante */
.tn-modal-body .wpcf7 .wpcf7-radio input[type="radio"]:checked ~ .wpcf7-list-item-label {

  border: 2px solid #1E3F80 !important;              /* borde azul marcado */
  background: rgba(30, 63, 128, 0.10) !important;     /* fondo suave */

  color: #1E3F80 !important;

  /* efecto "apretado" */
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.10),
    inset 0 -1px 2px rgba(30,63,128,0.15);

  transform: translateY(1px);                        /* ligera presiÃ³n */
}

.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item-label:active {
  transform: translateY(2px);
}

/* Hover */
.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item label:hover .wpcf7-list-item-label {
  border-color: #cbd5e1;
  background: #ffffff !important;
}

/* Foco teclado */
.tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item label:focus-within .wpcf7-list-item-label {
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.12);
}

.tn-modal-body .tn-pill-number-choice {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.tn-modal-body .tn-pill-number-choice__item {
  width: 100%;
  margin: 0 !important;
  display: block !important;
}

.tn-modal-body .tn-pill-number-choice__item input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tn-modal-body .tn-pill-number-choice__label {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tn-modal-body .tn-pill-number-choice__item input:checked + .tn-pill-number-choice__label {
  border: 2px solid #1E3F80 !important;
  background: rgba(30, 63, 128, 0.10) !important;
  color: #1E3F80 !important;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.10),
    inset 0 -1px 2px rgba(30,63,128,0.15);
}

.tn-modal-body .tn-pill-number-choice__item:focus-within .tn-pill-number-choice__label {
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.12);
}

.tn-modal-body .tn-pill-number-extra {
  margin-top: 0.75rem;
}

.tn-modal-body .tn-pill-number-extra__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: #64748b;
}

.tn-modal-body .tn-step-title-hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tn-modal-body .tn-required-note {
  margin: -0.15rem 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.tn-modal-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

/* ========================================
   NAVEGACIÃ“N - PREMIUM (NORMAL, SOLO AL FINAL)
======================================== */

.tn-form-navigation{
  position: relative;              /* <- NO sticky */
  bottom: auto;
  z-index: auto;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;

  margin-top: 1.75rem;
  padding-top: 1.25rem;

  border-top: 1px solid rgba(15, 23, 42, 0.10);

  background: transparent;         /* <- sin overlay */
  backdrop-filter: none;
  box-shadow: none;
}

.tn-form-navigation p{
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.75rem;
}

.tn-form-navigation p br{
  display: none !important;
}

/* BotÃ³n AtrÃ¡s */
.tn-btn-prev {
  padding: 0.75rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  user-select: none;
  min-width: 120px;
  letter-spacing: 0.01em;
  order: 1 !important;
  margin-right: auto !important;
}

.tn-btn-prev:hover {
  background: #f8fafc;
  border-color: #b8c9e0;
  color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.tn-btn-prev:active {
  transform: translateY(0);
}

/* Botones Siguiente y Enviar */
.tn-btn-next,
.tn-btn-submit,
.tn-modal-body input[type="submit"] {
  padding: 0.75rem 1.875rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  background: linear-gradient(135deg, #1E3F80 0%, #234999 100%) !important;
  color: #ffffff !important;
  min-width: 180px !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 10px rgba(30, 63, 128, 0.22), 0 1px 3px rgba(30, 63, 128, 0.14) !important;
  order: 2 !important;
  margin-left: auto !important;
}

.tn-btn-next:hover,
.tn-btn-submit:hover,
.tn-modal-body input[type="submit"]:hover {
  background: linear-gradient(135deg, #172f60 0%, #1e3d82 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 63, 128, 0.32), 0 2px 6px rgba(30, 63, 128, 0.18) !important;
}

.tn-btn-next:active,
.tn-btn-submit:active,
.tn-modal-body input[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(30, 63, 128, 0.2) !important;
}

.tn-form-navigation .wpcf7-spinner {
  order: 3 !important;
  margin-left: 0.75rem !important;
}

/* Mensajes de CF7 */
.wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
}

.wpcf7-validation-errors {
  border: 1.5px solid #f87171 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.wpcf7-mail-sent-ok {
  border: 1.5px solid #34d399 !important;
  background: #f0fdf4 !important;
  color: #065f46 !important;
}

/* ========================================
   CAMPOS CONDICIONALES
======================================== */

.tn-cond-interesado,
.tn-cond-asesor,
.tn-cond-propio,
.tn-cond-alquilado,
.tn-cond-personal,
.tn-cond-actividad-otra,
.tn-cond-recreativas {
  display: none;
  animation: tnFadeIn 0.28s ease;
}

@keyframes tnFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PASO 0 - SELECCIÃ“N DE ROL
======================================== */

.tn-step-0 {
  padding: 2rem 0;
}

.tn-welcome h3 {
  text-align: center;
  font-size: 1.875rem;
  color: #0f172a;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tn-welcome > p {
  text-align: center;
  color: #64748b;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.tn-role-selection > p {
  text-align: center;
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 2rem;
  font-weight: 600;
}

.tn-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.tn-role-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.tn-role-card:hover {
  border-color: #1E3F80;
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30, 63, 128, 0.15);
}

.tn-role-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tn-role-card h4 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tn-role-card p {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex: 1;
}

.tn-role-btn {
  background: linear-gradient(135deg, #1E3F80 0%, #234999 100%);
  color: #fff;
  border: none;
  padding: 0.9375rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(30, 63, 128, 0.22);
  margin-top: auto;
  align-self: stretch;
}

.tn-role-btn:hover {
  background: linear-gradient(135deg, #172f60 0%, #1e3d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 63, 128, 0.32);
}

.tn-role-btn:active {
  transform: translateY(0);
}

/* ========================================
   PASO 0.5 - CONTRASEÃ‘A
======================================== */

.tn-step-password {
  padding: 2rem 0;
}

.tn-password-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.tn-password-form h3 {
  font-size: 1.875rem;
  color: #0f172a;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  font-weight: 700;
}

.tn-password-form > p {
  color: #64748b;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.tn-form-group {
  text-align: left;
  margin-bottom: 2rem;
}

.tn-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tn-input-password {
  width: 100%;
  padding: 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.tn-input-password:focus {
  outline: none;
  border-color: #1E3F80;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.08);
}

.tn-password-error {
  display: block;
  margin-top: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
}

.tn-password-actions {
  display: flex;
  gap: 1rem;
}

.tn-btn-back-role,
.tn-btn-verify-password {
  flex: 1;
  padding: 0.9375rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.01em;
}

.tn-btn-back-role {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}

.tn-btn-back-role:hover {
  background: #e8edf5;
  border-color: #b8c9e0;
  color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.tn-btn-verify-password {
  background: linear-gradient(135deg, #1E3F80 0%, #234999 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 63, 128, 0.22);
}

.tn-btn-verify-password:hover {
  background: linear-gradient(135deg, #172f60 0%, #1e3d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 63, 128, 0.3);
}

.tn-btn-verify-password:active,
.tn-btn-back-role:active {
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {

  .tn-modal {
    max-width: 95vw !important;
    margin: 0;
    border-radius: 12px;
  }

  .tn-modal-header {
    padding: 1.1rem 1.25rem;
  }

  .tn-modal-title {
    font-size: 1.35rem;
  }

  .tn-modal-body {
    padding: 1.25rem 1.5rem 1.75rem !important;
  }

  .tn-role-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tn-modal-body .wpcf7 .wpcf7-radio {
    gap: 0.6rem;
    padding: 0.5rem;
  }

  .tn-password-actions {
    flex-direction: column;
  }

  .tn-btn-next,
  .tn-btn-submit,
  .tn-modal-body input[type="submit"] {
    min-width: 140px !important;
  }
}

/* ========================================
   PATCH UX/CONVERSIÃ“N/ACCESIBILIDAD (aÃ±adir al final)
======================================== */

/* 1) Asegurar que el modal gane a widgets flotantes */
.tn-modal-overlay { z-index: 999999 !important; }
.tn-modal { z-index: 1000000 !important; }

/* Si tu JS aÃ±ade una clase al abrir (recomendado) */
.tn-modal-overlay.is-open { display: flex; } /* no rompe: si no existe, no afecta */

/* 2) Mejor scroll en mÃ³vil (iOS) + evitar rebote raro */
.tn-modal-body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* 3) Tap target y foco accesible en el cerrar */
.tn-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.tn-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.18);
}

/* 4) Inputs con altura â€œtouch friendlyâ€ + foco consistente */
.tn-modal-body input[type="text"],
.tn-modal-body input[type="email"],
.tn-modal-body input[type="number"],
.tn-modal-body input[type="tel"],
.tn-modal-body select {
  min-height: 44px;
}

/* 5) Scope de mensajes CF7 (evita afectar otros formularios del site) */
.tn-modal .wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

/* Errores por campo (clave para conversiÃ³n) */
.tn-modal .wpcf7-not-valid-tip {
  margin-top: 0.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
}
.tn-modal input.wpcf7-not-valid,
.tn-modal textarea.wpcf7-not-valid,
.tn-modal select.wpcf7-not-valid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.10) !important;
}

/* 6) Accesibilidad: foco visible en botones principales */
.tn-btn-next:focus-visible,
.tn-btn-prev:focus-visible,
.tn-btn-submit:focus-visible,
.tn-modal-body input[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.18) !important;
}

/* 7) Respeto a usuarios con reducciÃ³n de movimiento */
@media (prefers-reduced-motion: reduce) {
  .tn-modal { animation: none !important; }
  .tn-progress-fill { transition: none !important; }
}

/* ===== Header premium (FORZADO) ===== */
.tn-modal .tn-modal-header{
  padding: 1.5rem 2rem !important;

  /* Azul elegante (muy sutil) */
  background: linear-gradient(
    180deg,
    rgba(30, 63, 128, 0.25) 0%,
    rgba(30, 63, 128, 0.07) 100%,
    #ffffff 100%
  ) !important;

  /* LÃ­nea inferior un pelÃ­n azulada */
  border-bottom: 1px solid rgba(30, 63, 128, 0.14) !important;

  /* Toque â€œpremiumâ€ sin recargar */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tn-modal .tn-modal-title{
  font-size: 1.6rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.tn-modal .tn-modal-close{
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: #64748b !important;
  transition: all 0.18s ease !important;
}

.tn-modal .tn-modal-close:hover{
  background: rgba(30, 63, 128, 0.10) !important;
  color: #1E3F80 !important;
  transform: scale(1.03) !important;
}

.tn-modal .tn-modal-close:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.18) !important;
}

.tn-modal,
.tn-modal *{
  box-sizing: border-box;
}

.tn-modal{
  overflow-x: hidden;
}

/* ===== Contenedor (rail) de las pastillas: gris suave para contraste ===== */
.tn-modal-body .wpcf7 .wpcf7-radio{
  background: rgba(15, 23, 42, 0.05) !important;   /* gris suave */
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

/* ================================
   FIX BOTÃ“N "Comenzar formulario"
   - fuerza azul corporativo
   - evita verde por estilos del tema
   - evita ancho 100%
   - elimina parpadeo en hover
================================ */

/* BotÃ³n (por si es <a> o <button>) */
.tn-main .tn-btn-primary,
.tn-main a.tn-btn-primary,
.tn-main button.tn-btn-primary {
  /* color corporativo (mata el verde sÃ­ o sÃ­) */
  background-color: #1E3F80 !important;
  background-image: none !important;   /* clave anti-parpadeo */
  color: #fff !important;

  border: 1px solid #1E3F80 !important;
  border-radius: 10px !important;

  /* mÃ¡s delgado */
  padding: 12px 22px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  /* centrado perfecto del texto */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  /* que NO sea ancho 100% */
  width: auto !important;
  max-width: 100% !important;
  min-height: 44px !important;

  /* evita que algÃºn flex lo estire */
  flex: 0 0 auto !important;

  /* transiciones sin flicker */
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  transform: none !important;

  box-shadow: 0 6px 18px rgba(30,63,128,0.20) !important;
}

/* Hover (sin parpadeo) */
.tn-main .tn-btn-primary:hover,
.tn-main a.tn-btn-primary:hover,
.tn-main button.tn-btn-primary:hover {
  background-color: #152f61 !important;
  background-image: none !important;
  border-color: #152f61 !important;
  box-shadow: 0 10px 26px rgba(30,63,128,0.28) !important;
  transform: none !important;
}

/* Si el contenedor lo estira a lo ancho, lo arreglamos */
.tn-container .tn-btn-primary {
  align-self: center !important;
}

/* Por si el botÃ³n estÃ¡ dentro de un <p> o wrapper que lo fuerza */
.tn-container p {
  text-align: center;
}

.tn-modal{
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.tn-modal-header{
  padding: 0.85rem 1.15rem !important;
  min-height: 56px !important;
  border-bottom: 1px solid rgba(30, 63, 128, 0.14) !important;
  background: linear-gradient(
    180deg,
    rgba(30, 63, 128, 0.14) 0%,
    rgba(30, 63, 128, 0.05) 100%
  ) !important;
}

.tn-modal-title{
  font-size: 1.25rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.tn-modal-close{
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

.tn-modal-body{
  padding: 1rem 1.6rem 1.4rem !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Overlay: un pelÃ­n mÃ¡s arriba */
.tn-modal-overlay{
  align-items: flex-start !important;
  padding-top: clamp(10px, 2vh, 22px) !important;
}

/* MÃ³vil */
@media (max-width: 768px){
  .tn-modal-header{
    padding: 0.75rem 1rem !important;
    min-height: 54px !important;
  }
  .tn-modal-title{
    font-size: 1.15rem !important;
  }
  .tn-modal-body{
    padding: 0.95rem 1.25rem 1.25rem !important;
  }
}

/* ================================
   LANDING - Micro-textura de fondo
================================ */

/* Textura de puntos sutil, siempre detras del contenido */
.tn-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Boton CTA: sombra premium */
.tn-btn-primary {
  box-shadow:
    0 10px 24px rgba(30, 63, 128, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.35) inset !important;
}

.tn-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .65);
}

/* Contenido SIEMPRE delante.
   IMPORTANTE: .tn-container tiene z-index alto para que el botÃ³n
   supere overlays de plugins de cookies (su z-index local se proyecta
   al stacking context global a travÃ©s de este valor) */
.tn-container,
.tn-card,
.tn-btn-primary,
.tn-note,
.tn-kicker{
  position: relative;
  z-index: 99999 !important;
}

/* Colores y espaciado del tÃ­tulo/subtÃ­tulo (tono tÃ©cnico) */
.tn-title{
  color: #0f172a !important;
  margin-bottom: 0.75rem !important;
}

.tn-subtitle{
  color: rgba(15,23,42,.72) !important;
  max-width: 860px;
  margin: 0 auto 2rem !important;
  line-height: 1.6 !important;
  text-decoration: none !important;  /* por si el tema mete subrayado */
}

/* Nota inferior un pelÃ­n mÃ¡s discreta */
.tn-note{
  color: rgba(15,23,42,.60) !important;
}

.tn-title{
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
}

/* ================================
   Ajuste de lÃ­neas - Landing
================================ */

/* Aumentamos ancho Ãºtil del contenedor */
.tn-container{
  max-width: 980px !important;
}

/* TÃ­tulo: tamaÃ±o fluido para que entre en una lÃ­nea en desktop */
.tn-title{
  font-size: clamp(2.2rem, 3.8vw, 3.4rem) !important;
  line-height: 1.15 !important;
}

/* SubtÃ­tulo: mÃ¡s ancho y sin lÃ­mite corto */
.tn-subtitle{
  max-width: 980px !important;
}

/* Icono de rol */
.tn-role-icon {
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tn-bullet-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.tn-role-icon svg {
  width: 44px;
  height: 44px;
}

/* Hover: iconos de card sin cambio de color */
.tn-bullets li:hover .tn-bullet-icon {
  color: #6b7280 !important;
}
.tn-role-card:hover .tn-role-icon{
  color: #1E3F80;
}

/* Reduce gap between modal header and first content block in each step */
.tn-modal .tn-form-step > hr:first-child {
  margin-top: 0;
}

/* ========================================
   WIZARD UNIFICADO - tn-form-step
======================================== */

.tn-form-step .tn-progress-bar {
  display: block !important;
}

.tn-form-step .tn-step-indicator {
  display: block !important;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem !important;
}

/* ========================================
   OVERRIDES FINALES â€“ ALTA ESPECIFICIDAD
   Deben estar AL FINAL para ganar la cascada
======================================== */

/* A) Normalizar TODOS los inputs del modal (incluye tel, wpcf7-tel, etc.)
      Usa #tn-modal (ID) para mÃ¡xima especificidad y ganar a cualquier tema */
#tn-modal input,
#tn-modal input[type="tel"],
#tn-modal input[type="text"],
#tn-modal input[type="email"],
#tn-modal input[type="number"],
#tn-modal input[type="password"] {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#tn-modal input:hover,
#tn-modal input[type="tel"]:hover {
  border-color: #cbd5e1 !important;
}

#tn-modal input:focus,
#tn-modal input[type="tel"]:focus {
  border-color: #1E3F80 !important;
  box-shadow: 0 0 0 4px rgba(30, 63, 128, 0.08) !important;
  outline: none !important;
}

/* B) Gap pregunta â†’ campo: solo el strong etiqueta, no la separaciÃ³n entre Ps */
#tn-modal .wpcf7 p strong,
#tn-modal .tn-modal-body p strong,
#tn-modal strong {
  margin-bottom: 0.4rem !important;
}

/* J) Reducir distancia etiquetaâ†’campo: el <p> que solo contiene la pregunta
      no necesita margen grande (el margen de separaciÃ³n lo pone el wpcf7-form-control-wrap) */
#tn-modal .wpcf7 form > p {
  margin-bottom: 0.3rem !important;
}

/* Mantener separaciÃ³n ENTRE grupos (campoâ†’siguiente pregunta) */
#tn-modal .wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  margin-bottom: 1.1rem !important;
}

/* Para los select y textarea que no van dentro de wpcf7-form-control-wrap */
#tn-modal .wpcf7 form > p + p {
  margin-top: 0 !important;
}

/* C) Tarjetas de rol: misma altura â€” forzar 2 columnas con todas las especificidades */
#tn-modal .tn-role-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: stretch !important;
  flex-direction: unset !important; /* mata si el tema pone flex+column */
}

/* Por si el tema convierte en flex-column en lugar de grid */
#tn-modal .tn-role-cards .tn-role-card {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

#tn-modal .tn-role-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#tn-modal .tn-role-card p {
  flex: 1 !important;
  margin-bottom: 1.5rem !important;
}

#tn-modal .tn-role-btn {
  margin-top: auto !important;
  width: 100% !important;
}

/* D) BotÃ³n Enviar pegado a la derecha */
#tn-modal .tn-form-navigation {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

/* CF7 envuelve el submit en un <p>: lo anulamos */
#tn-modal .tn-form-navigation > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

#tn-modal .tn-form-navigation .tn-btn-prev {
  margin-right: auto !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}

#tn-modal .tn-form-navigation .tn-btn-next,
#tn-modal .tn-form-navigation input[type="submit"],
#tn-modal .tn-form-navigation .tn-btn-submit {
  margin-left: auto !important;
  margin-right: 0 !important;
  width: auto !important;
  flex-shrink: 0;
}

/* E) TÃ­tulo modal: no truncar, puede partir lÃ­nea */
#tn-modal-title,
#tn-modal .tn-modal-title,
#tn-modal .tn-modal-header h1,
#tn-modal .tn-modal-header h2,
#tn-modal .tn-modal-header h3,
#tn-modal .tn-modal-header span,
#tn-modal .tn-modal-header [class*="title"],
#tn-modal .tn-modal-header [id*="title"] {
  flex: 1 1 auto !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  text-overflow: unset !important;
  text-overflow: clip !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding-right: 0.75rem !important;
  word-break: break-word !important;
  display: block !important;
}

/* F) Eliminar el espacio en blanco entre header y primer h3 del paso activo.
      Causa: h3:first-of-type no matchea el paso 1 porque step-0 tiene h3 antes en el DOM */
#tn-modal .tn-form-step h3:first-child,
#tn-modal .tn-form-step h3:first-of-type,
#tn-modal .tn-form-step > h3 {
  margin-top: 0 !important;
}

/* TambiÃ©n eliminar el margin-top del primer elemento visible dentro del step visible */
#tn-modal .tn-form-step > *:first-child {
  margin-top: 0 !important;
}

/* Reducir padding top del modal-body para que la cabecera quede pegada al contenido */
#tn-modal .tn-modal-body {
  padding-top: 1.25rem !important;
}

/* G) Primer h3 del step sin margen superior (ya no hay hr antes) */
#tn-modal .tn-form-step h3:first-of-type,
#tn-modal .tn-form-step > h3:first-child,
#tn-modal .tn-wizard-progress + h3 {
  margin-top: 0 !important;
}

/* H) Barra de progreso por pasos */
#tn-modal .tn-wizard-progress {
  display: flex !important;
  flex-direction: row !important;   /* evita que el tema lo ponga en columna */
  align-items: center !important;
  gap: 0 !important;
  margin-bottom: 0.75rem !important;
  padding: 0.25rem 0 !important;
  width: 100% !important;
}

#tn-modal .tn-wp-dot {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, color 0.2s !important;
}

#tn-modal .tn-wp-dot.tn-wp-active {
  background: #1E3F80 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(30, 63, 128, 0.35) !important;
}

#tn-modal .tn-wp-dot.tn-wp-done {
  background: rgba(30, 63, 128, 0.18) !important;
  color: #1E3F80 !important;
}

#tn-modal .tn-wp-line {
  flex: 1 !important;
  height: 2px !important;
  background: #e2e8f0 !important;
  display: inline-block !important;
  align-self: center !important;
  min-width: 12px !important;
}

#tn-modal .tn-wp-line.tn-wp-line-done {
  background: rgba(30, 63, 128, 0.25) !important;
}

@media (min-width: 769px){
#tn-wrapper .tn-card{
  max-width: 620px !important;
  padding: 30px 64px !important;
  border-radius: 22px !important;
  display: block !important;
  border: 1px solid rgba(30, 63, 128, 0.25) !important;
  background: linear-gradient(
    180deg,
    rgba(30, 63, 128, 0.06) 0%,
    rgba(30, 63, 128, 0.03) 100%
  ) !important;
	
	box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.12),
    0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

#tn-wrapper .tn-bullets{
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

#tn-wrapper .tn-bullets li{
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 10px 0 !important;
  line-height: 1.42 !important;
}

#tn-wrapper .tn-bullet-icon{
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  margin: 0 !important;
  top: auto !important;
  transform: translate(0px, 0px) !important;
}

#tn-wrapper .tn-bullet-text{
  display: block !important;
  flex: 1 1 auto !important;
  transform: translateY(0px) !important;
  line-height: 1.38 !important;
}

}

/* =========================================================
   FIX GLOBAL â€“ TOUCH & Z-INDEX
   âš  NO tocar overflow en html/body â€” rompe position:fixed en iOS Safari
   El overflow-x del full-width hack ya estÃ¡ controlado por .tn-main { overflow:hidden }
========================================================= */

/* Touch responsivo en todos los botones (elimina delay 300ms en iOS) */
.tn-btn-primary,
.tn-btn-next,
.tn-btn-prev,
.tn-btn-submit,
.tn-role-btn,
.tn-btn-back-role,
.tn-btn-verify-password,
.tn-modal-close,
.tn-modal-body input[type="submit"] {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
}

/* El botÃ³n de apertura del modal debe superar overlays mÃ³viles del tema WP */
#tn-open-modal {
  position: relative !important;
  z-index: 9999 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Overlay cerrado: nunca interceptar eventos de toque/clic */
#tn-modal-overlay[aria-hidden="true"] {
  pointer-events: none !important;
  display: none !important;
}

/* Todos los elementos del wrapper deben poder recibir eventos */
#tn-wrapper,
#tn-wrapper .tn-container,
#tn-wrapper .tn-card,
#tn-wrapper .tn-btn-primary {
  pointer-events: auto !important;
}

/* =========================================================
   MÃ“VIL
========================================================= */
@media (max-width: 768px){
  #tn-wrapper .tn-card{
    padding: 18px 20px 20px !important;
    max-width: calc(100vw - 2rem) !important;
  }

  #tn-wrapper .tn-bullets li{
    gap: 14px !important;
    font-size: 0.9rem !important;
    padding: 12px 0 !important;
  }

  /* Reset de TODOS los micro-ajustes individuales en mÃ³vil
     â€” los nth-child estÃ¡n aquÃ­ dentro del @media para ganar
     en la cascada frente al bloque desktop (mismo selector,
     pero este aparece mÃ¡s tarde en el archivo â†’ gana) */
  #tn-wrapper .tn-bullet-icon,
  #tn-wrapper .tn-bullets li:nth-child(1) .tn-bullet-icon,
  #tn-wrapper .tn-bullets li:nth-child(2) .tn-bullet-icon,
  #tn-wrapper .tn-bullets li:nth-child(3) .tn-bullet-icon,
  #tn-wrapper .tn-bullets li:nth-child(4) .tn-bullet-icon {
    transform: translate(0px, 0px) !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
  }

  #tn-wrapper .tn-bullet-text {
    transform: translateY(0px) !important;
    line-height: 1.3 !important;
  }

  /* Reducir padding excesivo de la landing en pantallas pequeÃ±as */
  .tn-main {
    padding: 0.5rem 1rem 2.5rem !important;
    margin-top: -16px !important;
    /* NO overflow-x aquÃ­ â€” ya lo gestiona el overflow:hidden del bloque base */
  }

  /* Asegurar que .tn-container no desborde */
  .tn-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  /* El overlay del modal debe cubrir toda la pantalla en iOS */
  .tn-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Modal mÃ¡s compacto en mÃ³vil */
  .tn-modal {
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    max-height: 88vh !important;
    margin: auto !important;
  }
}

/* ============================================================
   WP/CF7 HARDENING
   WordPress and CF7 can wrap wizard fragments in <p> nodes or
   re-apply theme flex rules. Keep the role gate and step progress
   stable inside the valuation modal.
============================================================ */

html body #tn-modal .tn-wizard-progress {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  float: none !important;
}

html body #tn-modal .tn-wizard-progress > p,
html body #tn-modal .tn-wizard-progress p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
}

html body #tn-modal .tn-wp-dot {
  order: initial !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  float: none !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
}

html body #tn-modal .tn-wp-dot.tn-wp-active {
  background: #1E3F80 !important;
  color: #fff !important;
}

html body #tn-modal .tn-wp-dot.tn-wp-done {
  background: rgba(30, 63, 128, 0.18) !important;
  color: #1E3F80 !important;
}

html body #tn-modal .tn-wp-line {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 8px !important;
  max-width: none !important;
  height: 2px !important;
  min-height: 2px !important;
  align-self: center !important;
  float: none !important;
  background: #e2e8f0 !important;
}

html body #tn-modal .tn-wp-line.tn-wp-line-done {
  background: rgba(30, 63, 128, 0.30) !important;
}

html body #tn-modal .tn-role-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
  width: 100% !important;
  float: none !important;
}

html body #tn-modal .tn-role-cards > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #tn-modal .tn-role-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  float: none !important;
}

html body #tn-modal .tn-role-card p {
  flex: 1 1 auto !important;
}

html body #tn-modal .tn-role-card svg {
  width: 34px;
  height: 34px;
}

html body #tn-modal .tn-form-navigation {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

html body #tn-modal .tn-form-navigation > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #tn-modal .tn-btn-prev {
  margin-right: auto !important;
  margin-left: 0 !important;
  float: none !important;
  flex-shrink: 0 !important;
}

html body #tn-modal .tn-btn-next,
html body #tn-modal .tn-btn-submit,
html body #tn-modal input[type="submit"] {
  margin-left: auto !important;
  margin-right: 0 !important;
  width: auto !important;
  float: none !important;
  flex-shrink: 0 !important;
}

@media (max-width: 599px) {
  html body #tn-modal .tn-role-cards {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  html body #tn-modal .tn-form-navigation,
  html body #tn-modal .tn-form-navigation > p {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html body #tn-modal .tn-btn-prev,
  html body #tn-modal .tn-btn-next,
  html body #tn-modal .tn-btn-submit,
  html body #tn-modal input[type="submit"] {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
}

/* Validation should appear only after a real navigation/submit attempt. */
html body #tn-modal form:not(.tn-validation-attempted) .tn-form-step:not(.tn-step-attempted) .wpcf7-not-valid-tip {
  display: none !important;
}

html body #tn-modal form:not(.tn-validation-attempted) .tn-form-step:not(.tn-step-attempted) input.wpcf7-not-valid,
html body #tn-modal form:not(.tn-validation-attempted) .tn-form-step:not(.tn-step-attempted) textarea.wpcf7-not-valid,
html body #tn-modal form:not(.tn-validation-attempted) .tn-form-step:not(.tn-step-attempted) select.wpcf7-not-valid {
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

html body #tn-modal .tn-step-error-msg {
  margin: 1rem 0 0.85rem !important;
  padding: 0.8rem 0.95rem !important;
  border: 1px solid rgba(185, 28, 28, 0.22) !important;
  border-radius: 12px !important;
  background: rgba(254, 242, 242, 0.92) !important;
  color: #991b1b !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

html body #tn-modal .tn-form-step .tn-step-error-msg + .tn-form-navigation {
  margin-top: 0 !important;
}

html body #tn-modal .wpcf7-response-output:empty,
html body #tn-modal form.init .wpcf7-response-output,
html body #tn-modal form.resetting .wpcf7-response-output,
html body #tn-modal form.sent .wpcf7-response-output:empty,
html body #tn-modal form.invalid .wpcf7-response-output:empty,
html body #tn-modal form.failed .wpcf7-response-output:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

html body #tn-modal .tn-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

html body #tn-modal .tn-label-error {
  color: #991b1b !important;
}

html body #tn-modal .tn-form-navigation input[type="submit"],
html body #tn-modal .tn-form-navigation button[type="submit"],
html body #tn-modal .tn-form-navigation .tn-btn-submit {
  background-color: #1E3F80 !important;
  background-image: linear-gradient(135deg, #1E3F80 0%, #234999 100%) !important;
  border-color: #1E3F80 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

html body #tn-modal .tn-form-navigation input[type="submit"]:hover,
html body #tn-modal .tn-form-navigation button[type="submit"]:hover,
html body #tn-modal .tn-form-navigation .tn-btn-submit:hover {
  background-color: #172f60 !important;
  background-image: linear-gradient(135deg, #172f60 0%, #1e3d82 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Advisor password gate: keep the field and actions separated and button-like. */
html body #tn-modal .tn-step-password {
  padding: 1.65rem 0 1.85rem !important;
}

html body #tn-modal .tn-step-password .tn-password-form {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
}

html body #tn-modal .tn-step-password .tn-password-form label {
  display: block !important;
  margin: 0 0 0.72rem !important;
  color: #18253a !important;
  font-size: 1rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

html body #tn-modal .tn-step-password #tn-asesor-password {
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0.9rem 1.05rem !important;
  border: 1.5px solid rgba(30, 63, 128, 0.42) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #14243a !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(30, 63, 128, 0.08) !important;
}

html body #tn-modal .tn-step-password #tn-asesor-password::placeholder {
  color: #8da0b8 !important;
  opacity: 1 !important;
}

html body #tn-modal .tn-step-password #tn-asesor-password:focus {
  border-color: #1E3F80 !important;
  box-shadow:
    0 0 0 4px rgba(30, 63, 128, 0.09),
    0 12px 28px rgba(30, 63, 128, 0.1) !important;
}

html body #tn-modal .tn-step-password .tn-password-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
  margin-top: 1.25rem !important;
}

html body #tn-modal .tn-step-password .tn-btn-back-role,
html body #tn-modal .tn-step-password .tn-btn-verify-password {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0.95rem 1.25rem !important;
  border-radius: 14px !important;
  font-size: 0.98rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

html body #tn-modal .tn-step-password .tn-btn-back-role {
  border: 1px solid rgba(30, 63, 128, 0.13) !important;
  background: #eef3f9 !important;
  color: #46576e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body #tn-modal .tn-step-password .tn-btn-verify-password {
  border: 1px solid rgba(20, 47, 88, 0.2) !important;
  background-color: #244b74 !important;
  background-image: linear-gradient(135deg, #2d5b92 0%, #21477a 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(30, 63, 128, 0.18) !important;
}

html body #tn-modal .tn-step-password .tn-btn-back-role:hover,
html body #tn-modal .tn-step-password .tn-btn-back-role:focus-visible {
  background: #e7eef7 !important;
  color: #27364a !important;
  transform: translateY(-1px);
}

html body #tn-modal .tn-step-password .tn-btn-verify-password:hover,
html body #tn-modal .tn-step-password .tn-btn-verify-password:focus-visible {
  background-color: #1f4774 !important;
  background-image: linear-gradient(135deg, #31649b 0%, #1f4774 100%) !important;
  transform: translateY(-1px);
}

html body #tn-modal .tn-step-password .tn-btn-back-role:active,
html body #tn-modal .tn-step-password .tn-btn-verify-password:active {
  transform: translateY(0);
}

@media (max-width: 560px) {
  html body #tn-modal .tn-step-password .tn-password-actions {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* ========================================
   MÓVIL: que el iPhone deje de ampliar la página al tocar un campo
   ======================================== */

/*
 * 🔴 Medido el 15-ago-2026. Los campos de este formulario tienen la letra en
 * 0.9375rem, o sea 15px. Safari amplía la página automáticamente en cuanto se
 * toca un campo cuya letra mida MENOS de 16px — y al ampliar, el formulario se
 * sale por la derecha y hay que pellizcar para volver a verlo entero.
 *
 * Pasa en los 16 campos, en el formulario que capta VENDEDORES, y es invisible
 * desde un ordenador: solo lo sufre quien entra desde el móvil, que en traspasos
 * es la mayoría. Nadie lo reporta; simplemente abandonan.
 *
 * 16px es el mínimo exacto que Safari no amplía. Solo se aplica en pantallas
 * pequeñas, así que el diseño de escritorio —ya aprobado— no cambia nada.
 */
@media (max-width: 767px) {
  html body #tn-modal .tn-modal-body input[type="text"],
  html body #tn-modal .tn-modal-body input[type="email"],
  html body #tn-modal .tn-modal-body input[type="number"],
  html body #tn-modal .tn-modal-body input[type="tel"],
  html body #tn-modal .tn-modal-body input[type="password"],
  html body #tn-modal .tn-modal-body select,
  html body #tn-modal .tn-modal-body textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   TAREA 67 — Espaciados del formulario de valoración (solo aspecto)
   No toca campos, ni el flujo, ni el acceso de asesor.
   ========================================================================== */

/* 1) «— Selecciona —» / «No lo sé» salían sueltos encima del desplegable.
      Son <option> que el filtro PHP mete FUERA del <select> (entre el envoltorio y el
      <select>), así que el navegador los pinta como texto suelto. No forman parte del
      desplegable: se ocultan. El desplegable sigue con sus opciones de siempre. */
#tn-modal .wpcf7-form-control-wrap > option {
  display: none !important;
}

/* 2) Títulos «Identificación del perfil» y «Acceso para asesores» con barra gris detrás:
      heredaban el fondo de los títulos de sección. */
#tn-modal .tn-welcome h3,
#tn-modal .tn-password-form h3 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* 3) «Ej: …» parecía una segunda etiqueta (azul, en negrita y separada).
      Pasa a ser una pista pequeña y gris pegada a la casilla. */
#tn-modal .tn-campo-etiqueta {
  margin: 0 0 0.3rem 2px;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* 4) Menos hueco entre la pregunta y su casilla (la pregunta va en su propio <p>). */
#tn-modal .tn-modal-body .wpcf7 form > p:has(> strong:only-child) {
  margin-bottom: 0.35rem !important;
}

/* 5) Móvil: las pastillas de 3 opciones (p. ej. «Traspaso / Compraventa de empresa /
      No lo sé / mixto») se salían por la derecha. Ahora bajan de línea. */
@media (max-width: 600px) {
  #tn-modal .tn-modal-body .wpcf7 .wpcf7-radio {
    flex-wrap: wrap;
  }
  #tn-modal .tn-modal-body .wpcf7 .wpcf7-radio .wpcf7-list-item {
    flex: 1 1 calc(50% - 0.5rem);
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================================
   ASTERISCOS DE OBLIGATORIO (24-oct-2026, «en varias partes el * está mal puesto»)
   - El «*» va en la PREGUNTA, justo detrás del texto y en su misma línea (nunca solo en la de abajo).
   - La etiqueta pequeña de ejemplo («Ej: 10 mesas y 40 sillas», «tu@email.com») NO lleva «*»: la
     pone inc/trasnego-accesibilidad.php mirando el CF7 del servidor y salía repetido debajo de la
     pregunta, como si el ejemplo fuese otro campo obligatorio. Aquí manda el «*» del asistente, que
     sí sigue a lo que valida el paso.
   ========================================================================== */
#tn-modal .tn-req-star {
  white-space: nowrap;
  display: inline;
}
#tn-modal .tn-campo-etiqueta__obligatorio {
  display: none !important;
}
