:root {
  color-scheme: light;
  --navy: #142b47;
  --navy-deep: #0d2138;
  --navy-soft: #294763;
  --lilac: #b597df;
  --lilac-light: #eee7f8;
  --paper: #f9f8f6;
  --white: #ffffff;
  --ink: #172436;
  --muted: #647084;
  --line: #dfe2e7;
  --success: #2d7562;
  --danger: #a53e52;
  --shadow: 0 24px 70px rgba(20, 43, 71, 0.12);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
button, input { font: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(20, 43, 71, 0.13);
}

.brand-logo {
  position: relative;
  display: block;
  width: 244px;
  height: 68px;
  overflow: hidden;
}

.brand-logo img {
  position: absolute;
  top: -178px;
  left: -90px;
  width: 420px;
  max-width: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav-link {
  position: relative;
  padding: 15px 0 12px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--lilac);
  border-radius: 3px 3px 0 0;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active { color: var(--navy); }
.nav-link.active::after,
.nav-link:hover::after { opacity: 1; transform: scaleX(1); }

.nav-link:focus-visible,
.nav-submenu-link:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 4px;
}

.nav-menu { position: relative; }

.nav-menu-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu-trigger::-webkit-details-marker { display: none; }
.nav-menu-trigger::marker { display: none; content: ""; }

.nav-menu-chevron {
  display: inline-block;
  color: #7653a3;
  font-size: .8rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-menu[open] .nav-menu-chevron { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 250px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(20, 43, 71, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.nav-menu[open] .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-submenu-link {
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.nav-submenu-link:hover,
.nav-submenu-link.active {
  color: var(--navy);
  background: var(--lilac-light);
}

.header-cta {
  padding: 11px 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);
  gap: clamp(56px, 7vw, 105px);
  align-items: stretch;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 18px;
  color: #7c5eaa;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.calculator-intro h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em { color: var(--lilac); font-weight: 500; }

.hero h1.hero-title { font-size: clamp(3.9rem, 6.1vw, 4.9rem); line-height: .92; }
.hero-title > span { display: block; white-space: nowrap; }

.hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--navy-deep); }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--line); }
.button-secondary:hover { border-color: var(--lilac); }
.button-light { color: var(--navy); background: var(--white); }

.source-badge > span {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--navy);
  background: var(--lilac-light);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.portrait-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.credentials-strip {
  width: 100%;
  padding: 0 24px;
  background: var(--lilac-light);
  border-top: 1px solid rgba(20, 43, 71, .09);
  border-bottom: 1px solid rgba(20, 43, 71, .09);
}

.credentials-strip-inner {
  display: grid;
  grid-template-columns: .95fr 1.15fr 1.35fr .85fr 1.3fr;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.credential-highlight {
  min-width: 0;
  padding: 31px clamp(20px, 2.2vw, 34px);
}

.credential-highlight + .credential-highlight { border-left: 1px solid rgba(20, 43, 71, .12); }
.credential-highlight:first-child { padding-left: 0; }
.credential-highlight:last-child { padding-right: 0; }

.credential-highlight strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.credential-highlight strong span { font-size: 1.2em; }

.credential-highlight p {
  max-width: 280px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.credential-specialties { display: grid; gap: 4px; }

.intro-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(50px, 10vw, 160px);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.section-heading h2,
.calendar-summary h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-lead { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.value-card { display: flex; min-height: 310px; flex-direction: column; padding: 34px; background: var(--white); border-right: 1px solid var(--line); }
.value-card:last-child { border-right: 0; }
.value-card-dark { color: var(--white); background: var(--navy); }
.value-card-lilac { background: var(--lilac-light); }
.card-number {
  display: block;
  align-self: flex-end;
  margin-bottom: 70px;
  color: #7c5eaa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.value-card h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.value-card-dark p { color: rgba(255,255,255,.68); }

.services-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 72px;
  scroll-margin-top: 24px;
}

.services-heading {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.services-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.service-card {
  display: flex;
  min-width: 0;
  min-height: 370px;
  flex-direction: column;
  padding: 34px;
  background: var(--white);
}

.service-number {
  align-self: flex-end;
  color: #7c5eaa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.service-card-body { margin-top: 42px; }

.service-card h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.7;
}

.service-card .service-process {
  margin-top: 20px;
  padding-top: 17px;
  color: var(--navy-soft);
  border-top: 1px solid var(--lilac-light);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.65;
}

.tools-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 110px;
}

.available-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 42px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.available-tool-label {
  color: #7c5eaa;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.available-tool-card h3 {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.available-tool-card .button { flex: 0 0 auto; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.site-footer > div:first-child { display: grid; gap: 3px; }
.site-footer strong { color: var(--navy); }
.site-footer span, .site-footer p { color: var(--muted); }
.site-footer p { margin: 0; text-align: right; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* Tratamiento de datos */
.privacy-page { background: var(--paper); }
.privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: end;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 85px 0 65px;
}
.privacy-hero h1 { max-width: 780px; margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(3.3rem, 6vw, 5.8rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.privacy-hero-copy { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.privacy-meta { display: block; margin-top: 20px; color: var(--navy); font-size: .76rem; font-weight: 750; }
.privacy-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(45px, 8vw, 100px); align-items: start; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 55px 0 105px; border-top: 1px solid var(--line); }
.privacy-index { position: sticky; top: 24px; display: grid; gap: 7px; padding: 24px; background: var(--lilac-light); border-radius: 18px; }
.privacy-index strong { margin-bottom: 8px; color: var(--navy); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.privacy-index a { padding: 5px 0; color: var(--muted); font-size: .76rem; line-height: 1.35; text-decoration: none; }
.privacy-index a:hover { color: var(--navy); }
.privacy-content { display: grid; gap: 16px; }
.privacy-section { padding: 31px 34px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 24px; }
.privacy-section h2 { margin: 0 0 15px; color: var(--navy); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.privacy-section h3 { margin: 22px 0 9px; color: var(--navy); font-size: .9rem; }
.privacy-section p, .privacy-section li { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.privacy-section p { margin: 0; }
.privacy-section p + p { margin-top: 12px; }
.privacy-section ul { margin: 12px 0 0; padding-left: 20px; }
.privacy-section li + li { margin-top: 7px; }
.privacy-section a { color: #674991; font-weight: 700; }
.privacy-contact { color: var(--white); background: var(--navy); border-color: var(--navy); }
.privacy-contact h2, .privacy-contact h3 { color: var(--white); }
.privacy-contact p, .privacy-contact li { color: rgba(255,255,255,.72); }
.privacy-contact a { color: var(--white); }

/* Consulta de renta */
.tool-page { background: var(--paper); }

.renta-steps-main { min-height: 720px; padding-bottom: 100px; }
.steps-heading { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 45px; }
.steps-heading .back-link { margin-bottom: 38px; }
.steps-heading h1 { max-width: 900px; margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5.7vw, 5.5rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.steps-heading > p:last-child { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.tax-steps { display: grid; gap: 14px; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.tax-step { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 35px rgba(20,43,71,.05); }
.tax-step > summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) 42px; gap: 24px; align-items: center; min-height: 122px; padding: 24px 32px; cursor: pointer; list-style: none; }
.tax-step > summary::-webkit-details-marker { display: none; }
.tax-step > summary::marker { display: none; content: ""; }
.tax-step > summary:hover { background: rgba(238,231,248,.45); }
.tax-step > summary:focus-visible { outline: 3px solid var(--lilac); outline-offset: -4px; }
.tax-step-number { display: grid; width: 58px; height: 58px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: .75rem; font-weight: 850; letter-spacing: .06em; }
.tax-step-summary { display: grid; gap: 5px; min-width: 0; }
.tax-step-summary small { color: #7653a3; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.tax-step-summary strong { color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 500; line-height: 1.08; }
.tax-step-summary > span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.tax-step-toggle { display: grid; width: 40px; height: 40px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; }
.tax-step-toggle::before { content: "+"; font-size: 1.35rem; line-height: 1; }
.tax-step[open] .tax-step-toggle::before { content: "−"; }
.tax-step[open] > summary { border-bottom: 1px solid var(--line); }
.tax-step-panel { padding: 38px 42px 42px; }
.panel-heading { max-width: 760px; }
.panel-heading h2, .tax-step-action-panel h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; line-height: 1.1; }
.panel-heading p, .tax-step-action-panel p { margin: 12px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.tax-step-panel .thresholds-grid { margin-top: 30px; }
.tax-step-dian { border: 2px solid var(--lilac); }
.tax-step-calculator > summary { color: var(--white); background: var(--navy); }
.tax-step-calculator > summary:hover { background: var(--navy-deep); }
.tax-step-calculator .tax-step-number { color: var(--navy); background: var(--lilac); }
.tax-step-calculator .tax-step-summary small { color: var(--lilac); }
.tax-step-calculator .tax-step-summary strong { color: var(--white); }
.tax-step-calculator .tax-step-summary > span { color: rgba(255,255,255,.68); }
.tax-step-calculator .tax-step-toggle { color: var(--navy); background: var(--white); }
.tax-step-contact > summary { background: var(--lilac-light); }
.tax-step-action-panel { display: flex; gap: 45px; align-items: center; justify-content: space-between; }
.tax-step-action-panel > div:first-child { max-width: 680px; }
.step-action { display: grid; flex: 0 0 230px; gap: 8px; text-align: center; }
.step-action small { color: var(--muted); font-size: .66rem; line-height: 1.4; }
.calculator-step-panel { background: #f3f0f7; }
.calculator-step-panel .calculator-card { max-width: 760px; margin: 0 auto; }
.calendar-link { display: inline-block; margin-top: 18px; color: var(--navy); font-size: .72rem; font-weight: 750; text-decoration: none; }

.thresholds-section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.thresholds-heading { max-width: 800px; }
.thresholds-heading .back-link { margin-bottom: 42px; }
.thresholds-heading h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}
.thresholds-heading > p:last-child { max-width: 710px; margin: 25px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.thresholds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.threshold-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  min-height: 190px;
  align-content: start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.threshold-card-featured { grid-column: span 2; color: var(--white); background: var(--navy); border-color: var(--navy); }
.threshold-number { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .7rem; font-weight: 850; }
.threshold-card h2, .threshold-card h3 { margin: 2px 0 18px; color: var(--navy); font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; }
.threshold-card strong { display: block; color: var(--navy); font-size: 1.16rem; }
.threshold-card p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.threshold-card-featured h2, .threshold-card-featured h3, .threshold-card-featured strong { color: var(--white); }
.threshold-card-featured p { color: rgba(255,255,255,.68); }
.threshold-card-featured .threshold-number { background: var(--lilac); }

.uvt-highlight {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 25px 28px;
  color: var(--white);
  background: var(--navy);
  border-radius: 16px;
}
.uvt-highlight > span { display: grid; flex: 0 0 auto; width: 52px; height: 52px; place-items: center; color: var(--navy); background: var(--lilac); border-radius: 50%; font-size: .7rem; font-weight: 850; letter-spacing: .05em; }
.uvt-highlight p { display: grid; gap: 5px; margin: 0; }
.uvt-highlight strong { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.uvt-highlight small { color: rgba(255,255,255,.66); font-size: .72rem; line-height: 1.45; }

.thresholds-footnote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 12px;
  padding: 24px 28px;
  background: var(--lilac-light);
  border-radius: 16px;
}
.thresholds-footnote > div { display: flex; gap: 12px; align-items: center; }
.thresholds-footnote > div > span { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-weight: 800; }
.thresholds-footnote p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.thresholds-footnote strong { color: var(--navy); }
.thresholds-footnote > a { color: var(--navy); font-size: .73rem; font-weight: 750; text-decoration: none; white-space: nowrap; }

.dian-check-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 45px auto 0;
  padding: 34px 38px;
  background: var(--white);
  border: 2px solid var(--lilac);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(20,43,71,.08);
}
.dian-check-icon { display: grid; width: 68px; height: 68px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.dian-check-copy .step-pill { margin-bottom: 10px; }
.dian-check-copy h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 500; line-height: 1.1; }
.dian-check-copy p { max-width: 630px; margin: 10px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.dian-check-action { display: grid; gap: 9px; justify-items: stretch; min-width: 205px; }
.dian-check-action .button { width: 100%; }
.dian-check-action small { color: var(--muted); font-size: .65rem; line-height: 1.4; text-align: center; }

.calculator-transition {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(1120px, calc(100% - 48px));
  margin: 45px auto 0;
  padding: 42px 48px;
  color: var(--white);
  background: var(--navy);
  border-radius: 24px;
}
.calculator-transition .step-pill { margin-bottom: 14px; }
.calculator-transition h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 500; line-height: 1.08; }
.calculator-transition p { max-width: 650px; margin: 14px 0 0; color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.6; }
.calculator-transition .button { flex: 0 0 auto; }

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  padding: 75px 0 95px;
  scroll-margin-top: 24px;
}

.back-link { display: inline-flex; gap: 8px; margin-bottom: 52px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.calculator-intro h2 { font-size: clamp(3.3rem, 5vw, 5.5rem); }
.calculator-intro > p:not(.eyebrow) { margin: 26px 0; color: var(--muted); line-height: 1.75; }

.source-badge { display: flex; align-items: center; gap: 12px; margin-top: 35px; }
.source-badge div { display: grid; gap: 3px; }
.source-badge strong { color: var(--navy); font-size: .82rem; }
.source-badge div span { color: var(--muted); font-size: .73rem; }

.calculator-card { padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 24px; box-shadow: var(--shadow); }
.step-pill { display: inline-block; margin-bottom: 18px; padding: 7px 10px; color: #674991; background: var(--lilac-light); border-radius: 999px; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.calculator-card-heading h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.calculator-card-heading p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

#renta-form { margin-top: 30px; }
#renta-form label { display: block; margin-bottom: 9px; color: var(--navy); font-size: .79rem; font-weight: 750; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.input-row input { min-width: 0; height: 54px; padding: 0 16px; color: var(--navy); background: #fbfbfc; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.input-row input:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.input-row input[aria-invalid="true"] { border-color: var(--danger); }
.field-help, .field-error { margin: 9px 2px 0; font-size: .7rem; line-height: 1.45; }
.field-help { color: var(--muted); }
.field-error { min-height: 1em; color: var(--danger); font-weight: 650; }

.result-card { grid-template-columns: 112px 1fr; gap: 22px; align-items: center; margin-top: 30px; padding: 20px; background: var(--navy); border-radius: 16px; }
.result-card:not([hidden]) { display: grid; animation: reveal 260ms ease-out; }
.result-date-box { display: grid; place-items: center; min-height: 120px; color: var(--navy); background: var(--lilac); border-radius: 12px; text-transform: capitalize; }
.result-date-box span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.result-date-box strong { margin: -4px 0; font-family: Georgia, serif; font-size: 3.1rem; font-weight: 500; line-height: 1; }
.result-date-box small { font-size: .68rem; font-weight: 750; }
.result-copy p { margin: 0 0 4px; color: rgba(255,255,255,.62); font-size: .72rem; }
.result-copy h3 { margin: 0 0 7px; color: var(--white); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; line-height: 1.25; text-transform: capitalize; }
.result-copy > span { color: var(--lilac); font-size: .72rem; font-weight: 750; }
.result-copy .result-status { margin-top: 12px; color: rgba(255,255,255,.8); }

.calculator-note { display: flex; gap: 11px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.calculator-note > span { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.calculator-note p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.55; }
.calculator-warning { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 13px; margin-top: 25px; padding: 18px; background: var(--lilac-light); border: 1px solid var(--lilac); border-radius: 13px; }
.calculator-warning > span { width: 32px; height: 32px; color: var(--white); background: var(--navy); font-size: .85rem; }
.calculator-warning > div { display: grid; gap: 6px; }
.calculator-warning strong { color: var(--navy); font-size: .79rem; line-height: 1.4; }
.calculator-warning p { font-size: .72rem; line-height: 1.55; }
.calculator-warning a { width: fit-content; margin-top: 4px; color: #674991; font-size: .71rem; font-weight: 800; line-height: 1.45; text-decoration: underline; text-underline-offset: 3px; }
.calculator-warning a:focus-visible { outline: 3px solid rgba(181,151,223,.55); outline-offset: 3px; border-radius: 3px; }

.calendar-band { padding: 70px 0 90px; background: #f0ebf7; }
.calendar-summary { display: grid; grid-template-columns: 1fr .8fr auto; gap: 60px; align-items: center; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 50px; background: var(--white); border-radius: 20px; }
.calendar-summary h2 { font-size: 2.2rem; }
.calendar-summary > p { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.calendar-summary > a { color: var(--navy); font-size: .78rem; font-weight: 750; text-decoration: none; white-space: nowrap; }

/* Ingreso de usuarios */
.auth-main {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(460px, .75fr);
  gap: clamp(55px, 8vw, 120px);
  align-items: start;
  align-content: start;
  width: min(1120px, calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  padding: 72px 0 90px;
}
.auth-main > .auth-intro, .auth-main > .auth-card { align-self: start; }
.auth-intro h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(3.2rem, 5.5vw, 5.3rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.auth-intro > p:not(.eyebrow) { max-width: 610px; margin: 26px 0 0; color: var(--muted); line-height: 1.72; }
.auth-security-note { display: flex; gap: 14px; max-width: 560px; margin-top: 32px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.auth-security-note > span { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-weight: 850; }
.auth-security-note div { display: grid; gap: 4px; }
.auth-security-note strong { color: var(--navy); font-size: .84rem; }
.auth-security-note p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.auth-card { min-height: 540px; padding: clamp(25px, 4vw, 42px); background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 25px; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 34px; padding: 5px; background: var(--lilac-light); border-radius: 14px; }
.auth-tab { min-height: 46px; padding: 0 16px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; font-size: .8rem; font-weight: 800; }
.auth-tab.active { color: var(--navy); background: var(--white); box-shadow: 0 5px 16px rgba(20,43,71,.09); }
.auth-tab:disabled { opacity: .52; cursor: not-allowed; }
.auth-tab:focus-visible { outline: 3px solid rgba(181,151,223,.55); outline-offset: 2px; }
.auth-registration-notice { margin: -18px 0 26px; color: var(--muted); font-size: .74rem; line-height: 1.5; text-align: center; }
.auth-card-heading h2, .session-panel h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.auth-card-heading p { margin: 9px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.auth-form { display: grid; margin-top: 27px; }
.auth-form fieldset { display: contents; min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-form label:not(.auth-checkbox) { margin: 0 0 8px; color: var(--navy); font-size: .75rem; font-weight: 750; }
.auth-form label:not(:first-child):not(.auth-checkbox) { margin-top: 18px; }
.auth-form input:not([type="checkbox"]) { width: 100%; height: 51px; padding: 0 15px; color: var(--navy); background: #fbfbfc; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.auth-form .field-help { margin: 7px 2px 0; }
.auth-form > .button { width: 100%; margin-top: 25px; }
.forgot-password-link { justify-self: center; margin-top: 17px; padding: 3px; color: #674991; background: transparent; border: 0; cursor: pointer; font-size: .73rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.forgot-password-link:focus-visible { outline: 3px solid rgba(181,151,223,.55); outline-offset: 3px; border-radius: 4px; }
.auth-form button:disabled, .session-panel button:disabled { cursor: wait; opacity: .68; transform: none; }
.auth-checkbox { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 21px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.auth-checkbox input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--navy); }
.auth-checkbox a { color: #674991; font-weight: 750; }
.auth-feedback { margin: -15px 0 25px; padding: 13px 15px; color: var(--danger); background: #fbecf0; border-radius: 10px; font-size: .75rem; font-weight: 650; line-height: 1.45; }
.auth-feedback[data-type="success"] { color: var(--success); background: #e9f4f0; }
.session-panel { display: grid; min-height: 455px; place-content: center; justify-items: center; text-align: center; }
.session-icon { display: grid; width: 70px; height: 70px; margin-bottom: 23px; place-items: center; color: var(--navy); background: var(--lilac); border-radius: 50%; font-size: 1.5rem; font-weight: 900; }
.session-panel .eyebrow { margin-bottom: 10px; }
.session-panel > p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.session-panel .session-coming-soon { padding: 14px 18px; background: var(--lilac-light); border-radius: 10px; }
.session-panel .button { margin-top: 25px; }

/* Zona privada */
.header-logout { border: 0; cursor: pointer; }
.account-main { width: min(1180px, calc(100% - 48px)); min-height: 720px; margin: 0 auto; padding: 70px 0 100px; }
.account-welcome { display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.account-welcome h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(3.5rem, 6vw, 5.7rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.account-welcome > div > p:last-child { margin: 20px 0 0; color: var(--muted); line-height: 1.65; }
.account-lock-note { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; padding: 12px 16px; color: var(--navy); background: var(--lilac-light); border-radius: 999px; font-size: .71rem; font-weight: 750; }
.account-lock-note > span { display: grid; width: 21px; height: 21px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: .65rem; }
.account-tabs { display: flex; gap: 34px; align-items: stretch; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.account-tab { position: relative; min-height: 64px; padding: 4px 3px 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: .78rem; font-weight: 750; }
.account-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--lilac); border-radius: 3px 3px 0 0; content: ""; opacity: 0; transform: scaleX(.45); transition: opacity .18s ease, transform .18s ease; }
.account-tab:hover { color: var(--navy); }
.account-tab.is-active { color: var(--navy); }
.account-tab.is-active::after { opacity: 1; transform: scaleX(1); }
.account-tab:focus-visible { outline: 3px solid rgba(181,151,223,.45); outline-offset: -3px; border-radius: 7px; }
.account-tab-panel { min-height: 430px; }
.subscription-blocked-notice {
  display: flex;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 18px;
  color: #7c2636;
  background: #fff2f4;
  border: 1px solid #efb8c2;
  border-radius: 14px;
}
.subscription-blocked-notice[hidden] { display: none; }
.subscription-blocked-notice span { font-size: .84rem; }
.account-coming-soon { display: grid; min-height: 430px; place-content: center; justify-items: center; padding: 55px 24px; background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 22px; box-shadow: 0 14px 40px rgba(20,43,71,.06); text-align: center; }
.account-coming-soon-icon { display: grid; width: 62px; height: 62px; margin-bottom: 22px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.account-coming-soon .eyebrow { margin-bottom: 8px; }
.account-coming-soon h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
.account-coming-soon > p:last-child { max-width: 480px; margin: 16px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.dashboard-layout { display: grid; gap: 22px; }
.dashboard-overview, .dashboard-detail-card { background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 22px; box-shadow: 0 14px 40px rgba(20,43,71,.06); }
.dashboard-overview { padding: 32px; }
.dashboard-section-heading { display: flex; gap: 25px; align-items: end; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dashboard-section-heading .eyebrow, .dashboard-card-heading .eyebrow { margin-bottom: 5px; }
.dashboard-section-heading h2, .dashboard-card-heading h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.dashboard-section-heading > p { max-width: 330px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; text-align: right; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 22px; }
.dashboard-metric { position: relative; display: grid; min-height: 115px; align-content: space-between; overflow: hidden; padding: 17px; background: var(--paper); border: 1px solid transparent; border-radius: 14px; }
.dashboard-metric::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--navy); content: ""; opacity: .18; }
.dashboard-metric.is-warning::before { background: #d89c36; opacity: 1; }
.dashboard-metric.is-progress::before, .dashboard-metric.is-balance::before { background: var(--lilac); opacity: 1; }
.dashboard-metric.is-success::before { background: var(--success); opacity: 1; }
.dashboard-metric span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-metric strong { overflow-wrap: anywhere; color: var(--navy); font-family: Georgia, serif; font-size: clamp(1.55rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1; }
.dashboard-metric.is-balance strong { font-family: inherit; font-size: clamp(1rem, 1.7vw, 1.4rem); font-weight: 800; }
.dashboard-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.dashboard-detail-card { min-width: 0; padding: 28px; }
.dashboard-card-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.dashboard-card-heading > span { flex: 0 0 auto; padding: 7px 10px; color: #674991; background: var(--lilac-light); border-radius: 999px; font-size: .6rem; font-weight: 800; }
.dashboard-records { display: grid; }
.dashboard-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 77px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.dashboard-record:last-child { border-bottom: 0; }
.dashboard-record > div { display: grid; min-width: 0; gap: 5px; }
.dashboard-record > div:first-child strong { overflow: hidden; color: var(--navy); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-record span { color: var(--muted); font-size: .63rem; line-height: 1.4; }
.dashboard-record-value { justify-items: end; text-align: right; }
.dashboard-record-value strong { color: var(--navy); font-size: .7rem; text-transform: capitalize; }
.dashboard-record-value span.is-overdue, .dashboard-record-value span.is-urgent { color: var(--danger); font-weight: 800; }
.dashboard-record-value span.is-soon { color: #8a5b16; font-weight: 800; }
.dashboard-record-value.is-payment strong { font-size: .78rem; }
.dashboard-empty { display: grid; min-height: 145px; margin: 0; place-content: center; color: var(--muted); font-size: .7rem; text-align: center; }
.dashboard-pagination { padding-top: 16px; border-top: 1px solid var(--line); }
.account-profile-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.account-layout { display: grid; grid-template-columns: minmax(275px, .42fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 36px; }
.profile-card, .clients-panel, .credentials-panel, .tax-returns-panel, .news-panel, .news-images-panel { background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 22px; box-shadow: 0 14px 40px rgba(20,43,71,.06); }
.profile-card { position: sticky; top: 24px; padding: 29px; }
.profile-card-heading { display: flex; gap: 14px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-icon { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; color: var(--navy); background: var(--lilac); border-radius: 50%; font-family: Georgia, serif; font-size: 1.2rem; }
.profile-card-heading .eyebrow { margin-bottom: 3px; }
.profile-card h2, .clients-panel h2, .credentials-panel h2, .tax-returns-panel h2, .news-panel h2, .news-images-panel h2, .account-dialog h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.profile-data { display: grid; gap: 20px; margin: 26px 0; }
.profile-data div { display: grid; gap: 5px; min-width: 0; }
.profile-data dt { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: .85rem; font-weight: 700; }
.profile-role-badge { display: inline-flex; width: fit-content; padding: 7px 10px; color: #674991; background: var(--lilac-light); border-radius: 999px; font-size: .67rem; font-weight: 800; }
.profile-readonly { display: flex; gap: 10px; margin: 0; padding: 15px; color: var(--muted); background: var(--paper); border-radius: 11px; font-size: .68rem; line-height: 1.5; }
.profile-readonly > span { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: .65rem; font-weight: 800; }
.account-management { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.clients-readonly-note { display: flex; grid-column: 1 / -1; gap: 10px; align-items: center; margin: 0; padding: 14px 16px; color: #674991; background: var(--lilac-light); border: 1px solid rgba(181,151,223,.45); border-radius: 12px; font-size: .7rem; font-weight: 700; }
.clients-readonly-note > span { display: grid; flex: 0 0 auto; width: 21px; height: 21px; place-items: center; color: var(--white); background: #674991; border-radius: 50%; font-size: .62rem; }
.clients-panel { min-height: 480px; padding: 34px; }
.clients-toolbar { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.clients-toolbar .eyebrow { margin-bottom: 5px; }
.clients-toolbar > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.clients-toolbar .button { flex: 0 0 auto; min-height: 47px; }
.clients-controls { padding-top: 20px; }
.clients-search { display: grid; gap: 7px; }
.clients-search > span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.clients-search input { width: 100%; height: 48px; padding: 0 16px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: none; }
.clients-search input:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.clients-search input::placeholder { color: #8b94a2; }
.records-controls { padding-top: 20px; }
.tax-return-filters { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(180px, 1fr) auto; gap: 14px; align-items: end; }
.tax-return-filters select { width: 100%; height: 48px; padding: 0 40px 0 16px; color: var(--navy); background-color: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: none; cursor: pointer; font: inherit; }
.tax-return-filters select:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.tax-return-payment-filter { display: flex; min-height: 48px; gap: 10px; align-items: center; padding: 0 16px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.tax-return-payment-filter:has(input:focus-visible) { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.tax-return-payment-filter input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.clients-empty { display: grid; min-height: 320px; place-content: center; justify-items: center; padding: 45px 20px; text-align: center; }
.clients-empty > span { display: grid; width: 58px; height: 58px; margin-bottom: 20px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.clients-empty h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.clients-empty p { margin: 10px 0 22px; color: var(--muted); font-size: .78rem; }
.clients-empty .button { min-height: 45px; }
.clients-no-results { display: grid; min-height: 235px; place-content: center; justify-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.clients-no-results > span { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; color: var(--white); background: #98a1aa; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.clients-no-results h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.clients-no-results p { margin: 9px 0 0; font-size: .72rem; }
.clients-list { display: grid; gap: 10px; padding-top: 20px; }
.clients-pagination { display: flex; gap: 7px; align-items: center; justify-content: center; padding-top: 20px; }
.clients-page-button { display: grid; min-width: 36px; height: 36px; padding: 0 9px; place-items: center; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .68rem; font-weight: 750; }
.clients-page-button:hover:not(:disabled) { border-color: var(--lilac); }
.clients-page-button.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.clients-page-button:disabled { cursor: not-allowed; opacity: .4; }
.clients-page-status { min-width: 48px; color: var(--muted); font-size: .68rem; font-weight: 700; text-align: center; }
.records-no-results { display: grid; min-height: 150px; place-content: center; justify-items: center; padding: 30px 20px; color: var(--muted); text-align: center; }
.records-no-results > span { display: grid; width: 34px; height: 34px; margin-bottom: 12px; place-items: center; color: var(--white); background: #98a1aa; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.records-no-results h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.records-no-results p { margin: 8px 0 0; font-size: .7rem; }
.records-pagination { display: flex; gap: 7px; align-items: center; justify-content: center; padding-top: 18px; }
.client-card { position: relative; padding: 18px; background: var(--paper); border: 1px solid transparent; border-radius: 14px; }
.client-card:hover { border-color: rgba(181,151,223,.6); }
.client-card.is-selected { background: #f4effa; border-color: var(--lilac); box-shadow: 0 8px 22px rgba(20,43,71,.06); }
.client-card-selector { position: absolute; z-index: 0; inset: 0; width: 100%; padding: 0; background: transparent; border: 0; border-radius: inherit; cursor: pointer; }
.client-card-selector:focus-visible { outline: 3px solid rgba(181,151,223,.5); outline-offset: 3px; }
.client-card-summary { position: relative; z-index: 1; display: flex; gap: 20px; align-items: center; justify-content: space-between; pointer-events: none; }
.client-identity { display: flex; min-width: 0; gap: 13px; align-items: center; }
.client-initials { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .7rem; font-weight: 850; }
.client-identity h3 { margin: 0; overflow: hidden; color: var(--navy); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.client-identity p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; }
.client-actions { display: flex; flex: 0 0 auto; gap: 7px; pointer-events: auto; }
.client-action { min-height: 36px; padding: 0 12px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .68rem; font-weight: 750; }
.client-action:hover { border-color: var(--lilac); }
.client-action:disabled { cursor: not-allowed; opacity: .38; }
.client-action-danger { color: var(--danger); }
.client-view-action { display: grid; width: 38px; padding: 0; place-items: center; }
.client-view-action svg { width: 17px; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.credentials-panel { min-height: 300px; padding: 34px; }
.credentials-toolbar { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.credentials-toolbar .eyebrow { margin-bottom: 5px; }
.credentials-toolbar > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.credentials-toolbar .button { flex: 0 0 auto; min-height: 47px; }
.credentials-toolbar .button:disabled { cursor: not-allowed; opacity: .45; }
.credentials-unselected { display: flex; min-height: 175px; gap: 12px; align-items: center; justify-content: center; padding: 30px; color: var(--muted); background: var(--paper); border-radius: 13px; margin-top: 22px; text-align: center; }
.credentials-unselected > span { display: grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; color: var(--white); background: #98a1aa; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.credentials-unselected p, .credentials-empty p { margin: 0; font-size: .72rem; line-height: 1.55; }
.credentials-empty { margin-top: 22px; padding: 34px 20px; color: var(--muted); background: var(--paper); border-radius: 13px; text-align: center; }
.credential-list { display: grid; gap: 10px; margin-top: 20px; }
.credential-row { display: grid; min-height: 81px; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px; background: var(--paper); border: 1px solid transparent; border-radius: 14px; }
.credential-row:hover { border-color: rgba(181,151,223,.6); }
.credential-identity { display: flex; min-width: 0; gap: 13px; align-items: center; }
.credential-badge { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-size: .7rem; font-weight: 850; }
.credential-identity h4 { margin: 0; overflow: hidden; color: var(--navy); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.credential-identity p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.credential-input-eye { display: grid; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.credential-input-eye svg { width: 17px; height: 17px; stroke: var(--navy); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.credential-eye-open { display: none; }
.credential-input-eye.is-visible .credential-eye-closed { display: none; }
.credential-input-eye.is-visible .credential-eye-open { display: block; }
.credential-input-eye:hover, .credential-input-eye.is-visible { border-color: var(--lilac); background: var(--lilac-light); }
.credential-input-eye:disabled { cursor: wait; }
.credential-actions { display: flex; gap: 5px; }
.credential-actions .client-action { min-height: 36px; }
.credential-actions .client-view-action { width: 38px; padding: 0; }
.tax-returns-panel { min-height: 320px; grid-column: 1 / -1; padding: 34px; }
.tax-returns-toolbar { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tax-returns-toolbar .eyebrow { margin-bottom: 5px; }
.tax-returns-toolbar > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.tax-returns-toolbar .button { flex: 0 0 auto; min-height: 47px; }
.tax-returns-toolbar .button:disabled { cursor: not-allowed; opacity: .45; }
.tax-returns-unselected { display: flex; min-height: 175px; gap: 12px; align-items: center; justify-content: center; padding: 30px; margin-top: 22px; color: var(--muted); background: var(--paper); border-radius: 13px; text-align: center; }
.tax-returns-unselected > span { display: grid; flex: 0 0 auto; width: 25px; height: 25px; place-items: center; color: var(--white); background: #98a1aa; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.tax-returns-unselected p, .tax-returns-empty p { margin: 0; font-size: .72rem; line-height: 1.55; }
.tax-returns-empty { margin-top: 22px; padding: 34px 20px; color: var(--muted); background: var(--paper); border-radius: 13px; text-align: center; }
.tax-returns-list { display: grid; gap: 10px; margin-top: 20px; }
.tax-return-card { min-height: 81px; padding: 18px; background: var(--paper); border: 1px solid transparent; border-radius: 14px; }
.tax-return-card:hover { border-color: rgba(181,151,223,.6); }
.tax-return-card-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.tax-return-primary { display: flex; min-width: 0; gap: 18px; align-items: center; flex-wrap: wrap; }
.tax-return-year { display: grid; gap: 3px; }
.tax-return-year span { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tax-return-year strong { color: var(--navy); font-size: .86rem; font-weight: 750; }
.tax-return-badges { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tax-status, .fee-status { padding: 6px 8px; border-radius: 999px; font-size: .58rem; font-weight: 800; }
.tax-status-por_presentar { color: #8a5b16; background: #fff3d8; }
.tax-status-en_ejecucion { color: #60418c; background: var(--lilac-light); }
.tax-status-presentado { color: var(--success); background: #e5f3ee; }
.fee-status.is-paid { color: var(--success); background: #e5f3ee; }
.fee-status.is-partial { color: #8a5b16; background: #fff3d8; }
.fee-status.is-unpaid { color: var(--danger); background: #fbecf0; }
.tax-return-actions { display: flex; flex: 0 0 auto; gap: 7px; justify-content: flex-end; }
.news-panel { min-height: 430px; padding: 34px; }
.news-toolbar { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.news-toolbar .eyebrow { margin-bottom: 5px; }
.news-toolbar > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.news-toolbar .button { flex: 0 0 auto; min-height: 47px; }
.news-readonly-note { margin-top: 20px; }
.news-loading { display: grid; min-height: 260px; place-content: center; justify-items: center; color: var(--muted); font-size: .72rem; }
.news-loading > span { width: 36px; height: 36px; border: 4px solid var(--lilac-light); border-top-color: var(--navy); border-radius: 50%; animation: account-spin .8s linear infinite; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }
.news-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid transparent; border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.news-card:hover { border-color: rgba(181,151,223,.65); transform: translateY(-2px); }
.news-card-image { position: relative; display: grid; height: 170px; place-items: center; overflow: hidden; color: var(--navy); background: linear-gradient(135deg, var(--lilac-light), #edf1f5); font-family: Georgia, serif; font-size: 2.2rem; }
.news-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: grid; gap: 13px; padding: 18px; }
.news-card-heading { display: flex; min-width: 0; gap: 15px; align-items: flex-start; justify-content: space-between; }
.news-card-heading > div { min-width: 0; }
.news-card-heading h3 { margin: 8px 0 0; overflow: hidden; color: var(--navy); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.news-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .58rem; font-weight: 850; }
.news-status.is-draft { color: #60418c; background: var(--lilac-light); }
.news-status.is-published { color: var(--success); background: #e5f3ee; }
.news-card-excerpt { display: -webkit-box; min-height: 3.7em; margin: 0; overflow: hidden; color: var(--muted); font-size: .72rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card-metadata { margin: 0; color: #7e8792; font-size: .62rem; font-weight: 700; }
.news-edit-action { flex: 0 0 auto; }
.news-dialog { width: min(680px, calc(100% - 30px)); }
.news-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 18px; }
.news-form-grid .form-field { display: grid; align-content: start; }
.news-form-grid .form-field label { margin-top: 0 !important; }
.news-images-panel { min-height: 330px; margin-top: 22px; padding: 34px; }
.news-image-upload { display: grid; gap: 9px; margin-top: 22px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.news-image-upload[hidden] { display: none; }
.news-image-upload > label, .news-image-public-label { color: var(--navy); font-size: .75rem; font-weight: 750; }
.news-image-upload-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.news-image-upload input[type="file"] { min-width: 0; width: 100%; min-height: 47px; padding: 10px 12px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 11px; font-size: .72rem; }
.news-image-upload input[type="file"]::file-selector-button { margin-right: 11px; padding: 7px 10px; color: var(--navy); background: var(--lilac-light); border: 0; border-radius: 7px; cursor: pointer; font-weight: 750; }
.news-image-upload .field-help { margin: 0; }
.news-images-readonly-note { margin-top: 20px; }
.news-images-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 22px; }
.news-image-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.news-image-card-preview { position: relative; height: 145px; overflow: hidden; background: linear-gradient(135deg, var(--lilac-light), #edf1f5); }
.news-image-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.news-image-card-body { display: flex; min-width: 0; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; }
.news-image-card-copy { min-width: 0; }
.news-image-card-copy strong { display: block; overflow: hidden; color: var(--navy); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.news-image-card-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; }
.news-image-dialog { width: min(650px, calc(100% - 30px)); }
.news-image-detail-preview { height: 260px; margin: 22px 0 0; overflow: hidden; background: var(--paper); border-radius: 14px; }
.news-image-detail-preview img { width: 100%; height: 100%; object-fit: contain; }
.news-image-detail-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.news-image-detail-data div { min-width: 0; padding: 12px; background: var(--paper); border-radius: 10px; }
.news-image-detail-data dt { color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-image-detail-data dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--navy); font-size: .72rem; font-weight: 700; }
.news-image-public-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 8px; }
.news-image-public-url input { min-width: 0; width: 100%; height: 47px; padding: 0 13px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: .7rem; }
.news-image-detail-actions { grid-template-columns: auto 1fr; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.news-image-detail-actions .button-secondary { grid-column: 2; }
.public-news-main { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 95px; }
.public-news-intro { display: grid; max-width: 760px; gap: 14px; margin-bottom: 38px; }
.public-news-intro .eyebrow { margin-bottom: 0; }
.public-news-intro h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(3.5rem, 7vw, 5.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.public-news-intro > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.public-news-intro > span { color: #76589f; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.public-news-box { min-height: 390px; padding: 32px; background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 24px; box-shadow: 0 18px 50px rgba(20,43,71,.07); }
.public-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.public-news-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid rgba(20,43,71,.08); border-radius: 18px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.public-news-card:hover { border-color: rgba(181,151,223,.7); box-shadow: 0 15px 32px rgba(20,43,71,.08); transform: translateY(-3px); }
.public-news-card-image { position: relative; display: grid; height: 205px; place-items: center; overflow: hidden; color: var(--navy); background: linear-gradient(135deg, var(--lilac-light), #e9eef3); font-family: Georgia, serif; font-size: 2.6rem; }
.public-news-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.public-news-card-body { display: grid; align-content: start; padding: 22px; }
.public-news-card-body time { color: #76589f; font-size: .66rem; font-weight: 800; text-transform: capitalize; }
.public-news-card-body h2 { margin: 10px 0 12px; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.18; }
.public-news-card-body > p { display: -webkit-box; min-height: 4.7em; margin: 0; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.58; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.public-news-link { width: fit-content; min-height: 42px; margin-top: 20px; padding: 0 20px; background: var(--white); }
.public-news-state { display: grid; min-height: 325px; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.public-news-state h2, .public-news-state h1 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.public-news-state p { max-width: 430px; margin: 12px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.public-news-spinner { width: 42px; height: 42px; margin-bottom: 15px; border: 4px solid var(--lilac-light); border-top-color: var(--navy); border-radius: 50%; animation: account-spin .8s linear infinite; }
.public-news-state-icon { display: grid; width: 54px; height: 54px; margin-bottom: 18px; place-items: center; color: var(--navy); background: var(--lilac-light); border-radius: 50%; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.news-detail-main { width: min(920px, calc(100% - 48px)); min-height: 620px; margin: 0 auto; padding: 60px 0 95px; }
.news-detail-main > .back-link { margin-bottom: 35px; }
.news-detail-article { overflow: hidden; background: var(--white); border: 1px solid rgba(20,43,71,.1); border-radius: 24px; box-shadow: 0 18px 50px rgba(20,43,71,.07); }
.news-detail-article > header { padding: clamp(32px, 6vw, 64px); padding-bottom: 34px; }
.news-detail-article .eyebrow { margin-bottom: 12px; }
.news-detail-article h1 { max-width: 760px; margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.news-detail-author { margin: 12px 0 0; color: #7b8796; font-size: .82rem; }
.news-detail-author strong { color: #586779; font-weight: 750; }
.news-detail-article time { display: block; margin-top: 20px; color: #76589f; font-size: .72rem; font-weight: 800; text-transform: capitalize; }
.news-detail-figure { width: calc(100% - clamp(32px, 6vw, 64px) * 2); margin: 0 auto; }
.news-detail-image { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; }
.news-detail-figure figcaption { margin: 9px 4px 0; color: #8a94a2; font-size: .74rem; line-height: 1.45; }
.news-detail-content { padding: 38px clamp(32px, 6vw, 64px) 64px; color: #344355; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.9; white-space: pre-line; }
.news-detail-error .button { margin-top: 22px; }
.account-feedback { position: fixed; z-index: 40; top: 22px; left: 50%; width: min(480px, calc(100% - 30px)); padding: 15px 18px; color: var(--danger); background: #fbecf0; border: 1px solid rgba(165,62,82,.2); border-radius: 12px; box-shadow: var(--shadow); font-size: .76rem; font-weight: 700; text-align: center; transform: translateX(-50%); }
.account-feedback[data-type="success"] { color: var(--success); background: #e9f4f0; border-color: rgba(45,117,98,.2); }
.account-loading { display: grid; min-height: 500px; place-content: center; justify-items: center; color: var(--muted); font-size: .78rem; }
.account-loading > span { width: 42px; height: 42px; border: 4px solid var(--lilac-light); border-top-color: var(--navy); border-radius: 50%; animation: account-spin .8s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
.account-dialog { width: min(510px, calc(100% - 30px)); padding: 32px; background: var(--white); border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(13,33,56,.28); }
.account-dialog::backdrop { background: rgba(13,33,56,.58); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-close { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; color: var(--navy); background: var(--lilac-light); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.dialog-description { margin: 15px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.dialog-feedback { margin-top: 18px; padding: 12px 14px; color: var(--danger); background: #fbecf0; border-radius: 10px; font-size: .72rem; font-weight: 650; }
.dialog-feedback[data-type="success"] { color: var(--success); background: #e9f4f0; }
.auth-reset-dialog { width: min(530px, calc(100% - 30px)); }
.auth-reset-dialog .dialog-actions { margin-top: 20px; }
.password-reset-main { align-items: center; }
.password-reset-card { min-height: 470px; }
.password-reset-feedback { margin: 22px 0 -5px; }
.password-reset-state { display: grid; min-height: 390px; place-content: center; justify-items: center; text-align: center; }
.password-reset-state[hidden] { display: none; }
.password-reset-state h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.password-reset-state > p:not(.eyebrow) { max-width: 390px; margin: 14px 0 24px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.password-reset-state .button { width: min(100%, 260px); }
.password-reset-spinner { width: 44px; height: 44px; border: 4px solid var(--lilac-light); border-top-color: var(--navy); border-radius: 50%; animation: account-spin .8s linear infinite; }
.account-dialog .auth-form { margin-top: 22px; }
.auth-form select, .auth-form textarea { width: 100%; padding: 0 15px; color: var(--navy); background: #fbfbfc; border: 1px solid var(--line); border-radius: 11px; outline: none; font: inherit; }
.auth-form select { height: 51px; }
.auth-form textarea { min-height: 105px; padding-top: 13px; resize: vertical; }
.auth-form select:focus, .auth-form textarea:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(181,151,223,.18); }
.tax-return-dialog { width: min(680px, calc(100% - 30px)); }
.tax-return-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.tax-return-form-grid .form-field { display: grid; align-content: start; }
.tax-return-form-grid .form-field label { margin-top: 0 !important; }
.credential-secret-input { position: relative; }
.credential-secret-input input { width: 100%; padding-right: 48px; }
.credential-secret-input .credential-input-eye { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 26px; }
.dialog-actions .button { width: 100%; margin: 0; }
.button-danger { color: var(--white); background: var(--danger); }
.account-dialog .auth-form.is-editing .dialog-actions { grid-template-columns: auto 1fr 1fr; }
.dialog-actions .client-dialog-delete { display: grid; width: 44px; min-height: 44px; padding: 0; place-items: center; justify-self: start; border-radius: 10px; }
.client-dialog-delete svg { width: 17px; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.delete-dialog { text-align: center; }
.delete-dialog-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; color: var(--danger); background: #fbecf0; border-radius: 50%; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; }
.delete-dialog > p { margin: 14px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; order: 3; border-top: 1px solid var(--line); }
  .nav-link { padding: 14px 0; }
  .hero, .calculator-shell, .auth-main { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .hero-title > span { display: inline; white-space: normal; }
  .portrait-column { width: min(100%, 560px); margin: 0 auto; }
  .credentials-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-highlight { padding: 27px clamp(20px, 5vw, 42px); }
  .credential-highlight + .credential-highlight { border-left: 0; }
  .credential-highlight:nth-child(even) { border-left: 1px solid rgba(20, 43, 71, .12); }
  .credential-highlight:nth-child(n + 3) { border-top: 1px solid rgba(20, 43, 71, .12); }
  .credential-highlight:first-child { padding-left: clamp(20px, 5vw, 42px); }
  .credential-highlight:last-child { grid-column: 1 / -1; padding-right: clamp(20px, 5vw, 42px); }
  .credential-highlight:last-child p { max-width: 520px; }
  .intro-section { grid-template-columns: 1fr; gap: 10px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-card:last-child { border-bottom: 0; }
  .card-number { margin-bottom: 55px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .service-card-body { margin-top: 54px; }
  .calculator-shell { padding-top: 55px; }
  .back-link { margin-bottom: 36px; }
  .thresholds-grid { grid-template-columns: repeat(2, 1fr); }
  .threshold-card-featured { grid-column: span 2; }
  .thresholds-footnote { grid-template-columns: 1fr auto; }
  .calendar-summary { grid-template-columns: 1fr; gap: 18px; }
  .privacy-hero { grid-template-columns: 1fr; gap: 28px; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-index strong { grid-column: 1 / -1; }
  .tax-step-action-panel { align-items: flex-start; flex-direction: column; }
  .step-action { width: 100%; flex-basis: auto; }
  .auth-main { padding-top: 55px; }
  .auth-card { width: min(100%, 620px); }
  .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .account-profile-layout { grid-template-columns: minmax(0, 1fr); }
  .account-management { grid-template-columns: minmax(0, 1fr); }
  .tax-returns-panel { grid-column: auto; }
  .news-list { grid-template-columns: 1fr; }
  .news-images-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card { position: static; }
  .credential-row { grid-template-columns: minmax(140px, 1fr) minmax(140px, .8fr); }
  .credential-actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header, .hero, .intro-section, .value-grid, .services-section, .tools-section, .site-footer, .calculator-shell, .calendar-summary, .auth-main, .public-news-main, .news-detail-main { width: min(100% - 30px, 560px); }
  .site-header { min-height: 94px; }
  .brand-logo { width: 208px; height: 74px; }
  .brand-logo img { top: -132px; left: -75px; width: 350px; }
  .header-cta { padding: 9px 13px; font-size: .75rem; }
  .main-nav { flex-wrap: wrap; gap: 0 18px; }
  .nav-link { padding: 12px 0 10px; font-size: .78rem; }
  .nav-menu { max-width: 100%; }
  .nav-menu-trigger { gap: 5px; }
  .nav-submenu { width: min(250px, calc(100vw - 30px)); }
  .hero { padding-bottom: 36px; }
  .hero h1, .hero h1.hero-title { font-size: clamp(3.35rem, 16vw, 5rem); }
  .hero-title > span { white-space: normal; }
  .credentials-strip { padding: 0 15px; }
  .credential-highlight { padding: 23px 14px; }
  .credential-highlight:first-child { padding-left: 14px; }
  .credential-highlight:last-child { padding-right: 14px; }
  .credential-highlight strong { font-size: clamp(1.15rem, 5.4vw, 1.45rem); }
  .credential-highlight p { margin-top: 8px; font-size: .8rem; }
  .intro-section { padding-top: 36px; }
  .services-section { margin-bottom: 72px; }
  .services-heading { margin-bottom: 20px; padding-bottom: 17px; }
  .service-card { min-height: 0; padding: 28px 24px; }
  .service-card-body { margin-top: 45px; }
  .card-number, .service-number { font-size: 1.7rem; }
  .tools-section { margin-bottom: 72px; }
  .available-tool-card { display: grid; padding: 30px 26px; }
  .available-tool-card .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer > div:first-child { justify-items: center; }
  .site-footer p { text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .thresholds-section, .dian-check-section, .calculator-transition { width: min(100% - 30px, 560px); }
  .thresholds-section { padding-top: 54px; }
  .thresholds-heading h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .thresholds-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .threshold-card-featured { grid-column: span 1; }
  .threshold-card { min-height: auto; padding: 23px 20px; }
  .uvt-highlight { align-items: flex-start; padding: 22px; }
  .thresholds-footnote { grid-template-columns: 1fr; gap: 17px; padding: 22px; }
  .thresholds-footnote > a { grid-column: auto; white-space: normal; }
  .dian-check-section { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; padding: 28px 25px; }
  .dian-check-icon { width: 56px; height: 56px; }
  .dian-check-action { min-width: 0; }
  .calculator-transition { display: grid; margin-top: 28px; padding: 32px 25px; }
  .calculator-transition .button { width: 100%; }
  .calculator-shell { gap: 50px; padding-bottom: 70px; }
  .calculator-intro h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .input-row { grid-template-columns: 1fr; }
  .input-row .button { width: 100%; }
  .result-card { grid-template-columns: 92px 1fr; gap: 15px; }
  .result-date-box { min-height: 108px; }
  .result-date-box strong { font-size: 2.6rem; }
  .calendar-summary { padding: 34px 26px; }
  .privacy-hero, .privacy-layout { width: min(100% - 30px, 560px); }
  .privacy-hero { padding: 55px 0 45px; }
  .privacy-hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .privacy-layout { gap: 30px; padding: 40px 0 75px; }
  .privacy-index { grid-template-columns: 1fr; }
  .privacy-index strong { grid-column: auto; }
  .privacy-section { padding: 26px 22px; }
  .renta-steps-main { padding-bottom: 70px; }
  .steps-heading, .tax-steps { width: min(100% - 30px, 560px); }
  .steps-heading { padding: 54px 0 35px; }
  .steps-heading h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .tax-step > summary { grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 14px; min-height: 108px; padding: 20px 17px; }
  .tax-step-number { width: 46px; height: 46px; font-size: .65rem; }
  .tax-step-summary strong { font-size: clamp(1.35rem, 7vw, 1.8rem); }
  .tax-step-summary > span { font-size: .7rem; }
  .tax-step-toggle { width: 31px; height: 31px; }
  .tax-step-panel { padding: 28px 18px 30px; }
  .tax-step-panel .thresholds-grid { margin-top: 24px; }
  .calculator-step-panel { padding-right: 12px; padding-left: 12px; }
  .auth-main { gap: 42px; padding-bottom: 70px; }
  .auth-intro h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .auth-card { min-height: 0; padding: 24px 18px; }
  .account-main { width: min(100% - 30px, 560px); padding: 50px 0 70px; }
  .account-welcome { align-items: flex-start; flex-direction: column; gap: 25px; }
  .account-welcome h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .account-lock-note { white-space: normal; }
  .account-tabs { gap: 0; margin-bottom: 26px; }
  .account-tab { flex: 1 1 25%; min-width: 0; min-height: 58px; padding-right: 2px; padding-left: 2px; font-size: .7rem; }
  .account-tab-panel, .account-coming-soon { min-height: 360px; }
  .subscription-blocked-notice { align-items: flex-start; flex-direction: column; }
  .account-coming-soon { padding: 42px 20px; }
  .dashboard-overview, .dashboard-detail-card { padding: 23px 19px; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .dashboard-section-heading > p { text-align: left; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-card-heading { align-items: flex-start; }
  .dashboard-record { gap: 12px; }
  .account-profile-layout { grid-template-columns: minmax(0, 1fr); }
  .clients-panel, .credentials-panel, .tax-returns-panel, .news-panel, .news-images-panel, .profile-card { padding: 23px 19px; }
  .news-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; }
  .news-toolbar .button { width: 100%; }
  .news-form-grid { grid-template-columns: 1fr; }
  .news-image-upload-controls, .news-images-list, .news-image-detail-data, .news-image-public-url { grid-template-columns: minmax(0, 1fr); }
  .news-image-upload-controls .button, .news-image-public-url .button { width: 100%; }
  .news-image-detail-preview { height: 210px; }
  .public-news-main { padding: 52px 0 72px; }
  .public-news-intro h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .public-news-box { padding: 16px; border-radius: 19px; }
  .public-news-grid { grid-template-columns: 1fr; }
  .public-news-card-image { height: 190px; }
  .news-detail-main { padding: 42px 0 72px; }
  .news-detail-article > header { padding: 30px 23px 26px; }
  .news-detail-figure { width: calc(100% - 46px); }
  .news-detail-content { padding: 30px 23px 45px; font-size: 1rem; }
  .clients-toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .clients-toolbar .button { width: 100%; }
  .client-card-summary { align-items: center; }
  .client-identity { width: 100%; }
  .client-actions { width: auto; }
  .client-action { flex: 0 0 auto; }
  .credentials-toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .credentials-toolbar .button { width: 100%; }
  .tax-returns-toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .tax-returns-toolbar .button { width: 100%; }
  .tax-return-filters { grid-template-columns: 1fr; }
  .credential-row { grid-template-columns: minmax(0, 1fr) auto; }
  .credential-actions { grid-column: auto; }
  .credential-actions .client-action { flex: 1; }
  .credential-actions .client-view-action { flex: 0 0 auto; }
  .tax-return-form-grid { grid-template-columns: 1fr; }
  .tax-return-primary { gap: 12px; }
  .tax-return-actions .client-action { flex: 1; }
  .tax-return-actions .client-view-action { flex: 0 0 auto; }
  .account-dialog { padding: 27px 20px; }
  .dialog-actions { grid-template-columns: 1fr; }
  .account-dialog .auth-form.is-editing .dialog-actions { grid-template-columns: auto 1fr; }
  .account-dialog .auth-form.is-editing .dialog-actions .button-primary { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
