:root {
  --color-bg: #ffffff;
  --color-surface: #eef2f4;
  --color-text: #23404b;
  --color-brand: #2d6376;
  --color-accent: #f16943;
  --color-accent-100: #fdefeb;
  --color-accent-200: #fbd8cd;
  --color-accent-300: #f8bba9;
  --color-accent-400: #f59276;
  --color-accent-500: #f16943;
  --color-accent-600: #d6512c;
  --color-accent-700: #ad3d1e;
  --color-accent-800: #7f2c14;
  --color-accent-900: #521c0c;
  --color-accent-2: #019ea3;
  --color-accent-2-100: #e6f6f7;
  --color-accent-2-200: #c0e9ea;
  --color-accent-2-300: #8ed8da;
  --color-accent-2-400: #45bbbf;
  --color-accent-2-500: #019ea3;
  --color-accent-2-600: #018388;
  --color-accent-2-700: #01686c;
  --color-accent-2-800: #014c4f;
  --color-accent-2-900: #013335;
  --color-neutral-100: #f6f8f9;
  --color-neutral-200: #eaeef0;
  --color-neutral-300: #d4dbdf;
  --color-neutral-400: #b1bcc2;
  --color-neutral-500: #8f9da5;
  --color-neutral-600: #6e7e88;
  --color-neutral-700: #55666f;
  --color-neutral-800: #3a4f59;
  --color-neutral-900: #23404b;
  --color-divider: color-mix(in srgb, #2d6376 35%, transparent);
  --header-h: 80px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); overflow-x: clip; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-700); text-decoration: underline; }

#top, #sistema, #contacto { scroll-margin-top: var(--header-h); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; background: var(--color-brand); color: #fff; position: sticky; top: 0; z-index: 9; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-300); }
.nav { display: flex; align-items: center; gap: 40px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-heading); font-weight: 600; }
.nav a { color: #fff; }
.nav a:hover { color: var(--color-accent-300); text-decoration: none; }
.nav a.active { color: var(--color-accent-300); }

.hero { position: relative; background: var(--color-accent); color: #fff; overflow: hidden; }
.hero-blob-1 { position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; background: var(--color-accent-400); will-change: transform; }
.hero-logo { position: absolute; top: 40px; right: 56px; width: 190px; height: 190px; z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-blob-2 { position: absolute; left: -90px; bottom: -160px; width: 340px; height: 340px; background: var(--color-accent-2); will-change: transform; }
.hero-content { position: relative; padding: 88px 32px 132px; max-width: 1180px; z-index: 3; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-size: 88px; line-height: 0.94; letter-spacing: -0.04em; margin: 0 0 24px; max-width: 16ch; }
.hero-copy { font-size: 22px; line-height: 1.45; max-width: 52ch; margin: 0 0 36px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; border: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 700; text-decoration: none; }
.btn-white { background: #fff; color: var(--color-accent-700); font-size: 16px; padding: 16px 24px; }
.btn-white:hover { background: var(--color-accent-100); text-decoration: none; }
.btn-outline { border: 2px solid #fff; color: #fff; font-size: 16px; padding: 16px 24px; background: transparent; }
.btn-outline:hover { background: var(--color-accent-600); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #fff; font-size: 16px; padding: 16px 24px; }
.btn-accent:hover { background: var(--color-accent-600); text-decoration: none; }

.banner-wrap { padding: 0 32px; background: var(--color-bg); }
.banner { position: relative; height: 360px; margin-top: -40px; border: 2px solid var(--color-brand); background: var(--color-surface); overflow: hidden; will-change: transform; z-index: 2; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 900ms ease; opacity: 0; }
.banner img.active { opacity: 1; }
.banner-dots { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 8px; }
.banner-dots button { appearance: none; border: 0; cursor: pointer; width: 34px; height: 6px; padding: 0; background: rgba(255,255,255,0.7); }
.banner-dots button.active { background: var(--color-accent); }

.strip-wrap { overflow: hidden; padding: 56px 0 48px; }
.strip { display: flex; gap: 40px; white-space: nowrap; font-family: var(--font-heading); font-weight: 800; font-size: 64px; letter-spacing: -0.03em; color: var(--color-accent); will-change: transform; padding-left: 32px; }
.strip span.alt { color: var(--color-accent-2); }

.services { border-top: 2px solid var(--color-divider); }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-divider); flex-wrap: wrap; }
.tabs button { appearance: none; border: 0; border-right: 2px solid var(--color-divider); cursor: pointer; font-family: var(--font-heading); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; padding: 22px 30px; text-align: left; background: transparent; color: var(--color-text); }
.tabs button:hover { background: var(--color-accent-100); }
.tabs button.active { background: var(--color-accent); color: #fff; }
.panel { padding: 48px 32px; }
.panel h2 { font-size: 48px; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 20ch; }
.panel p.intro { font-size: 18px; line-height: 1.55; max-width: 46ch; color: var(--color-neutral-800); margin: 0 0 28px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 12px 40px; }
.item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-neutral-300); }
.item span.n { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-accent); }
.downloads { padding: 0 32px 48px; }
.downloads-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 14px; }
.downloads-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-secondary { background: transparent; border: 2px solid var(--color-brand); color: var(--color-brand); font-size: 15px; padding: 14px 22px; font-family: inherit; }
.btn-secondary:hover { background: var(--color-accent-100); text-decoration: none; }
.btn-secondary:disabled { border-color: var(--color-neutral-400); color: var(--color-neutral-500); cursor: not-allowed; opacity: 0.7; }
.btn-secondary:disabled:hover { background: transparent; }

.includes { border-top: 2px solid var(--color-divider); padding: 56px 32px; }
.includes h2 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 28px; }
table.table { width: 100%; }

