/* Estilos completos del simulador fiscal, idénticos al original */
/* ====== PALETA ====== */
:root{
  --fd-blue:#015D8E;
  --fd-blue-700:#0e5f8e;
  --fd-blue-900:#003b5b;
  --fd-light:#E6F1F8;
  --fd-accent:#FCB6A1;
  --fd-green:#38B43A;
  --fd-text:#163248;
  --fd-muted:#6c7c8b;
  --fd-border:#dbe6ef;
  --fd-shadow: 0 8px 20px rgba(1,93,142,.10);
}

/* Contenedor general del simulador (borde redondeado como la referencia) */
#fiscal-simulation{
  max-width: 720px;
  margin: 24px auto;
  border-radius: 18px;
  overflow: hidden;
  color: var(--fd-text);
}

/* Quita márgen al título superior si lo usás */
#fiscal-simulation .titulo-form{ margin:0; padding:0; display:none; }

/* ====== STEP 3 (RESULTADO) ====== */
.stept-3 .head{
  background: var(--fd-blue);
  color:#fff;
  text-align:center;
  padding: 28px 24px;
}
.stept-3 .head .user-name{
  margin:0 0 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.stept-3 .head p{
  margin:4px 0;
  font-size: 20px;
  font-weight: 700;          /* “Simulación para:” / “Residente en:” */
}
.stept-3 .head p span{
  font-weight: 400;          /* “Persona Física”, “Asturias” */
}

/* Cuerpo */
.stept-3 .bod{
  padding: 22px 28px 8px;
}

/* ----- Caja: Datos ingresados ----- */
.stept-3 .datos{
  border:1px solid var(--fd-border);
  border-radius: 10px;
  overflow: hidden;
  background:#fff;
  margin-bottom: 22px;
}
.stept-3 .datos .hd{
  display:flex; align-items:center; gap:12px;
  padding: 12px 16px;
  border-bottom:1px solid var(--fd-border);
  background:#fff;
}
.stept-3 .datos .hd a{
  color: var(--fd-blue); text-decoration: underline; font-size:14px;
}
.stept-3 .datos .hd p{
  flex:1; margin:0; text-align:center; font-weight:700; color:#1e4665;
  font-size:18px;
}
.stept-3 .datos .hd button{
  border:0; background:transparent; padding:4px; line-height:0; cursor:pointer;
}
.stept-3 .datos .bd .item{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 16px;
  border-top:1px solid #eef3f7;
}
.stept-3 .datos .bd .item:first-child{ border-top:0; }
.stept-3 .datos .bd .item p{ margin:0; font-size:15px; }
#base-imponible-text, #base-ahorro-text{ font-weight:600; color:#5a6f80; }

/* ----- Caja: Cuota a pagar ----- */
.stept-3 .cuota{
  border:1px solid var(--fd-border);
  border-radius: 10px;
  overflow: hidden;
  background:#fff;
}
.stept-3 .cuota .hd{
  border-bottom:1px solid var(--fd-border);
  text-align:center;
  padding: 12px 16px;
  font-weight:700; color:#1e4665;
}
.stept-3 .cuota .bd{
  display:flex; align-items:center; justify-content:space-between;
  padding: 24px;
  gap: 24px;
}
.stept-3 .cuota .bd .item{ flex:1; text-align:center; }
.stept-3 .cuota .bd .money{
  font-size: 28px; font-weight: 700; margin:0;
  color: #1a5d86;
}
.stept-3 .cuota .bd .tached{
  color:#a7b7c3; text-decoration: line-through;
}
.stept-3 .cuota .bd .desc{
  margin-top:6px; color:#3c5569; font-size:14px;
}
.stept-3 .cuota .bd .desc span{ font-weight:700; }
.stept-3 .cuota .bd .line{
  width:1px; height:52px; background:#cfe0ea;
}

.stept-3 .cuota .foot{
  display:flex; align-items:center; gap:10px;
  background: var(--fd-blue);
  color:#fff; padding: 12px 16px;
}
.stept-3 .cuota .foot svg{ flex:0 0 auto; }
.stept-3 .cuota .foot p{ margin:0; }
.stept-3 .cuota .foot .ahorro{
  margin-left:8px; font-weight:800; font-size:20px;
}

/* ----- Bloque celeste con CTA ----- */
.stept-3 .button-container{
  background: var(--fd-light);
  margin: 24px -28px 0;
  padding: 26px 28px 32px;
  text-align:center;
}
.stept-3 .button-container::before{
  content:"¿Quiere ver la simulación de ahorro completa?";
  display:block;
  margin-bottom: 14px;
  font-size:18px; color:#1c3f5a;
}
.stept-3 .button-container button{
  background: var(--fd-accent);
  color:#173446;
  border:0; border-radius:10px;
  padding: 14px 22px;
  font-weight:700; font-size:18px;
  cursor:pointer;
  box-shadow: 0 4px 10px rgba(252,182,161,.4);
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
}
.stept-3 .button-container button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(252,182,161,.5);
}

/* ====== STEP 4 ÉXITO (por si querés afinar) ====== */
.stept-4-success .cont-content{
  text-align:center; padding: 18px 10px 6px;
}
.stept-4-success .data .em{ font-weight:700; color:#173446; }

/* ====== BOTONES GENERALES ====== */
#fiscal-simulation button{
  font-family: inherit;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 520px){
  #fiscal-simulation{ border-width:1.5px; }
  .stept-3 .head{ padding:22px 16px; }
  .stept-3 .head .user-name{ font-size:24px; }
  .stept-3 .head p{ font-size:18px; }
  .stept-3 .bod{ padding: 16px 16px 6px; }
  .stept-3 .cuota .bd{ padding:18px; gap:16px; }
  .stept-3 .cuota .bd .money{ font-size:24px; }
  .stept-3 .cuota .foot .ahorro{ font-size:18px; }
  .stept-3 .button-container{ margin:20px -16px 0; padding:22px 16px 26px; }
  .stept-3 .button-container button{ font-size:16px; }
}


