/* WIFICOR WEB V15 — reseller compacto, escritorio y móvil */

:root {
  --brand: #49b5d3;
  --brand-dark: #08aeb0;
  --brand-soft: #e9f8fb;
  --ink: #17212b;
  --muted: #687684;
  --line: #d7dfe5;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --success: #168247;
  --danger: #b4232c;
  --shadow-sm: 0 8px 22px rgba(12, 27, 44, 0.08);
  --shadow-md: 0 16px 38px rgba(12, 27, 44, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 34px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e5e9ee;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 46px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #26384d;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  transition: color 0.16s ease;
}

.desktop-nav a:hover {
  color: var(--brand-dark);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  padding: 46px 0;
  background-color: #16304a;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Oscurece el lado izquierdo y se desvanece suavemente hacia el formulario. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 22, 38, var(--hero-overlay-left, 0.74)) 0%,
    rgba(7, 22, 38, var(--hero-overlay-left, 0.74)) 22%,
    rgba(7, 22, 38, var(--hero-overlay-middle, 0.38)) 46%,
    rgba(7, 22, 38, 0.18) 64%,
    rgba(7, 22, 38, var(--hero-overlay-right, 0.04)) 82%,
    rgba(7, 22, 38, 0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 48px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 26px 28px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero__copy::before,
.hero__copy::after {
  content: none !important;
  display: none !important;
}

.hero__kicker {
  display: block;
  margin-bottom: 12px;
  color: #68d7df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.hero__subtitle {
  display: block;
  margin-bottom: 12px;
  color: #62d6df;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.hero__copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.97);
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.16);
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 430px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.hero__features span {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.hero__features svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #67d8df;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__mobile-actions {
  display: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button-block {
  width: 100%;
}

/* Demo form */
.demo-panel {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.demo-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.demo-panel__head small,
.form-heading small {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-panel__head h2,
.form-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 5px 12px rgba(8, 174, 176, 0.18);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.field,
.subdomain-box {
  display: grid;
  gap: 5px;
}

.field > span,
.subdomain-box .field > span {
  color: #526276;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.field input,
.field select,
.phone-grid select,
.phone-grid input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d2dce8;
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.phone-grid select:focus,
.phone-grid input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(73, 181, 211, 0.12);
}

.field-help {
  display: block;
  margin-top: -1px;
  color: #7c8998;
  font-size: 9px;
  line-height: 1.35;
}

.input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d2dce8;
  border-radius: 3px;
  background: #fff;
}

.input-suffix input {
  height: 38px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.input-suffix b {
  padding: 0 9px;
  border-left: 1px solid #e1e8f0;
  color: #718196;
  font-size: 10px;
  white-space: nowrap;
}

.subdomain-box {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-alt);
}

.url-preview-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 2px 0 0;
  color: #7b8998;
  font-size: 9px;
  line-height: 1.45;
}

.url-preview-line b {
  color: var(--brand-dark);
  font-weight: 700;
  word-break: break-all;
}

.url-preview-line i {
  color: #a1acb8;
  font-style: normal;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.terms input {
  margin-top: 1px;
  accent-color: var(--brand-dark);
}

.terms a {
  color: var(--brand-dark);
  font-weight: 700;
}

.demo-form .button {
  min-height: 42px;
}

/* Sections */
.section {
  padding: 58px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.section-title {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-list article {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feature-list h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 700;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Reseller */
#reseller {
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.reseller-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 640px);
  justify-content: center;
  align-items: start;
  gap: 26px;
  max-width: 940px;
  margin-inline: auto;
}

.reseller-copy {
  padding-top: 6px;
}

.reseller-copy h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.reseller-copy p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.58;
}

.reseller-copy ul {
  margin: 0 0 12px;
  padding-left: 16px;
  color: #405064;
  font-size: 12px;
  line-height: 1.7;
}

.reseller-copy li + li {
  margin-top: 2px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.reseller-form-panel {
  width: 100%;
  max-width: 640px;
  padding: 15px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.06);
}

.form-heading {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.reseller-form .form-heading small {
  margin-bottom: 3px;
  font-size: 9px;
}

.reseller-form .form-heading h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.18;
}

.reseller-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 9px;
}

.reseller-form .form-span-2 {
  grid-column: 1 / -1;
}

.reseller-form .field {
  gap: 4px;
}

.reseller-form .field > span {
  font-size: 9px;
  line-height: 1.15;
}

.reseller-form .field input,
.reseller-form .field select,
.reseller-form .phone-grid input,
.reseller-form .phone-grid select {
  height: 35px;
  padding: 0 9px;
  border-radius: 3px;
  font-size: 12.5px;
}

.reseller-form .field input:focus,
.reseller-form .field select:focus,
.reseller-form .phone-grid input:focus,
.reseller-form .phone-grid select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(73, 181, 211, 0.1);
}

.reseller-form .phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.reseller-form .slug-preview {
  display: block;
  margin-top: 1px;
  color: var(--brand-dark);
  font-size: 9px;
  line-height: 1.3;
  word-break: break-all;
}

.reseller-form .slug-status {
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.reseller-form .terms {
  gap: 7px;
  padding: 7px 8px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1.35;
}

.reseller-form .terms input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
  margin-top: 1px;
}

.reseller-form .button-success {
  width: 100%;
  min-height: 37px;
  padding: 0 14px;
  border-color: var(--brand-dark);
  border-radius: 3px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.reseller-form .button-success:hover:not(:disabled) {
  border-color: #07999b;
  background: #07999b;
}

.reseller-form .button-success:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.slug-status[data-state="checking"] {
  border: 1px solid #cbdcf4;
  background: #eef5ff;
  color: #0a43b9;
}

.slug-status[data-state="ok"] {
  border: 1px solid #c7edd4;
  background: #edf9f1;
  color: #14753a;
}

.slug-status[data-state="error"] {
  border: 1px solid #f1c5c8;
  background: #fff0f0;
  color: var(--danger);
}

/* Footer */
.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  padding: 18px;
  background: #fff;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.14);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__top img {
  width: 158px;
}

.mobile-menu__top button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.mobile-menu nav {
  display: grid;
  gap: 0;
  padding-top: 14px;
}

.mobile-menu nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

/* Loader */
.overlay-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 25, 35, 0.68);
}

.loader-card {
  width: min(430px, 94vw);
  padding: 26px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.loader-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background: var(--brand);
  color: #fff;
}

.loader-logo--green {
  background: var(--brand-dark);
}

.loader-badge {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.loader-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.loader-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.loader-progress {
  height: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #e5edf3;
}

.loader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--brand);
  animation: loaderMove 1.2s infinite ease-in-out;
}

