/* URUWorks — styles.css
   Sin dependencias externas. Funciona en Chrome, Edge, Firefox, Safari (macOS/iOS) y Android. */

:root {
  --brand: #004e94;
  --brand-2: #0079ae;
  --accent: #ed7520;
  --cyan: #00a8df;

  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --surface: #ffffff;
  --text: #0e1a24;
  --muted: #51606d;
  --border: #dde4ea;
  --link: #005ea8;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 2px rgba(14, 26, 36, 0.06), 0 8px 24px rgba(14, 26, 36, 0.08);

  --hero-bg: #060c12;
  --hero-text: #e8eef3;
  --hero-muted: #9fb0bd;

  --radius: 14px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b1218;
  --bg-soft: #101a22;
  --surface: #131f29;
  --text: #e6edf2;
  --muted: #9fb0bd;
  --border: #22313d;
  --link: #5cc3f0;
  --header-bg: rgba(11, 18, 24, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--accent) 70% 100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { width: 170px; height: auto; }
.logo-foot img { width: 230px; }
.logo-d { display: none; }
html[data-theme="dark"] .logo-d { display: block; }
html[data-theme="dark"] .logo-l { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
  font: 600 13px/1 var(--font); text-decoration: none;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 67px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 12px 14px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
  .no-js .header-row { height: auto; flex-wrap: wrap; padding: 10px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a0d03; box-shadow: 0 6px 20px rgba(237, 117, 32, .35); }
.btn-primary:hover { background: #f5873a; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--hero-text); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 121, 174, .45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(0, 78, 148, .5), transparent 60%);
  color: var(--hero-text);
  padding: 72px 0 0;
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #ffd2b0;
  background: rgba(237, 117, 32, .14); border: 1px solid rgba(237, 117, 32, .35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin-bottom: 18px; color: #fff; }
.hero h1 .grad {
  background: linear-gradient(90deg, #5cc3f0, #00a8df 40%, #ed7520);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--hero-muted); max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; font-size: 14px; color: var(--hero-muted); margin-bottom: 48px; }
.hero-meta span { white-space: nowrap; }
.hero-meta { column-gap: 22px; }

.hero-shot {
  position: relative; max-width: 1040px; margin: 0 auto;
  border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(0, 121, 174, .35);
  background: #1b2630;
}
.hero-shot .bar { display: flex; gap: 7px; padding: 10px 14px; background: #1b2630; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4752; }
.hero-shot .bar i:first-child { background: #ff5f57; } .hero-shot .bar i:nth-child(2) { background: #febc2e; } .hero-shot .bar i:nth-child(3) { background: #28c840; }
/* Portada clara en modo claro */
html[data-theme="light"] .hero {
  background-color: #f4f8fc;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 168, 223, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(15, 89, 164, .14), transparent 60%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .hero h1 { color: #0e1a24; }
html[data-theme="light"] .hero h1 .grad { background-image: linear-gradient(90deg, #0f59a4, #0089c2 45%, #e0650f); }
html[data-theme="light"] .hero .lead,
html[data-theme="light"] .hero-meta { color: var(--muted); }
html[data-theme="light"] .eyebrow { color: #9a4508; background: rgba(237, 117, 32, .1); border-color: rgba(237, 117, 32, .35); }
html[data-theme="light"] .hero .btn-ghost { color: var(--text); background: #fff; border-color: var(--border); box-shadow: 0 1px 2px rgba(14, 26, 36, .06); }
html[data-theme="light"] .hero .btn-ghost:hover { background: var(--bg-soft); }
html[data-theme="light"] .hero-shot { border-color: var(--border); background: #e9eef3; box-shadow: 0 -6px 50px rgba(15, 89, 164, .18); }
html[data-theme="light"] .hero-shot .bar { background: #e9eef3; border-bottom-color: #d7dee5; }
.shot-light { display: none; }
html[data-theme="light"] .shot-light { display: block; }
html[data-theme="light"] .shot-dark { display: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Feature cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.card .ico { width: 72px; height: 72px; margin-bottom: 18px; object-fit: contain; padding: 10px; border-radius: 16px; background: #eef3f7; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse .split-media { order: 2; }
.split h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.split p { color: var(--muted); font-size: 18px; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #222; }
.split-media.plain { background: transparent; border: 0; box-shadow: none; }
.split-media img { width: 100%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 64px; }
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.checks svg { flex-shrink: 0; width: 22px; height: 22px; color: #1e9e5a; margin-top: 2px; }

/* Platforms */
.platforms { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  border-radius: var(--radius); padding: 30px 28px; color: var(--hero-text);
  background: linear-gradient(160deg, #10202d, #060c12);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column;
}
.platform .os { height: 56px; width: auto; margin-bottom: 20px; }
.platform h3 { color: #fff; font-size: 22px; }
.platform p { color: var(--hero-muted); font-size: 16px; flex-grow: 1; }
.platform .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9be7c1; background: rgba(30, 158, 90, .18); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* CTA */
.cta { text-align: center; background: linear-gradient(135deg, var(--brand), #00325f); color: #fff; border-radius: 22px; padding: 64px 28px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(237, 117, 32, .25); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; }
.cta p { color: #cfe0ee; font-size: 18px; max-width: 620px; margin: 0 auto 10px; }
.cta .hero-cta { margin: 28px 0 0; }

/* Ads */
.ad-wrap { padding: 28px 0; }
.ad-slot { max-width: 970px; margin: 0 auto; min-height: 100px; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; text-align: center; }
.ad-slot .adsbygoogle { display: block; width: 100%; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-row small { color: var(--muted); font-size: 14px; }
.social { display: flex; align-items: center; gap: 10px; }
.social span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.social svg { width: 20px; height: 20px; }

/* Reveal on scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .logo img { width: 140px; }
  .logo-foot img { width: 210px; }
  .card { padding: 22px; }
  .cta { padding: 48px 20px; border-radius: 18px; }
}

@media print {
  .site-header, .ad-wrap, .hero-cta, .social { display: none !important; }
  .hero { background: #fff; color: #000; }
}
