/* =========================
   EMPRESA RECURRENTE P1 (ÚNICO CSS)
   - Estilo clonado del vaciadoP1.css
   - Steps con Lucide (svg)
   - Layout de 2 columnas
   ========================= */

:root{
  --green:#1f7a4a;
  --text:#111111;
  --line:#e7e7e7;

  --muted:#8b8b8b;
  --border:#e6e6e6;
  --bg-input:#f6f6f8;

  --shadow-card:0 12px 30px rgba(0,0,0,0.10);
  --shadow-soft:0 10px 22px rgba(0,0,0,0.10);

  --radius:18px;
  --font:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{ box-sizing:border-box; }
body{ margin:0; font-family:var(--font); color:var(--text); }

/* =========================
   HERO
   ========================= */
.ps-hero{
  max-width:1200px;
  margin:46px auto 8px auto;
  padding:0 18px;
  text-align:center;
}
.ps-hero h1{
  margin:0;
  line-height:1.08;
  letter-spacing:-0.6px;
  font-weight:400;
  font-size:52px;
  white-space:nowrap;
}
.ps-hero .ps-accent{
  color:var(--green);
  font-weight:800;
  font-size:74px;
  letter-spacing:-1px;
}

/* =========================
   STEPS
   ========================= */
.ps-steps-wrap{
  position:relative;
  max-width:980px;
  margin:28px auto 64px auto;
  padding:0 18px;
}
.ps-steps{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
.ps-step{
  width:160px;
  flex:0 0 160px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  color:#bcbcbc;
  font-size:16px;
  font-weight:400;
}
.ps-step-text{
  margin-top:10px;
  line-height:1.1;
}

.ps-step-icon{
  width:92px;
  height:92px;
  border-radius:50%;
  background:#fff;
  border:none;
  box-shadow:0 10px 22px rgba(0,0,0,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:3;
}
.ps-step-icon svg{
  width:50px;
  height:50px;
  color:#cfcfcf;
}

.ps-step.active{ color:var(--green); font-weight:500; }
.ps-step.active .ps-step-icon{
  background:var(--green);
  box-shadow:0 12px 28px rgba(0,0,0,0.12);
}
.ps-step.active svg{ color:#fff; }

.ps-step.done{ 
  color:var(--green) !important; 
  font-weight:500; 
  position:relative;
}
.ps-step.done .ps-step-text{ 
  color:var(--green) !important; 
}
.ps-step.done svg{ 
  color:var(--green) !important; 
}
.ps-step.done .ps-step-icon svg{ 
  color:var(--green) !important; 
}

/* Línea verde desde el centro del paso "done" hasta el centro del siguiente paso */
.ps-step.done::after{
  content: '';
  position: absolute;
  top: 46px;
  left: 50%;
  width: 160px;
  height: 2px;
  background: var(--green);
  z-index: 2;
  border-radius: 999px;
}

.ps-step.done:last-child::after{
  display: none;
}

.ps-step-line{
  position:absolute;
  left:calc(18px + 46px);
  right:calc(18px + 46px);
  top:46px;
  height:2px;
  background:var(--line);
  border-radius:999px;
  z-index:1;
}

/* =========================
   LAYOUT (form + imagen)
   ========================= */
.mudanza-main{
  max-width:1180px;
  margin:18px auto 80px auto;
  padding:0 18px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:44px;
}

/* Card del form */
.mudanza-form-card{
  width:100%;
  max-width:800px;
  background:#fff;
  border:1px solid #efefef;
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:34px 34px 26px 34px;
}

.mudanza-form-card h2{
  margin:0 0 24px 0;
  font-size:26px;
  font-weight:700;
  color:#222;
  text-align:center;
}

.mudanza-form-card label{
  display:block;
  font-size:14px;
  font-family:'Montserrat', system-ui, -apple-system, sans-serif;
  color:#000000;
  padding:0px 0px 6px;
  margin-bottom:0;
  font-weight:600;
}

/* =========================
   LAYOUT DE 2 COLUMNAS
   ========================= */
.recurrente-two-columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:32px;
  margin-bottom:16px;
}

.recurrente-column{
  display:flex;
  flex-direction:column;
}

.recurrente-section-title{
  font-size:16px;
  font-weight:700;
  color:#000000;
  margin:0 0 16px 0;
  padding-bottom:8px;
  border-bottom:2px solid var(--border);
}

/* =========================
   INPUTS Y SELECTS
   ========================= */
.mudanza-form-card input[type="text"],
.mudanza-form-card input[type="number"],
.mudanza-form-card input[type="date"],
.mudanza-form-card select{
  width:100%;
  height:44px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--bg-input);
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
  font-size:15px;
  font-weight:500;
  color:#2b2b2b;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  margin-bottom:16px;
  font-family:var(--font);
}

.mudanza-form-card input::placeholder{ 
  color:#9aa0a6; 
  font-weight:500;
}

.mudanza-form-card input:hover,
.mudanza-form-card select:hover{
  border-color:rgba(31,122,74,0.35);
  box-shadow:0 2px 8px rgba(31,122,74,0.1);
}

.mudanza-form-card input:focus,
.mudanza-form-card select:focus{
  border-color:rgba(31,122,74,0.45);
  box-shadow:0 0 0 4px rgba(31,122,74,0.10);
  background:#fff;
}

/* Input con unidad */
.input-with-unit{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}

.input-with-unit input{
  flex:1;
  margin-bottom:16px;
}

.input-unit{
  font-size:14px;
  font-weight:600;
  color:#666;
  white-space:nowrap;
  margin-bottom:16px;
}

/* Input con select */
.input-with-select{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}

.input-with-select input[type="number"]{
  width:100px;
  flex-shrink:0;
  margin-bottom:0;
}

.input-separator{
  font-size:14px;
  font-weight:600;
  color:#666;
  white-space:nowrap;
}

.input-with-select select{
  flex:1;
  margin-bottom:0;
}

/* Select personalizado */
.mudanza-form-card select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
  cursor: pointer;
}

/* Asterisco de campos obligatorios */
.required-asterisk {
  color: #d92d20;
  margin-left: 4px;
  font-weight: 700;
}

/* Campos con error */
.mudanza-form-card input.error,
.mudanza-form-card select.error {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1) !important;
}

