/* =====================================================
   agus.dev — estética anime clean (papel, tinta y paneles de manga)
   ===================================================== */
:root {
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --ink: #15171d;
  --ink-soft: #4b5160;
  --muted: #7b8191;
  --line: #15171d;
  --sakura: #ff5d8f;
  --sakura-soft: #ffe3ec;
  --mint: #2fc7a1;
  --mint-soft: #d9f7ee;
  --sky: #5b7cff;
  --amber: #f2a93b;
  --card: #ffffff;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;
  --dot: rgb(21 23 29 / 9%);
  --font: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
  --font-round: 'Zen Maru Gothic', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}

html.dark {
  --paper: #0f1117;
  --paper-2: #161925;
  --ink: #eef0f6;
  --ink-soft: #b9bfcd;
  --muted: #8a91a3;
  --line: #eef0f6;
  --sakura-soft: #3a1d2a;
  --mint-soft: #12332c;
  --card: #171a24;
  --dot: rgb(238 240 246 / 7%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--sakura); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sakura); color: #fff; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* Fondo: trama de puntos tipo screentone */
.bg-dots {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 45%) 60%, #000 100%);
}

/* Punto que sigue al cursor (solo con mouse) */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--sakura); pointer-events: none; mix-blend-mode: multiply;
  opacity: 0; transition: width .2s, height .2s, margin .2s, opacity .2s;
}
html.dark .cursor-dot { mix-blend-mode: screen; }
.cursor-dot.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .35 !important; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ── Panel (el bloque base: borde de tinta + sombra desplazada) ── */
.panel {
  position: relative;
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 2px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.15rem; }
.brand__mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: var(--ink); color: var(--paper); font-family: var(--font-round); font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--sakura); transition: transform .3s;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__accent { color: var(--sakura); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a.active { color: var(--ink); background: var(--sakura-soft); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang__btn { border: 0; background: transparent; color: var(--ink); font: 700 .8rem var(--mono); padding: 6px 11px; cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; cursor: pointer; transition: transform .2s; }
.icon-btn:hover { transform: rotate(18deg); }
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
.hamburger { display: none; width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav.menu-open .hamburger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .hamburger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── HERO ── */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 72px 0 64px; min-height: calc(100vh - 72px); }
.hero__kanji {
  position: absolute; right: -10px; top: 6%; z-index: -1;
  font-family: var(--font); font-weight: 900; font-size: clamp(7rem, 17vw, 15rem); line-height: 1;
  writing-mode: vertical-rl; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 8%, transparent);
  user-select: none;
}
.speedlines { position: absolute; left: -12%; top: 50%; width: 760px; height: 760px; transform: translateY(-50%); z-index: -1; opacity: .5; pointer-events: none; }
.speedlines line { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; opacity: .1; }

.bubble {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 9px 18px; background: var(--card); border: 2.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.bubble::after { content: ''; position: absolute; left: 28px; bottom: -11px; width: 16px; height: 16px; background: var(--card); border-right: 2.5px solid var(--line); border-bottom: 2.5px solid var(--line); transform: rotate(45deg) skew(8deg, 8deg); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); animation: pulso 2s infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 7px transparent; } }

