@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── Design tokens ── */
:root {
  --bg: #F7F5F0;
  --surface: #FFF;
  --s2: #F0EDE6;
  --brd: #DDD8CE;
  --brds: #B8B2A6;
  --tx: #1A1814;
  --txm: #6B6560;
  --txf: #9B9590;
  --ac: #2B5C3F;
  --acl: #E8F2EC;
  --acm: #4A8C65;
  --warn: #7A3B00;
  --wl: #FFF0E0;
  --dng: #7A1A1A;
  --dl: #FFF0F0;
  --inf: #1A3A6B;
  --il: #EEF3FF;
  --tE: #2B4A7A;
  --tEb: #E8EEF8;
  --tA: #6B2B6B;
  --tAb: #F5E8F5;
  --tS: #7A3B00;
  --tSb: #FFF0E0;
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --bg: #141210;
  --surface: #1E1C18;
  --s2: #252320;
  --brd: #3A3630;
  --brds: #4A4640;
  --tx: #E8E4DC;
  --txm: #A09A90;
  --txf: #706A60;
  --ac: #3D8A58;
  --acl: #162118;
  --acm: #4A9B68;
  --warn: #E0A050;
  --wl: #2A2010;
  --dng: #E06060;
  --dl: #2A1414;
  --inf: #6090D0;
  --il: #141E2E;
  --tE: #6090D0;
  --tEb: #1A2238;
  --tA: #C080C0;
  --tAb: #281828;
  --tS: #E0A050;
  --tSb: #2A2010;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--brd);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--txm);
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ac); border-color: var(--brds); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--tx); min-height: 100vh; font-size: 14px; line-height: 1.6; }

/* ══════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════ */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--brd);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--ac); text-decoration: none; letter-spacing: -0.3px; }
.nav-logo span { color: var(--tx); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-link { font-size: 13px; color: var(--txm); text-decoration: none; padding: 7px 4px; position: relative; transition: color 0.15s; }
.nav-link:hover { color: var(--ac); }
.nav-new-dot { width: 6px; height: 6px; background: var(--ac); border-radius: 50%; display: inline-block; margin-left: 2px; vertical-align: top; margin-top: 2px; }

/* Nav profile dropdown */
.nav-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
  user-select: none;
}
.nav-profile:hover { background: var(--s2); }
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brd);
  flex-shrink: 0;
}
.nav-avatar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}
.nav-profile-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-chevron {
  width: 12px;
  height: 12px;
  color: var(--txf);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-profile.open .nav-profile-chevron { transform: rotate(180deg); }
.nav-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 6px;
  z-index: 200;
}
.nav-profile.open .nav-profile-menu { display: block; }
.nav-profile-menu a,
.nav-profile-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  text-align: left;
  transition: background 0.12s;
}
.nav-profile-menu a:hover,
.nav-profile-menu button:hover { background: var(--s2); }
.nav-profile-menu .menu-icon {
  width: 16px;
  height: 16px;
  color: var(--txm);
  flex-shrink: 0;
}
.nav-profile-menu hr {
  border: none;
  border-top: 1px solid var(--brd);
  margin: 4px 8px;
}
.nav-profile-menu .menu-logout { color: var(--dng); }
.nav-profile-menu .menu-logout .menu-icon { color: var(--dng); }
.nav-profile-email {
  padding: 8px 14px 6px;
  font-size: 11px;
  color: var(--txf);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--acl);
  color: var(--ac);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid #A0C8B0;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--tx);
}
.hero h1 em { font-style: italic; color: var(--ac); }
.hero p {
  font-size: 17px;
  color: var(--txm);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 44px;
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 20px 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--ac);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--txm);
}
.hero-img {
  background: var(--surface);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 24px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  overflow: hidden;
}
.hero-img-inner { display: flex; flex-direction: column; gap: 8px; }
.hero-row { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.hero-row.ok { background: var(--acl); }
.hero-row.psf { background: var(--tEb); }
.hero-row-n { width: 22px; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--txf); text-align: right; }
.hero-row-w { width: 90px; font-weight: 500; color: var(--tx); }
.hero-row-r { width: 90px; font-family: 'DM Mono', monospace; color: var(--txm); }
.hero-row-tags { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }

