/* rabogitmanager · sitio web
   Colores tomados del logo: turquesa #34dcc5 y violeta #9a7cff sobre fondo casi negro. */
:root {
  --bg: #0b0c0f; --bg-2: #121419; --bg-row: #1a1d23; --line: #2a2e37;
  --fg: #f3f4f6; --fg-2: #b3b8c3; --fg-3: #8a919e;
  --teal: #34dcc5; --violet: #9a7cff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 'Hanken Grotesk', system-ui, sans-serif; overflow-x: hidden; }
::selection { background: #34dcc540; color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #343a46 var(--bg); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.in { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.display { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* barra superior */
.bar { position: sticky; top: 0; z-index: 20; background: #0b0c0fd9; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid #ffffff12; }
.bar .in { display: flex; align-items: center; gap: 30px; height: 62px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 18px; }
.brand img { width: 28px; height: auto; }
.bar nav { display: flex; gap: 26px; font-size: 15px; color: var(--fg-2); }
.bar nav a { position: relative; transition: color .2s; }
.bar nav a:hover, .bar nav a.on { color: var(--fg); }
.bar nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--fg); transform: scaleX(0); transition: transform .4s var(--ease); }
.bar nav a.on::after { transform: none; }
.sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; font-weight: 600; font-size: 15px; padding: 10px 20px; white-space: nowrap; transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.pill.w { background: var(--fg); color: var(--bg); }
.pill.w:hover { background: #fff; transform: translateY(-1px); }
.pill.o { border: 1.5px solid #ffffff40; }
.pill.o:hover { border-color: #fff; }
.pill.big { font-size: 17px; padding: 15px 28px; }

/* portada */
.hero { position: relative; padding: 110px 0 0; text-align: center; }
.hero h1 { font-size: clamp(54px, 7.2vw, 104px); margin: 0 auto 26px; max-width: 11ch; }
.hero p { font-size: 21px; color: var(--fg-2); max-width: 52ch; margin: 0 auto 38px; text-wrap: pretty; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 18px; color: var(--fg-3); font-size: 14px; }
.stage { position: relative; margin: 80px auto 0; max-width: 1180px; perspective: 1800px; }
.glow { position: absolute; inset: -6% 4% 20%; background: radial-gradient(40% 50% at 30% 50%, #34dcc542, transparent 70%), radial-gradient(40% 50% at 72% 46%, #9a7cff3d, transparent 70%); filter: blur(40px); pointer-events: none; }
.screen { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1440 / 855; transform: rotateX(var(--tilt, 14deg)); transform-origin: 50% 100%; box-shadow: 0 0 0 1px #ffffff1f, 0 40px 80px -30px #000; background: var(--bg-2); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.fade { position: absolute; left: 0; right: 0; bottom: -2px; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* lista con imágenes al pasar el mouse */
.what { padding: 120px 0 110px; }
.what-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.what-head h2, .news-head h2, .faq h2 { font-size: clamp(40px, 4.5vw, 64px); margin: 0; }
.what-head p { color: var(--fg-2); margin: 0; font-size: 19px; max-width: 42ch; }
.mob { display: none; }
ol.hl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hl li { position: relative; border-bottom: 1px solid var(--line); transition: background .3s; }
.hl .row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 12px; padding: 34px 28px; cursor: default; }
.hl .row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.hl .n { color: var(--fg-3); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl .t { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; max-width: 30ch; color: var(--fg-2); transition: color .3s; }
.hl .arr { color: var(--fg-3); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.media { position: absolute; z-index: 5; left: var(--x, 50%); top: 0; width: 420px; height: 280px; pointer-events: none; transform: translate(-50%, -90%) scale(.92) rotate(-2deg); opacity: 0; transition: opacity .35s var(--ease), transform .55s var(--ease); }
.card { position: absolute; border-radius: 14px; border: 5px solid var(--bg); object-fit: cover; object-position: 0 0; background: var(--bg-2); box-shadow: 0 0 0 1px #ffffff26, 0 30px 50px -18px #000c; }
.card.a { left: 0; top: 0; width: 330px; height: 220px; transform: rotate(-5deg); }
.card.b { right: 0; bottom: -10px; width: 190px; height: 190px; transform: rotate(6deg); }
@media (hover: hover) and (min-width: 901px) {
  .hl li:hover, .hl li:focus-within { background: var(--bg-row); }
  .hl li:hover .t, .hl li:focus-within .t { color: var(--fg); }
  .hl li:hover .arr, .hl li:focus-within .arr { opacity: 1; transform: none; }
  .hl li:hover .media, .hl li:focus-within .media { opacity: 1; transform: translate(-50%, -90%) scale(1) rotate(0); }
}

/* novedades */
.news { padding: 110px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.news-head { display: flex; align-items: end; gap: 12px; margin-bottom: 44px; }
.news-head a { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--teal); }
.news-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.rel { border-top: 1px solid var(--line); padding-top: 22px; }
.rel:first-child { border-top: 2px solid var(--fg); }
.rel .v { font-weight: 600; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.rel h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 10px; }
.rel p { color: var(--fg-2); margin: 0; font-size: 16px; }

/* preguntas */
.faq { padding: 110px 0; }
.faq .in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 24px 0; font-size: 20px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg) translateY(-4px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg); }
summary:hover::after { border-color: var(--fg); }
details p { margin: -6px 0 24px; color: var(--fg-2); max-width: 60ch; }
details a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* cierre */
.end { position: relative; padding: 140px 0 150px; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.end::before { content: ''; position: absolute; left: 50%; top: 60%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #34dcc526, transparent), radial-gradient(closest-side at 65% 50%, #9a7cff22, transparent); filter: blur(20px); }
.end > * { position: relative; }
.end img { width: 96px; height: auto; margin: 0 auto 26px; }
.end h2 { font-size: clamp(52px, 6.6vw, 96px); margin: 0 0 18px; }
.end p { color: var(--fg-2); font-size: 19px; margin: 0 0 36px; }

footer { border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
footer .in { display: flex; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .in { padding: 0 16px; }
  .bar nav, .bar .pill.o { display: none; }
  .bar .pill.w { padding: 8px 16px; font-size: 14px; }
  .desk { display: none; } .mob { display: inline; }
  .hero { padding-top: 64px; }
  .hero p { font-size: 17px; }
  .stage { margin-top: 48px; }
  .screen { transform: none; aspect-ratio: 1 / .9; }
  .screen img { object-position: 40% 0; }
  .what, .news, .faq { padding: 72px 0; }
  .what-head, .faq .in { grid-template-columns: 1fr; gap: 18px; }
  .what-head { margin-bottom: 36px; }
  .what-head p { font-size: 17px; }
  .hl .row { grid-template-columns: 34px 1fr 20px; padding: 22px 4px; cursor: pointer; }
  .hl .arr { opacity: 1; transform: rotate(90deg); transition: transform .3s var(--ease); }
  .hl li.open .arr { transform: rotate(-90deg); }
  .hl .t { font-size: 21px; }
  .media { position: relative; left: auto; width: auto; height: 230px; margin: 0 4px 26px; transform: none; opacity: 1; display: none; }
  .hl li.open { background: var(--bg-row); }
  .hl li.open .t { color: var(--fg); }
  .hl li.open .media { display: block; }
  .card.a { width: 78%; height: 190px; left: 2%; top: 4px; }
  .card.b { width: 44%; height: 150px; right: 2%; bottom: 0; }
  .rels { grid-template-columns: 1fr; gap: 32px; }
  .news-head { flex-wrap: wrap; }
  summary { font-size: 18px; }
  .end { padding: 90px 0 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .screen { transform: none; }
}
