﻿/* =====================================================================
   QWOOD â€” Trabaja con nosotros Â· Clean & Natural Redesign
   2026-03-30 Â· Multi-step form Â· RGPD compliant
   Scope: .qw-tn + children
   ===================================================================== */

/* ============================================================
   0) TOKENS
   ============================================================ */
.qw-tn{
  /* Proxies al design-system canÃ³nico â€” cambiar tokens solo en design-system.css (audit 2026-04-20) */
  --qw-green: var(--qwood-color-primary, #1bcf17);
  --qw-green-dark: var(--qwood-color-primary-dark, #11900f);
  --qw-green-soft-6: rgba(27,207,23,.06);
  --qw-green-border: rgba(27,207,23,.14);
  --qw-ink: var(--qwood-color-text, #0f172a);
  --qw-text: rgba(15,23,42,.88);
  --qw-muted: var(--qwood-color-muted, rgba(15,23,42,.64));
  --qw-border: var(--qwood-color-border, rgba(15,23,42,.09));
  --qw-card: var(--qwood-color-card-bg, #ffffff);
  --qw-bg: #f8faf9;                           /* bg especÃ­fico trabaja-con-nosotros */
  --qw-radius: 20px;                          /* radius especÃ­fico */
  --qw-radius-sm: 14px;                       /* radius specific */
  --qw-shadow: var(--qwood-shadow-soft, 0 12px 40px rgba(15,23,42,.06));
  --qw-shadow-lg: var(--qwood-shadow-card, 0 20px 60px rgba(15,23,42,.08));
  --font: var(--qwood-font-sans, "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif);

  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--qw-ink);
}

/* ============================================================
   1) HERO â€” Light, airy, inviting
   ============================================================ */
.qw-tn-hero{
  background: #fff;
  padding: clamp(48px, 8vw, 80px) 24px clamp(32px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.qw-tn-hero::before{
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(27,207,23,.04);
  border-radius: 50%;
  pointer-events: none;
}

.qw-tn-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--qw-green-soft-6);
  border: 1px solid var(--qw-green-border);
  font: 700 12px var(--font);
  color: var(--qw-green-dark);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.qw-tn-badge::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--qw-green);
  flex-shrink: 0;
}

.qw-tn-h1{
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.08;
  color: var(--qw-ink);
  margin-bottom: 12px;
}
.qw-tn-h1 em{
  font-style: normal;
  color: var(--qw-green);
}

.qw-tn-lead{
  font-size: clamp(15px, 2vw, 17px);
  color: var(--qw-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* ============================================================
   2) PERKS â€” 3-column benefit cards
   ============================================================ */
.qw-tn-perks{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.qw-tn-perk{
  background: #ffffff;
  border: none;
  border-radius: var(--qw-radius-sm);
  padding: 18px 16px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(15,23,42,.03);
  transition: transform .2s, box-shadow .2s;
}
.qw-tn-perk:hover{
  transform: translateY(-2px);
  box-shadow: var(--qw-shadow);
}
.qw-tn-perk strong{
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--qw-ink);
}
.qw-tn-perk span{
  font-size: 12.5px;
  color: var(--qw-muted);
  line-height: 1.4;
}

/* ============================================================
   3) MAIN CONTENT â€” Centered card layout
   ============================================================ */
.qw-tn-main{
  max-width: 620px;
  margin: -8px auto 0;
  padding: 0 20px 64px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   4) STEPPER â€” Minimal pills
   ============================================================ */
.qw-tn-stepper{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 32px auto 24px;
  max-width: 320px;
}
.qw-tn-step-pill{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font: 700 13px var(--font);
  color: var(--qw-muted);
  border-bottom: 3px solid var(--qw-border);
  transition: all .3s;
  cursor: default;
}
.qw-tn-step-pill.is-active{
  /* FIX 2026-07-11 (audit flujo · L-02): #1bcf17 como texto de 13px ≈2:1. Token
     solo-texto (fallback AA #0d7d0a); el borde inferior sí queda verde de marca. */
  color: var(--qw-green-text, #0d7d0a);
  border-color: var(--qw-green);
}
.qw-tn-step-pill.is-done{
  color: var(--qw-green-dark);
  border-color: var(--qw-green);
}
.qw-tn-step-num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(15,23,42,.09);
  color: var(--qw-muted);
  font-size: 12px;
  font-weight: 900;
  transition: all .3s;
}
.qw-tn-step-pill.is-active .qw-tn-step-num{
  background: var(--qw-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(27,207,23,.12);
}
.qw-tn-step-pill.is-done .qw-tn-step-num{
  background: var(--qw-green);
  color: #fff;
}
.qw-tn-step-conn{
  width: 40px; height: 3px;
  background: rgba(15,23,42,.09);
  border-radius: 2px;
  flex-shrink: 0;
  transition: background .3s;
}
.qw-tn-step-conn.is-filled{
  background: var(--qw-green);
}

/* ============================================================
   5) FORM CARD
   ============================================================ */
.qw-tn-card{
  background: #ffffff;
  border: none;
  border-radius: var(--qw-radius);
  padding: 32px 28px;
  box-shadow: var(--qw-shadow-lg);
}

.qw-tn-step-title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.qw-tn-step-desc{
  font-size: 14px;
  color: var(--qw-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Step visibility */
.qw-tn-step{
  display: none;
  animation: qwTnStepIn .35s ease both;
}
.qw-tn-step.is-active{
  display: block;
}
@keyframes qwTnStepIn{
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   6) FORM FIELDS
   ============================================================ */
.qw-tn-field{
  margin-bottom: 18px;
}
.qw-tn-field--2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.qw-tn-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--qw-ink);
  margin-bottom: 6px;
}
.qw-tn-req{
  color: #11900f;
  font-weight: 900;
}

.qw-tn-input,
.qw-tn-select,
.qw-tn-textarea{
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--qw-border);
  border-radius: 12px;
  font: 500 14px var(--font);
  color: var(--qw-ink);
  background: #fff;
  transition: border .2s, box-shadow .2s;
  appearance: none;
}
.qw-tn-input:focus,
.qw-tn-select:focus,
.qw-tn-textarea:focus{
  outline: 0;
  border-color: var(--qw-green);
  box-shadow: 0 0 0 3px rgba(27,207,23,.10);
}
.qw-tn-input::placeholder{
  color: rgba(15,23,42,.3);
}
.qw-tn-select{
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231bcf17' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 36px;
}
.qw-tn-textarea{
  resize: vertical;
  min-height: 80px;
}

/* Honeypot */
.qw-tn-honey{
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ============================================================
   7) CHECKBOXES
   ============================================================ */
.qw-tn-checks{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.qw-tn-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--qw-text);
  cursor: pointer;
}
.qw-tn-check input[type="checkbox"]{
  margin-top: 2px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--qw-green);
  cursor: pointer;
}
.qw-tn-check a{
  color: var(--qw-green);
  font-weight: 700;
  text-decoration: none;
}
.qw-tn-check a:hover{
  text-decoration: underline;
}

/* ============================================================
   8) BUTTONS
   ============================================================ */
.qw-tn-actions{
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.qw-tn-btn{
  flex: 1;
  padding: 14px 24px;
  border-radius: 999px;
  font: 800 15px var(--font);
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  border: 0;
}
.qw-tn-btn--primary{
  background: var(--qw-green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(27,207,23,.20);
}
.qw-tn-btn--primary:hover{
  background: var(--qw-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(27,207,23,.28);
}
.qw-tn-btn--back{
  flex: 0 0 auto;
  background: transparent;
  color: var(--qw-muted);
  border: 1.5px solid var(--qw-border);
  padding: 14px 20px;
}
.qw-tn-btn--back:hover{
  border-color: rgba(15,23,42,.20);
  color: var(--qw-ink);
}

/* ============================================================
   9) RGPD INFO BLOCK
   ============================================================ */
.qw-tn-rgpd{
  margin-top: 20px;
  padding: 14px 16px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16,32,51,.05);
  font-size: 11.5px;
  line-height: 1.6;
  color: #475569;
}
.qw-tn-rgpd strong{
  color: var(--qw-ink);
  font-weight: 700;
}
.qw-tn-rgpd a{
  color: var(--qw-green);
}

.qw-tn-legal-micro{
  text-align: center;
  font-size: 11px;
  color: #475569;
  margin-top: 14px;
  line-height: 1.5;
}
.qw-tn-legal-micro a{
  color: var(--qw-green);
  text-decoration: none;
}

/* ============================================================
   10) HOW IT WORKS â€” Below form
   ============================================================ */
.qw-tn-how{
  margin-top: 40px;
  padding: 32px 28px;
  background: #ffffff;
  border: none;
  border-radius: var(--qw-radius);
  box-shadow: var(--qw-shadow);
}
.qw-tn-how h2{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -.2px;
}
.qw-tn-how-steps{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qw-tn-how-step{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.qw-tn-how-num{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--qw-green-soft-6);
  border: 1.5px solid var(--qw-green-border);
  /* FIX 2026-07-11 (audit flujo · L-02): número 13px verde puro sobre wash verde
     (~2:1) → token solo-texto AA. Fondo y borde verdes intactos. */
  color: var(--qw-green-text, #0d7d0a);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.qw-tn-how-step strong{
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.qw-tn-how-step span{
  font-size: 13px;
  color: var(--qw-muted);
  line-height: 1.5;
}
.qw-tn-how-note{
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--qw-green-soft-6);
  border: 1px solid var(--qw-green-border);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #075205;
}

/* ============================================================
   11) REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .qw-tn-step{ animation: none; }
  .qw-tn-perk{ transition: none; }
  .qw-tn-btn{ transition: none; }
}

/* ============================================================
   12) RESPONSIVE â€” Tablet (â‰¤ 760px)
   ============================================================ */
@media (max-width: 760px){
  .qw-tn-perks{
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ============================================================
   13) RESPONSIVE â€” Mobile (â‰¤ 640px)
   ============================================================ */
@media (max-width: 640px){
  .qw-tn-hero{
    padding: 40px 20px 28px;
  }
  .qw-tn-main{
    padding: 0 16px 48px;
  }
  .qw-tn-card{
    padding: 24px 20px;
  }
  .qw-tn-field--2{
    grid-template-columns: 1fr;
  }
  .qw-tn-actions{
    flex-direction: column-reverse;
  }
  .qw-tn-btn{
    width: 100%;
    text-align: center;
  }
  .qw-tn-btn--back{
    flex: 1;
  }
  .qw-tn-how{
    padding: 24px 20px;
  }
}

/* ============================================================
   14) RESPONSIVE â€” Small mobile (â‰¤ 375px)
   ============================================================ */
@media (max-width: 375px){
  .qw-tn-card{
    padding: 20px 16px;
    border-radius: 16px;
  }
  .qw-tn-step-title{
    font-size: 18px;
  }
  .qw-tn-input,
  .qw-tn-select,
  .qw-tn-textarea{
    padding: 11px 14px;
    /* FIX 2026-07-11 (audit flujo · R-01): 14px provocaba zoom automático de iOS
       al focar el campo. 16px es el mínimo anti-zoom, ya aplicado en
       installer-panel.css:586/741 y work-area.css:1547. El candidato rellena
       este formulario desde el móvil. */
    font-size: 16px;
  }
}