/* Hints de validación */
.field-hints{
  list-style:none;
  padding:0;
  margin:-8px 0 14px 0;
  font-size:13px;
  display:block;
}
.field-hints[hidden]{
  display:none !important;
}
.field-hints li{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  line-height:1.25;
  margin:6px 0;
  color:#666;
}
.field-hints li::before{
  content:"✕";
  font-weight:700;
  font-size:14px;
  width:16px;
  display:inline-block;
  flex-shrink:0;
}
.field-hints li.is-bad{ color:#e53935; }
.field-hints li.is-bad::before{ color:#e53935; }
.field-hints li.is-ok{ color:#2e7d32; }
.field-hints li.is-ok::before{ content:"✓"; color:#2e7d32; }

/* Actions */
.mudanza-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
}
.mudanza-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:36px;
  padding:0 14px;
  border-radius:8px;
  border:1px solid #d6d6d6;
  background:#fff;
  color:#2b2b2b;
  text-decoration:none;
  font-family:'Open Sans', sans-serif;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mudanza-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(31,122,74,0.35);
  box-shadow:0 10px 22px rgba(0,0,0,0.10);
}

/* Card imagen */
.mudanza-img-card{
  width:380px;
  height:560px;
  border-radius:var(--radius);
  border:1px solid #d6d6d6;
  background:#fff;
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:1200px){
  .ps-hero h1{ font-size:46px; white-space:normal; }
  .ps-hero .ps-accent{ font-size:66px; }
}

@media (max-width:980px){
  .ps-step-line{ display:none; }
  .ps-steps{ justify-content:center; flex-wrap:wrap; gap:26px 22px; }
  .ps-step{ width:160px; flex:0 0 160px; }

  .recurrente-two-columns{
    grid-template-columns: 1fr;
    gap:24px;
  }
}

@media (max-width:1100px){
  .mudanza-main{ flex-direction:column; align-items:center; gap:24px; }
  .mudanza-form-card{ width:100%; max-width:620px; }
  .mudanza-img-card{ width:100%; max-width:620px; height:360px; }
}

@media (max-width:520px){
  .ps-hero h1{ font-size:34px; }
  .ps-hero .ps-accent{ font-size:48px; }
}
