/* ============================================================
   Félix Jiménez González — Portfolio
   ============================================================ */

:root {
  --accent: #ff5e5b;        /* coral */
  --accent-2: #6c63ff;      /* violet */
  --accent-3: #ffb830;      /* amber */
  --ink: #23213a;
  --text: #33314f;
  --muted: #8a87a8;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f3effe;
  --line: #e6e2d9;
  --shadow: 0 12px 32px rgba(35, 33, 58, 0.09);
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

[data-theme="dark"] {
  --ink: #f0eefb;
  --text: #c9c6e2;
  --muted: #8a87a8;
  --bg: #171528;
  --surface: #23203a;
  --surface-alt: #1d1a31;
  --line: #322e4e;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: clip;
}

/* ---------- Language switching ---------- */
[data-lang="es"] .en { display: none !important; }
[data-lang="en"] .es { display: none !important; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 97%, var(--ink));
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.nav__logo em { color: var(--accent); font-style: normal; }
.logo-mark { width: 32px; height: 32px; color: var(--ink); }

.nav__links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: nowrap;
}
.nav__links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle__opt.active { color: var(--accent); }
.lang-toggle__sep { opacity: 0.5; margin-inline: 0.15rem; }

.theme-toggle {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vh, 6rem);
  background:
    radial-gradient(ellipse 60% 50% at 85% 8%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 8% 90%, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.hero__hello {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.hero__name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.hero__role {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero__role em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn__icon { width: 18px; height: 18px; }

.hero__stats {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; font-size: 0.86rem; color: var(--muted); }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
}

/* Hero illustration */
.hero__art { position: relative; }
.illus { width: 100%; height: auto; }
.illus--hero { max-width: 480px; margin-inline: auto; display: block; }

.mono-text {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 20px;
  fill: var(--bg);
  font-weight: 600;
}

.flight-path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: 0.8;
}

.blob { fill: var(--accent-3); opacity: 0.65; }
.blob.b2 { fill: var(--accent); }
.blob.b3 { fill: var(--accent-2); }

.envelope-main { animation: floaty 5s ease-in-out infinite; transform-origin: center; }
.float-tag { animation: floaty 6s ease-in-out infinite reverse; }
.float-palette { animation: floaty 4.5s ease-in-out 0.8s infinite; }
.paper-plane { animation: floaty 3.8s ease-in-out 0.4s infinite; }
.sparkle { animation: spin-slow 9s linear infinite; transform-origin: 100px 267px; }
.blob { animation: floaty 7s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-main, .float-tag, .float-palette, .paper-plane, .sparkle, .blob,
  .marquee__track, .steam { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Marquee */
.hero__marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 0.7rem;
  background: var(--surface);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section { padding-block: clamp(4rem, 9vh, 6.5rem); }
.section--alt { background: var(--surface-alt); }

.section__head { text-align: center; margin-bottom: 3.2rem; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
.illus--divider { width: 130px; margin-top: 1.1rem; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Sobre mí ---- */
.section__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.section__art .illus { max-width: 320px; display: block; margin-inline: auto; }
.section__body .eyebrow { text-align: left; }
.section__body .section__title { margin-bottom: 1.2rem; }

.prose p { margin-bottom: 1.1rem; font-size: 1.02rem; }
.prose__highlight {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.12rem !important;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-3px); }
}

/* ---- Timeline ---- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 2.5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--muted) 0 4px,
    transparent 4px 12px
  );
  opacity: 0.55;
}

.timeline__item {
  position: relative;
  padding-left: 76px;
  margin-bottom: 2.4rem;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.timeline__marker svg { width: 28px; height: 28px; }

.timeline__card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.timeline__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.timeline__date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}
.badge--current {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.timeline__card h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.timeline__company {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.timeline__desc { font-size: 0.97rem; margin-bottom: 0.9rem; }

.timeline__bullets {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
}
.timeline__bullets li {
  position: relative;
  padding-left: 1.4rem;
}
.timeline__bullets li::before {
  content: "✳";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 0.15rem;
}
.timeline__bullets strong { color: var(--ink); }

/* ---- Skills ---- */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.skill-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.skill-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.skill-card__icon svg { width: 32px; height: 32px; }
.skill-card h3 { font-size: 1.12rem; margin-bottom: 0.8rem; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ---- Educación ---- */
.edu-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}
.edu-col__title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 1.3rem;
}
.edu-list { list-style: none; display: grid; gap: 1.35rem; }
.edu-list li {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}
.edu-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.02rem;
}
.edu-list li > span { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.edu-list p { font-size: 0.9rem; margin-top: 0.35rem; }

.cert-list { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 2.2rem; }
.cert-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
}
.cert-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-3) 18%, transparent);
  color: var(--accent-3);
  display: grid;
  place-items: center;
}
.cert-badge svg { width: 22px; height: 22px; }
.cert-list strong { display: block; font-size: 0.93rem; color: var(--ink); line-height: 1.35; }
.cert-list em { font-style: normal; font-size: 0.82rem; color: var(--muted); }