/* ===== Selector Persona (Step 1) ===== */
.stept-1 .head {
  background: var(--fd-blue); /* mismo azul del resto */
  color:#fff;
  padding:18px 20px;
}

.stept-1 .persona-selector{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.stept-1 .persona-btn{
  appearance:none;
  border:0;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  background:#fff;             /* no seleccionado */
  color:var(--fd-blue);
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.stept-1 .persona-btn:hover{ transform: translateY(-1px); }

.stept-1 .persona-btn:focus-visible{
  outline: 3px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

/* Seleccionado: el JS aplica .selected al padre de cada botón */
.stept-1 .persona-option.selected .persona-btn{
  background:#9FB1C6 ;  
  color:#fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}

/* Tamaños en móvil */
@media (max-width:520px){
  .stept-1 .persona-btn{ padding:9px 12px; }
}

/* Quitar la frase del CTA azul cuando está el form inline */
.stept-3 .button-container::before{ content:none; }

/* Formulario inline (Step 3) */
.stept-3 .inline-sim-form{
  padding: 18px 28px 24px;
}
.stept-3 .inline-sim-form .row{
  display:grid;
  grid-template-columns: 120px 1fr;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.stept-3 .inline-sim-form .row label{
  color:#1b3f59;
  font-weight:600;
}
.stept-3 .inline-sim-form input[type="email"],
.stept-3 .inline-sim-form input[type="tel"]{
  width:100%;
  border:1px solid var(--fd-border);
  border-radius:8px;
  padding:12px 14px;
  font-size:16px;
}
.stept-3 .inline-sim-form .row-check{
  align-items:flex-start;
}
.stept-3 .inline-sim-form .check-wrap{
  display:flex; gap:10px; line-height:1.4;
}
.stept-3 .inline-sim-form .row-btn{
  margin-top:10px;
}
.stept-3 .inline-sim-form .row-btn button{
  background:#b8c9d8; /* deshabilitado */
  color:#173446;
  border:0; border-radius:10px;
  padding: 14px 22px;
  font-weight:700; font-size:18px;
  cursor:not-allowed;
  transition: filter .2s ease;
}
.stept-3 .inline-sim-form .row-btn button:enabled{
  background: var(--fd-accent);
  cursor:pointer;
}
.stept-3 .inline-sim-form .row-btn button:enabled:hover{
  filter: brightness(1.02);
}

/* Responsive */
@media (max-width:520px){
  .stept-3 .inline-sim-form{ padding:16px; }
  .stept-3 .inline-sim-form .row{
    grid-template-columns: 1fr;
  }
  .stept-3 .inline-sim-form .row label{
    margin-bottom:4px;
  }
  .stept-3 .inline-sim-form .row-btn label{ display:none; }
}

/* ===== STEP 4 — Confirmación de envío ===== */

.stept-4{
  /* fondo azul ocupando toda la vista del paso */
  background: var(--fd-blue);
  border: 2px solid var(--fd-blue);
  border-radius: 18px;
  padding: 28px 22px 32px;
  color:#0e4e6f;
}

.stept-4 .stept-4-success .cont-content{
  max-width: 560px;
  margin: 0 auto;
  background:#fff;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(1,93,142,.12);
  padding: 28px 26px 22px;
  text-align:center;
}

/* Check verde arriba */
.stept-4 .data > svg{
  display:block;
  margin: 6px auto 10px;
}

/* Nombre del usuario */
.stept-4 .data .user-name{
  margin: 6px 0 12px;
  font-weight: 700;
  font-size: 22px;
  color:#0f5e86;
}

/* Mensaje principal */
.stept-4 .data p{
  margin: 8px 0;
  color:#0f5e86;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

/* Email grande y destacado */
.stept-4 .data .em{
  margin: 10px 0 14px;
  font-weight: 700;
  font-size: 20px;
  color:#0f5e86;
  word-break: break-word;
}

/* Separador fino */
.stept-4 .data .line{
  height:1px;
  background:#d7e6f0;
  margin: 14px auto 12px;
  width: 84%;
}

/* Subtítulo “Contacta con un experto…” */
.stept-4 .data .subtitle{
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 2px;
}

/* Links (Calendly y WhatsApp) alineados con iconos */
.stept-4 .data a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color:#0f5e86;
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
}
.stept-4 .data a svg{ flex:0 0 auto; }

/* Botón coral inferior */
.stept-4 .cont-content > button{
  margin: 18px auto 0;
  display: inline-block;
  background: var(--fd-accent);     /* coral */
  color:#ffffff;
  border:0;
  border-radius:10px;
  padding: 14px 22px;
  font-weight:700;
  font-size:18px;
  cursor:pointer;
  box-shadow: 0 6px 14px rgba(252,182,161,.35);
  transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}
.stept-4 .cont-content > button:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(252,182,161,.45);
}

/* Responsive */
@media (max-width:520px){
  .stept-4{ padding:22px 14px 26px; }
  .stept-4 .stept-4-success .cont-content{ padding:22px 16px 18px; }
  .stept-4 .data p{ font-size:17px; }
  .stept-4 .data .em{ font-size:19px; }
  .stept-4 .data a{ font-size:18px; }
}


