/* DIMSX — página promocional. Tema claro por omisión; oscuro con el botón. */
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url('../fonts/jakarta-400.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url('../fonts/jakarta-500.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url('../fonts/jakarta-600.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url('../fonts/jakarta-700.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url('../fonts/jakarta-800.woff2') format('woff2'); }

:root {
  --brand: #0e7c6b;
  --brand-strong: #0a6457;
  --brand-2: #17a68d;
  --ink: #10201d;
  --muted: #4f625e;
  --bg: #f6faf9;
  --surface: #ffffff;
  --soft: #e7f3f0;
  --line: #dde9e6;
  --accent: #f2a541;
  --shadow: 0 24px 60px -24px rgba(14, 60, 52, .35);
  --radius: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #3cc4a8;
  --brand-strong: #5ad4bb;
  --brand-2: #7fe0cb;
  --ink: #e7f2ef;
  --muted: #a3b8b3;
  --bg: #0b1412;
  --surface: #121e1c;
  --soft: #15302a;
  --line: #22342f;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--soft); padding: .35em .85em; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95em 1.4em; border-radius: 14px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 124, 107, .7); }
:root[data-theme="dark"] .btn-primary { color: #06201b; }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .7em 1.05em; font-size: .92rem; border-radius: 12px; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: 18px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.icon-btn svg { width: 19px; height: 19px; }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }

/* Portada */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: .4em; }
.hero-visual { position: relative; min-height: 560px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 6% -10% 4% 8%;
  background: radial-gradient(60% 60% at 60% 40%, color-mix(in srgb, var(--brand-2) 38%, transparent), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  background: #0f1715; padding: 9px; border-radius: 38px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone img { border-radius: 30px; width: 100%; }
.hero-visual .phone { position: absolute; width: min(270px, 46%); }
.hero-visual .p1 { left: 4%; top: 70px; transform: rotate(-4deg); }
.hero-visual .p2 { right: 2%; top: 0; transform: rotate(3deg); }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700;
  box-shadow: 0 12px 30px -16px rgba(14, 60, 52, .45);
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); display: inline-block; }
.chip.c1 { left: 0; bottom: 74px; }
.chip.c2 { right: 0; bottom: 120px; }
.chip.c3 { left: 34%; top: 8px; }

/* Franja de capacidades */
.strip { padding: 18px 0 8px; }
.strip ul {
  list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.strip svg { width: 26px; height: 26px; color: var(--brand); flex: none; }

/* Secciones */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.reverse .feature-media { order: -1; }
.feature-text p { color: var(--muted); }
.feature-media { display: flex; justify-content: center; gap: 22px; }
.feature-media .phone img, .download .phone img { aspect-ratio: 600 / 1000; object-fit: cover; object-position: top; }
.feature-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; }
.feature-media .phone { width: min(300px, 72%); }
.feature-media.pair .phone { width: min(250px, 46%); }
.feature-media.pair .phone:last-child { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 6px;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c6b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.alt .card { background: var(--bg); }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--soft); color: var(--brand); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.format {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); min-width: 170px;
}
.format b { font-size: 1.05rem; }
.format span { font-size: .88rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: paso; }
.step { counter-increment: paso; position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px;
}
:root[data-theme="dark"] .step::before { color: #06201b; }
.step p { color: var(--muted); margin: 0; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .tag {
  position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
:root[data-theme="dark"] .plan .tag { color: #06201b; }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); margin-bottom: 8px; }
.plan .checks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Descarga */
.download {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #0e7c6b, #17a68d); color: #fff; border-radius: 30px; padding: 54px;
  box-shadow: var(--shadow);
}
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, .88); }
.download .btn-primary { background: #fff; color: #0a5c50; box-shadow: none; }
.download .btn-primary:hover { background: #eafaf6; }
.download .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.download .btn-ghost:hover { border-color: #fff; color: #fff; }
.download ol { margin: 22px 0 0; padding-left: 1.2em; color: rgba(255, 255, 255, .92); }
.download ol li { margin: 4px 0; }
.download .small { font-size: .9rem; color: rgba(255, 255, 255, .8); margin-top: 14px; }
.download .small a { color: #fff; text-decoration: underline; }
.download .phone { width: min(260px, 100%); margin-inline: auto; }

/* Pie */
.site-footer { padding: 54px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: var(--muted); font-weight: 600; }
.site-footer .copy { color: var(--muted); font-size: .9rem; width: 100%; margin-top: 8px; }

/* Páginas de texto (privacidad) */
.doc { max-width: 780px; padding: 64px 0 24px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin: 6px 0; }
.doc .updated { font-size: .92rem; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
  .cards, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .download { grid-template-columns: 1fr; padding: 38px 28px; }
  .download .phone { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-tools .btn span { display: none; }
  .hero-visual { min-height: 430px; }
  .hero-visual .phone { width: 48%; }
  .chip { font-size: .78rem; padding: 7px 11px; }
  .chip.c3 { display: none; }
  .section { padding: 68px 0; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .strip ul { grid-template-columns: 1fr; }
  .feature-media.pair .phone { width: 47%; }
  .format { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