.hero__title { font-weight: 900; font-size: clamp(3rem, 7.4vw, 5.8rem); line-height: .98; letter-spacing: -.035em; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::before { content: ''; position: absolute; left: -.06em; right: -.06em; bottom: .08em; height: .36em; background: var(--sakura); opacity: .85; z-index: -1; border-radius: 4px; transform-origin: left; transform: scaleX(var(--mark, 1)); }
html.dark .mark::before { opacity: .55; }
.hero__jp { margin: 14px 0 0; color: var(--muted); font-size: .9rem; letter-spacing: .12em; }
.hero__role { margin: 22px 0 0; font-weight: 700; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.hero__role .mono { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.hero__role-sep { color: var(--sakura); }
.hero__pitch { max-width: 56ch; color: var(--ink-soft); font-size: 1.05rem; margin: 16px 0 0; }
.hero__pitch strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer;
  border: 2.5px solid var(--line); border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: .98rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  will-change: transform;
}
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--sakura); }
.btn--primary:hover { box-shadow: 6px 6px 0 var(--sakura); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--mint-soft); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.cv-split { display: inline-flex; }
.cv-split .btn--primary:first-child { border-radius: 999px 0 0 999px; }
.btn--alt { border-radius: 0 999px 999px 0; border-left-width: 0; padding: 12px 16px; font-family: var(--mono); background: var(--sakura); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
html.dark .btn--primary { color: #0f1117; }

.socials { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 14px; background: var(--card); transition: transform .2s, background .2s, color .2s; }
.socials a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--ink); color: var(--paper); }

/* Panel del hero con código */
.hero__panel { padding: 0; overflow: visible; transform: rotate(1.5deg); }
.hero__panel:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 9px 9px 0 var(--ink); }
.panel__tab { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 2.5px solid var(--line); background: var(--sakura-soft); border-radius: 15px 15px 0 0; font-size: .82rem; font-weight: 500; }
.panel__jp { font-family: var(--font); color: var(--sakura); font-weight: 700; }
.code { margin: 0; padding: 22px 20px; font-size: .86rem; line-height: 1.75; overflow-x: auto; }
.code .k { color: var(--sky); font-weight: 500; }
.code .v { color: var(--sakura); }
.code .p { color: var(--ink); }
.code .s { color: #0e9f7a; }
html.dark .code .s { color: var(--mint); }
.code .b { color: var(--amber); font-weight: 500; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; margin-left: 4px; background: var(--sakura); animation: parpadeo 1s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.panel__foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 20px; border-top: 2.5px dashed color-mix(in srgb, var(--line) 30%, transparent); font-size: .8rem; }
.panel__foot a { text-decoration: none; font-weight: 500; }
.panel__foot a:hover { color: var(--sakura); }
.panel__sfx, .contact__sfx {
  position: absolute; right: -26px; top: -44px; font-family: var(--font); font-weight: 900; font-size: 2.3rem;
  color: var(--sakura); -webkit-text-stroke: 1.5px var(--ink); transform: rotate(12deg); pointer-events: none;
}

/* ── MARQUEE ── */
.marquee { overflow: hidden; border-block: 2.5px solid var(--line); background: var(--ink); color: var(--paper); transform: rotate(-1.2deg); margin: 10px -20px 0; }
.marquee__track { display: flex; gap: 26px; padding: 14px 0; width: max-content; font-weight: 500; font-size: 1rem; letter-spacing: .04em; animation: marquee 32s linear infinite; }
.marquee__track i { color: var(--sakura); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── STATS ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 2.5px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.stat__n { font-weight: 900; font-size: 2rem; line-height: 1.1; }
.stat:nth-child(odd) .stat__n { color: var(--sakura); }
.stat:nth-child(even) .stat__n { color: var(--mint); }
.stat__l { color: var(--ink-soft); font-size: .92rem; }

/* ── SECCIONES ── */
.section { padding: 110px 0 0; }
.section__head { margin-bottom: 38px; }
.section__label { display: inline-flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--sakura); font-weight: 500; }
.section__label .jp { font-family: var(--font); color: var(--muted); letter-spacing: .1em; font-weight: 700; }
.section__head h2, .contact h2 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 0; }
.section__sub { color: var(--ink-soft); max-width: 60ch; margin: 12px 0 0; }