.chips--lang li { font-size: 0.9rem; padding: 0.45rem 0.95rem; }

/* ---- Quotes ---- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.quote {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease;
}
.quote:hover { transform: translateY(-3px); }
.quote::before {
  content: "“";
  position: absolute;
  top: 1.4rem;
  left: 1.8rem;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.7;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote blockquote {
  font-size: 0.98rem;
  margin: 2.6rem 0 1.2rem;
  font-style: italic;
}
.quote figcaption strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.98rem;
}
.quote figcaption span { font-size: 0.84rem; color: var(--muted); }

/* ---- Contacto ---- */
.section--contact {
  background:
    radial-gradient(ellipse 55% 60% at 50% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent);
  text-align: center;
}
.contact { max-width: 640px; }
.illus--contact { max-width: 260px; margin-bottom: 0.5rem; }
.contact__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1rem; }
.contact__sub { margin-bottom: 2rem; font-size: 1.03rem; }
.contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.contact__location { color: var(--muted); font-size: 0.94rem; }

/* ---- Portfolio ---- */
.section__lead {
  max-width: 42rem;
  margin: 0.8rem auto 0;
  color: var(--text);
  font-size: 1rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.gallery-tab:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gallery-tab.active {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.gallery-tab__count {
  font-size: 0.74rem;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: inherit;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
.gallery-tab.active .gallery-tab__count { background: rgba(255, 255, 255, 0.25); }

.gallery-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
}
/* Banners: columnas del ancho exacto del formato 300x250, sin estirar */
.gallery-grid--banners {
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: center;
}
/* Mailings impresos: las tres piezas una junto a otra */
.gallery-grid--print { grid-template-columns: repeat(3, 1fr); }

/* Work card */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
  box-shadow: 0 18px 40px rgba(35, 33, 58, 0.14);
}
.work-card--wide { grid-column: 1 / -1; }

/* Banner cover (live iframe / gif) centered on a soft backdrop */
.work-card__frame {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  background:
    repeating-conic-gradient(var(--surface-alt) 0% 25%, transparent 0% 50%) 50% / 22px 22px;
  overflow: hidden;
  max-height: 260px;
}
.work-card__iframe { border: 0; transform-origin: center; pointer-events: none; }
.work-card__cover { display: block; height: auto; }

/* Image thumbnail (newsletters, print, nh) */
.work-card__thumb {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--surface-alt);
}
.work-card--wide .work-card__thumb { height: 200px; }
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.work-card:hover .work-card__thumb img { transform: scale(1.04); }

.work-card__tag {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.work-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
}
.work-card__zoom { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.work-card:hover .work-card__zoom { opacity: 1; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.lightbox.open { display: flex; }

.lightbox__stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  padding: 0.5rem;
}

/* Imagen a tamaño real en desktop; se adapta al ancho cuando el dispositivo es más estrecho */
.lb-image { max-width: 100%; min-width: 0; }
.lb-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Banner board — todos los formatos en la misma pantalla, sin scroll lateral */
.banner-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0.5rem;
}
/* Fila superior: 160x600, 300x250, 300x600 (envuelven si no caben) */
.banner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
}
/* Formatos horizontales: uno debajo del otro */
.banner-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
}
.banner-cell { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.banner-cell__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.banner-cell__fit {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.banner-cell__box { transform-origin: top left; }
.banner-cell__box iframe,
.banner-cell__box img { display: block; border: 0; }

.lightbox__caption {
  flex-shrink: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  padding-top: 1rem;
  line-height: 1.5;
}
.lightbox__caption strong { font-family: var(--font-display); }
.lightbox__counter { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; margin-top: 0.2rem; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
.lightbox__close { top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
  .work-card__thumb { height: 220px; }
}

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__note { font-style: italic; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .hero__cta, .hero__stats { margin-inline: auto; justify-content: center; }
  .hero__art { order: -1; }
  .illus--hero { max-width: 340px; }
  .section__grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 1150px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4%;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 0.75rem 0.3rem; border-bottom: none; }
}

@media (max-width: 720px) {
  .skills { grid-template-columns: 1fr; }
  .gallery-grid--print { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline__item { padding-left: 62px; }
  .timeline__marker { width: 42px; height: 42px; }
  .timeline__marker svg { width: 24px; height: 24px; }
}
