:root {
  --bg: #05070b;
  --bg-soft: #090d14;
  --panel: rgba(15, 21, 31, 0.76);
  --panel-strong: #0e141e;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f7f9fc;
  --muted: #9aa6b6;
  --muted-2: #718096;
  --blue: #1d9cff;
  --cyan: #72ddff;
  --green: #30e69b;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 40px));
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(31,156,255,.12), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(44,233,163,.08), transparent 24%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 12px 16px; background: #fff; color: #000; border-radius: 12px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.page-glow { position: fixed; pointer-events: none; filter: blur(80px); opacity: .35; z-index: -1; border-radius: 999px; }
.page-glow-a { width: 420px; height: 420px; background: rgba(33,145,255,.18); top: 6vh; right: -180px; }
.page-glow-b { width: 360px; height: 360px; background: rgba(30,221,156,.10); bottom: 12vh; left: -150px; }

.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(150%);
  background: linear-gradient(180deg, rgba(5,7,11,.90), rgba(5,7,11,.72));
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(5,7,11,.86); }
.nav-shell { height: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; }
.brand-name { font-weight: 760; letter-spacing: -.03em; font-size: 18px; }
.brand-name span { color: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: #c1cada; font-size: 14px; font-weight: 650; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px; border: 1px solid rgba(114,221,255,.20); border-radius: 999px; background: rgba(22,115,178,.16); font-size: 14px; font-weight: 750; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.menu-button, .mobile-menu { display: none; }

.hero { position: relative; padding: 78px 0 44px; min-height: calc(100vh - var(--header-h)); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, rgba(5,7,11,.8)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(420px,.98fr); gap: 66px; align-items: center; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; color: var(--cyan); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; color: #b8c4d4; }
.eyebrow span { width: 30px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }
.hero h1, .section-heading h2, .philosophy-copy h2, .news-content h2, .contact-card h2 { margin: 24px 0 0; line-height: .88; letter-spacing: -.065em; font-weight: 820; }
.hero h1 { font-size: clamp(72px, 7.5vw, 126px); }
.hero h1 em, .section-heading h2 em, .philosophy-copy h2 em { font-style: normal; background: linear-gradient(110deg, #b7ecff 0%, #57cfff 45%, #178dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 690px; margin: 30px 0 0; color: #aeb9c9; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; letter-spacing: -.02em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 0 20px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 760; font-size: 15px; border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #19b4ff, #1678ff); border-color: transparent; color: white; box-shadow: 0 18px 38px rgba(22,126,255,.22); }
.button-secondary { background: rgba(255,255,255,.035); }
.hero-stats { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hero-stats div { min-width: 0; padding-right: 20px; }
.hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 16px; }
.hero-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.hero-stage { position: relative; min-height: 620px; display: grid; place-items: center; isolation: isolate; }
.stage-card { position: relative; width: min(520px, 90%); aspect-ratio: 1 / 1; border-radius: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,.10); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); box-shadow: 0 40px 110px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.08); display: grid; place-items: center; transform-style: preserve-3d; transition: transform .15s ease-out; }
.stage-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 15%, rgba(52,169,255,.18), transparent 36%), linear-gradient(180deg, rgba(255,255,255,.025), transparent 48%); }
.stage-logo { width: 82%; max-height: 82%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 24px 35px rgba(0,0,0,.46)); }
.stage-sheen { position: absolute; inset: -25%; background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.11) 50%, transparent 58%); transform: translateX(-90%) rotate(8deg); animation: sheen 8s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-90%) rotate(8deg); } 75%,100% { transform: translateX(90%) rotate(8deg); } }
.stage-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(95,196,255,.13); pointer-events: none; }
.orbit-one { width: 610px; height: 610px; }
.orbit-two { width: 760px; height: 760px; border-color: rgba(64,233,170,.06); }

