/* ==========================================================
   Michael T. — Portafolio · estilos de la página principal
   (la página del Corán usa css/styles.css)
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0b0814;
  --ink-2: #120e20;
  --ink-3: #1b1530;
  --line: rgba(214, 206, 255, 0.12);
  --text: #f3f0ff;
  --muted: #a9a2c7;          /* 7.6:1 sobre --ink */
  --pink: #ff4d8d;
  --violet: #8b6cff;
  --yellow: #ffc83d;
  --mint: #3dffc5;
  --radius: 22px;
  --display: "Segoe UI Black", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --arabic: "Traditional Arabic", "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}
main, footer { overflow-x: clip; }

/* Idioma: se muestra solo el texto del idioma activo */
html[data-lang="en"] [data-l="es"],
html[data-lang="es"] [data-l="en"] { display: none !important; }

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--yellow); color: #000; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ── Fondo: auroras + grano ─────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: var(--pink); top: 30%; right: -180px; animation-delay: -6s; opacity: .38; }
.blob.b3 { width: 380px; height: 380px; background: #1f6bff; bottom: -160px; left: 25%; animation-delay: -12s; opacity: .3; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: -1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,108,255,.16) 0%, transparent 65%);
  left: 50%; top: 30%;
}

/* ── Navegación ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px)); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(18, 14, 32, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo {
  font-family: var(--display); font-size: 20px; letter-spacing: -.02em;
  text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 2px;
}
.logo .star { color: var(--pink); display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a small { font-size: 10px; color: var(--pink); font-family: var(--serif); font-style: italic; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang button {
  font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--muted);
  background: none; border: 0; padding: 8px 11px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--ink); cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: #0b0814;
  display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px; text-decoration: none;
  font-family: var(--display); font-size: clamp(34px, 10vw, 52px); line-height: 1.25; color: var(--text);
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a small { font: italic 16px var(--serif); color: var(--pink); }
.mobile-menu .lang { align-self: flex-start; margin-top: 28px; }

/* ── Secciones ──────────────────────────────────────────── */
main { position: relative; }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 110px 0 60px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.sec-title {
  font-family: var(--display); font-size: clamp(40px, 7vw, 84px); line-height: .95; letter-spacing: -.035em;
  margin-bottom: 40px;
}
.sec-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pink); letter-spacing: -.02em; }
.sec-num {
  font: italic 400 clamp(18px, 2vw, 22px) var(--serif); color: var(--muted); vertical-align: top; margin-left: 6px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding-top: 140px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }

.hello {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04);
  font-size: 14px; color: var(--muted); margin-bottom: 26px;
}
.hello .flag {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; font-size: 13px;
}

.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(64px, 12vw, 158px); line-height: .84; letter-spacing: -.055em;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--yellow) 0%, var(--pink) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate;
}
.hero h1 .outline {
  color: transparent; -webkit-text-stroke: 2px var(--text);
}
@keyframes shimmer { to { background-position: 100% 0; } }

.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.role {
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ink-2);
}
.role.r1 { color: var(--mint); }
.role.r2 { color: var(--yellow); }
.role.r3 { color: var(--pink); }

.hero-desc { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-desc strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  --bg: var(--text); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 6px 6px 0 var(--pink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { --bg: transparent; --fg: var(--text); border-color: var(--line); }
.btn.ghost:hover { box-shadow: 6px 6px 0 var(--violet); background: rgba(255,255,255,.05); }

/* Retrato con aro giratorio */
.portrait { position: relative; justify-self: center; width: min(400px, 100%); }
.portrait-btn {
  display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 220px 220px 28px 28px; position: relative;
}
.portrait-frame, .portrait-frame picture { display: block; width: 100%; height: 100%; }
.portrait-frame {
  position: relative; border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 18px 18px 0 var(--violet), 18px 18px 0 2px rgba(255,255,255,.15);
  transform: rotate(2deg); transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  background: var(--ink-3);
}
.portrait-btn:hover .portrait-frame { transform: rotate(-1.5deg) scale(1.02); box-shadow: -14px 18px 0 var(--pink), -14px 18px 0 2px rgba(255,255,255,.15); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,8,20,.55));
}
.ring {
  position: absolute; width: 150px; height: 150px; left: -54px; bottom: 40px; z-index: 3;
  animation: spin 18s linear infinite; pointer-events: none;
}
.ring text { font: 800 11.5px var(--sans); letter-spacing: .22em; fill: var(--text); text-transform: uppercase; }
.ring-core {
  position: absolute; left: -54px; bottom: 40px; width: 150px; height: 150px; z-index: 3;
  display: grid; place-items: center; pointer-events: none;
}
.ring-core span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 24px; font-weight: 900;
  box-shadow: 0 0 0 6px var(--ink);
}
.sticker {
  position: absolute; right: -14px; top: 34px; z-index: 3;
  background: var(--pink); color: #fff; font: 800 13px/1.2 var(--sans); letter-spacing: .04em;
  padding: 10px 14px; border-radius: 14px; transform: rotate(8deg);
  box-shadow: 4px 4px 0 var(--ink), 4px 4px 0 1px rgba(255,255,255,.2);
}
.portrait-hint { margin-top: 30px; text-align: center; font: italic 14px var(--serif); color: var(--muted); }

