/* Landing /landing - ImpuestosRecuperados
   Diseñado para aprobación publicitaria y máxima claridad.
*/

:root{
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --brand: #16a34a;    /* CTA */
  --brandDark: #15803d;
  --nav: #0b1220;
  --nav2: #111c33;

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 16px;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; display: block; }

.lr-container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.lr-skip{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--panel);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.lr-skip:focus{ left: 10px; z-index: 9999; }

.lr-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--nav), var(--nav2));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.lr-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.lr-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.lr-brand__logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}
.lr-brand__name{
  font-weight: 800;
  letter-spacing: 0.2px;
}
.lr-brand__tag{
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
}

.lr-nav{
  display: flex;
  align-items: center;
  gap: 14px;
}
.lr-nav__link{
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.95rem;
}
.lr-nav__link:hover{ color: #fff; text-decoration: underline; }

.lr-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.lr-btn:focus{
  outline: 3px solid rgba(22,163,74,0.35);
  outline-offset: 2px;
}

.lr-btn--primary{
  background: var(--brand);
  color: #fff;
  border-color: rgba(0,0,0,0.06);
}
.lr-btn--primary:hover{
  background: var(--brandDark);
  transform: translateY(-1px);
}

.lr-btn--secondary{
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.lr-btn--secondary:hover{
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.lr-btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.lr-btn--ghost:hover{
  background: rgba(15,23,42,0.04);
  transform: translateY(-1px);
}

.lr-hero{
  padding: 44px 0 24px;
}
.lr-hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}
.lr-hero__grid--validation{
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}
.lr-hero__copy{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 8px 0;
}
.lr-eyebrow{
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--brandDark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
h1{
  font-size: 2.3rem;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
.lr-lead{
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}
.lr-validator-options{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.lr-validator-option{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lr-validator-option__tag{
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--brandDark);
  background: rgba(22,163,74,0.09);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.7px;
}
.lr-validator-option h2{
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.lr-validator-option p{
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.lr-validator-option .lr-btn{
  width: 100%;
  white-space: normal;
  text-align: center;
}
.lr-validator-trigger.is-active{
  background: var(--brandDark);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.lr-privacy-note{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.lr-privacy-note strong{ color: var(--text); }
.lr-privacy-note__icon{
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}
.lr-hero-guide{
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lr-hero-guide__label{
  display: block;
  margin-bottom: 18px;
  font-weight: 900;
}
.lr-hero-guide__steps{
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.lr-hero-guide__steps li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lr-hero-guide__steps li > span{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--nav);
  font-weight: 900;
}
.lr-hero-guide__steps strong,
.lr-hero-guide__steps small{
  display: block;
}
.lr-hero-guide__steps small{
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.lr-hero-guide__result{
  margin-top: 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.18);
}
.lr-hero-guide__result > strong,
.lr-hero-guide__result > span{ display: block; }
.lr-hero-guide__result span{
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.lr-hero-guide__contact{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.86rem;
}
.lr-hero-guide__contact::before{
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.lr-hero-guide__contact a{
  color: #1d4ed8;
  overflow-wrap: anywhere;
}
.lr-hero-guide__contact a:hover{ color: var(--brandDark); }
.lr-hero-guide__contact span{
  color: #4ade80;
  font-size: 1.1rem;
  vertical-align: -1px;
}

.lr-validator-workspace{
  scroll-margin-top: 78px;
  padding: 28px 0 36px;
  background: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(15,23,42,0.07);
  border-bottom: 1px solid rgba(15,23,42,0.07);
  outline: none;
}
.lr-validator-workspace[hidden]{ display: none; }
.lr-validator-workspace__header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}
.lr-validator-workspace__eyebrow{
  display: block;
  margin-bottom: 6px;
  color: var(--brandDark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.lr-validator-workspace__header h2{ margin-bottom: 5px; }
.lr-validator-workspace__header p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.lr-validator-switcher{
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}
.lr-validator-switcher button{
  min-width: 78px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
}
.lr-validator-switcher button.is-active{
  color: #fff;
  background: var(--brand);
}
.lr-validator-workspace__status{
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.lr-validator-frame-wrap{
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lr-validator-frame-wrap::before{
  content: "Cargando verificador…";
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  z-index: 1;
}
.lr-validator-workspace.is-loading .lr-validator-frame-wrap::before{ display: grid; }
#validatorFrame{
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
  background: #fff;
}
.lr-validator-workspace__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.lr-validator-workspace__footer p{
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.lr-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.lr-cta--center{
  justify-content: center;
  margin-top: 18px;
}

.lr-notice{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-top: auto;
}
.lr-notice__title{
  font-weight: 800;
  margin-bottom: 6px;
}
.lr-notice__text{
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.lr-hero__art{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.lr-ecosystem-preview{
  padding: 18px;
}
.lr-ecosystem-preview__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.lr-ecosystem-preview__header strong{
  color: var(--text);
  letter-spacing: 0.4px;
}
.lr-pipeline{
  display: grid;
  gap: 10px;
}
.lr-pipeline__item{
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .12s ease, background .2s ease;
}
a.lr-pipeline__item:hover{
  border-color: rgba(22,163,74,0.30);
  transform: translateY(-1px);
}
.lr-pipeline__item::after{
  content: "";
  position: absolute;
  left: 41px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: rgba(22,163,74,0.35);
}
.lr-pipeline__item:last-child::after{ display: none; }
.lr-pipeline__item strong{
  font-size: 1rem;
}
.lr-pipeline__item small{
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
}
.lr-pipeline__item--accent{
  border-color: rgba(22,163,74,0.28);
  background: rgba(22,163,74,0.07);
}
.lr-pipeline__tag{
  grid-row: span 2;
  width: 48px;
  min-height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}
.lr-ecosystem-preview__result{
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
}
.lr-ecosystem-preview__result span{
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.lr-ecosystem-preview__result strong{
  display: block;
  line-height: 1.35;
}

.lr-section{
  padding: 40px 0;
}
.lr-section[id]{
  scroll-margin-top: 64px;
}
.lr-section--alt{
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

h2{
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.2px;
}
.lr-sub{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.lr-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lr-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 16px;
}
.lr-card h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.lr-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.lr-card--flat{ box-shadow: none; }

.lr-ecosystem-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.lr-ecosystem-card span{
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brandDark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.lr-ecosystem-card--tax span{
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22,163,74,0.09);
  font-size: 0.92rem;
  letter-spacing: 0.7px;
}
.lr-ecosystem-card{
  display: flex;
  flex-direction: column;
}
.lr-ecosystem-card a{
  display: inline-flex;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 12px;
  color: var(--brandDark);
  font-weight: 800;
  text-align: right;
  text-decoration: none;
}
.lr-ecosystem-card a:hover{
  text-decoration: underline;
}
.lr-ecosystem-card__free{
  display: inline-flex;
  justify-content: center;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 999px;
  color: var(--brandDark);
  background: rgba(22,163,74,0.09);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-align: center;
  align-self: center;
}

.lr-banner{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.lr-banner__text{ color: var(--text); line-height: 1.45; }

.lr-steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lr-step{
  display: flex;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.lr-step__num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--brand);
}
.lr-step__body h3{ margin: 0 0 6px; }
.lr-step__body p{ margin: 0; color: var(--muted); line-height: 1.5; }

.lr-process-flow{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 10px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--nav);
  text-align: center;
}
.lr-process-flow strong{
  position: relative;
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 7px 22px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  font-size: 1.02rem;
  line-height: 1.25;
}
.lr-process-flow strong:not(:last-child)::after{
  content: "→";
  position: absolute;
  right: -21px;
  top: 50%;
  color: #86efac;
  font-size: 1.55rem;
  transform: translateY(-50%);
  z-index: 1;
}

.lr-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lr-panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.lr-callout h3{ margin: 0 0 8px; }
.lr-callout p{ margin: 0 0 12px; color: var(--muted); line-height: 1.55; }

.lr-list{
  margin: 0;
  padding-left: 18px;
}
.lr-list li{
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}
.lr-list li strong{ color: var(--text); }

.lr-faq{ display: grid; gap: 10px; margin-top: 10px; }
.lr-faq__item{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.lr-faq__item summary{ cursor: pointer; font-weight: 800; }
.lr-faq__item p{ margin: 10px 0 0 18px; color: var(--muted); line-height: 1.55; }

.lr-transparency{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.lr-muted{ color: var(--muted); line-height: 1.55; }

.lr-kv{ display: grid; gap: 10px; margin-top: 10px; }
.lr-kv div{
  padding: 10px 12px;
  border: 1px dashed rgba(15,23,42,0.14);
  border-radius: 12px;
  background: rgba(15,23,42,0.02);
}
.lr-kv span{ color: var(--muted); }

.lr-footer{
  background: linear-gradient(180deg, var(--nav), var(--nav2));
  color: rgba(255,255,255,0.85);
  padding: 22px 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.lr-footer__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lr-footer__brand{ font-weight: 900; color: #fff; margin-bottom: 6px; }
.lr-footer__small{ max-width: 620px; color: rgba(255,255,255,0.75); line-height: 1.45; font-size: 0.95rem; }
.lr-footer__right{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.lr-footer__link{ color: rgba(255,255,255,0.80); text-decoration: none; }
.lr-footer__link:hover{ color: #fff; text-decoration: underline; }

.datos-servicio {
  display: flex;
  gap: 1.5em;
  margin: 1em 0;
  flex-wrap: wrap;
}
.datos-col {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.dato-label {
  color: #444;
  font-weight: 500;
  min-width: 120px;
}
.dato-valor {
  color: #222;
  font-weight: bold;
  word-break: break-all;
}

@media (max-width: 980px){
  .lr-nav__link{ display: none; }
  .lr-hero__grid{ grid-template-columns: 1fr; }
  .lr-validator-options{ grid-template-columns: 1fr; }
  .lr-hero__copy{
    justify-content: flex-start;
    padding: 0;
  }
  .lr-notice{ margin-top: 0; }
  h1{ font-size: 2.0rem; }
  .lr-cards{ grid-template-columns: 1fr; }
  .lr-ecosystem-grid{ grid-template-columns: 1fr; }
  .lr-steps{ grid-template-columns: 1fr; }
  .lr-split{ grid-template-columns: 1fr; }
  .lr-transparency{ grid-template-columns: 1fr; }
  .lr-footer__inner{ flex-direction: column; }
  .lr-footer__right{ justify-content: flex-start; }
  .lr-validator-workspace__header,
  .lr-validator-workspace__footer{
    align-items: stretch;
    flex-direction: column;
  }
  .lr-validator-switcher{ align-self: flex-start; }
  .lr-validator-workspace__footer .lr-btn{ align-self: flex-start; }
}

@media (max-width: 560px){
  .lr-hero{ padding-top: 28px; }
  h1{ font-size: 1.75rem; }
  .lr-validator-option{ padding: 15px; }
  .lr-hero-guide{ padding: 18px; }
  .lr-validator-frame-wrap,
  #validatorFrame{ min-height: 76vh; }
  .lr-validator-switcher{ width: 100%; }
  .lr-validator-switcher button{ flex: 1; }
  .lr-validator-workspace__footer .lr-btn{ width: 100%; }
  .lr-process-flow{
    grid-template-columns: 1fr;
  }
  .lr-process-flow strong:not(:last-child)::after{
    right: 50%;
    top: auto;
    bottom: -19px;
    transform: translateX(50%) rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