/* Features */
.features {
  background: var(--surface);
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  padding: 64px 32px;
}
.features-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acm);
  margin-bottom: 12px;
}
.section-title { font-family: 'DM Serif Display', serif; font-size: 28px; margin-bottom: 8px; }
.section-sub { color: var(--txm); font-size: 15px; font-weight: 300; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 20px;
}
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.feature-card p { font-size: 13px; color: var(--txm); line-height: 1.5; }

/* Coming soon */
.coming-soon {
  padding: 48px 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.coming-soon-items {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.coming-soon-item {
  background: var(--s2);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 16px 24px;
  min-width: 220px;
  text-align: left;
}
.coming-soon-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.coming-soon-item .cs-desc { font-size: 12px; color: var(--txm); margin-bottom: 8px; }
.coming-soon-item .cs-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--acm);
}

/* Privacy block */
.privacy-block {
  background: var(--acl);
  padding: 40px 32px;
  text-align: center;
}
.privacy-block-inner {
  max-width: 560px;
  margin: 0 auto;
}
.privacy-block h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.privacy-block p {
  font-size: 14px;
  color: var(--txm);
  line-height: 1.6;
}

/* How it works */
.how { padding: 64px 32px; max-width: 1000px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.step { display: flex; gap: 16px; }
.step-num {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--ac); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; font-family: 'DM Mono', monospace;
}
.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--txm); }