.loader-progress--green span {
  background: var(--brand-dark);
}

.loader-list {
  display: grid;
  gap: 8px;
}

.loader-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #46576a;
  font-size: 12px;
}

.loader-list b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  font-size: 10px;
}

@keyframes loaderMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}

/* Success modal */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 25, 35, 0.68);
}

.success-modal__card {
  position: relative;
  width: min(560px, 94vw);
  padding: 26px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.success-modal__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: #eaf8ef;
  color: var(--success);
}

.success-modal__card h2 {
  margin: 8px 0;
  font-size: 25px;
}

.success-modal__card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.success-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.success-links div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe4ed;
  border-radius: 3px;
  background: #fff;
}

.success-links small {
  display: block;
  margin-bottom: 4px;
  color: #8090a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.success-links code {
  display: block;
  color: var(--brand-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  word-break: break-all;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Toast */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 540;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(390px, calc(100% - 36px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.toast__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--brand-dark);
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eaf8fb;
  color: var(--brand-dark);
}

.toast b {
  display: block;
  font-size: 13px;
}

.toast p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.toast button {
  border: 0;
  background: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__copy {
    max-width: 720px;
    padding: 22px 24px;
  }

  .demo-panel {
    max-width: 620px;
  }

  .reseller-layout {
    grid-template-columns: 220px minmax(0, 620px);
    gap: 22px;
  }
}

@media (max-width: 860px) {
  #reseller {
    padding: 30px 0 34px;
  }

  .reseller-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 16px;
  }

  .reseller-copy {
    padding-top: 0;
  }

  .reseller-copy h2 {
    font-size: 24px;
  }

  .reseller-copy p {
    max-width: 560px;
  }

  .reseller-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin-bottom: 10px;
  }

  .reseller-form-panel {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 16px 0 22px;
    background-position: center top;
  }

  .hero::before {
    background: rgba(12, 31, 50, 0.22);
  }

  .hero__inner {
    display: block;
  }

  .hero__copy {
    display: none;
  }

  .demo-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  }

  .demo-panel__head {
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 9px;
  }

  .demo-panel__head h2 {
    font-size: 19px;
  }

  .demo-panel__head small {
    font-size: 9px;
  }

  .license-badge {
    min-height: 25px;
    padding: 0 8px;
    font-size: 9px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .form-span-2,
  .field-subdomain,
  .field-phone,
  .terms,
  .demo-form .button-block {
    grid-column: 1 / -1;
  }

  .field input,
  .field select {
    height: 38px;
    padding: 0 10px;
  }

  .input-suffix input {
    height: 36px;
  }

  .subdomain-box {
    padding: 8px;
  }

  .url-preview-line {
    font-size: 8.5px;
    line-height: 1.35;
  }

  .terms {
    padding: 8px;
    font-size: 9.5px;
  }

  .demo-form .button {
    min-height: 39px;
    font-size: 13px;
  }

  .hero__mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .hero__mobile-actions .button {
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    font-size: 13px;
  }

  .feature-list,
  .success-links {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

  #reseller {
    padding: 26px 0 30px;
  }

  .reseller-copy {
    display: none;
  }

  .reseller-layout {
    display: block;
    max-width: 620px;
  }

  .reseller-form-panel {
    padding: 13px 14px 15px;
  }

  .reseller-form .form-heading {
    margin-bottom: 9px;
    padding-bottom: 8px;
  }

  .reseller-form .form-heading h2 {
    font-size: 18px;
  }

  .reseller-form .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .reseller-form .phone-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .reseller-form .field input,
  .reseller-form .field select,
  .reseller-form .phone-grid input,
  .reseller-form .phone-grid select {
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .reseller-form .terms {
    padding: 7px;
    font-size: 8.5px;
  }

  .reseller-form .button-success {
    min-height: 36px;
    font-size: 11.5px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand img {
    max-width: 176px;
    max-height: 42px;
  }

  .demo-panel {
    padding: 12px;
  }

  .demo-panel__head {
    gap: 8px;
  }

  .demo-panel__head h2 {
    font-size: 18px;
  }

  .field > span,
  .subdomain-box .field > span {
    font-size: 9px;
  }

  .field input,
  .field select {
    font-size: 13px;
  }

  .field-help {
    font-size: 8.5px;
  }

  .input-suffix b {
    padding: 0 7px;
    font-size: 9px;
  }

  .url-preview-line {
    display: block;
  }

  .url-preview-line i {
    display: none;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .feature-list article {
    padding: 20px 17px;
  }

  .reseller-form-panel {
    padding: 12px;
  }

  .reseller-form .field > span {
    font-size: 8.5px;
  }

  .reseller-form .slug-preview {
    font-size: 8.5px;
  }
}

@media (max-width: 390px) {
  .form-grid,
  .reseller-form .form-grid,
  .reseller-form .phone-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2,
  .field-company,
  .field-email,
  .field-password,
  .field-country,
  .field-subdomain,
  .field-phone,
  .terms,
  .demo-form .button-block,
  .reseller-form .form-span-2 {
    grid-column: auto;
  }

  .hero__mobile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero__mobile-actions .button {
    padding: 0 6px;
    font-size: 12px;
  }
}
/* Acceso público a la demo */
.public-demo {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.public-demo__title {
  margin-bottom: 24px;
}

.public-demo__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(8, 174, 176, 0.22);
  border-radius: 3px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.public-demo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.public-demo-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px;
  background: #fff;
}

.public-demo-card + .public-demo-card {
  border-left: 1px solid var(--line);
}

.public-demo-card--admin {
  box-shadow: inset 4px 0 0 var(--brand);
}

.public-demo-card__header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.public-demo-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(73, 181, 211, 0.25);
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.public-demo-card__icon svg {
  width: 22px;
  height: 22px;
}

.public-demo-card__header small {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.public-demo-card__header h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.public-demo-card__description {
  min-height: 44px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.public-demo-credentials {
  display: grid;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-alt);
}

.public-demo-credentials__row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 8px 13px;
}

.public-demo-credentials__row + .public-demo-credentials__row {
  border-top: 1px solid var(--line);
}

.public-demo-credentials__row span {
  color: #637286;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.public-demo-credentials__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.public-demo-card__features {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-alt);
}

.public-demo-card__features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526276;
  font-size: 12px;
  font-weight: 600;
}

.public-demo-card__features svg {
  flex: 0 0 auto;
  color: var(--success);
}

.public-demo-card__button {
  width: 100%;
  margin-top: auto;
}

.public-demo-card__button svg {
  width: 17px;
  height: 17px;
}

.public-demo__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #758394;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.public-demo__note svg {
  flex: 0 0 auto;
  color: var(--brand-dark);
}

@media (max-width: 780px) {
  .public-demo__grid {
    grid-template-columns: 1fr;
  }

  .public-demo-card {
    padding: 20px;
  }

  .public-demo-card + .public-demo-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .public-demo-card__description {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .public-demo-card {
    padding: 17px;
  }

  .public-demo-card__header h3 {
    font-size: 19px;
  }

  .public-demo-credentials__row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 10px;
  }

  .public-demo-card__button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .public-demo__note {
    align-items: flex-start;
    text-align: left;
  }
}