/* ── Cinta (marquee) ────────────────────────────────────── */
.ticker {
  overflow: hidden; border-block: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink);
  transform: rotate(-2deg) scale(1.04); margin: 30px 0 10px;
}
.ticker-track {
  display: flex; width: max-content; gap: 0; animation: marquee 32s linear infinite;
  font-family: var(--display); font-size: clamp(22px, 3.2vw, 36px); text-transform: uppercase; letter-spacing: -.01em;
  padding: 14px 0;
}
.ticker-track span { padding: 0 22px; white-space: nowrap; }
.ticker-track .sep { color: var(--pink); padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Proyecto principal (Corán) ─────────────────────────── */
.featured {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(circle at 85% 30%, rgba(61,255,197,.20), transparent 55%),
    linear-gradient(140deg, #0f2a24 0%, #0d1420 55%, #150f26 100%);
  border: 1px solid rgba(61,255,197,.25);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.featured:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(61,255,197,.35); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); background: rgba(61,255,197,.1); border: 1px solid rgba(61,255,197,.3);
  padding: 8px 12px; border-radius: 999px; margin-bottom: 20px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61,255,197,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,255,197,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,197,0); } }
.featured h3 { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: -.035em; margin-bottom: 16px; }
.featured h3 em { font-family: var(--serif); font-weight: 400; color: var(--mint); }
.featured p { color: #b9c9c4; font-size: 17px; max-width: 460px; margin-bottom: 26px; }
.featured .go {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink);
  background: var(--mint); padding: 14px 22px; border-radius: 999px; min-height: 48px;
}
.featured .go .arr { transition: transform .25s; }
.featured:hover .go .arr { transform: translateX(5px); }
.arabic {
  font-family: var(--arabic); direction: rtl; text-align: center;
  font-size: clamp(44px, 7vw, 92px); line-height: 1.5; color: #e9fff8;
  text-shadow: 0 0 40px rgba(61,255,197,.45);
}
.arabic small { display: block; font: italic 15px var(--serif); color: #8fb3a9; direction: ltr; text-shadow: none; margin-top: 6px; }

/* ── Proyectos (bento) ──────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 16px; }
.card {
  --accent: var(--violet);
  position: relative; grid-column: span 3; min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 28px; border-radius: var(--radius); text-decoration: none; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .25s, background .25s;
}
.card::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; top: -110px; background: var(--accent); opacity: .18; filter: blur(30px);
  transition: opacity .3s, transform .5s;
}
.card:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--accent); background: var(--ink-3); }
.card:hover::before { opacity: .38; transform: scale(1.2); }
.card.c1 { --accent: var(--mint); grid-column: span 4; }
.card.c2 { --accent: var(--yellow); grid-column: span 2; }
.card.c3 { --accent: var(--pink); grid-column: span 2; }
.card.c4 { --accent: var(--violet); grid-column: span 4; }
.card.c5 { --accent: #4da3ff; grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; }
.card-num { font: italic 400 15px var(--serif); color: var(--muted); }
.card-type {
  font: 800 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid currentColor; padding: 6px 10px; border-radius: 999px; text-align: right;
}
.card-name { position: relative; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -.03em; }
.card-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.card-arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); font-size: 20px;
  transition: background .25s, color .25s, transform .35s;
}
.card:hover .card-arrow { background: var(--accent); color: var(--ink); transform: rotate(-45deg); border-color: transparent; }
.card.c5 .card-name { font-size: clamp(22px, 2.6vw, 30px); }
.card.c5 .left { display: flex; flex-direction: column; gap: 10px; position: relative; }

.bento .featured { grid-column: 1 / -1; }
.card-sub { position: relative; color: var(--muted); font-size: 15px; }

/* ── Proyectos actuales (Maison Lux + Cosmos) ───────────── */
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.show {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
}
.show:hover { transform: translateY(-6px) rotate(-.4deg); }
.show-media, .cc-stage { display: block; aspect-ratio: 1200 / 630; overflow: hidden; position: relative; }
.show-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.show:hover .show-media img { transform: scale(1.06); }
.show-body { position: relative; padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.show-body h3 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.035em; }
.show-body p { color: var(--muted); font-size: 16px; max-width: 520px; }
.show-link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.show-link .arr { transition: transform .25s; }
.show:hover .show-link .arr { transform: translate(3px, -3px); }
.show .badge { align-self: flex-start; margin-bottom: 4px; }

/* Maison Lux: negro y dorado */
.show-mll { background: linear-gradient(180deg, #0f1620, #0b0f16); border-color: rgba(201,162,92,.35); }
.show-mll:hover { box-shadow: 0 30px 60px -24px rgba(201,162,92,.45); border-color: rgba(201,162,92,.7); }
.show-mll h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px);
  background: linear-gradient(90deg, #a77c35, #e2c27d, #b98d43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.show-mll .show-link { color: #e2c27d; }
.badge.gold { color: #e2c27d; background: rgba(201,162,92,.1); border-color: rgba(201,162,92,.4); }
.badge.gold .dot { background: #e2c27d; }

/* Cosmos Cleaning: espacio con destellos */
.show-cc { border-color: rgba(77,163,255,.3); }
.show-cc:hover { box-shadow: 0 30px 60px -24px rgba(77,163,255,.5); border-color: rgba(77,163,255,.7); }
.cc-stage {
  display: grid; place-items: center; padding: 0 12%;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 78% 18%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 30% 78%, #fff 99%, transparent), radial-gradient(1px 1px at 88% 70%, #fff 99%, transparent),
    radial-gradient(1px 1px at 55% 12%, #cfe4ff 99%, transparent), radial-gradient(1.5px 1.5px at 6% 60%, #cfe4ff 99%, transparent),
    radial-gradient(1px 1px at 66% 88%, #fff 99%, transparent), radial-gradient(1px 1px at 42% 40%, #cfe4ff 99%, transparent),
    radial-gradient(ellipse at 50% 120%, rgba(77,163,255,.45), transparent 60%),
    radial-gradient(ellipse at 10% -10%, rgba(139,108,255,.35), transparent 55%),
    #05070f;
}
.cc-stage img { width: 100%; height: auto; position: relative; filter: drop-shadow(0 0 8px rgba(120,180,255,.25)); transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
.show-cc:hover .cc-stage img { transform: scale(1.05); }
.spark { position: absolute; color: #fff; text-shadow: 0 0 10px #8fc3ff; animation: twinkle 2.6s ease-in-out infinite; }
.spark.s1 { top: 14%; left: 10%; font-size: 18px; }
.spark.s2 { top: 20%; right: 12%; font-size: 12px; animation-delay: -.8s; }
.spark.s3 { bottom: 16%; left: 22%; font-size: 11px; animation-delay: -1.6s; }
.spark.s4 { bottom: 12%; right: 18%; font-size: 20px; animation-delay: -2.1s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.badge.blue { color: #8fc3ff; background: rgba(77,163,255,.1); border-color: rgba(77,163,255,.35); }
.badge.blue .dot { background: #8fc3ff; }
.show-cc .show-link { color: #8fc3ff; }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; }
}

.role.r4 { color: var(--violet); }

/* ── Experiencia ────────────────────────────────────────── */
.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before {
  content: ""; position: absolute; left: 132px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--yellow), var(--pink), var(--violet));
  opacity: .5;
}
.tl { display: grid; grid-template-columns: 112px 1fr; gap: 42px; align-items: start; position: relative; }
.tl::before {
  content: ""; position: absolute; left: 126px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--ink);
}
.tl:nth-child(2)::before { border-color: var(--pink); }
.tl:nth-child(3)::before { border-color: var(--mint); }
.tl:nth-child(4)::before { border-color: var(--violet); }
.tl-when {
  padding-top: 18px; text-align: right; font: italic 16px var(--serif); color: var(--muted); white-space: nowrap;
}
.tl-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  transition: border-color .25s, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.tl-card:hover { border-color: rgba(255,200,61,.4); transform: translateX(6px); }
.tl-card h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }
.tl-at { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pink); letter-spacing: 0; }
.tl-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tl-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.tl-card li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--yellow); }

.skills-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips > span {
  font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--text);
}
.langs { display: flex; flex-direction: column; gap: 16px; }
.lang-row { display: grid; grid-template-columns: 84px 1fr 96px; align-items: center; gap: 14px; }
.lang-row b { font-weight: 700; }
.lang-row small { color: var(--muted); font-size: 14px; text-align: right; }
.bar { height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.bar i.w100 { width: 100%; } .bar i.w60 { width: 60%; } .bar i.w30 { width: 30%; }
.exp-cta { margin-top: 36px; }

@media (max-width: 700px) {
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .tl::before { left: 1px; top: 4px; }
  .tl-when { text-align: left; padding-top: 0; }
  .skills-wrap { grid-template-columns: 1fr; }
}

/* ── Sobre mí ───────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.about-avatar {
  width: 130px; height: 130px; border-radius: 50%; overflow: hidden; border: 3px solid var(--yellow);
  box-shadow: 8px 8px 0 var(--pink);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fact {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line); font-size: 15px;
}
.fact b { font-family: var(--display); font-size: 22px; color: var(--yellow); font-weight: 900; min-width: 44px; }
.about-text { font-size: clamp(19px, 2vw, 24px); line-height: 1.6; color: var(--muted); }
.about-text p + p { margin-top: 1.1em; }
.about-text strong { color: var(--text); font-weight: 700; }
.about-text .hl {
  color: var(--ink); background: var(--yellow); padding: 0 .3em; border-radius: 6px; font-weight: 700;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.about-text .hl.pink { background: var(--pink); color: #fff; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ── Contacto ───────────────────────────────────────────── */
.contact-box {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px;
  padding: clamp(26px, 5vw, 56px); border-radius: 32px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.contact-box::before {
  content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -200px; border-radius: 50%;
  background: var(--pink); opacity: .16; filter: blur(60px);
}
.contact-copy { position: relative; }
.contact-copy h2 { font-family: var(--display); font-size: clamp(42px, 6vw, 74px); line-height: .92; letter-spacing: -.04em; margin-bottom: 20px; }
.contact-copy h2 em { font-family: var(--serif); font-weight: 400; color: var(--yellow); }
.contact-copy p { color: var(--muted); font-size: 17px; }

.form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.field label .req { color: var(--pink); }
.field input, .field textarea {
  font: 16px var(--sans); color: var(--text); background: rgba(11,8,20,.7);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 50px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6890; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,108,255,.2); }
.form .btn { align-self: flex-start; --bg: var(--pink); --fg: #fff; border: 0; }
.form .btn:hover { box-shadow: 6px 6px 0 var(--yellow); }
.form-note { font-size: 13px; color: var(--muted); }

/* ── Pie ────────────────────────────────────────────────── */
footer { padding: 70px 0 40px; overflow: hidden; }
.big-sign {
  font-family: var(--display); font-size: clamp(60px, 15vw, 210px); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(214,206,255,.25); white-space: nowrap; text-align: center;
  user-select: none;
}
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.foot-row a { color: var(--muted); }
.foot-row a:hover { color: var(--text); }

/* ── Tarjeta que gira (al pulsar la foto) ───────────────── */
.flip-overlay {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  background: rgba(5, 3, 12, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px;
}
.flip-overlay.open { display: flex; }
.flip { width: min(320px, 80vw); aspect-ratio: 4 / 5; perspective: 1200px; cursor: pointer; border: 0; background: none; padding: 0; }
.flip-inner, .flip-front .cap { display: block; }
.flip-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.34,1.3,.64,1); transform: rotateY(180deg) scale(.3);
}
.flip-overlay.show .flip-inner { transform: rotateY(0) scale(1); }
.flip-face { display: block; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; overflow: hidden; }
.flip-front { border: 3px solid var(--yellow); box-shadow: 14px 14px 0 var(--pink); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-front .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; text-align: left;
  background: linear-gradient(transparent, rgba(11,8,20,.9)); color: #fff;
  font-family: var(--display); font-size: 26px; letter-spacing: -.02em;
}
.flip-back { transform: rotateY(180deg); background: linear-gradient(135deg, var(--violet), var(--pink)); }
.flip-hint { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font: italic 14px var(--serif); }

/* ── Aparición al hacer scroll (solo si hay JS) ─────────── */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .portrait { width: min(340px, 82%); }
  .featured { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .about-avatar { width: 96px; height: 96px; }
  .contact-box { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-right .lang { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.c1, .card.c2, .card.c3, .card.c4, .card.c5 { grid-column: auto; min-height: 210px; }
  .card.c5 { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  section { padding: 84px 0 40px; }
  .hero { padding-top: 120px; }
  .form-row { grid-template-columns: 1fr; }
  .ring, .ring-core { width: 116px; height: 116px; left: -26px; bottom: 26px; }
  .ring-core span { width: 46px; height: 46px; font-size: 19px; }
  .sticker { right: -6px; }
  .portrait-frame { box-shadow: 10px 10px 0 var(--violet); }
  .btn { width: 100%; justify-content: center; }
  .form .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
