html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f5f7fb;
  color: #182033;
}

.bg-motor { background: linear-gradient(90deg, #081d3a, #123f74); }
.hero-motor { background: radial-gradient(circle at top right, #1f79bd, #0a2446 62%); color: white; }
.glass-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; backdrop-filter: blur(8px); }
.feature-list li { padding: .45rem 0; }
.pricing-card { border: 0; border-radius: 1rem; }
.pricing-card.featured { border: 2px solid #1b70b5; transform: translateY(-4px); }
.price { font-size: 2.2rem; font-weight: 800; color: #103f72; }
.price small { font-size: .85rem; color: #6b7280; }
.metric-card { border: 0; border-radius: 1rem; }
.license-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: #eef5ff; border: 1px dashed #1b70b5; }

/* Portada MOTOR Contable 1.0.31 */
.mc-home-body { margin-bottom: 0; background: #f4f7fb; }
.mc-navbar-brand { display: flex; align-items: center; gap: .7rem; line-height: 1.05; }
.mc-navbar-brand strong, .mc-navbar-brand small { display: block; }
.mc-navbar-brand small { color: rgba(255,255,255,.66); font-size: .68rem; font-weight: 400; margin-top: .22rem; }
.mc-navbar-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: .7rem; background: linear-gradient(135deg, #1678b9, #0b8279); color: #fff; font-size: .78rem; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.mc-hero { padding: clamp(3.8rem, 8vw, 6.4rem) 0; color: #fff; background: radial-gradient(circle at 87% 8%, rgba(242,189,73,.23), transparent 28%), linear-gradient(135deg, #06294e 0%, #0b477c 58%, #08746f 100%); }
.mc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.mc-kicker { display: inline-block; color: #ffe3a0; font-weight: 700; margin-bottom: 1.1rem; }
.mc-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.55rem, 5vw, 4.35rem); font-weight: 800; line-height: 1.03; letter-spacing: -.045em; }
.mc-hero-copy { max-width: 720px; margin: 1.4rem 0 1.7rem; color: #dbeaff; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.mc-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mc-btn-gold { border-color: #f2bd49; background: #f2bd49; color: #17243a; font-weight: 800; }
.mc-btn-gold:hover, .mc-btn-gold:focus { border-color: #ffd36d; background: #ffd36d; color: #17243a; }
.mc-hero-note { margin: 1rem 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.mc-process-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.18); border-radius: 1.15rem; background: rgba(4,22,42,.72); box-shadow: 0 28px 60px rgba(0,0,0,.24); }
.mc-process-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mc-process-head span { color: #8ff0c9; }
.mc-process-head i { display: inline-block; width: 8px; height: 8px; margin-right: .25rem; border-radius: 50%; background: #54d6a7; }
.mc-process-row { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mc-process-row b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: .55rem; background: rgba(255,255,255,.1); color: #f2bd49; }
.mc-process-row strong, .mc-process-row small { display: block; }
.mc-process-row small { color: #a9c1db; margin-top: .15rem; }
.mc-process-row em { color: #dbeaff; font-style: normal; font-variant-numeric: tabular-nums; }
.mc-process-foot { padding-top: 1rem; color: #a9c1db; font-size: .85rem; }
.mc-section { padding: clamp(3.8rem, 7vw, 5.6rem) 0; }
.mc-section-heading { max-width: 760px; margin-bottom: 2rem; }
.mc-section-heading > span { color: #0c5c9c; font-weight: 800; }
.mc-section-heading h2, .mc-tax-panel h2 { margin: .45rem 0 .7rem; color: #10233f; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; }
.mc-section-heading p { color: #607086; font-size: 1.05rem; }
.mc-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.mc-feature-card { padding: 1.5rem; border: 1px solid #d8e1ec; border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgba(8,39,73,.05); }
.mc-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: .7rem; background: #eaf2fb; color: #0c5c9c; font-size: 1.25rem; font-weight: 800; }
.mc-feature-card h3, .mc-flow-grid h3 { color: #18304d; font-size: 1.08rem; font-weight: 800; }
.mc-feature-card p, .mc-flow-grid p { color: #64748b; margin-bottom: 0; line-height: 1.55; }
.mc-tax-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.3rem); border-radius: 1.4rem; color: #fff; background: linear-gradient(125deg, #0a3b70, #0b6968); box-shadow: 0 24px 54px rgba(6,48,82,.18); }
.mc-tax-panel h2 { color: #fff; }
.mc-tax-panel p { color: #d7e8f5; line-height: 1.65; }
.mc-tax-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.15rem; }
.mc-tax-list span { color: #edf8ff; }
.mc-report-section { background: #eaf0f8; }
.mc-flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mc-flow-grid article { padding: 1.35rem; border: 1px solid #d8e1ec; border-radius: .9rem; background: #fff; }
.mc-flow-grid b { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: .9rem; border-radius: 50%; background: #0c5c9c; color: #fff; }
.mc-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 800px; margin: 0 auto; }
.mc-price-card { position: relative; padding: 2rem; border: 1px solid #d8e1ec; border-radius: 1.1rem; background: #fff; box-shadow: 0 16px 38px rgba(8,39,73,.06); }
.mc-price-card.featured { border: 2px solid #dda11f; }
.mc-price-card h3 { color: #18304d; font-weight: 800; }
.mc-price-card p, .mc-price-card li { color: #64748b; }
.mc-price-card ul { padding: 0; margin: 1.4rem 0; list-style: none; }
.mc-price-card li { margin: .55rem 0; }
.mc-price-card p strong { color: #17844d; }
.mc-price { margin: .7rem 0; color: #0c4a82; font-size: 2.35rem; font-weight: 800; }
.mc-price small { color: #64748b; font-size: .9rem; }
.mc-saving { position: absolute; top: 1rem; right: 1rem; padding: .25rem .6rem; border-radius: 999px; background: #e8f1fb; color: #0c5c9c; font-size: .78rem; font-weight: 800; }
.mc-login-callout, .mc-tax-disclaimer { text-align: center; }
.mc-login-callout { margin: 1.6rem 0 0; color: #52647b; }
.mc-login-callout a { color: #0c5c9c; font-weight: 800; }
.mc-tax-disclaimer { max-width: 850px; margin: 2rem auto 0; color: #68788d; font-size: .85rem; }
.mc-site-footer { padding: 2rem 0; border-top: 1px solid #d8e1ec; background: #fff; color: #64748b; }
.mc-site-footer strong { color: #18304d; }

@media (max-width: 991.98px) {
  .mc-hero-grid, .mc-tax-panel { grid-template-columns: 1fr; }
  .mc-feature-grid, .mc-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar-collapse { padding-top: 1rem; }
}

@media (max-width: 575.98px) {
  .mc-navbar-brand small { display: none; }
  .mc-feature-grid, .mc-flow-grid, .mc-pricing-grid, .mc-tax-list { grid-template-columns: 1fr; }
  .mc-process-head { flex-direction: column; }
  .mc-actions .btn { width: 100%; }
  .mc-tax-panel { padding: 1.5rem; }
}

.mx-account-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.mx-account-card {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(8, 29, 58, .13);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.mx-account-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #0a2c52;
  margin-bottom: 2rem;
}

.mx-account-brand strong,
.mx-account-brand small {
  display: block;
}

.mx-account-brand strong {
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.mx-account-brand small {
  color: #64748b;
  font-size: .78rem;
}

.mx-account-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0a2446, #1f79bd);
  box-shadow: 0 10px 24px rgba(31, 121, 189, .22);
}

.mx-account-heading h1 {
  color: #0a2446;
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: .65rem;
}

.mx-account-heading p {
  color: #64748b;
  margin-bottom: 1.75rem;
}

.mx-account-form .form-label {
  color: #253750;
  font-weight: 650;
}

.mx-account-form .form-control {
  border-color: #cfd9e7;
  border-radius: .8rem;
  min-height: 52px;
}

.mx-account-form .btn-primary,
.mx-account-card .btn-primary,
.mx-recovery-modal .btn-primary {
  border-color: #125b97;
  background: linear-gradient(90deg, #0a3c70, #1678b9);
  border-radius: .8rem;
  font-weight: 700;
}

.mx-account-link,
.mx-account-register a {
  color: #1265a4;
  font-weight: 650;
  text-decoration: none;
}

.mx-account-link:hover,
.mx-account-register a:hover {
  text-decoration: underline;
}

.mx-account-register {
  color: #64748b;
  text-align: center;
  margin: 1.5rem 0 0;
}

.mx-recovery-modal {
  border: 0;
  border-radius: 1.2rem;
  box-shadow: 0 30px 80px rgba(8, 29, 58, .24);
}

.mx-account-success {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: #e8f7ef;
  color: #17844d;
  font-size: 1.9rem;
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .mx-account-shell {
    padding: .75rem 0;
  }

  .mx-account-card {
    border-radius: 1rem;
  }

  .mx-account-heading .d-flex,
  .mx-account-form .d-flex {
    align-items: flex-start !important;
    flex-direction: column;
    gap: .15rem !important;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
