/* agenciaratio.com: hoja de estilos propia */
:root {
  --ink-1: #080b17;
  --ink-2: #0d1224;
  --ink-3: #131a33;
  --ink-4: #1b2447;
  --edge-1: #232d57;
  --edge-2: #35427a;
  --prose: #c9d0ea;
  --white: #ffffff;
  --faint: #8c97c2;
  --ember: #ff7a45;
  --ember-lt: #ffb06b;
  --mint: #5ef0c0;
  --mint-lt: #a5f8de;
  --sky: #6aa9ff;
  --face: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.rt-noscroll, html.rt-noscroll body { overflow: hidden; }
body {
  margin: 0;
  padding-bottom: 96px;
  color: var(--prose);
  font: 400 17px/1.7 var(--face);
  background:
    radial-gradient(900px 560px at 50% -8%, rgba(255,122,69,.16), transparent 70%),
    radial-gradient(760px 560px at 0% 40%, rgba(106,169,255,.1), transparent 70%),
    var(--ink-1);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }

.rt-hop { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ember); color: #2b1100; font-weight: 800; }
.rt-hop:focus { top: 12px; }
.rt-logo { color: var(--white); font-size: 1.95rem; font-weight: 800; font-style: italic; letter-spacing: -.05em; line-height: 1; }

/* ---------- cabecera ---------- */
.rt-head { position: sticky; top: 0; z-index: 60; background: var(--ink-1); border-bottom: 1px solid var(--edge-1); }
.rt-head__in { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 0 20px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink-1); }
.rt-burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--edge-2); border-radius: 14px; background: var(--ink-3); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.rt-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.rt-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rt-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.rt-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rt-drawer { display: none; position: fixed; inset: 0; z-index: 2; padding: 96px 20px 36px; overflow-y: auto; background: var(--ink-1); }
.rt-drawer.is-open { display: block; }
.rt-drawer ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.rt-drawer ul a { display: block; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--edge-1); background: var(--ink-3); color: #fff; font-size: 1.08rem; font-weight: 600; }
.rt-drawer ul a[aria-current="true"] { border-color: transparent; background: linear-gradient(135deg, var(--ember), var(--ember-lt)); color: #2b1100; font-weight: 800; }

/* ---------- barra inferior ---------- */
.rt-dock { position: fixed; left: 50%; bottom: 16px; z-index: 55; max-width: calc(100vw - 24px); transform: translateX(-50%); padding: 7px; border-radius: 999px; border: 1px solid var(--edge-2); background: #0c1226; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.rt-dock ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rt-dock a { display: block; padding: 10px 17px; border-radius: 999px; color: #d8def5; font-size: .93rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.rt-dock a:hover { background: var(--ink-4); color: var(--white); }
.rt-dock a[aria-current="true"] { background: linear-gradient(135deg, var(--ember), var(--ember-lt)); color: #2b1100; font-weight: 800; }

/* ---------- botones ---------- */
.rt-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 0; border-radius: 16px; font: 800 1rem/1.2 var(--face); text-align: center; cursor: pointer; transition: transform .15s, filter .15s; }
.rt-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.rt-btn:focus-visible, a:focus-visible, summary:focus-visible, .rt-burger:focus-visible { outline: 3px solid var(--mint-lt); outline-offset: 2px; }
.rt-btn--ember { background: linear-gradient(135deg, var(--ember), var(--ember-lt)); color: #2b1100; box-shadow: 0 10px 28px rgba(255,122,69,.34); }
.rt-btn--mint { background: linear-gradient(135deg, var(--mint), var(--mint-lt)); color: #03251c; box-shadow: 0 10px 28px rgba(94,240,192,.28); }
.rt-btn--line { background: transparent; color: var(--white); border: 2px solid var(--edge-2); }
.rt-btn--line:hover { background: var(--ink-3); }
.rt-btn--sm { padding: 11px 22px; font-size: .94rem; }
.rt-btn--xl { padding: 16px 34px; font-size: 1.05rem; }
.rt-btn--wide { display: flex; width: 100%; }

/* ---------- apertura ---------- */
.rt-open { padding: 34px 20px 24px; scroll-margin-top: 80px; }
.rt-open__in { max-width: 1040px; margin: 0 auto; text-align: center; }
.rt-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--edge-2); background: var(--ink-2); color: var(--mint-lt); font-size: .94rem; font-weight: 600; }
.rt-badge span { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94,240,192,.2); }
.rt-open h1 { margin: 0 auto 16px; max-width: 900px; color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.rt-grad { background: linear-gradient(90deg, var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rt-open__lead { max-width: 800px; margin: 0 auto; }
.rt-open__lead p { font-size: 1.05rem; line-height: 1.7; }
.rt-open__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.rt-stage { position: relative; max-width: 940px; margin: 34px auto 0; padding-bottom: 26px; }
.rt-pic { margin: 0; border-radius: 30px; overflow: hidden; border: 1px solid var(--edge-2); background: #1a3a55; box-shadow: 0 34px 80px rgba(0,0,0,.6), 0 0 80px rgba(255,122,69,.16); }
.rt-pic img { width: 100%; height: auto; aspect-ratio: 1408 / 768; }
.rt-chip { position: absolute; bottom: 0; margin: 0; padding: 14px 20px; border-radius: 18px; border: 1px solid var(--edge-2); background: #0d1328; box-shadow: 0 16px 36px rgba(0,0,0,.55); text-align: left; line-height: 1.3; }
.rt-chip--a { left: 26px; }
.rt-chip--b { right: 26px; }
.rt-chip strong { display: block; color: var(--white); font-size: 1.1rem; font-weight: 800; }
.rt-chip--a strong { color: var(--ember-lt); }
.rt-chip--b strong { color: var(--mint-lt); }
.rt-chip span { display: block; margin-top: 2px; color: var(--faint); font-size: .9rem; }
.rt-figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; margin: 42px 0 0; padding: 0; list-style: none; }
.rt-figures strong { display: block; color: var(--white); font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.rt-figures span { display: block; color: var(--faint); font-size: .96rem; }

/* ---------- bandas ---------- */
.rt-band { padding: 66px 20px 46px; scroll-margin-top: 80px; }
.rt-band--1 { background: var(--ink-2); border-top: 1px solid var(--edge-1); border-bottom: 1px solid var(--edge-1); }
.rt-band__in { max-width: 960px; margin: 0 auto; }
.rt-eyebrow { margin: 0 0 8px; color: var(--mint); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rt-band h2 { margin: 0 0 22px; color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.rt-band h3 { margin: 34px 0 12px; color: var(--ember-lt); font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.rt-band__body > :last-child { margin-bottom: 0; }
.rt-band p { line-height: 1.78; }
.rt-band strong { color: var(--white); }

.rt-list { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; }
.rt-list li { position: relative; padding: 14px 18px 14px 50px; border-radius: 16px; border: 1px solid var(--edge-1); background: var(--ink-3); line-height: 1.6; }
.rt-list li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--mint), var(--sky)); transform: rotate(45deg); }
.rt-list--duo { grid-template-columns: 1fr 1fr; }
.rt-steps { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: rt; }
.rt-steps li { position: relative; counter-increment: rt; min-height: 58px; padding: 15px 18px 15px 68px; border-radius: 16px; border: 1px solid var(--edge-1); background: var(--ink-3); line-height: 1.6; }
.rt-steps li::before { content: counter(rt); position: absolute; left: 14px; top: 11px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--ember), var(--ember-lt)); color: #2b1100; font-weight: 800; }

.rt-tablebox { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--edge-2); background: #0a0f20; }
.rt-tablebox table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rt-tablebox--wide table { min-width: 540px; }
.rt-tablebox th { padding: 14px 18px; text-align: left; background: #1a2250; color: var(--ember-lt); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rt-tablebox td { padding: 12px 18px; border-top: 1px solid var(--edge-1); vertical-align: top; }
.rt-tablebox tbody tr:first-child td { border-top: 0; }
.rt-tablebox tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.rt-tablebox td:first-child { color: var(--white); font-weight: 600; }

.rt-cta { display: flex; justify-content: center; margin: 30px 0 6px; padding: 28px 20px; border-radius: 24px; border: 1px solid var(--edge-2); background: linear-gradient(120deg, rgba(255,122,69,.2), rgba(94,240,192,.12)); }

.rt-asks { display: grid; gap: 10px; margin: 6px 0 12px; }
.rt-ask { border-radius: 18px; border: 1px solid var(--edge-1); background: var(--ink-3); overflow: hidden; }
.rt-ask[open] { border-color: var(--ember); }
.rt-ask summary { position: relative; padding: 18px 64px 18px 22px; color: var(--white); font-size: 1.04rem; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.rt-ask summary::-webkit-details-marker { display: none; }
.rt-ask summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 10px; background: var(--ink-4); color: var(--mint-lt); font-size: 1.35rem; font-weight: 500; line-height: 1; }
.rt-ask[open] summary::after { content: "−"; background: var(--ember); color: #2b1100; }
.rt-ask__a { padding: 0 22px 20px; }
.rt-ask__a p { margin: 0; }

/* ---------- pie ---------- */
.rt-foot { padding: 48px 20px 28px; border-top: 1px solid var(--edge-1); background: var(--ink-1); }
.rt-foot__in { max-width: 1040px; margin: 0 auto; }
.rt-foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.rt-foot__cols p { color: var(--faint); font-size: .96rem; }
.rt-foot__cols > div > p:not(.rt-foot__h) { margin: 12px 0 0; max-width: 320px; }
.rt-foot__h { margin: 0 0 12px !important; color: var(--mint-lt) !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rt-foot ul { margin: 0; padding: 0; list-style: none; }
.rt-foot li a { display: inline-block; padding: 5px 0; color: #e1e6fa; font-size: .97rem; }
.rt-foot li a:hover { color: var(--white); text-decoration: underline; }
.rt-foot__c { margin: 0; padding-top: 18px; border-top: 1px solid var(--edge-1); color: var(--faint); font-size: .88rem; }

/* ---------- 404 ---------- */
.rt-gone { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.rt-gone__box { width: 100%; max-width: 520px; padding: 44px 32px; text-align: center; border-radius: 28px; border: 1px solid var(--edge-2); background: var(--ink-3); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.rt-gone__n { margin: 0 0 6px; color: var(--ember); font-size: 4rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.rt-gone h1 { margin: 0 0 12px; color: var(--white); font-size: 1.7rem; line-height: 1.2; }

/* ---------- adaptación ---------- */
@media (max-width: 1060px) {
  .rt-dock a { padding: 10px 13px; font-size: .9rem; }
}
@media (max-width: 900px) {
  body { padding-bottom: 0; }
  .rt-dock { display: none; }
  .rt-burger { display: flex; }
  .rt-foot__cols { grid-template-columns: 1fr 1fr; }
  .rt-foot__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .rt-open { padding-top: 30px; }
  .rt-open__lead { text-align: left; }
  .rt-open__row .rt-btn { width: 100%; }
  .rt-pic { border-radius: 22px; }
  .rt-stage { padding-bottom: 0; }
  .rt-chip { position: static; margin-top: 12px; }
  .rt-figures { gap: 14px 34px; }
  .rt-figures strong { font-size: 1.7rem; }
  .rt-band { padding: 50px 16px 36px; }
  .rt-list--duo { grid-template-columns: 1fr; }
  .rt-btn { white-space: normal; }
  .rt-cta .rt-btn { width: 100%; }
  .rt-foot__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
