/* UriSoft: web de desarrollador. Fondo claro y neutro; cada app aporta su propio color (--c1, --c2). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/plus-jakarta-sans.woff2') format('woff2-variations');
}

:root {
  --ink: #14151f;
  --muted: #5d6072;
  --faint: #8a8da0;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --border: #e6e6ef;
  --brand: #4338ca;
  --brand-2: #7c3aed;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20, 21, 31, 0.05), 0 18px 40px -24px rgba(20, 21, 31, 0.28);
  --c1: var(--brand);
  --c2: var(--brand-2);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, '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(--c1);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Cabecera ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 251, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(230, 230, 239, 0.7);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ---------- Portada ---------- */

.hero {
  padding-block: 72px 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 20px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 54ch;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.pills li {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- App destacada ---------- */

.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  margin: 24px 0 64px;
  padding: 40px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 30px 60px -30px var(--c1);
  overflow: hidden;
}

.featured .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.featured h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.featured p {
  margin: 14px 0 26px;
  font-size: 18px;
  opacity: 0.92;
  max-width: 44ch;
}

.featured .shots {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.featured .shots img {
  width: 44%;
  max-width: 220px;
  border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.45);
}

.featured .shots img:nth-child(2) {
  transform: translateY(26px);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--play {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn--soon {
  background: var(--surface);
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
}

.btn--soon:hover {
  transform: none;
}

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

/* ---------- Catálogo ---------- */

.section {
  padding-block: 8px 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c1) 35%, var(--border));
  box-shadow: 0 1px 2px rgba(20, 21, 31, 0.05), 0 26px 50px -26px color-mix(in srgb, var(--c1) 60%, transparent);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex: none;
  box-shadow: 0 8px 18px -10px rgba(20, 21, 31, 0.5);
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
}

.card__meta {
  font-size: 13px;
  color: var(--faint);
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
}

.card__more {
  color: var(--c1);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--live {
  color: #047857;
  background: #e3f7ee;
}

.status--soon {
  color: #b45309;
  background: #fff3e0;
}

/* ---------- Principios ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.principle {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.principle .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 22px;
  background: #eef0ff;
  margin-bottom: 14px;
}

.principle h3 {
  font-size: 18px;
  font-weight: 800;
}

.principle p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Página de app ---------- */

.app-hero {
  padding: 56px 0 44px;
  color: #fff;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.app-hero .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
}

.app-hero__icon {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  box-shadow: 0 24px 46px -20px rgba(0, 0, 0, 0.55);
}

.app-hero .crumbs {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
}

.app-hero .crumbs a {
  color: inherit;
}

.app-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
}

.app-hero p {
  margin: 12px 0 22px;
  font-size: clamp(17px, 2.2vw, 21px);
  opacity: 0.93;
  max-width: 46ch;
}

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 36px 20px 12px;
  margin-inline: auto;
  width: min(1120px, 100%);
  scroll-snap-type: x mandatory;
}

.gallery img {
  flex: none;
  width: 230px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  background: var(--surface);
}

.gallery--wide img {
  width: 380px;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-block: 36px 64px;
}

.about h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.features {
  list-style: none;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.features li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

.features li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(135deg, var(--c1), var(--c2));
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--faint);
  font-weight: 600;
}

/* ---------- Texto legal ---------- */

.legal {
  max-width: 720px;
  padding: 48px 20px 72px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
}

.legal h2 {
  font-size: 20px;
  margin-top: 32px;
}

.legal p,
.legal li {
  color: #2d3040;
}

/* ---------- Pie ---------- */

.foot {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 15px;
  color: var(--muted);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot a {
  color: var(--muted);
}

/* ---------- Móvil ---------- */

@media (max-width: 820px) {
  .featured {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

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

  .nav a:not(:last-child) {
    display: none;
  }
}

@media (max-width: 560px) {
  .app-hero .wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-hero__icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .gallery img {
    width: 200px;
  }

  .gallery--wide img {
    width: 300px;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