.screens { position: relative; border-top: 2px solid var(--color-divider); height: 400vh; background: var(--color-accent-2); color: #fff; }
.screens-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); display: grid; grid-template-columns: minmax(0,0.72fr) minmax(0,1.28fr); gap: 40px; align-items: center; padding: 40px 32px; overflow: hidden; background: var(--color-accent-2); }
.screens-eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent-300); margin-bottom: 20px; }
.screens-counter { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-accent); margin-bottom: 12px; }
.screens-title { font-size: 52px; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 18ch; }
.screens-note { font-size: 18px; line-height: 1.5; max-width: 34ch; color: var(--color-accent-300); margin: 0; }
.screens-blur-note { font-size: 13px; color: var(--color-neutral-400); margin-top: 28px; }
.screens-stage { position: relative; height: min(56vh, 520px); }
.screen-shot { position: absolute; inset: 0; will-change: transform, opacity; border: 2px solid #fff; background: var(--color-surface); overflow: hidden; }
.screen-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.poster { position: relative; overflow: hidden; background: var(--color-accent); color: #fff; padding: 88px 32px; }
.poster-blob { position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; background: var(--color-accent-2); will-change: transform; }
.poster-content { position: relative; }
.poster-text { font-family: var(--font-heading); font-weight: 800; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; max-width: 26ch; margin: 0 0 28px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact-left { padding: 56px 32px; border-right: 2px solid var(--color-divider); background: var(--color-brand); color: #fff; }
.contact-left h2 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 20px; }
.contact-left p { font-size: 17px; max-width: 38ch; color: var(--color-accent-300); }
.contact-rule { height: 2px; background: var(--color-accent); margin: 28px 0; }
.contact-info { display: grid; gap: 16px; font-size: 17px; }
.contact-info a { color: var(--color-accent-300); }
.contact-right { padding: 56px 32px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .btn-accent { margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: var(--color-accent-700); font-size: 14px; margin: 0; min-height: 1em; }
.contact-success { padding: 56px 32px; font-size: 18px; color: var(--color-brand); }

.site-footer { border-top: 2px solid var(--color-divider); padding: 24px 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--color-neutral-700); }
.site-footer .caps { letter-spacing: 0.12em; text-transform: uppercase; }

/* Clients page */
.clients-hero { padding: 64px 32px 24px; max-width: 1100px; margin: 0 auto; }
.clients-hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.clients-grid { padding: 24px 32px 80px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 48px; }
.clients-grid h2 { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--color-brand); border-bottom: 2px solid var(--color-divider); padding-bottom: 10px; margin: 0 0 16px; }
.clients-grid ul { list-style: disc; padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header { padding: 14px 20px; gap: 14px; }
  .nav { gap: 18px; font-size: 11px; }

  .hero-content { padding: 120px 20px 64px; }
  .hero-title { font-size: 52px; }
  .hero-copy { font-size: 18px; }
  .hero-logo { width: 130px; height: 130px; top: 20px; right: 20px; }
  .hero-blob-1 { width: 420px; height: 420px; right: -160px; top: -140px; }

  .banner-wrap { padding: 0 20px; }
  .banner { height: 240px; }

  .strip { font-size: 40px; gap: 24px; padding-left: 20px; }

  .panel { padding: 40px 20px; }
  .panel h2 { font-size: 32px; }
  .items { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; gap: 0; }
  .downloads { padding: 0 20px 40px; }

  .includes { padding: 40px 20px; }
  .includes h2 { font-size: 28px; }

  .screens-sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 20px; padding: 24px 20px; }
  .screens-title { font-size: 32px; }
  .screens-note { font-size: 15px; }
  .screens-stage { height: min(42vh, 420px); }

  .poster { padding: 56px 20px; }
  .poster-text { font-size: 34px; }

  .contact { grid-template-columns: 1fr; }
  .contact-left { border-right: 0; border-bottom: 2px solid var(--color-divider); padding: 40px 20px; }
  .contact-right { padding: 40px 20px; }
  .contact-left h2, .includes h2 { font-size: 30px; }

  .site-footer { padding: 20px; }
}

@media (max-width: 600px) {
  :root { --header-h: 158px; }
  .header { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 10px 18px; }

  .hero-content { padding-top: 150px; }
  .hero-logo { width: 100px; height: 100px; }
  .hero-title { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

  .strip { font-size: 28px; gap: 18px; }

  .panel h2 { font-size: 26px; }
  .tabs button { padding: 16px 18px; font-size: 14px; }

  .screens-title { font-size: 26px; }

  .poster-text { font-size: 26px; }

  .contact-left h2, .includes h2 { font-size: 24px; }
}
