:root {
  --ink: #101820;
  --ink-2: #1d2a35;
  --muted: #647181;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --soft-2: #edf4f8;
  --blue: #0b63ce;
  --blue-2: #084c9e;
  --green: #14845f;
  --yellow: #f3b229;
  --red: #c84a3a;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.loading {
  padding: 48px;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 620px;
  padding: clamp(44px, 7vw, 96px) clamp(20px, 4vw, 64px);
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 58%, #eaf3fb 100%);
}

.seo-hero img,
.seo-hero video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-benefits article {
  min-height: 220px;
  padding: clamp(24px, 3vw, 42px);
  background: #fff;
}

.seo-benefits h2 {
  font-size: 24px;
}

.seo-benefits p {
  color: var(--muted);
  line-height: 1.65;
}

.seo-media-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(20px, 4vw, 64px);
}

.seo-media-section.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.82fr);
  background: var(--soft);
}

.seo-media-section img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.seo-checks {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.seo-checks li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 750;
}

.seo-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(40px, 6vw, 76px) clamp(20px, 4vw, 64px);
  background: #0f1720;
}

.seo-modules h2 {
  grid-column: 1 / -1;
  color: #fff;
}

.seo-modules a {
  min-height: 110px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 850;
}

.seo-modules a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.hamburger {
  display: none; /* sólo visible en móvil */
}

.system-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.system-link:hover {
  color: var(--blue-2);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--blue-2);
}

.button.small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.button.secondary,
.button.ghost,
button.secondary {
  background: #fff;
  color: var(--blue);
}

.button.secondary:hover,
.button.ghost:hover,
button.secondary:hover {
  background: #eef6ff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.9fr);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  min-height: 680px;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 64px) 40px;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(255, 255, 255, 0.72) 58%, rgba(237, 244, 248, 0.92) 100%);
}

.compact-hero {
  position: relative;
  display: block;
  min-height: calc(100vh - 74px);
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 64px);
  overflow: hidden;
  background: #0f1720;
}

.compact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.88) 0%, rgba(15, 23, 32, 0.68) 34%, rgba(15, 23, 32, 0.18) 58%, rgba(15, 23, 32, 0.04) 100%),
    linear-gradient(0deg, rgba(15, 23, 32, 0.22), rgba(15, 23, 32, 0.02));
  pointer-events: none;
}

.compact-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(38vw, 680px);
  min-width: 430px;
  padding: clamp(18px, 2vw, 28px) 0;
}

.compact-hero .eyebrow {
  color: #8ee0b6;
}

.compact-hero h1 {
  color: #fff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.compact-hero .lead {
  color: #e3ebf2;
}

