:root {
  color-scheme: light;
  --navy: #0b3154;
  --navy-2: #174f77;
  --teal: #0b7f82;
  --teal-dark: #075f63;
  --gold: #d7993b;
  --ink: #172334;
  --muted: #667386;
  --line: #d9e2ea;
  --soft: #f4f7f9;
  --white: #ffffff;
  --success: #147a52;
  --warning: #a15c00;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(11, 49, 84, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: #f7f9fb;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 234, 0.9);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 52px; height: 44px; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 20px; letter-spacing: 0.05em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.site-header nav, .header-actions { display: flex; align-items: center; gap: 24px; }
.site-header nav a, .header-actions a {
  color: #3c4c60;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover, .header-actions a:hover { color: var(--teal-dark); }
.nav-admin {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(239, 247, 247, 0.98), rgba(247, 249, 251, 0.96)),
    url("assets/sisa-logo.png") no-repeat 8% 50% / 390px;
  border-bottom: 1px solid var(--line);
}
.runtime-notice {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 86px;
  width: min(720px, calc(100% - 28px));
  padding: 13px 18px;
  display: flex;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e6bd82;
  border-radius: 10px;
  background: #fff8e9;
  color: #71470d;
  box-shadow: 0 8px 25px rgba(72, 48, 12, .12);
  transform: translateX(-50%);
  font-size: 13px;
}
.hero-copy { max-width: 650px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(37px, 5.3vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
h2 { margin: 0; color: var(--navy); font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; }
h3 { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.25; }
.hero-lead { max-width: 590px; margin: 22px 0; color: #43546a; font-size: 18px; }
.benefit-list { display: grid; gap: 11px; margin: 26px 0 0; padding: 0; list-style: none; }
.benefit-list li { position: relative; padding-left: 29px; color: #35475c; font-weight: 650; }
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff2ed;
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}
.promo-banner {
  margin-top: 28px;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 16px;
  align-items: center;
  border: 1px solid #9ed5c5;
  border-radius: 12px;
  background: #effaf6;
}
.promo-banner strong, .promo-banner span { grid-column: 1; }
.promo-banner strong { color: var(--success); }
.promo-banner span { color: #446357; font-size: 13px; }
.promo-banner .button { grid-column: 2; grid-row: 1 / span 2; }

.auth-card {
  width: 100%;
  max-height: none;
  padding: 28px;
  border: 1px solid rgba(202, 215, 225, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; padding: 4px; border-radius: 10px; background: #eef2f5; }
.tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #637083;
  cursor: pointer;
  font-weight: 800;
}
.tab.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(11, 49, 84, 0.1); }
.card-heading { margin-bottom: 21px; }
.card-heading h2 { font-size: 28px; }
.card-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
form label { display: block; margin: 13px 0 6px; color: #34465a; font-size: 13px; font-weight: 750; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c9d5df;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 127, 130, 0.13); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--teal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.field.full { grid-column: 1 / -1; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: #061f36; }
.button.secondary { border-color: #bcd0de; background: #f2f7fa; color: var(--navy); }
.button.secondary:hover { background: #e8f0f5; }
.button.wide { width: 100%; margin-top: 18px; }
.button.disabled { cursor: not-allowed; background: #e7ebef; color: #788595; }
.button.whatsapp { background: #167d51; color: #fff; }
.button:disabled { opacity: 0.72; cursor: wait; }
.form-note, .password-rule { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.plan-picker { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; border: 0; }
.plan-picker legend { margin-bottom: 6px; color: #34465a; font-size: 13px; font-weight: 800; }
.plan-option {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.plan-option:has(input:checked) { border-color: var(--teal); background: #f0f9f8; }
.plan-option span { display: grid; }
.plan-option small { color: var(--muted); font-weight: 500; }
.plan-option em {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0d8;
  color: #905400;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin-top: 18px; }
.check-row input { margin-top: 2px; }
.check-row span { color: #526175; font-size: 12px; font-weight: 500; }
.check-row a { color: var(--teal-dark); font-weight: 800; }
.check-row em {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.consent-group {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d5e1e7;
  border-radius: 10px;
  background: #f8fafb;
}
.consent-group > strong { color: var(--navy); font-size: 13px; }
.consent-group .check-row { margin-top: 12px; }
.required-consent { padding-bottom: 10px; border-bottom: 1px solid #e2e8ed; }
.optional-consent span { color: #657387; }
.marketing-preference {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.marketing-preference .check-row { margin-top: 0; }
.marketing-preference .button { margin-top: 10px; min-height: 38px; }
.temporary-password { margin-top: 16px; padding: 11px 13px; display: grid; border-left: 3px solid var(--gold); background: #fff8ec; }
.temporary-password strong { color: #70430b; font-size: 13px; }
.temporary-password span { color: #6e5a3d; font-size: 12px; }
.message { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; background: #eef6fb; color: #28526d; font-size: 13px; font-weight: 700; }
.message.error { background: #fff1f0; color: var(--danger); }
.message.success { background: #edf9f4; color: var(--success); }
.account-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--teal-dark); cursor: pointer; font-size: 13px; font-weight: 800; }
.status-box {
  margin: 20px 0 4px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.status-dot { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px #fcebd4; }
.status-box.active .status-dot { background: var(--success); box-shadow: 0 0 0 4px #dff4ea; }
.status-box.disabled .status-dot { background: var(--danger); box-shadow: 0 0 0 4px #fde5e3; }
.status-box div { display: grid; }
.status-box small { margin-top: 3px; color: var(--muted); }

.section { padding: 84px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 730px; margin-bottom: 34px; }
.section-heading > p:last-child { margin: 11px 0 0; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.price-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: 0 14px 40px rgba(11, 127, 130, 0.12); }
.price-label { display: inline-block; margin-bottom: 19px; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.price { margin: 14px 0; color: var(--navy); }
.price strong { font-size: 39px; letter-spacing: -0.04em; }
.price span { margin-left: 5px; color: var(--muted); }
.price-card > p:not(.price) { min-height: 52px; margin: 0 0 23px; color: var(--muted); }
.saving-strip {
  margin-top: 20px;
  padding: 17px 22px;
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #cddce5;
  border-radius: 12px;
  background: #eef5f8;
  color: #5a6879;
}
.saving-strip strong { color: var(--navy); }
.saving-strip .saving { color: var(--success); }

.payment-section { background: #fff; border-block: 1px solid var(--line); }
.bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.bank-card {
  min-height: 210px;
  padding: 22px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 17px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(28, 55, 76, 0.06);
}
.bank-logo {
  width: 120px;
  height: 86px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
}
.bank-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bank-details { display: grid; gap: 4px; }
.bank-details h3 { font-size: 18px; }
.bank-details span { color: var(--muted); font-size: 12px; }
.account-number { margin: 8px 0 3px; color: var(--navy); font-family: Consolas, monospace; font-size: 20px; font-weight: 850; letter-spacing: 0.035em; }
.copy-account { justify-self: start; margin-top: 10px; padding: 6px 9px; border: 1px solid #c8d6df; border-radius: 6px; background: #f5f8fa; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 850; }
.receipt-panel {
  margin-top: 24px;
  padding: 27px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 25px;
  align-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.receipt-panel h3 { color: #fff; font-size: 24px; }
.receipt-panel p:not(.eyebrow) { margin: 7px 0 0; color: #c9d9e6; }
.receipt-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.payment-owner { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px 28px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.payment-owner div { display: flex; gap: 7px; }
.payment-owner dt { color: #aabfd0; font-size: 12px; }
.payment-owner dd { margin: 0; color: #fff; font-size: 12px; font-weight: 750; }
.payphone-card {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  align-items: center;
  border: 1px dashed #b9c7d2;
  border-radius: 13px;
  background: #f7f9fa;
}
.payphone-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #741b71; color: #fff; font-size: 27px; font-weight: 900; }
.payphone-card h3 { font-size: 18px; }
.payphone-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.coming-soon { color: #7a2675; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.steps-section { background: #eef4f6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 21px; border: 1px solid #d5e0e6; border-radius: 12px; background: #fff; }
.steps li > span { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; }
.steps strong { color: var(--navy); }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
footer { padding: 33px 24px; display: grid; place-items: center; text-align: center; background: #061f36; color: #bfd0dd; }
footer img { width: 67px; height: 49px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
footer p { margin: 5px 0 0; font-size: 12px; }

/* Documentos legales */
.legal-main { width: min(900px, calc(100% - 32px)); margin: 42px auto 80px; }
.legal-document { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.legal-document h1 { font-size: clamp(31px, 5vw, 47px); }
.legal-document h2 { margin-top: 31px; font-size: 23px; }
.legal-document h3 { margin-top: 22px; font-size: 17px; }
.legal-document p, .legal-document li { color: #435267; }
.legal-document li + li { margin-top: 7px; }
.legal-version { margin: 10px 0 26px; color: var(--muted); font-size: 12px; }
.legal-alert { margin: 22px 0; padding: 14px 16px; border-left: 4px solid var(--warning); background: #fff6e8; color: #71470d; }
.legal-contact { padding: 17px; border: 1px solid #cedce4; border-radius: 9px; background: #f4f8fa; }
.legal-sources { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

/* Superadministración */
.admin-body { background: #eef3f6; }
.admin-header { position: relative; }
.admin-main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 26px; }
.admin-title h1 { font-size: clamp(30px, 4vw, 46px); }
.admin-title p:last-child { margin: 8px 0 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 19px; }
.summary-grid article { padding: 20px; display: grid; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.summary-grid span { color: var(--muted); font-size: 12px; font-weight: 750; }
.summary-grid strong { margin-top: 5px; color: var(--navy); font-size: 31px; }
.admin-card { margin-top: 19px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(11, 49, 84, .05); }
.admin-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.admin-card h2 { font-size: 25px; }
.promotion-card { display: grid; grid-template-columns: 1fr minmax(340px, .75fr); gap: 36px; }
.promotion-card > div > p:last-child { color: var(--muted); }
.switch-row { display: flex; align-items: center; gap: 9px; }
.switch-row input { flex: 0 0 auto; }
.promotion-card form .button { margin-top: 15px; }
.admin-form-grid { grid-template-columns: repeat(4, 1fr); gap: 0 13px; }
.admin-form-grid .full { grid-column: span 2; }
.users-heading { align-items: end; }
.user-filters { min-width: 480px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 9px; }
.users-list { display: grid; gap: 12px; }
.user-card {
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, .8fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
}
.user-identity { display: grid; }
.user-identity strong { color: var(--navy); }
.user-identity span, .user-identity small { color: var(--muted); font-size: 12px; }
.user-subscription { display: grid; gap: 3px; color: #526175; font-size: 12px; }
.state-pill, .config-pill {
  width: max-content;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0d9;
  color: #865000;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.state-pill.active { background: #ddf4e9; color: var(--success); }
.state-pill.disabled { background: #fde6e4; color: var(--danger); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.user-actions button {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #cbd7e0;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.user-actions button.primary-action { border-color: var(--teal); background: var(--teal); color: #fff; }
.user-actions button.danger-action { border-color: #efc3c0; color: var(--danger); }
.empty-state { margin: 30px 0 10px; color: var(--muted); text-align: center; }
.email-list { display: grid; gap: 8px; }
.email-row { padding: 11px 13px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; border: 1px solid var(--line); border-radius: 8px; }
.email-row strong { color: var(--navy); font-size: 13px; }
.email-row span { grid-column: 1; color: var(--muted); font-size: 11px; }
.email-row em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 850; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .auth-card { max-width: 650px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .promotion-card { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
  .user-card { grid-template-columns: 1fr 1fr; }
  .user-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { min-height: 66px; padding-inline: 16px; }
  .site-header nav a:not(.nav-admin) { display: none; }
  .site-header nav, .header-actions { gap: 10px; }
  .brand img { width: 43px; height: 37px; }
  .hero, .section { padding: 48px 18px; }
  .hero { min-height: auto; }
  .auth-card { padding: 21px 17px; }
  .form-grid, .pricing-grid, .bank-grid, .steps { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .saving-strip { grid-template-columns: 1fr auto; }
  .bank-card { grid-template-columns: 92px 1fr; padding: 17px; }
  .bank-logo { width: 92px; height: 73px; }
  .receipt-panel { grid-template-columns: 1fr; }
  .receipt-actions { justify-content: flex-start; }
  .payment-owner { grid-column: 1; display: grid; gap: 5px; }
  .payphone-card { grid-template-columns: auto 1fr; }
  .payphone-card .button { grid-column: 1 / -1; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner .button { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .admin-main { width: min(100% - 24px, 1240px); padding-top: 25px; }
  .admin-title, .admin-card-heading, .users-heading { align-items: stretch; flex-direction: column; }
  .admin-title { display: flex; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .admin-card { padding: 18px 14px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full { grid-column: 1; }
  .user-filters { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .user-card { grid-template-columns: 1fr; }
  .user-actions { grid-column: 1; }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .nav-admin { font-size: 11px !important; }
  .hero { padding-inline: 14px; }
  .auth-card { padding-inline: 14px; }
  .plan-option em { display: none; }
  .bank-card { grid-template-columns: 1fr; }
  .bank-logo { width: 100%; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