/* Pills y tags */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--card); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { background: var(--mint-soft); color: #0b7a5e; border-color: #0b7a5e; }
html.dark .pill--live { color: var(--mint); border-color: var(--mint); }
.pill--wip { background: var(--sakura-soft); color: #c4245a; border-color: #c4245a; }
html.dark .pill--wip { color: var(--sakura); border-color: var(--sakura); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: .82rem; font-weight: 700; border: 1.5px solid transparent; transition: transform .15s; }
.tags li:hover { transform: translateY(-2px); border-color: var(--line); }
.tags li.tag--hl { background: var(--ink); color: var(--paper); }
.tags--sm li { font-size: .76rem; padding: 4px 10px; }

/* Proyectos destacados */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; padding: 34px; margin-bottom: 34px; }
.feature:hover, .card:hover, .skill:hover, .edu__item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.feature__top, .card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; }
.feature h3 { font-weight: 900; font-size: 2.1rem; line-height: 1.1; margin: 18px 0 10px; letter-spacing: -.02em; }
.feature h3 .kanji { color: var(--mint); font-family: var(--font); }
.feature__lead { color: var(--ink-soft); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--ink-soft); }
.checks li::before { content: '✦'; position: absolute; left: 2px; top: 0; color: var(--sakura); font-size: .95rem; }
.checks strong { color: var(--ink); }
.feature__actions { margin-top: 24px; }

.feature__visual { position: relative; border: 2.5px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 30px 22px; min-height: 340px; }