.compact-hero .trust-row span {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8fb;
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(31px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.hero-screenshot {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.compact-hero .hero-screenshot {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-screenshot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
}

.compact-hero .hero-screenshot img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
}

.trust-row span,
.chips span,
.solution-kpi,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-preview {
  padding: 18px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-bottom: 16px;
}

.preview-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.preview-header strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.preview-kpis article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.preview-kpis strong {
  display: block;
  font-size: 29px;
}

.preview-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
}

.preview-map,
.preview-list,
.preview-chart {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.preview-map {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(11, 99, 206, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(11, 99, 206, 0.12) 50%, transparent 51%),
    var(--soft-2);
}

.preview-map i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(20, 132, 95, 0.28);
}

.preview-map i:nth-child(1) { left: 18%; top: 24%; }
.preview-map i:nth-child(2) { left: 66%; top: 18%; background: var(--yellow); }
.preview-map i:nth-child(3) { left: 48%; top: 58%; background: var(--blue); }
.preview-map i:nth-child(4) { left: 76%; top: 72%; background: var(--red); }

.preview-list {
  padding: 18px;
}

.preview-list b {
  display: block;
  margin-bottom: 18px;
}

.preview-list span {
  display: block;
  height: 12px;
  margin: 12px 0;
  border-radius: 99px;
  background: #d5e0ea;
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 150px;
  margin-top: 12px;
  padding: 16px;
}

.preview-chart i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.problem-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.problem-strip article {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.slim-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slim-strip article {
  min-height: 140px;
}

.problem-strip article:last-child {
  border-right: 0;
}

.problem-strip span {
  display: block;
  margin-bottom: 24px;
  color: var(--yellow);
  font-weight: 950;
}

.problem-strip p {
  color: #dbe4ec;
  line-height: 1.45;
}

.section,
.dark-section,
.demo-section,
.resource-section,
.contact-section {
  padding: clamp(56px, 6vw, 88px) clamp(20px, 4vw, 64px);
}

.condensed-section {
  padding-top: clamp(46px, 5vw, 72px);
  padding-bottom: clamp(46px, 5vw, 72px);
}

.section-head {
  max-width: 920px;
  margin-bottom: 28px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 26px;
  max-width: none;
  align-items: end;
}

.page-hero {
  padding: clamp(42px, 6vw, 82px) clamp(20px, 4vw, 64px) clamp(34px, 5vw, 64px);
  background: linear-gradient(90deg, var(--soft), #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.section-head p {
  color: var(--muted);
  line-height: 1.55;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.home-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-solution-grid a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 850;
}

.detail-grid {
  grid-template-columns: 1fr;
}

.detail-grid .solution-card {
  grid-template-columns: 360px minmax(0, 1fr);
}

.solution-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
}

.solution-card.featured {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.solution-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.solution-card.featured img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.solution-kpi {
  margin-bottom: 14px;
  color: var(--green);
}

ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--muted);
}

li svg {
  flex: 0 0 auto;
  color: var(--green);
  margin-top: 2px;
}

.dark-section {
  background: var(--ink);
  color: #fff;
}

.compact-dark {
  padding-top: 42px;
  padding-bottom: 42px;
}

.dark-section .eyebrow {
  color: var(--yellow);
}

.dark-section p,
.dark-section li {
  color: #cdd7e1;
}

.module-board,
.industry-grid,
.feature-grid,
.case-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-board article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.module-board small {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.module-icon,
.feature span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(20, 132, 95, 0.14);
  color: var(--green);
}

.module-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 42px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.partner-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.partner-grid {
  display: grid;
  gap: 12px;
}

.partner-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.partner-grid a:hover {
  border-color: rgba(11, 99, 206, 0.42);
  background: #eef6ff;
}

.partner-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-grid strong {
  grid-column: 1;
  font-size: 22px;
}

.partner-grid svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--blue);
}

.industry-card,
.feature,
.case-card,
.plan-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-grid.preview-only {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
}

.screenshot-card img,
.screenshot-card video,
.solution-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.solution-card video {
  height: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 6px;
}

.media-video {
  display: block;
}

.screenshot-card div {
  padding: 18px;
}

.screenshot-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.industry-card p,
.feature p,
.case-card p,
.plan-card p {
  color: var(--muted);
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: linear-gradient(135deg, #102033, #152b3f);
  color: #fff;
}

.demo-section .eyebrow {
  color: var(--yellow);
}

.demo-panel {
  position: sticky;
  top: 98px;
}

.demo-panel p,
.demo-panel li {
  color: #d8e2eb;
}

.demo-panel ol {
  margin: 24px 0;
  padding-left: 20px;
}

.demo-panel li {
  display: list-item;
  margin-bottom: 12px;
}

.workflow {
  display: grid;
  gap: 14px;
}

.workflow article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.workflow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.workflow p {
  margin: 0;
  color: #edf4f8;
  font-weight: 750;
}

.resource-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 850;
}

.resource-list a:hover {
  border-color: rgba(11, 99, 206, 0.45);
  color: var(--blue);
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.plan-card.preferred {
  border-color: rgba(11, 99, 206, 0.55);
  box-shadow: var(--shadow);
}

.badge {
  align-self: flex-start;
  margin-bottom: 14px;
  background: #eaf3ff;
  color: var(--blue);
}

.plan-card .button {
  margin-top: auto;
}

.faq-list {
  max-width: 960px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 23px 0;
  font-size: 19px;
  font-weight: 900;
}

details p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  background: var(--blue);
  color: #fff;
}

.contact-section .eyebrow,
.contact-section p {
  color: #eaf3fb;
}

.contact-line {
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 34px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #0f1720;
  color: var(--muted);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 900;
}

.footer span {
  display: block;
  max-width: 460px;
  color: #aeb9c5;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: #dbe4ec;
  font-size: 14px;
  font-weight: 750;
}

.footer-links a:hover {
  color: #fff;
}

.admin-body {
  background: #eef2f6;
}

.admin-app {
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 18px;
}

.admin-sidebar,
.admin-main,
.admin-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-sidebar {
  align-self: start;
  padding: 12px;
}