/* CTA band */
.cta-band {
  background: var(--ac);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { font-family: 'DM Serif Display', serif; font-size: 28px; color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 28px; font-weight: 300; }

/* Footer */
footer {
  text-align: center;
  padding: 24px 32px;
  font-size: 11px;
  color: var(--txf);
  border-top: 1px solid var(--brd);
}

/* ══════════════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.15);
}
.modal-box h2 { font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 4px; }
.modal-box .modal-sub { font-size: 13px; color: var(--txm); margin-bottom: 24px; }
.modal-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--brd); }
.modal-tab {
  flex: 1; padding: 8px; text-align: center; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--txm); border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'DM Sans', sans-serif;
}
.modal-tab.active { color: var(--ac); border-bottom-color: var(--ac); }
.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--txm); letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; border: 1px solid var(--brd); border-radius: 8px;
  padding: 9px 12px; outline: none; color: var(--tx); background: var(--surface);
}
.form-group input:focus { border-color: var(--acm); }
.modal-error { font-size: 12px; color: var(--dng); background: var(--dl); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; display: none; }
.modal-success { font-size: 12px; color: var(--ac); background: var(--acl); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; display: none; }
.modal-close { float: right; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--txf); margin-top: -8px; margin-right: -8px; }

/* Banner verde dentro del modal de auth — anuncia cupón pendiente al registrarse */
.promo-banner-modal {
  font-size: 13px; color: var(--ac); background: var(--acl);
  border: 1px solid var(--ac); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 14px; line-height: 1.45;
}
.promo-banner-modal strong { font-weight: 700; letter-spacing: 0.04em; }

/* Modal centrado — feedback de canje de cupón (éxito o error) */
.promo-toast {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.2s ease;
}
.promo-toast.promo-toast-show { opacity: 1; }
.promo-toast-box {
  background: var(--surface); color: var(--tx);
  max-width: 380px; width: 100%;
  padding: 24px 24px 20px;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.promo-toast-show .promo-toast-box { transform: scale(1); }
.promo-toast-icon { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.promo-toast-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.promo-toast-msg { font-size: 13.5px; line-height: 1.5; color: var(--txf); margin-bottom: 18px; }
.promo-toast-msg strong { color: var(--tx); font-weight: 700; }
.promo-toast-btn {
  background: var(--ac); color: #fff;
  border: 0; border-radius: 8px;
  padding: 10px 28px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}
.promo-toast-btn:hover { opacity: 0.88; }
.promo-toast-err .promo-toast-btn { background: var(--dng); }

/* ══════════════════════════════════════════════
   APP — ANALIZADOR
══════════════════════════════════════════════ */
.app-hdr {
  background: var(--surface);
  border-bottom: 1px solid var(--brd);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.app-hdr-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.app-hdr h1 { font-family: 'DM Serif Display', serif; font-size: 26px; letter-spacing: -0.3px; }
.app-hdr .sub { font-size: 12px; color: var(--txm); font-weight: 300; letter-spacing: 0.04em; }
.app-hdr .vt { font-family: 'DM Mono', monospace; font-size: 10px; background: var(--acl); color: var(--ac); padding: 2px 8px; border-radius: 4px; }
.app-hdr-right { display: flex; align-items: center; gap: 10px; }
.user-email { font-size: 12px; color: var(--txm); }

.ct { max-width: 1200px; margin: 0 auto; padding: 24px 32px; }

.note { border-radius: 8px; padding: 10px 14px; font-size: 12px; margin-bottom: 16px; line-height: 1.5; }
.note-i { background: var(--acl); border: 1px solid #A0C8B0; color: var(--ac); }

.tb { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.pf { display: flex; gap: 10px; align-items: flex-end; flex: 1; flex-wrap: wrap; }
.fg { display: flex; flex-direction: column; gap: 3px; }
.fg label { font-size: 10px; color: var(--txm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fg input, .fg select { font-family: 'DM Sans', sans-serif; font-size: 13px; border: 1px solid var(--brd); border-radius: 6px; padding: 6px 10px; background: var(--surface); color: var(--tx); outline: none; }
.fg input:focus, .fg select:focus { border-color: var(--acm); }
.fg input.nm { width: 160px; }
.fg select.as { width: 68px; }
.ar { display: flex; gap: 6px; align-items: center; }
.ar span { font-size: 11px; color: var(--txf); padding-top: 2px; }

/* FNA Panel */
.fna-panel { width: 100%; margin-bottom: 10px; }
.fna-toggle { background: none; border: 1px solid var(--brd); border-radius: 6px; padding: 7px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--txm); display: flex; align-items: center; gap: 6px; transition: all 0.15s; }
.fna-toggle:hover { background: var(--s2); color: var(--tx); border-color: var(--brds, var(--brd)); }
.fna-toggle-icon { font-size: 10px; }
.fna-body { display: none; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--brd); border-radius: 8px; }
.fna-hint { font-size: 11px; color: var(--txm); line-height: 1.5; margin: 0; }
.fna-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.fna-item { display: flex; align-items: center; gap: 5px; font-size: 12px; font-family: 'DM Mono', monospace; padding: 3px 8px; border: 1px solid var(--brd); border-radius: 5px; cursor: pointer; transition: all 0.12s; user-select: none; }
.fna-item:hover { background: var(--s2); border-color: var(--brds, var(--brd)); }
.fna-cb { accent-color: var(--ac); margin: 0; }
.fna-cb:checked + .fna-label { color: var(--ac); font-weight: 600; }
.fna-notes { color: var(--txf); font-style: italic; text-decoration: line-through; opacity: 0.5; }
.fna-info { background: #FFF8ED; border: 1px solid #E0C080; border-radius: 8px; padding: 8px 14px; font-size: 12px; color: #7A5A00; margin-bottom: 10px; }
[data-theme="dark"] .fna-info { background: #2A2418; border-color: #5A4A20; color: #D4B860; }

.btn { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; border: none; border-radius: 8px; padding: 9px 18px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.bp { background: var(--ac); color: #fff; }
.bp:hover:not(:disabled) { background: #234d34; transform: translateY(-1px); }
.bp:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bs { background: var(--surface); color: var(--txm); border: 1px solid var(--brd); font-size: 12px; padding: 7px 14px; border-radius: 6px; }
.bs:hover { background: var(--s2); color: var(--tx); }
.be { background: var(--surface); color: var(--inf); border: 1px solid #b0c4e8; font-size: 12px; padding: 7px 14px; border-radius: 6px; }
.be:hover { background: var(--il); color: var(--inf); }
.bv { background: var(--il); color: var(--inf); border: 1px solid #C0CCEE; font-size: 11px; padding: 6px 12px; border-radius: 6px; }
.usage-count { font-size: 11px; color: var(--txm); font-weight: 500; padding: 7px 10px; white-space: nowrap; }
.usage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; font-size: 12px; color: var(--txm); padding: 0; line-height: 1.4; }
.action-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.action-buttons { display: flex; gap: 10px; }
.usage-bar .ub-count, .usage-bar .ub-plan, .usage-bar .ub-creds { white-space: nowrap; }
.usage-bar .ub-count { font-weight: 600; color: var(--tx); }
.usage-bar .ub-plan { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--acl); color: var(--ac); letter-spacing: 0.03em; }
.usage-bar.ub-warning .ub-count { color: #b45309; }
.usage-bar.ub-warning .ub-plan { background: #fef3c7; color: #92400e; }
.usage-bar.ub-limit .ub-count { color: var(--dng); }
.usage-bar.ub-limit .ub-plan { background: var(--dl); color: var(--dng); }
.usage-bar .ub-creds { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--il); color: var(--inf); letter-spacing: 0.03em; }
.upgrade-banner {
  background: var(--il); border: 1px solid #b0c4e8; color: var(--inf);
  border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.upgrade-banner a { color: var(--ac); font-weight: 600; text-decoration: none; white-space: nowrap; }
.upgrade-banner a:hover { text-decoration: underline; }
.free-upgrade-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--acl); color: var(--ac); font-size: 12px;
  padding: 7px 16px; text-align: center; line-height: 1.5;
}
.free-upgrade-bar a { color: var(--ac); font-weight: 600; text-decoration: none; margin-left: 4px; }
.free-upgrade-bar a:hover { text-decoration: underline; }
.free-upgrade-bar button {
  background: none; border: none; color: var(--ac); font-size: 18px;
  cursor: pointer; padding: 0 4px; line-height: 1; opacity: 0.6;
}
.free-upgrade-bar button:hover { opacity: 1; }

/* ── Free plan lock (TEPROSIF-R limitado a barrido 15 ítems) ── */
body.plan-free tr.locked-row { opacity: 0.42; transition: opacity 0.15s; }
body.plan-free tr.locked-row:hover { opacity: 0.55; }
body.plan-free tr.locked-row input.inp {
  background: var(--bg-soft, #f3f4f6); cursor: not-allowed; color: #9ca3af;
  text-align: center;
}
body.plan-free tr.locked-row .inp::placeholder { color: #9ca3af; text-align: center; }
.free-lock-cta td { padding: 0 !important; background: transparent !important; border: none !important; }
.lock-cta {
  margin: 14px 0; padding: 18px 22px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
}
.lock-cta-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lock-cta-text strong { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.lock-cta-text .lock-icon { font-size: 18px; }
.lock-cta-text .lock-cta-sub { font-size: 12px; opacity: 0.92; line-height: 1.45; }
.lock-cta-btn {
  background: #fff; color: #2563eb; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lock-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
@media (max-width: 720px) {
  .lock-cta { flex-direction: column; text-align: center; padding: 16px; }
  .lock-cta-btn { width: 100%; text-align: center; }
}

/* ── FAQ accordion ── */
.faq { max-width: 680px; margin: 0 auto; padding: 0 24px 48px; }
.faq-title { font-family: 'DM Serif Display', serif; font-size: 28px; text-align: center; margin-bottom: 32px; color: var(--tx); }
.faq-item { border-bottom: 1px solid var(--brd); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 18px 0; font-size: 15px; font-weight: 500; color: var(--tx);
  text-align: left; font-family: inherit; line-height: 1.4;
}
.faq-q:hover { color: var(--ac); }
.faq-q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--txm); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 14px; color: var(--txm); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 18px; margin: 0; }

.tw { background: var(--surface); border: 1px solid var(--brd); border-radius: 12px; overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
thead th { background: var(--s2); padding: 10px 12px; font-size: 11px; font-weight: 600; color: var(--txm); letter-spacing: 0.06em; text-align: left; border-bottom: 1px solid var(--brd); white-space: nowrap; }
thead th.c { text-align: center; }
tbody tr { border-bottom: 1px solid var(--brd); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--s2); }
tbody td { padding: 7px 12px; vertical-align: top; }

.nc { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--txf); width: 30px; text-align: center; }
.wc { font-weight: 500; font-size: 13px; width: 125px; }
.wc .ph { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--txf); margin-top: 1px; }
.inp { font-family: 'DM Mono', monospace; font-size: 13px; border: 1px solid var(--brd); border-radius: 5px; padding: 5px 8px; width: 135px; background: var(--bg); color: var(--tx); outline: none; transition: border-color 0.15s; }
.inp:focus { border-color: var(--acm); background: var(--bg); }
.inp.hv { background: var(--bg); border-color: var(--brds); }
.cc { width: 38px; text-align: center; font-family: 'DM Mono', monospace; font-size: 12px; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; font-family: 'DM Mono', monospace; margin: 1px 2px 1px 0; }
.tag-E { background: var(--tEb); color: var(--tE); }
.tag-A { background: var(--tAb); color: var(--tA); }
.tag-S { background: var(--tSb); color: var(--tS); }
.tag-ok { background: var(--acl); color: var(--ac); }
.tag-fna { background: var(--s2); color: var(--txf); text-decoration: line-through; opacity: 0.6; }
.ac { font-size: 11.5px; color: var(--txm); min-width: 210px; line-height: 1.45; }

.ra td { background: var(--surface); }
.row-edited td { background: var(--surface) !important; }
.barrido-row td { background: var(--acl) !important; border-top: 2px solid var(--ac); border-bottom: 2px solid var(--ac); }
.edited-badge { font-size: 9px; background: #E0F0FF; color: #1A5A9B; padding: 1px 5px; border-radius: 3px; font-weight: 600; margin-left: 4px; }
.review-badge { font-size: 12px; margin-left: 3px; cursor: help; opacity: 0.8; }

.edit-btn { font-size: 10px; background: none; border: 1px solid var(--brd); border-radius: 4px; padding: 1px 6px; cursor: pointer; color: var(--txm); margin-left: 4px; font-family: 'DM Sans', sans-serif; }
.edit-btn:hover { background: var(--s2); color: var(--tx); }
.edit-row { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.edit-row input { width: 32px; font-family: 'DM Mono', monospace; font-size: 11px; text-align: center; border: 1px solid var(--brd); border-radius: 3px; padding: 2px; }
.edit-row label { font-size: 10px; color: var(--txm); font-weight: 600; }
.edit-row .save-btn { font-size: 10px; background: var(--ac); color: #fff; border: none; border-radius: 3px; padding: 2px 8px; cursor: pointer; }

/* Results summary */
.ss { margin-top: 24px; }
.ss h2 { font-family: 'DM Serif Display', serif; font-size: 17px; margin-bottom: 12px; }
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sc { background: var(--surface); border: 1px solid var(--brd); border-radius: 10px; padding: 14px 16px; }
.sc .sl { font-size: 10px; color: var(--txm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.sc .sv { font-size: 28px; font-weight: 600; font-family: 'DM Serif Display', serif; line-height: 1; }
.sc .su { font-size: 11px; color: var(--txf); margin-top: 3px; }

/* DESIGN 2026-03-30: nivel badge más grande */
.nb { display: inline-block; font-size: 16px; font-weight: 700; padding: 5px 16px; border-radius: 99px; }
.nb-N { background: var(--acl); color: var(--ac); }
.nb-R { background: var(--wl); color: var(--warn); }
.nb-D { background: var(--dl); color: var(--dng); }
.nb-u { background: var(--s2); color: var(--txf); }

.vp { background: var(--surface); border: 1px solid var(--brd); border-radius: 10px; padding: 16px; margin-top: 14px; font-size: 12px; }
.vp h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }

.fp { background: var(--surface); border: 1px solid var(--brd); border-radius: 10px; padding: 16px; margin-top: 14px; }
.fp h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.fgd { display: flex; flex-wrap: wrap; gap: 6px; }
.fi { display: flex; align-items: center; gap: 5px; font-size: 11px; font-family: 'DM Mono', monospace; padding: 3px 8px; border-radius: 5px; background: var(--s2); }
.fi .fc { font-weight: 600; font-size: 13px; }

.np { background: var(--surface); border: 1px solid var(--brd); border-radius: 10px; padding: 16px; margin-top: 14px; }
.np h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.nt { width: 100%; border-collapse: collapse; font-size: 12px; }
.nt th { text-align: left; padding: 5px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--txm); background: var(--s2); border-bottom: 1px solid var(--brd); text-transform: uppercase; }
.nt td { padding: 5px 8px; border-bottom: 1px solid var(--brd); }
.nt tr:last-child td { border-bottom: none; }
.nt tr.at td { background: var(--acl); font-weight: 600; }
.nt .nm { font-family: 'DM Mono', monospace; text-align: center; }

/* Percentil strip */
.pp { background: var(--surface); border: 1px solid var(--brd); border-radius: 10px; padding: 16px; margin-top: 14px; }
.pp h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pp .pm { font-weight: 400; color: var(--txm); font-size: 11px; }
.pt { width: 100%; border-collapse: collapse; font-size: 12px; }
.pt th { text-align: center; padding: 5px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--txm); background: var(--s2); border-bottom: 1px solid var(--brd); text-transform: uppercase; }
.pt td { padding: 7px 8px; border-bottom: none; text-align: center; font-family: 'DM Mono', monospace; }
.pt td.pat { background: var(--acl); font-weight: 700; color: var(--ac); border-radius: 4px; outline: 1px solid var(--ac); }
.pr { font-size: 12px; color: var(--txm); margin-top: 10px; margin-bottom: 0; }
.pr strong { color: var(--tx); }
.ds-block { display: flex; align-items: center; gap: 16px; background: var(--s2); border-left: 3px solid; border-radius: 8px; padding: 10px 14px; margin-top: 12px; flex-wrap: wrap; }
.ds-left { display: flex; flex-direction: column; flex-shrink: 0; }
.ds-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--txm); margin-bottom: 2px; }
.ds-val { font-size: 26px; font-weight: 700; font-family: 'DM Mono', monospace; line-height: 1; }
.ds-ctx { font-size: 12px; color: var(--txm); line-height: 1.5; }
.ds-ctx strong { color: var(--tx); }

/* Loading spinner */
.spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 6px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error message */
.err-msg {
  background: var(--dl); border: 1px solid #E8A0A0; color: var(--dng);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; margin-bottom: 14px; display: none;
}

/* ── Shared buttons ── */
.btn-primary {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  background: var(--ac); color: #fff; border: none; border-radius: 8px;
  padding: 10px 22px; cursor: pointer; transition: all 0.15s;
}
.btn-primary:hover { background: #234d34; transform: translateY(-1px); }
.btn-outline {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--tx); border: 1px solid var(--brd);
  border-radius: 8px; padding: 10px 22px; cursor: pointer; transition: all 0.15s;
}
.btn-outline:hover { background: var(--s2); }
.btn-google {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--tx); border: 1px solid var(--brd);
  border-radius: 8px; padding: 10px 16px; cursor: pointer; transition: all 0.15s;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.btn-google:hover { background: var(--s2); border-color: var(--brds); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.divider {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--txf); margin-bottom: 14px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--brd); }

.btn-sm {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  background: none; color: var(--txm); border: 1px solid var(--brd);
  border-radius: 6px; padding: 6px 14px; cursor: pointer; transition: all 0.15s;
}
.btn-sm:hover { background: var(--s2); color: var(--tx); }

/* ── Feedback button ── */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ac);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 50;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feedback-fab:hover { background: #234d34; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }

.feedback-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 80px 0;
}
.feedback-modal.open { display: flex; }
.feedback-box {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.feedback-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feedback-box p { font-size: 12px; color: var(--txm); margin-bottom: 14px; }
.feedback-box select, .feedback-box textarea {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 13px;
  border: 1px solid var(--brd); border-radius: 7px; padding: 8px 10px;
  background: var(--bg); color: var(--tx); outline: none; margin-bottom: 10px;
}
.feedback-box select:focus, .feedback-box textarea:focus { border-color: var(--acm); background: #fff; }
.feedback-box textarea { resize: vertical; min-height: 90px; }
.feedback-box-actions { display: flex; gap: 8px; justify-content: flex-end; }
.feedback-sent { font-size: 13px; color: var(--ac); text-align: center; padding: 12px 0; display: none; }

/* DESIGN 2026-03-31: reward hint sobre feedback FAB */
.reward-hint {
  position: fixed;
  bottom: 72px;
  right: 24px;
  width: 240px;
  background: var(--wl);
  border-left: 3px solid #E07A00;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--warn);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  z-index: 49;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.reward-hint .beta-reward-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.reward-hint strong { color: var(--warn); }

/* DESIGN 2026-03-27: Banner prelanzamiento */
.promo-bar {
  background: var(--ac);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Print / PDF export ── */
@media print {
  .app-hdr, .reward-hint, .tb, .note-i, .tw, .feedback-fab,
  .feedback-modal, footer, #errM, #sumSec, #btnExportPDF, #btnExportHoja,
  .free-upgrade-bar, .upgrade-banner, #freeUpgradeBar, #upgradeBanner, .fna-panel { display: none !important; }
  #printView { display: block !important; }
  body { background: #fff; font-family: 'DM Sans', sans-serif; font-size: 10.5pt; color: #000; }
  .pdf-hdr { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #2B5C3F; padding-bottom: 8px; margin-bottom: 14px; }
  .pdf-logo { font-size: 18pt; font-weight: 700; font-family: 'DM Serif Display', serif; color: #2B5C3F; }
  .pdf-title { font-size: 10pt; color: #6B6560; text-align: right; }
  .pdf-patient { display: flex; gap: 32px; background: #F0EDE6; border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; font-size: 9.5pt; }
  .pdf-patient span { display: flex; flex-direction: column; }
  .pdf-patient .lbl { font-size: 8pt; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6B6560; }
  .pdf-section { margin-bottom: 16px; page-break-inside: avoid; }
  .pdf-section h3 { font-size: 9pt; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6560; margin-bottom: 6px; border-bottom: 1px solid #DDD8CE; padding-bottom: 3px; }
  .pdf-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .pdf-table th { background: #F0EDE6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 8pt; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #6B6560; padding: 4px 6px; border-bottom: 1px solid #DDD8CE; text-align: left; }
  .pdf-table td { padding: 3px 6px; border-bottom: 1px solid #EEE; vertical-align: middle; }
  .pdf-table tr:last-child td { border-bottom: none; }
  .pdf-table td.c { text-align: center; }
  .pdf-barrido td { background: #E8F2EC !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-weight: 600; border-top: 1px solid #4A8C65; border-bottom: 1px solid #4A8C65; }
  .pdf-cards { display: flex; gap: 10px; flex-wrap: wrap; }
  .pdf-card { border: 1px solid #DDD8CE; border-radius: 8px; padding: 10px 14px; min-width: 90px; }
  .pdf-card .lbl { font-size: 8pt; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6B6560; }
  .pdf-card .val { font-size: 22pt; font-weight: 600; font-family: 'DM Serif Display', serif; line-height: 1.1; display: flex; align-items: center; min-height: 32pt; }
  .pdf-card .val .nb { font-size: 14pt; padding: 4px 14px; }
  .pdf-freq { display: flex; flex-wrap: wrap; gap: 5px; }
  .pdf-freq-item { font-size: 8.5pt; font-family: 'DM Mono', monospace; padding: 2px 7px; border-radius: 4px; }
  .tag { display: inline-block; font-size: 8pt; font-weight: 600; padding: 1px 5px; border-radius: 3px; font-family: 'DM Mono', monospace; margin: 1px 1px 1px 0; }
  .tag-E { background: #E8EEF8 !important; color: #2B4A7A !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag-A { background: #F5E8F5 !important; color: #6B2B6B !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag-S { background: #FFF0E0 !important; color: #7A3B00 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag-ok { background: #E8F2EC !important; color: #2B5C3F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag-fna { background: #F0EDE6 !important; color: #9B9590 !important; text-decoration: line-through !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fna-notes { color: #9B9590 !important; font-style: italic !important; text-decoration: line-through !important; }
  .fna-info { background: #FFF8ED !important; color: #7A5A00 !important; border: 1px solid #E0C080 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fna-panel { display: none !important; }
  .nb { display: inline-block; font-size: 10pt; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
  .nb-N { background: #E8F2EC !important; color: #2B5C3F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nb-R { background: #FFF0E0 !important; color: #7A3B00 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nb-D { background: #FFF0F0 !important; color: #7A1A1A !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nb-u { background: #F0EDE6 !important; color: #6B6560 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-footer { margin-top: 20px; border-top: 1px solid #DDD8CE; padding-top: 6px; font-size: 7.5pt; color: #9B9590; display: flex; justify-content: space-between; }

  /* DESIGN 2026-04-04: Hoja de Respuestas TEPROSIF-R (réplica fiel del original) */
  .hoja { font-family: 'Times New Roman', Times, serif; font-size: 7.5pt; color: #000; padding: 0; }
  .hoja-title { font-family: 'Times New Roman', Times, serif; font-size: 11pt; font-weight: 700; text-align: center; margin-bottom: 6px; }

  /* ── Header info ── */
  .hoja-hdr { margin-bottom: 5px; }
  .hoja-hdr-row { display: flex; align-items: baseline; gap: 3px; margin-bottom: 2px; }
  .hoja-lbl { font-size: 7pt; font-weight: 700; white-space: nowrap; }
  .hoja-sep { font-weight: 700; margin: 0 1px; }
  .hoja-line { font-size: 7.5pt; border-bottom: 0.5pt solid #000; padding: 0 3px; min-width: 30px; }
  .hoja-box { font-size: 7.5pt; font-weight: 700; border: 0.5pt solid #000; padding: 0px 6px; min-width: 30px; text-align: center; }
  .hoja-bold { font-weight: 700; }

  .hoja-niv { display: inline-block; font-size: 7.5pt; font-weight: 700; width: 12px; height: 12px; text-align: center; line-height: 10px; margin: 0 2px; }
  .hoja-niv-on { border: 1px solid #000; border-radius: 50%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* ── Tabla principal ── */
  .hoja-table { width: 100%; border-collapse: collapse; margin-bottom: 3px; min-width: 0 !important; }

  /* Encabezados: ÍTEMS y REGISTRO sin borde lateral, columnas de datos con borde */
  .hoja-th-open { font-family: 'Times New Roman', Times, serif; text-align: left; font-size: 7pt; font-weight: 700; padding: 2px 3px; border: none; }
  .hoja-th-reg { text-align: center; }
  .hoja-th-dc { font-family: 'Times New Roman', Times, serif; text-align: center; font-size: 6pt; font-weight: 700; padding: 2px 1px; border: 0.1px solid #000; line-height: 1.15; }

  /* Celdas de ítems: sin bordes */
  .hoja-item { font-size: 7pt; font-weight: 400; padding: 0.5px 3px; white-space: nowrap; border: none !important; line-height: 1.5; }
  .hoja-reg { font-family: 'Times New Roman', Times, serif; font-size: 7pt; padding: 0.5px 3px; border: none !important; border-bottom: 0.1px solid #000 !important; line-height: 1.5; }

  /* Celdas de datos: bordes finos */
  .hoja-dc { text-align: center; font-size: 7pt; padding: 0.5px 1px; border: 0.1px solid #000; line-height: 1.5; }

  /* Celdas abiertas (sin borde) */
  .hoja-open { border: none !important; padding: 0.5px 3px; font-size: 7pt; line-height: 1.5; }

  /* Fila barrido */
  .hoja-barrido td { border-top: 0.1px solid #000 !important; border-bottom: 0.1px solid #000 !important; }
  .hoja-barrido .hoja-open { border-top: 0.1px solid #000 !important; border-bottom: 0.1px solid #000 !important; }
  .hoja-barrido .hoja-dc { }

  /* Fila total */
  .hoja-total-row .hoja-open { border-top: 0.1px solid #000 !important; padding: 2px 3px; }
  .hoja-total-row .hoja-dc { border: 0.1px solid #000; padding: 2px 1px; }

  .hoja-footer { font-size: 5.5pt; color: #000; margin-top: 4px; line-height: 1.4; }
  .hoja-footer p { margin-bottom: 0; }
  .hoja-watermark { font-size: 5pt; color: #999; text-align: right; margin-top: 3px; font-style: italic; }

  @page { margin: 7mm 8mm; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .hero { padding: 48px 16px 40px; }
  .ct { padding: 16px; }
  .app-hdr { padding: 12px 16px; }
  .tb { flex-direction: column; align-items: stretch; }
  .pf { flex-direction: column; }
  .hero-img { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 22px; }
  .modal-box { padding: 24px; }
}