/* Visual TONARI */
.tonari { background: #101318; color: #eef0f6; }
.tonari__kanji { position: absolute; right: -18px; bottom: -40px; font-family: var(--font); font-weight: 900; font-size: 15rem; line-height: 1; color: #b9f3e4; opacity: .07; }
.post { width: 100%; max-width: 330px; background: #1b2029; border: 1.5px solid #2c3442; border-radius: 16px; padding: 16px; position: relative; z-index: 1; }
.post--small { max-width: 290px; align-self: flex-end; margin-right: 8px; }
.post__head { display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.post__head small { display: block; color: #8a93a6; font-size: .78rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.a1 { background: linear-gradient(135deg, #b9f3e4, #5b7cff); }
.a2 { background: linear-gradient(135deg, #ff8fb1, #f2a93b); }
.post__img { height: 120px; border-radius: 12px; margin-top: 12px; background: linear-gradient(135deg, #b9f3e4 0%, #8aa9ff 55%, #ff8fb1 100%); display: grid; place-items: center; font-size: 2rem; color: #fff; }
.post__acts { display: flex; gap: 18px; margin-top: 12px; font-size: .9rem; color: #b9f3e4; }
.like { cursor: pointer; user-select: none; transition: transform .15s; display: inline-block; }
.like.on { color: #ff5d8f; }
.tonari__slogan { position: relative; z-index: 1; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #b9f3e4; opacity: .8; }

/* Visual cine */
.cinema { background: #0e1220; }
.screen { width: 80%; height: 10px; border-radius: 50%; background: #9ec1ff; box-shadow: 0 0 30px #9ec1ff; }
.seats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; max-width: 320px; }
.seat { aspect-ratio: 1; border-radius: 6px 6px 3px 3px; background: #2f3b58; transition: background .3s, transform .3s, box-shadow .3s; }
.seat--taken { background: #4a557a; opacity: .55; }
.seat--vip { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); }
.seat--vip.seat--taken { background: var(--amber); opacity: .6; }
.seat--flash { background: var(--sakura); transform: scale(1.2); box-shadow: 0 0 14px var(--sakura); opacity: 1; }
.seats__legend { display: flex; gap: 14px; color: #a7b0c8; font-size: .74rem; }
.seats__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--free { background: #2f3b58; }
.sw--taken { background: #4a557a; }
.sw--vip { box-shadow: inset 0 0 0 1.5px var(--amber); }
.live-chip { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--mint); border: 1.5px solid var(--mint); border-radius: 999px; padding: 3px 10px; }
.live-chip .pill__dot { animation: pulso 1.6s infinite; box-shadow: 0 0 0 3px rgb(47 199 161 / 30%); }

/* Grilla de proyectos */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-weight: 900; font-size: 1.3rem; margin: 6px 0 0; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card__links { display: flex; gap: 18px; margin-top: 4px; }
.card__links a { font-weight: 700; text-decoration: none; border-bottom: 2.5px solid var(--sakura); padding-bottom: 1px; }
.card__links a:hover { color: var(--sakura); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill { padding: 26px; }
.skill h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 900; font-size: 1.2rem; }
.skill__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--sakura-soft); color: var(--sakura); font-size: .85rem; border: 2px solid var(--line); }
.skill:nth-child(even) .skill__ico { background: var(--mint-soft); color: #0b7a5e; }
html.dark .skill:nth-child(even) .skill__ico { color: var(--mint); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; transform-origin: top; transform: scaleY(var(--tl, 1)); }
.tl { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 22px 26px; border: 2.5px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.tl::before { content: ''; position: absolute; left: -30px; top: 28px; width: 15px; height: 15px; border-radius: 50%; background: var(--sakura); border: 3px solid var(--line); }
.tl:nth-child(2)::before { background: var(--mint); }
.tl__date { font-size: .82rem; color: var(--muted); padding-top: 3px; }
.tl__body h3 { margin: 0; font-weight: 900; font-size: 1.1rem; }
.tl__body .at { color: var(--sakura); font-weight: 700; }
.tl__body p { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* Educación */
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.edu__item { padding: 24px 26px; }
.edu__date { display: inline-block; font-size: .78rem; background: var(--paper-2); padding: 3px 10px; border-radius: 999px; }
.edu__item h3 { margin: 12px 0 4px; font-weight: 900; font-size: 1.08rem; line-height: 1.35; }
.edu__item p { margin: 0; font-size: .92rem; }

/* Contacto */
.contact { padding: 56px 48px; text-align: center; overflow: visible; background: linear-gradient(var(--card), var(--card)) padding-box; }
.contact::before { content: ''; position: absolute; inset: 0; border-radius: 15px; background-image: radial-gradient(color-mix(in srgb, var(--sakura) 22%, transparent) 1.3px, transparent 1.3px); background-size: 14px 14px; mask-image: radial-gradient(circle at 100% 0%, #000, transparent 55%); pointer-events: none; }
.contact h2 { max-width: 20ch; margin-inline: auto; }
.contact__text { color: var(--ink-soft); max-width: 52ch; margin: 18px auto 0; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.cv-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.cv-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; text-decoration: none; border: 2.5px solid var(--line); border-radius: 16px; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.cv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cv-card__flag { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: .85rem; }
.cv-card small { display: block; font-size: .78rem; }
.contact__sfx { right: 26px; top: -26px; font-size: 1.9rem; color: var(--mint); }

/* Footer */
.footer { margin-top: 110px; border-top: 2.5px solid var(--line); padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top { text-decoration: none; font-weight: 700; }
.to-top:hover { color: var(--sakura); }

/* Cambio de idioma */
[data-i18n], [data-i18n-html] { transition: opacity .18s; }
html.switching [data-i18n], html.switching [data-i18n-html] { opacity: 0; }

/* Estado inicial para animar (solo si GSAP cargó) */
html.anim [data-anim], html.anim .hero__title .word, html.anim .hero__jp { visibility: hidden; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; gap: 48px; }
  .hero__panel { transform: none; max-width: 520px; }
  .feature { grid-template-columns: 1fr; padding: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__kanji { font-size: 7rem; opacity: .7; }
}
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 4px;
    padding: 14px 20px 20px; background: var(--paper); border-bottom: 2.5px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav.menu-open { background: var(--paper); border-bottom-color: var(--line); }
  .projects, .skills, .edu { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat__n { font-size: 1.6rem; }
  .contact { padding: 44px 22px; }
  .panel__sfx { right: 6px; }
  .lang__btn { padding: 6px 9px; }
  .speedlines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .status__dot, .caret, .live-chip .pill__dot { animation: none !important; }
  .cursor-dot { display: none; }
}
