:root {
  --navy: #213263;
  --navy-900: #121c3d;
  --navy-950: #0b1230;
  --blue: #279af1;
  --amber: #fdb100;
  --paper: #f5f6f9;
  --ink: #16203f;
  --ink-2: #4a5577;
  --line: #e1e5ee;
  --card: #fff;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --font-d: "Outfit", system-ui, sans-serif;
  --font-b: "Mulish", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(39, 154, 241, .35), transparent 60%),
    radial-gradient(700px 400px at -10% 120%, rgba(39, 154, 241, .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__route { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; opacity: .5; }
.hero__route path {
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 10;
  animation: dash 30s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -1000; } }
.hero__top { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.hero__logo { width: 132px; }
.hero__date { font: 500 14px var(--font-d); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hero__body { position: relative; padding-top: clamp(40px, 7vw, 96px); max-width: 980px; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.eyebrow { font: 600 13px var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 700; }
.hero h1 span { color: var(--blue); white-space: nowrap; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); max-width: 680px; color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 24px;
  font: 600 15px var(--font-d); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

/* Common */
.common {
  position: relative; margin-top: -48px; background: var(--card); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  box-shadow: 0 30px 60px -30px rgba(18, 28, 61, .35);
}
.common h2 { font-size: 26px; margin-bottom: 8px; }
.common__text p { color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #eef4fd; color: var(--navy); font: 500 14px var(--font-d); }

/* Proposals */
.proposals { padding-block: clamp(64px, 9vw, 120px) 40px; }
.proposals__head { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 36px; }
.proposals__head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 10px; }
.proposals__head p { color: var(--ink-2); max-width: 620px; }
.filters { display: flex; gap: 6px; padding: 5px; background: #e8ebf2; border-radius: 999px; flex-wrap: wrap; }
.filter { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--font-d); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.filter.is-on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(18, 28, 61, .12); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(18, 28, 61, .06), 0 20px 40px -24px rgba(18, 28, 61, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .6s var(--ease) both;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(18, 28, 61, .06), 0 30px 60px -28px rgba(18, 28, 61, .45); }
.card[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.card__media {
  position: relative; display: block; padding: 28px 28px 0; background: linear-gradient(160deg, #e9eef8, #dfe6f3);
  aspect-ratio: 16 / 10.5; overflow: hidden; cursor: pointer; border: 0; width: 100%; text-align: left;
}
.card__media.is-bold { background: linear-gradient(160deg, var(--navy), var(--navy-950)); }
.browser { border-radius: 12px 12px 0 0; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); height: 100%; }
.browser__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: #f1f3f7; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6dae3; }
.browser img { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; transition: object-position 6s var(--ease); }
.card__media:hover .browser img { object-position: center 30%; }
.phone {
  position: absolute; right: 22px; bottom: -36px; width: 22%; aspect-ratio: 390 / 844; border-radius: 22px;
  border: 5px solid #0d1430; background: #0d1430; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
  transition: transform .45s var(--ease);
}
.card__media:hover .phone { transform: translateY(-14px); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }
.shot-missing { display: grid; place-items: center; height: 100%; color: var(--ink-2); font: 500 14px var(--font-d); background: repeating-linear-gradient(-45deg, #f3f5f9 0 12px, #eceff5 12px 24px); }

.card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.letter { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 17px var(--font-d); }
.tag { font: 600 12px var(--font-d); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #eef4fd; color: var(--navy); }
.tag--audaz { background: #fff4d6; color: #7a5300; }
.model { display: none; font: 600 12px var(--font-d); padding: 5px 10px; border-radius: 999px; background: #ecfdf3; color: #0b6b39; }
.interno .model { display: inline-block; }
.card h3 { font-size: 26px; }
.card__concept { color: var(--ink-2); }
.card__list { margin: 0; padding-left: 18px; color: var(--ink); font-size: 15px; display: grid; gap: 4px; }
.card__list li::marker { color: var(--blue); }
.card__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.swatches { display: flex; }
.swatches span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px var(--line); }
.swatches span:first-child { margin-left: 0; }
.card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Next steps */
.next { padding-block: 40px clamp(64px, 9vw, 110px); }
.next h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 26px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(18, 28, 61, .06); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 16px var(--font-d); margin-bottom: 14px; }
.steps strong { display: block; color: var(--ink); font: 600 18px var(--font-d); margin-bottom: 6px; }
.note { margin-top: 28px; font-size: 14px; color: var(--ink-2); max-width: 820px; }
.refs { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.refs a { color: var(--navy); font-weight: 600; }

.foot { border-top: 1px solid var(--line); background: #fff; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; flex-wrap: wrap; }
.foot img { width: 96px; }
.foot p { font-size: 14px; color: var(--ink-2); }

/* Viewer */
.viewer {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--navy-950); color: #fff; overflow: hidden;
}
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(11, 18, 48, .7); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.viewer__title { display: flex; align-items: center; gap: 12px; min-width: 0; outline: none; }
.viewer__title p { font: 600 16px var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__title .viewer__sub { font: 400 13px var(--font-b); opacity: .7; }
.viewer__letter { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blue); font: 700 17px var(--font-d); }
.viewer__devices { display: flex; gap: 4px; background: rgba(255, 255, 255, .08); padding: 4px; border-radius: 999px; }
.viewer__devices button { border: 0; background: transparent; color: rgba(255, 255, 255, .75); padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font-d); cursor: pointer; }
.viewer__devices button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.viewer__nav { display: flex; align-items: center; gap: 6px; }
.viewer__count { font: 500 13px var(--font-d); opacity: .7; min-width: 44px; text-align: center; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.viewer__stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.viewer__device { transform-origin: center center; background: #fff; overflow: hidden; transition: width .3s var(--ease), height .3s var(--ease); }
.viewer__device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.viewer__device.is-framed { border-radius: 36px; border: 10px solid #05091c; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }

@media (max-width: 900px) {
  .common { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .viewer__devices { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .filters { flex-wrap: nowrap; }
  .filter { padding: 8px 11px; font-size: 13px; white-space: nowrap; }
  .card__media { padding: 18px 18px 0; }
  .phone { right: 12px; width: 26%; border-width: 4px; border-radius: 16px; }
  .card__body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Rojocuadrado: quién presenta. Replica la marca de rojocuadrado.com (puntos de ventana + ~/rojocuadrado en mono). */
.presenter {
  --rojo: #e40014;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f4f6f8;
  border-bottom: 1px solid #e2e8f0;
  font: 500 14px/1.4 var(--mono);
  color: #475569;
}
.presenter__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 14px; }
.presenter__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0f172a; font-weight: 700; font-size: 17px; }
.presenter__brand:hover .presenter__tilde { color: #0f172a; }
.presenter__dots { display: inline-flex; gap: 6px; }
.presenter__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.presenter__dots i:nth-child(2) { background: #ffbd2e; }
.presenter__dots i:nth-child(3) { background: #27c93f; }
.presenter__tilde { color: var(--rojo); transition: color .2s; }
.presenter__note strong { color: #0f172a; font-weight: 700; }
.foot p a { color: var(--navy); font-weight: 600; }
@media (max-width: 520px) {
  .presenter { font-size: 12px; }
  .presenter__inner { padding-block: 10px; }
}