.ecosystem-rail { position: relative; z-index: 4; margin-top: 64px; padding: 18px 20px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: rgba(9,14,21,.72); backdrop-filter: blur(18px); box-shadow: 0 25px 60px rgba(0,0,0,.24); }
.rail-intro { padding-right: 20px; border-right: 1px solid var(--line); }
.rail-intro span { display: block; color: var(--cyan); font-size: 10px; letter-spacing: .18em; font-weight: 820; }
.rail-intro strong { display: block; margin-top: 5px; font-size: 14px; }
.rail-apps { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 14px 10px; align-items: stretch; overflow: visible; }
.rail-apps a { min-width: 0; display: grid; grid-template-rows: 46px auto; align-items: center; justify-items: center; gap: 7px; padding: 10px 6px; border-radius: 16px; transition: background .2s ease, transform .2s ease, border-color .2s ease; overflow: visible; border: 1px solid transparent; }
.rail-apps a:hover { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.06); transform: scale(1.025); }
.rail-apps img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.rail-apps span { width: 100%; text-align: center; overflow: visible; text-overflow: clip; white-space: nowrap; color: #93a0b2; font-size: 10px; line-height: 1.2; }
.rail-apps a[href="#barbershop"] { min-width: 0; }
.rail-apps a[href="#barbershop"] img { opacity: 1; visibility: visible; display: block; }


.section { padding: 120px 0; position: relative; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .philosophy-copy h2 { font-size: clamp(62px, 7vw, 112px); }
.section-heading p { max-width: 470px; margin: 0 0 12px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-chip { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #aeb9c9; padding: 10px 15px; border-radius: 999px; cursor: pointer; transition: .2s ease; }
.filter-chip:hover, .filter-chip.is-active { background: rgba(37,149,255,.12); border-color: rgba(75,184,255,.28); color: white; }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card { position: relative; min-width: 0; min-height: 350px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(19,27,39,.90), rgba(9,13,20,.92)); overflow: hidden; display: flex; flex-direction: column; gap: 22px; box-shadow: inset 0 1px rgba(255,255,255,.025); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.app-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(62,174,255,.12), transparent 40%); opacity:0; transition: opacity .25s ease; pointer-events:none; }
.app-card:hover { transform: translateY(-5px); border-color: rgba(96,194,255,.22); box-shadow: 0 25px 50px rgba(0,0,0,.26); }
.app-card:hover::before { opacity: 1; }
.app-card.is-hidden { display: none; }
.app-card-featured { grid-column: span 2; min-height: 440px; display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; background: linear-gradient(135deg, rgba(15,40,52,.96), rgba(10,16,22,.96) 48%, rgba(10,42,31,.82)); }
.app-card-featured .app-icon-wrap { width: 170px; height: 170px; }
.app-card-featured h3 { font-size: clamp(48px, 4vw, 72px); }
.app-card-glow { position:absolute; width:280px; height:280px; border-radius:50%; background: rgba(33,219,149,.18); filter: blur(70px); right:-80px; top:-80px; pointer-events:none; }
.app-icon-wrap { width: 82px; height: 82px; border-radius: 23px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); box-shadow: 0 15px 30px rgba(0,0,0,.26); flex: 0 0 auto; position: relative; z-index: 2; }
.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.app-card-copy { min-width: 0; position: relative; z-index: 2; }
.app-category { display: block; color: #7f8fa3; font-size: 10px; font-weight: 820; letter-spacing: .17em; text-transform: uppercase; }
.app-card h3 { margin: 10px 0 12px; font-size: clamp(30px, 2.5vw, 42px); line-height: .98; letter-spacing: -.05em; overflow-wrap: normal; word-break: keep-all; }
.app-card p { margin: 0; color: #98a5b6; line-height: 1.58; font-size: 15px; }
.platforms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.platforms span { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: #c9d2df; font-size: 11px; background: rgba(255,255,255,.03); }
.app-number { position: absolute; right: 18px; bottom: 12px; font-weight: 800; font-size: 54px; letter-spacing: -.06em; color: rgba(255,255,255,.025); }

.philosophy-section { background: linear-gradient(180deg, transparent, rgba(11,17,25,.60), transparent); }
.philosophy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.philosophy-copy p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.principles article > span { color: var(--cyan); font-size: 12px; letter-spacing: .12em; font-weight: 800; padding-top: 5px; }
.principles h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.principles p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.news-wrap { position: relative; min-height: 430px; padding: 58px; border-radius: var(--radius-xl); overflow: hidden; display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 50px; border: 1px solid rgba(83,184,255,.13); background: linear-gradient(135deg, rgba(12,19,29,.97), rgba(8,22,39,.95)); box-shadow: var(--shadow); }
.news-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -120px; top: -250px; background: radial-gradient(circle, rgba(50,154,255,.32), rgba(28,95,183,.08) 48%, transparent 70%); }
.news-content, .social-links { position: relative; z-index: 2; }
.news-content h2 { font-size: clamp(54px, 6vw, 92px); }
.news-content p { max-width: 580px; color: var(--muted); line-height: 1.65; font-size: 17px; }
.social-links { display: grid; gap: 10px; }
.social-links a { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); transition: background .2s ease, transform .2s ease; }
.social-links a:hover { transform: translateX(4px); background: rgba(255,255,255,.045); }

.contact-section { padding-top: 30px; }
.contact-card { padding: 58px 0 70px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; border-top: 1px solid var(--line); }
.contact-card h2 { font-size: clamp(56px, 7vw, 110px); }
.contact-card p { color: var(--muted); max-width: 520px; line-height: 1.6; }
.contact-mail { min-width: min(430px, 100%); padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); display:flex; align-items:center; justify-content:space-between; gap:20px; font-weight:760; font-size: 19px; transition: transform .2s ease, border-color .2s ease; }
.contact-mail:hover { transform: translateY(-3px); border-color: rgba(91,196,255,.25); }
.contact-mail strong { color: var(--cyan); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 34px; color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; }
.footer-brand strong, .footer-brand span { display:block; }
.footer-brand strong { color:#fff; }
.footer-brand span { margin-top:2px; }
.footer-links { display:flex; gap:18px; }
.footer-links a:hover { color:#fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .18s; }

@media (max-width: 1120px) {
  :root { --shell: min(100% - 32px, 1040px); }
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 34px; }
  .hero-stage { min-height: 540px; }
  .orbit-two { width: 630px; height: 630px; }
  .ecosystem-rail { grid-template-columns: 190px minmax(0,1fr); }
  .rail-apps { grid-template-columns: repeat(5, minmax(92px,1fr)); gap: 12px 8px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-card-featured { grid-column: 1 / -1; }
  .philosophy-grid { gap: 60px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .desktop-nav, .nav-cta { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); display: grid; place-content:center; gap:5px; color:white; cursor:pointer; }
  .menu-button span:not(.sr-only) { width: 19px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .mobile-menu { display: none; position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) + 8px); padding: 12px; border-radius: 20px; border:1px solid var(--line); background: rgba(8,11,17,.96); backdrop-filter: blur(20px); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
  .mobile-menu.is-open { display:grid; }
  .mobile-menu a { padding:14px 13px; border-radius:12px; font-weight:700; }
  .mobile-menu a:hover { background:rgba(255,255,255,.04); }

  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero h1 { font-size: clamp(68px, 14vw, 112px); }
  .hero-stage { min-height: 560px; margin-top: 16px; }
  .stage-card { width: min(500px, 78vw); }
  .ecosystem-rail { margin-top: 34px; grid-template-columns: 1fr; padding: 20px; }
  .rail-intro { border-right:0; border-bottom:1px solid var(--line); padding: 0 0 15px; }
  .rail-apps { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px 6px; }

  .section { padding: 92px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading p { max-width: 620px; }
  .app-card-featured { grid-template-columns: 140px minmax(0,1fr); min-height: 390px; }
  .app-card-featured .app-icon-wrap { width:130px; height:130px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 50px; }
  .news-wrap { grid-template-columns: 1fr; padding: 42px; }
  .contact-card { grid-template-columns: 1fr; gap:30px; align-items:start; }
  .contact-mail { min-width:0; width:100%; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 28px); }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 38px; height:38px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(58px, 18vw, 88px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .button { width:100%; }
  .hero-stats { grid-template-columns:1fr; gap:16px; }
  .hero-stats div, .hero-stats div + div { padding:0; border-left:0; }
  .hero-stats div + div { padding-top:16px; border-top:1px solid var(--line); }

  .hero-stage { min-height: 420px; }
  .stage-card { width: min(390px, 82vw); border-radius:30px; }
  .orbit-one { width: 420px; height:420px; }
  .orbit-two { width: 500px; height:500px; }
          
  .ecosystem-rail { width: calc(100vw - 28px); overflow: hidden; }
  .rail-apps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .rail-apps a { grid-template-columns: 42px minmax(0,1fr); justify-items:start; align-items:center; padding:8px; }
  .rail-apps img { width:42px; height:42px; }
  .rail-apps span { text-align:left; font-size:11px; white-space:normal; overflow:visible; text-overflow:clip; }

  .section { padding: 76px 0; }
  .section-heading h2, .philosophy-copy h2 { font-size: clamp(52px, 16vw, 78px); }
  .app-grid { grid-template-columns: 1fr; }
  .app-card, .app-card-featured { grid-column:auto; min-height:0; padding:24px; display:grid; grid-template-columns:80px minmax(0,1fr); align-items:start; gap:18px; }
  .app-card-featured .app-icon-wrap, .app-icon-wrap { width:80px; height:80px; border-radius:22px; }
  .app-card-featured h3, .app-card h3 { font-size: clamp(30px, 10vw, 42px); white-space: normal; overflow-wrap:anywhere; word-break:normal; }
  .app-card p { font-size:14px; }
  .app-number { display:none; }
  .app-card-copy { min-width:0; }
  .platforms { margin-top:14px; }

  .principles article { grid-template-columns:44px 1fr; }
  .news-wrap { padding:30px 24px; border-radius:26px; min-height:0; }
  .news-content h2, .contact-card h2 { font-size: clamp(52px, 16vw, 78px); }
  .contact-mail { font-size:16px; padding:18px; }
  .footer-grid { grid-template-columns:1fr; align-items:start; }
  .footer-links { flex-wrap:wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Long brand names stay intact without clipping. */
#comunidadnexo h3 { white-space: nowrap; font-size: clamp(28px, 2.25vw, 38px); }



@media (max-width: 620px) {
  #comunidadnexo h3 { font-size: clamp(26px, 7.6vw, 31px); white-space: nowrap; overflow-wrap: normal; }
}

/* Ecosistema: 10 apps always visible, no horizontal clipping. */
@media (min-width: 621px) {
  .rail-apps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 8px;
    overflow: visible;
    padding: 0;
  }
  .rail-apps a { min-width: 0; width: auto; }
  .rail-apps span { white-space: nowrap; overflow: visible; text-overflow: clip; }
}

/* Shared legal pages */
.legal-shell { width: min(850px, calc(100vw - 40px)); margin: 0 auto; padding: 120px 0 90px; }
.legal-shell h1 { margin: 18px 0 36px; font-size: clamp(48px, 8vw, 92px); letter-spacing: -.06em; line-height: .95; }
.legal-shell h2 { margin-top: 38px; }
.legal-shell p, .legal-shell li { color: #a9b5c6; line-height: 1.75; }
.legal-shell a { color: var(--cyan); }
.legal-shell .todo { display: inline-block; color: #ffd477; background: rgba(255,190,70,.08); border: 1px solid rgba(255,190,70,.18); padding: 2px 7px; border-radius: 7px; }
.legal-back { display: inline-flex; margin-bottom: 26px; color: var(--cyan); }


/* Store download integration */
.rail-apps button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.rail-apps a,
.rail-apps button {
  min-width: 0;
  display: grid;
  grid-template-rows: 46px auto;
  align-items: center;
  justify-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-radius: 16px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  overflow: visible;
  border: 1px solid transparent;
}
.rail-apps a:hover,
.rail-apps button:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.06);
  transform: scale(1.025);
}

.app-icon-wrap { isolation: isolate; }
.app-icon-link {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  display: block;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
}
.app-icon-link img { transition: transform .24s ease, filter .24s ease; }
.app-icon-link:hover img { transform: scale(1.045); filter: saturate(1.08) brightness(1.04); }
.app-icon-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  position: relative;
  z-index: 3;
}
.store-button {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -.01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
a.store-button:hover { transform: translateY(-2px); }
.store-button-apple {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.store-button-apple:hover { border-color: rgba(255,255,255,.30); box-shadow: 0 10px 25px rgba(0,0,0,.20); }
.store-button-play {
  background: linear-gradient(135deg, rgba(45,226,156,.13), rgba(37,156,255,.10));
  border-color: rgba(70,218,170,.20);
  color: #eafff7;
}
.store-button-play:hover { border-color: rgba(70,218,170,.40); box-shadow: 0 10px 25px rgba(24,180,128,.10); }
.store-button-disabled {
  color: #7f8b9b;
  background: rgba(255,255,255,.025);
  border-style: dashed;
  cursor: default;
}
.platform-pending { color: #a9b4c1 !important; border-style: dashed !important; }

.store-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--text);
  background: transparent;
  overflow: visible;
}
.store-dialog::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.store-dialog-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 84% 0%, rgba(41,162,255,.18), transparent 36%),
    linear-gradient(150deg, rgba(18,26,39,.98), rgba(7,11,17,.99));
  box-shadow: 0 36px 120px rgba(0,0,0,.58);
}
.store-dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}
.store-dialog-kicker { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.store-dialog h2 { margin: 10px 42px 0 0; font-size: clamp(34px, 7vw, 52px); line-height: .96; letter-spacing: -.05em; }
.store-dialog p { margin: 15px 0 0; color: var(--muted); line-height: 1.55; }
.store-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.store-dialog-button {
  min-height: 62px;
  padding: 0 18px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.store-dialog-button:hover { transform: translateY(-2px); }
.store-dialog-apple { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.store-dialog-play { background: rgba(34,209,145,.09); border-color: rgba(69,219,169,.20); }

@media (max-width: 620px) {
  .store-actions { grid-column: 1 / -1; margin-top: 12px; }
  .store-button { min-height: 42px; flex: 1 1 auto; }
  .store-dialog-card { padding: 28px 22px 22px; }
  .store-dialog-actions { grid-template-columns: 1fr; }
  .rail-apps a,
  .rail-apps button {
    grid-template-columns: 42px minmax(0,1fr);
    grid-template-rows: auto;
    justify-items: start;
    align-items: center;
    padding: 8px;
  }
}

.store-dialog-disabled {
  opacity: .58;
  cursor: default;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
  color: var(--muted);
}
.store-dialog-button[hidden] { display: none !important; }


/* ===== Mobile-first hardening 2026-10-06 ===== */
html, body { max-width: 100%; }

.social-link-disabled {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
  color: #7f8b9b;
  cursor: default;
}
.social-link-disabled > span { font-size: 11px; font-weight: 700; letter-spacing: .02em; }

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 32px);
    --header-h: 70px;
    --radius-xl: 26px;
    --radius-lg: 22px;
  }

  html { overflow-x: clip; }
  body { overflow-x: clip; }
  .shell { width: var(--shell); max-width: 100%; }
  main, section, .hero, .section { max-width: 100%; overflow-x: clip; }

  .site-header { height: var(--header-h); }
  .nav-shell { width: calc(100% - 24px); gap: 12px; }
  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .menu-button { width: 46px; height: 46px; border-radius: 15px; }
  .mobile-menu { left: 12px; right: 12px; top: calc(var(--header-h) + 8px); }

  .hero { min-height: 0; padding: 34px 0 26px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .hero-copy, .hero-stage, .hero-grid > * { min-width: 0; }
  .eyebrow { font-size: 12px; gap: 9px; }
  .eyebrow span { width: 22px; }
  .hero h1 {
    margin-top: 18px;
    font-size: clamp(50px, 14.8vw, 66px);
    line-height: .91;
    letter-spacing: -.06em;
  }
  .hero-lead { margin-top: 22px; font-size: 17px; line-height: 1.52; }
  .hero-actions { margin-top: 26px; grid-template-columns: 1fr; gap: 10px; }
  .button { width: 100%; min-height: 50px; }
  .hero-stats { margin-top: 30px; padding-top: 20px; grid-template-columns: 1fr; gap: 14px; }
  .hero-stats div, .hero-stats div + div { padding: 0; border-left: 0; }
  .hero-stats div + div { padding-top: 14px; border-top: 1px solid var(--line); }

  .hero-stage { min-height: 330px; margin-top: 0; }
  .stage-card { width: min(330px, 88vw); border-radius: 28px; }
  .orbit-one { width: 330px; height: 330px; }
  .orbit-two { width: 410px; height: 410px; opacity: .55; }

  .ecosystem-rail {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 18px;
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
    border-radius: 22px;
    overflow: visible;
  }
  .rail-intro { min-width: 0; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-apps { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .rail-apps a, .rail-apps button {
    width: 100%; min-width: 0;
    grid-template-columns: 38px minmax(0,1fr);
    grid-template-rows: auto;
    gap: 9px;
    justify-items: start;
    align-items: center;
    padding: 9px;
    border-radius: 14px;
  }
  .rail-apps img { width: 38px; height: 38px; border-radius: 10px; }
  .rail-apps span { min-width: 0; font-size: 10px; line-height: 1.15; text-align: left; white-space: normal; overflow-wrap: anywhere; }

  .section { padding: 68px 0; }
  .section-heading { grid-template-columns: minmax(0,1fr); gap: 20px; margin-bottom: 28px; }
  .section-heading > *, .philosophy-grid > *, .news-wrap > *, .contact-card > * { min-width: 0; }
  .section-heading h2, .philosophy-copy h2 {
    font-size: clamp(44px, 12.5vw, 58px);
    line-height: .92;
    letter-spacing: -.055em;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .section-heading p, .philosophy-copy p { font-size: 16px; line-height: 1.58; }

  .filter-bar { gap: 8px; margin-bottom: 18px; }
  .filter-chip { flex: 1 1 0; min-width: 0; padding: 10px 12px; text-align: center; }

  .app-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .app-card, .app-card-featured {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 70px minmax(0,1fr);
    align-items: start;
    gap: 15px;
    border-radius: 22px;
  }
  .app-card-featured .app-icon-wrap, .app-icon-wrap { width: 70px; height: 70px; border-radius: 19px; }
  .app-card-copy { min-width: 0; }
  .app-category { font-size: 9px; line-height: 1.25; }
  .app-card-featured h3, .app-card h3, #comunidadnexo h3 {
    margin: 8px 0 10px;
    font-size: clamp(27px, 8.7vw, 36px);
    line-height: .98;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal;
  }
  .app-card p { font-size: 14px; line-height: 1.52; }
  .platforms { margin-top: 12px; gap: 6px; }
  .platforms span { padding: 6px 9px; font-size: 10px; }
  .app-number { display: none; }
  .store-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .store-button { width: 100%; min-height: 44px; white-space: normal; text-align: center; }

  .philosophy-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .principles article { grid-template-columns: 38px minmax(0,1fr); gap: 14px; padding: 22px 0; }
  .principles h3 { font-size: 21px; }
  .principles p { font-size: 14px; }

  .news-section { overflow: clip; }
  .news-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 26px 20px 20px;
    grid-template-columns: minmax(0,1fr);
    gap: 26px;
    align-items: start;
    border-radius: 24px;
    overflow: hidden;
  }
  .news-orb { width: 300px; height: 300px; right: -140px; top: -150px; opacity: .65; }
  .news-content { min-width: 0; max-width: 100%; }
  .news-content h2 {
    margin-top: 14px;
    max-width: 100%;
    font-size: clamp(40px, 10.8vw, 48px);
    line-height: .94;
    letter-spacing: -.052em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .news-content p { max-width: 100%; margin-top: 18px; font-size: 15.5px; line-height: 1.55; }
  .social-links { width: 100%; min-width: 0; gap: 9px; }
  .social-links a, .social-link-disabled { width: 100%; min-width: 0; padding: 16px; border-radius: 15px; }
  .social-links a:hover { transform: none; }

  .contact-section { padding-top: 10px; }
  .contact-card {
    width: 100%;
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    padding: 42px 0 54px;
    align-items: start;
  }
  .contact-card h2 { font-size: clamp(46px, 13vw, 60px); line-height: .92; max-width: 100%; }
  .contact-card p { font-size: 15px; }
  .contact-mail { min-width: 0; width: 100%; padding: 17px 16px; gap: 12px; font-size: 15px; overflow-wrap: anywhere; }

  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 20px; align-items: start; }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }

  .store-dialog { width: calc(100vw - 24px); }
  .store-dialog-card { padding: 26px 18px 18px; border-radius: 22px; }
  .store-dialog h2 { font-size: clamp(32px, 9vw, 42px); }
  .store-dialog-actions { grid-template-columns: 1fr; gap: 8px; }

  .legal-shell { width: calc(100% - 32px); padding: 86px 0 64px; }
  .legal-shell h1 { font-size: clamp(42px, 12vw, 58px); overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  :root { --shell: calc(100% - 24px); }
  .hero h1 { font-size: 48px; }
  .section-heading h2, .philosophy-copy h2 { font-size: 41px; }
  .news-content h2 { font-size: 39px; }
  .contact-card h2 { font-size: 44px; }
  .rail-apps { grid-template-columns: 1fr; }
}