.admin-tab {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 6px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.admin-tab:hover,
.admin-tab.active {
  background: #eef6ff;
  color: var(--blue);
}

.admin-main {
  padding: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-grid .full {
  grid-column: 1 / -1;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 26px;
}

.array-list {
  display: grid;
  gap: 12px;
}

.array-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.array-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.array-item-head strong {
  font-size: 15px;
}

.danger {
  border-color: rgba(200, 74, 58, 0.25);
  background: #fff5f4;
  color: var(--red);
}

.admin-preview {
  align-self: start;
  padding: 18px;
}

.admin-preview h2 {
  font-size: 22px;
}

.admin-preview p,
.admin-help-text,
.admin-status {
  color: var(--muted);
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 800;
}

.admin-status.error {
  color: var(--red);
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--red);
}

@media (max-width: 1100px) {
  .hero,
  .seo-hero,
  .seo-media-section,
  .seo-media-section.reverse,
  .section-head.split,
  .demo-section,
  .contact-section,
  .partner-band,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-preview,
  .demo-panel {
    position: static;
  }

  .problem-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid,
  .seo-benefits,
  .seo-modules,
  .module-board,
  .industry-grid,
  .feature-grid,
  .case-grid,
  .plan-grid,
  .resource-list,
  .home-solution-grid,
  .screenshot-grid.preview-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid .solution-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1;
  }

  .topbar .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    min-height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text, #1e293b);
    cursor: pointer;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 6px;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    padding: 10px 6px;
    font-size: 15px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .seo-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .seo-hero img,
  .seo-hero video {
    aspect-ratio: 16 / 11;
  }

  .seo-benefits article {
    min-height: auto;
  }

  .seo-media-section img {
    aspect-ratio: 16 / 11;
  }

  .compact-hero {
    min-height: 720px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .compact-hero::before {
    background:
      linear-gradient(180deg, rgba(15, 23, 32, 0.9) 0%, rgba(15, 23, 32, 0.72) 48%, rgba(15, 23, 32, 0.28) 100%);
  }

  .compact-hero .hero-copy {
    width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: 40px;
  }

  .preview-kpis,
  .preview-grid,
  .problem-strip,
  .seo-benefits,
  .seo-modules,
  .solution-grid,
  .module-board,
  .industry-grid,
  .feature-grid,
  .case-grid,
  .plan-grid,
  .resource-list,
  .home-solution-grid,
  .screenshot-grid,
  .screenshot-grid.preview-only,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    grid-template-columns: 1fr;
  }

  .footer,
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ── Biblioteca de Imágenes ────────────────────────────────────────── */

.btn-sm {
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.image-library-wrap {
  padding: 4px 0;
}

.image-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}

.image-drop-zone.drag-over {
  border-color: var(--blue);
  background: #f0f7ff;
}

.drop-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.image-upload-status {
  padding: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #0369a1;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.picker-grid {
  padding: 16px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.image-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.image-card-pick {
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.image-card-pick:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(11, 99, 206, 0.15);
}

.image-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
}

.image-card-body {
  padding: 8px;
}

.image-name {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.image-card-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.image-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.image-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.picker-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  font-size: 9px;
  padding: 1px 5px;
}

.image-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 16px;
  grid-column: 1 / -1;
  text-align: center;
}

.image-empty.error {
  color: var(--red);
}

/* Botón 📷 Biblioteca en inputs de imagen */
.pick-image-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.pick-image-btn:hover {
  background: #0952b3;
}

/* Campo de imagen con preview inline */
.img-field-wrap {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}

.img-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.img-field-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  border: 2px dashed var(--line);
  background-size: cover;
  background-position: center;
  background-color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.img-field-preview:not(.img-field-empty) {
  border-style: solid;
  border-color: var(--line);
}

.img-field-empty-text {
  font-size: 12px;
  color: var(--muted);
}

.img-field-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.img-field-row input {
  flex: 1;
  min-width: 0;
}

/* Modal selector de imagen */
.image-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-picker-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.image-picker-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: min(96vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.28);
}

.image-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.image-picker-head h3 {
  margin: 0;
  font-size: 17px;
}

.image-picker-head button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}

.image-picker-head button:hover {
  background: var(--soft);
  color: var(--ink);
}

#imagePickerGrid {
  overflow-y: auto;
  flex: 1;
}

/* Panel de vista previa */
.preview-frame-section {
  margin-top: 6px;
}

.preview-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.preview-frame-header h2 {
  margin: 0;
}

.preview-frame-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-frame-wrap {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

#previewFrame {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}
