/* Laura Fernández — Portfolio 2026
   Tipo A (Geist) · accent #7C3AED · dark editorial
*/

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #1B1B1F;
  --ink: #F4F4F5;
  --ink-dim: #8A8A93;
  --ink-mute: #5A5A63;
  --accent: #00D9A3;
  --accent-hover: #00FFc2;
  --accent-ink: #0A0A0B;
  --line: #23232A;
  --line-bright: #33333D;

  --f-sans: 'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
  --f-display: 'Geist', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-0: 0px;
  --r-1: 4px;
  --r-2: 8px;
  --r-pill: 999px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;

  --max: 1320px;
  --pad: 24px;
}

@media (min-width:1024px) {
  :root {
    --pad: 40px
  }
}

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

html {
  scroll-behavior: smooth
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility
}

body {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden
}

a {
  color: inherit;
  text-decoration: none
}

img,
svg,
video {
  display: block;
  max-width: 100%
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

::selection {
  background: var(--accent);
  color: #fff
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad)
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-5);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill);
  background: rgba(124, 58, 237, 0.04)
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: var(--r-pill);
  flex-shrink: 0
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  padding-top: var(--s-5);
  padding-bottom: var(--s-5)
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
  white-space: nowrap;
  color: var(--ink);
  z-index: 71;
  position: relative
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: var(--r-pill);
  display: inline-block;
  flex-shrink: 0;
  align-self: center
}

.brand-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: var(--s-2);
  font-weight: 400;
  white-space: nowrap
}

@media (max-width:960px) {
  .brand-tag {
    display: none
  }
}

.nav-links {
  display: flex;
  gap: var(--s-7);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0
}

.nav-links a {
  transition: color .15s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap
}

.nav-links a:hover {
  color: var(--ink)
}

.nav-links a.active {
  color: var(--ink)
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent)
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color .2s ease;
  z-index: 71;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: none
}

.nav-toggle:focus {
  outline: none
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

@media (hover:hover) {
  .nav-toggle:hover {
    border-color: var(--accent)
  }
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent)
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
  border-radius: 1px;
  transform: none
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
  background: var(--accent)
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
  background: var(--accent)
}

/* Mobile menu */
@media (max-width:720px) {
  .nav-toggle {
    display: inline-flex
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--s-6);
    padding: var(--s-11) var(--s-7) var(--s-9);
    background: #0A0A0B;
    /* keep desktop styling: mono uppercase small */
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink-dim);
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    z-index: 70;
  }

  .nav-links a {
    padding: 6px 0;
    color: var(--ink-dim);
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-family: inherit;
    font-weight: inherit;
  }

  .nav-links a.active {
    color: var(--ink)
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    display: block
  }

  .nav-links a:hover {
    color: var(--ink)
  }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
  }

  body.nav-open {
    overflow: hidden
  }
}

@media (max-width:540px) {
  .nav-links {
    gap: var(--s-5)
  }
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease
}

.btn:hover .arrow {
  transform: translate(3px, -3px)
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill)
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px)
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill)
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.04)
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  letter-spacing: 0;
  gap: 6px
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent)
}

/* ─── SECTION DEFAULTS ────────────────────────────────── */
section {
  padding: 160px 0;
  position: relative
}

@media (max-width:720px) {
  section {
    padding: var(--s-10) 0
  }
}

.sec-divider {
  height: 1px;
  background: var(--line);
  width: 100%
}

.sec-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 18ch
}

.sec-lead {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 60ch;
  line-height: 1.55;
  margin-top: var(--s-5)
}

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-7);
  margin-bottom: var(--s-6);
  flex-wrap: wrap
}

.sec-header .right {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right
}

.sec-header .right b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px
}

/* ─── HERO (typewriter) ───────────────────────────────── */
.hero {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-8) 0 var(--s-9);
  position: relative
}

.hero .wrap {
  width: 100%
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  gap: var(--s-3)
}

.hero-title .hello {
  font-size: clamp(56px, 11vw, 176px);
  color: var(--ink);
  line-height: 0.9
}

.hero-title .line {
  font-size: clamp(28px, 8vw, 112px);
  display: block;
  color: var(--ink);
  line-height: 0.95
}

.hero-title .prefix {
  color: var(--ink)
}

.hero-title .typer-wrap {
  display: inline-block;
  vertical-align: baseline
}

.hero-title .typer {
  color: var(--accent);
  white-space: nowrap;
  display: inline
}

.hero-title .cursor {
  display: inline-block;
  width: 0.08em;
  background: var(--accent);
  height: 0.75em;
  margin-left: 0.06em;
  vertical-align: baseline;
  animation: blink 1.1s ease-in-out infinite
}

@keyframes blink {

  0%,
  40% {
    opacity: 1
  }

  60%,
  100% {
    opacity: 0
  }
}

.hero-tagline {
  margin-top: var(--s-8);
  font-family: var(--f-sans);
  font-size: clamp(18px, 2vw, 28px);
  color: var(--ink-dim);
  letter-spacing: -0.01em;
  font-weight: 400
}

.hero-tagline em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink)
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none
}

.hero-scroll-track {
  width: 1px;
  height: 36px;
  background: var(--line-bright);
  position: relative;
  overflow: hidden
}

.hero-scroll-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite
}

@keyframes scrollLine {
  0% {
    transform: translateY(-24px)
  }

  100% {
    transform: translateY(36px)
  }
}

/* ─── REEL / VIDEO placeholder ───────────────────────── */
.reel {
  padding: 0 0 var(--s-10)
}

.reel-frame {
  position: relative;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #1B1B1F 0%, #0F0F12 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease
}

.reel-frame:hover {
  border-color: var(--accent)
}

.reel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255, 255, 255, 0.02) 18px, rgba(255, 255, 255, 0.02) 19px);
  pointer-events: none
}

.reel-meta {
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2
}

.reel-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  z-index: 2
}

.reel-play {
  width: 96px;
  height: 96px;
  border-radius: var(--r-pill);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
  color: #fff
}

.reel-frame:hover .reel-play {
  transform: scale(1.08);
  background: var(--accent-hover)
}

.reel-cta-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em
}

.reel-cta-label b {
  color: var(--ink);
  font-weight: 500;
  margin-right: 8px
}

/* ─── PROJECT ROWS (long-form) ────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-11)
}

@media (max-width:899px) {
  .projects-list {
    gap: var(--s-10)
  }
}

.prow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  text-decoration: none;
  color: inherit
}

@media (min-width:900px) {
  .prow {
    grid-template-columns: 6fr 6fr;
    gap: var(--s-9)
  }
}

.prow.reverse .prow-text {
  order: 1
}

.prow.reverse .prow-visual {
  order: 0
}

.prow-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-4);
  color: var(--ink);
  text-wrap: balance
}

.prow-desc {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 48ch;
  margin-bottom: var(--s-6)
}

.prow-cta {
  margin-top: 0
}

.prow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  padding: var(--s-7) 0
}

.prow-visual .parallax {
  will-change: transform;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%
}

.prow-img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.18))
}

.phone-img {
  max-height: 540px;
  width: auto
}

.laptop-img {
  width: min(1100px, calc(100% + 320px));
  max-width: none;
  height: auto
}

.suchard-img {
  width: min(760px, calc(100% + 180px));
  max-width: none;
  height: auto;
  filter: drop-shadow(0 36px 64px rgba(138, 22, 34, 0.35))
}

.prow-visual--wide {
  overflow: visible
}

.prow-visual--wide .parallax {
  justify-content: flex-end;
  width: auto;
  padding-right: var(--s-9)
}

@media (max-width:899px) {
  .prow {
    gap: var(--s-5);
    grid-template-columns: minmax(0, 1fr)
  }

  .prow>* {
    min-width: 0
  }

  .prow .prow-text {
    order: 1
  }

  .prow .prow-visual {
    order: 0;
    min-height: auto;
    padding: var(--s-3) 0;
    overflow: visible
  }

  .phone-img {
    max-height: 380px
  }

  .laptop-img {
    max-height: 300px;
    width: auto;
    max-width: none
  }

  .suchard-img {
    max-height: 340px;
    width: auto;
    max-width: none
  }

  .prow-visual--wide {
    justify-content: flex-end;
    overflow: visible
  }

  .prow-visual--wide .parallax {
    justify-content: flex-end;
    width: auto;
    padding: 0;
    margin: 0
  }

  .parallax {
    transform: none !important
  }
}

/* ─── DEVICES (CSS-only stylized mocks) ──────────────── */
.device-phone {
  width: 240px;
  height: 480px;
  background: #0A0A0B;
  border: 6px solid #1B1B1F;
  border-radius: 42px;
  box-shadow: 0 30px 80px -20px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative
}

.device-phone::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 99px;
  z-index: 3
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 16px
}

/* BBVA phone mock */
.bbva-screen {
  background: #072146
}

.bbva-logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.04em;
  margin-top: 8px
}

.bbva-rocket {
  width: 120px;
  height: 160px;
  margin: 32px auto 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  position: relative;
  overflow: hidden
}

.bbva-rocket::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  width: 36px;
  height: 64px;
  background: #5BB1E8;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 -4px 0 #fff inset
}

.bbva-rocket::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #fff;
  border-radius: 99px;
  opacity: 0.6
}

.bbva-headline {
  font-family: var(--f-display);
  font-weight: 800;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-bottom: 12px
}

/* ECI phone mock */
.eci-screen {
  background: #F6F4F0;
  color: #0A0A0B
}

.eci-brand {
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-size: 11px;
  color: #0E5132;
  text-align: center;
  letter-spacing: -0.01em;
  margin-top: 6px;
  font-weight: 700
}

.eci-hero {
  margin-top: 14px;
  background: linear-gradient(180deg, #c79a73 0%, #a87752 100%);
  border-radius: 8px;
  padding: 18px 14px 16px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0
}

.eci-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2)
}

.eci-cta {
  align-self: flex-start;
  background: #fff;
  color: #0A0A0B;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 99px;
  letter-spacing: -0.01em;
  margin-top: auto
}

.eci-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px
}

.eci-grid span {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05)
}

/* Olympics laptop + phone */
.device-laptop {
  width: 380px;
  max-width: 100%;
  position: relative
}

.laptop-screen {
  aspect-ratio: 16/10;
  background: #0A0A0B;
  border: 8px solid #1B1B1F;
  border-radius: 12px 12px 4px 4px;
  border-bottom: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06)
}

.laptop-base {
  height: 14px;
  background: #1B1B1F;
  border-radius: 0 0 18px 18px;
  margin: 0 -12px;
  position: relative
}

.laptop-base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #0A0A0B;
  border-radius: 0 0 8px 8px
}

.oly-screen {
  background: linear-gradient(135deg, #B22A55 0%, #6D1845 50%, #4A1D6B 100%)
}

.oly-rings {
  width: 70px;
  height: 24px;
  border-radius: 99px;
  background: radial-gradient(circle at 18% 50%, transparent 8px, #fff 8px, #fff 10px, transparent 10px), radial-gradient(circle at 50% 50%, transparent 8px, #fff 8px, #fff 10px, transparent 10px), radial-gradient(circle at 82% 50%, transparent 8px, #fff 8px, #fff 10px, transparent 10px)
}

.oly-rings.small {
  width: 42px;
  height: 14px;
  background: radial-gradient(circle at 18% 50%, transparent 5px, #fff 5px, #fff 7px, transparent 7px), radial-gradient(circle at 50% 50%, transparent 5px, #fff 5px, #fff 7px, transparent 7px), radial-gradient(circle at 82% 50%, transparent 5px, #fff 5px, #fff 7px, transparent 7px)
}

.oly-headline {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  align-self: flex-start;
  font-style: italic
}

.oly-bar {
  height: 6px;
  background: linear-gradient(90deg, #fff 0%, #fff 60%, rgba(255, 255, 255, 0.2) 60%);
  border-radius: 99px;
  align-self: stretch
}

.device-phone.overlap {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 160px;
  height: 320px;
  z-index: 2;
  box-shadow: 0 30px 80px -20px rgba(124, 58, 237, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.04)
}

.device-phone.overlap::before {
  width: 54px;
  height: 14px
}

.oly-phone {
  background: linear-gradient(160deg, #6D1845 0%, #4A1D6B 100%);
  padding: 24px 12px 12px
}

.oly-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-top: auto;
  padding: 0
}

/* ─── LANDING MOCK (Suchard home row — abstract, not a copy) ─ */
.landing-mock {
  width: min(540px, 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -24px rgba(138, 22, 34, 0.5);
  background: #5c0e16
}

.landing-mock .lm-bar {
  height: 30px;
  background: #360609;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px
}

.landing-mock .lm-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: block
}

.landing-mock .lm-hero {
  padding: 44px 30px;
  text-align: center;
  background: radial-gradient(120% 110% at 50% 0%, #9c1b29 0%, #5c0e16 100%)
}

.landing-mock .lm-kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5)
}

.landing-mock .lm-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.0;
  margin-top: 10px
}

.landing-mock .lm-promo {
  padding: 28px 30px 32px;
  background: linear-gradient(180deg, #e7c873 0%, #d4ad53 100%);
  text-align: center;
  color: #6b2a12
}

.landing-mock .lm-amount {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1
}

.landing-mock .lm-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
  color: #7a3a17
}

.landing-mock .lm-ticket {
  margin: 18px auto 0;
  width: 74%;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(90deg, #b8862f, #f3dd92, #b8862f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4)
}

/* ─── FOOTER (dark) ─────────────────────────── */
.footer {
  background: var(--surface);
  color: var(--ink);
  padding: var(--s-7) 0 var(--s-5);
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: 0
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6)
}

.footer h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--accent)
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-7);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  transition: color .15s ease
}

.footer-links a[href^="http"]::after {
  content: '↗';
  display: inline-block;
  transition: transform .2s ease, color .15s ease;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1;
  margin-left: 2px
}

.footer-links a[href^="mailto"]::after,
.footer-links a[href^="tel"]::after {
  content: none
}

.footer-links a:hover {
  color: var(--ink)
}

.footer-links a:hover::after {
  transform: translate(2px, -2px);
  color: var(--ink)
}

.footer-foot {
  display: block;
  margin-top: var(--s-7);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute)
}

@media (max-width:720px) {
  .footer-inner {
    gap: var(--s-7) var(--s-6)
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3)
  }
}

/* ─── UNIFIED INLINE TEXT-LINK (Volver, Ver proyecto, etc.) ─── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color .2s ease, padding .2s ease;
  width: fit-content;
  line-height: 1.2;
  margin-top: var(--s-2)
}

.back:hover {
  color: var(--ink)
}

.back-arrow {
  display: inline-block;
  transition: transform .2s ease, color .2s ease;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1
}

.back:hover .back-arrow {
  transform: translateX(-4px);
  color: var(--ink)
}

/* ─── PROJECT HERO ────────────────────────────────────── */
.phero {
  padding: var(--s-6) 0 0
}

.phero-context {
  margin-top: var(--s-7)
}

.phero-banner {
  margin-top: var(--s-5);
  border-radius: 0;
  padding: var(--s-7) var(--s-7);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(152deg, #17171C 0%, #0E0E12 72%)
}

@media (max-width:720px) {
  .phero-banner {
    padding: var(--s-6) var(--s-5);
    min-height: auto
  }
}

.phero-banner h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
  color: #fff
}

.phero-banner .lead {
  margin-top: var(--s-5);
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 52ch
}

.project-role {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-2);
}

.phero-banner .brand-wordmark {
  position: absolute;
  top: var(--s-6);
  left: var(--s-7);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  color: #fff
}

/* Real brand logos — optically balanced sizes, shared baseline so they sit at the SAME level on every project page */
.phero-banner .phero-logo-wrap {
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--s-6)
}

.phero-banner .phero-logo {
  height: 44px;
  width: auto;
  display: block
}

.phero-banner .phero-logo--oly {
  height: 72px
}

.phero-banner .phero-logo--suchard {
  height: 64px
}

@media (max-width:720px) {
  .phero-banner .phero-logo-wrap {
    height: 60px;
    margin-bottom: var(--s-5)
  }

  .phero-banner .phero-logo {
    height: 36px
  }

  .phero-banner .phero-logo--oly {
    height: 60px
  }

  .phero-banner .phero-logo--suchard {
    height: 52px
  }
}

.phero-banner .brand-wordmark.serif {
  font-family: 'Times New Roman', serif;
  font-style: italic
}

.phero-banner .device-deco {
  position: absolute;
  right: var(--s-7);
  top: var(--s-7);
  bottom: var(--s-7);
  display: flex;
  gap: var(--s-3);
  pointer-events: none;
  opacity: 0.95
}

@media (max-width:900px) {
  .phero-banner .device-deco {
    display: none
  }
}

/* ─── TABS ───────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-8) 0 0;
  border-bottom: 1px solid var(--line)
}

.tabs button {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  padding: var(--s-3) var(--s-5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease
}

.tabs button.on {
  color: var(--ink);
  border-color: var(--accent)
}

.tabs button:hover {
  color: var(--ink)
}

@media (max-width: 720px) {
  .tabs {
    gap: var(--s-2);
    margin: var(--s-6) 0 0
  }

  .tabs button {
    font-size: 11px;
    padding: var(--s-2) var(--s-3)
  }
}

.tab-panel {
  display: none;
  padding-top: var(--s-4);
  padding-bottom: var(--s-6);
}

.tab-panel.on {
  display: block;
  animation: fadein .3s ease
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ─── CASE STUDY BLOCKS ──────────────────────────────── */
.case-intro {
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--line)
}

.case-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-6);
  font-style: italic
}

.case-prose {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 64ch;
  margin-top: var(--s-5);
}

.case-prose.wide {
  max-width: 88ch
}

.case-prose b {
  color: var(--ink);
  font-weight: 500
}

.case-prose p+p {
  margin-top: var(--s-4)
}

/* Sub-section heading inside a case study (Overview / El problema / …) */
.case-h {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--ink)
}

/* Unified subsection title (one level below .case-h) */
.case-h-sub {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-style: italic;
  margin: var(--s-10) 0 var(--s-5)
}

.case-h-sub:first-child {
  margin-top: 0
}

.case-section {
  margin-top: var(--s-10)
}

.case-section>.case-h+.case-prose {
  margin-top: var(--s-5)
}

/* One-line subtitle under the big tab/case title */
.case-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 60ch;
  margin-top: var(--s-4)
}

.case-sub em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink)
}

/* ─── CHAPTER NAV (quick pager between BBVA chapters/tabs) ─ */
.chapter-nav {
  width: auto;
  margin-left: 0;
  margin-top: var(--s-9);
  margin-bottom: var(--s-9);
  padding: var(--s-6) 0;
  background: var(--surface);
  border-top: none;
}

.chapter-nav-title {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-5)
}

.chapter-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4)
}

@media (min-width:700px) {
  .chapter-nav-grid {
    grid-template-columns: 1fr 1fr
  }
}

.chap-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
  font: inherit
}

.chap-card:hover {
  border-color: var(--accent);
  background: var(--surface-2)
}

.chap-card .chap-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink)
}

.chap-card .chap-desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
  max-width: 46ch
}

.chap-card .chap-go {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease
}

.chap-card .chap-go .arrow {
  display: inline-block;
  transition: transform .2s ease
}

.chap-card:hover .chap-go {
  color: var(--ink)
}

.chap-card:hover .chap-go .arrow {
  transform: translate(3px, -3px)
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--line)
}

@media (min-width:900px) {
  .case-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--s-9)
  }
}

.case-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3)
}

/* Resumen mensual / generic feature list (per BBVA capture) */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
  counter-reset: feat
}

.feat {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  counter-increment: feat
}

@media (min-width:900px) {
  .feat {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-7)
  }
}

.feat-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink)
}

.feat-title::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--s-3)
}

.features-no-number.features .feat-title::before {
  content: none
}

.feat-desc {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch
}

.feat-desc b {
  color: var(--ink);
  font-weight: 500
}

/* Resumen mensual — Image hotspots (mobile/tablet only; desktop uses .annot) */
.hotspot-image {
  position: relative;
  max-width: 760px;
  margin: var(--s-7) auto 0;
  display: none;
  overflow: visible
}

.hotspot-image>img {
  display: block;
  width: 100%;
  height: auto
}

@media (max-width:899px) {
  .hotspot-image {
    display: block
  }
}

.hotspot-help {
  display: none;
  margin-top: var(--s-5);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em
}

@media (max-width:899px) {
  .hotspot-help {
    display: block
  }
}

/* ─── Figma prototype embed ─── */
.figma-embed {
  width: 100%
}

.figma-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 1px solid var(--line-bright);
  background: var(--surface)
}

/* ─── Project visuals (images sit directly on the page) ─── */
.shot {
  display: block;
  margin-top: var(--s-6);
  overflow: hidden
}

.shot img {
  display: block;
  width: 100%;
  height: auto
}

.shot--phone img {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto
}

/* Olympics proceso: text + image side by side (smaller images, alternating) */
.proc-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center
}

@media (min-width:860px) {
  .proc-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8)
  }
}

.proc-split .case-h-sub {
  margin-top: 0
}

.proc-split .case-prose {
  margin-top: var(--s-4)
}

.proc-split .shot {
  margin-top: var(--s-4)
}

@media (min-width:860px) {
  .proc-split .shot {
    margin-top: 0
  }

  .proc-split--rev .proc-text {
    order: 2
  }
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6)
}

@media (min-width:760px) {
  .shot-pair {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5)
  }
}

.shot-pair .shot {
  margin-top: 0
}

.shot-cap {
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.shot-pair .shot-cap {
  text-align: center
}

/* ─── My Recap — phone insertion animation ─── */
.recap-anim {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 660px;
  margin-top: var(--s-7);
  overflow: hidden
}

.recap-phone {
  position: relative;
  width: 274px;
  height: 565px;
  background: #0b0b0d;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .7), inset 0 0 0 2px #26262b, 0 0 0 1px #000;
  z-index: 3;
  flex: none
}

.recap-phone-screen {
  position: relative;
  width: 250px;
  height: 541px;
  border-radius: 38px;
  overflow: hidden;
  background: #0a2a6b
}

.recap-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.recap-island {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  background: #000;
  border-radius: 14px;
  z-index: 6;
  pointer-events: none
}

.recap-fly {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 541px;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none
}

.recap-fly-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55);
  will-change: transform, opacity
}

@media (max-width:560px) {
  .recap-anim {
    min-height: 560px
  }

  .recap-phone {
    width: 232px;
    height: 480px;
    border-radius: 40px;
    padding: 10px
  }

  .recap-phone-screen {
    width: 212px;
    height: 460px;
    border-radius: 32px
  }

  .recap-fly {
    width: 212px;
    height: 460px
  }

  .recap-island {
    top: 20px;
    width: 72px;
    height: 21px
  }
}

/* Migración — original vs solución: fixed widths, vertically centered */
.shot-pair--mig {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-4)
}

.shot-pair--mig>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  position: relative
}

.shot-pair--mig .shot--phone {
  margin-top: 0;
  width: fit-content
}

.shot-pair--mig .shot--phone img {
  max-width: none;
  height: auto
}

.shot-pair--mig>div:nth-child(1) .shot--phone img {
  width: 186px
}

.shot-pair--mig>div:nth-child(2) .shot--phone img {
  width: 288px
}

.shot-pair--mig .shot-cap {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  text-wrap: pretty
}

@media (max-width:680px) {
  .shot-pair--mig {
    flex-direction: column;
    align-items: center;
    gap: var(--s-6)
  }

  .shot-pair--mig>div:nth-child(1) .shot--phone img,
  .shot-pair--mig>div:nth-child(2) .shot--phone img {
    width: auto;
    max-width: 260px
  }
}

/* ─── Olympics Overview carousel (infinite marquee) ─── */
.oly-carousel {
  margin-top: var(--s-8);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%)
}

.oly-carousel-track {
  display: flex;
  width: max-content;
  animation: oly-marquee 55s linear infinite;
  will-change: transform
}

.oly-carousel-item {
  flex: 0 0 auto;
  width: calc(100vw / 6 - 18px);
  margin-right: 18px
}

.oly-carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px
}

@keyframes oly-marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@media (max-width:899px) {
  .oly-carousel-item {
    width: calc(100vw / 3 - 16px);
    margin-right: 16px
  }
}

@media (prefers-reduced-motion:reduce) {
  .oly-carousel-track {
    animation: none
  }
}

/* ─── Annotated figure (desktop callouts + mobile stack) ─── */
.annot {
  position: relative;
  margin-top: var(--s-7);
  counter-reset: annot
}

.annot-img {
  display: block;
  width: 62%;
  margin-left: 35.8%;
  height: auto
}

.annot-notes {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.annot-note {
  position: absolute;
  left: 0;
  top: var(--y);
  transform: translateY(-50%);
  width: 41%;
  display: flex;
  align-items: center
}

.annot-card {
  flex: none;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--s-3) var(--s-4);
  counter-increment: annot
}

.annot-card h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px
}

.annot-card h4::before {
  display: none;
}

.annot-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin: 0
}

.annot-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-bright) 0 5px, transparent 5px 9px)
}

.annot-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  background: var(--accent);
  /* box-shadow: 0 0 0 4px rgba(0, 217, 163, 0.16), 0 0 0 1px var(--bg) */
}

@media (max-width:899px) {
  .annot {
    display: none
  }
}

.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  margin-top: -15px;
  margin-left: -15px
}

.hotspot[open] {
  z-index: 10
}

.hotspot>summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  position: relative;
  font-family: var(--f-sans);
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  border: 0
}

.hotspot>summary::-webkit-details-marker {
  display: none
}

.hotspot>summary::after {
  content: '+';
  display: block;
  line-height: 1;
  transform: translateY(-1px)
}

.hotspot>summary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  opacity: 0.5;
  animation: hotspotPulse 2.4s ease-out infinite;
  pointer-events: none
}

.hotspot[open]>summary::before {
  animation: none;
  opacity: 0
}

.hotspot>summary:hover {
  transform: scale(1.12)
}

.hotspot[open]>summary {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35)
}

.hotspot[open]>summary::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: linear-gradient(var(--accent), var(--accent)) center/12px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center/1.5px 12px no-repeat;
  transform: rotate(45deg)
}

@keyframes hotspotPulse {
  0% {
    transform: scale(1);
    opacity: 0.7
  }

  100% {
    transform: scale(1.7);
    opacity: 0
  }
}

.hotspot-tip {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  right: auto;
  transform: none;
  width: 280px;
  background: rgba(27, 27, 31, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-bright);
  padding: var(--s-5);
  color: var(--ink);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.6);
  z-index: 11;
  animation: tipIn .25s ease
}

.hotspot-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 15px;
  transform: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 8px;
  border-color: transparent transparent var(--line-bright) transparent
}

.hotspot-tip-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3)
}

.hotspot-tip p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0
}

.hotspot-close {
  display: none
}

@keyframes tipIn {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Mobile: tooltip aligned to image left, arrow over the marker */
@media (max-width:720px) {
  .hotspot {
    left: 25%
  }

  .hotspot-tip {
    width: 220px;
    padding: 12px 16px !important;
    background: rgb(20, 20, 22) !important;
    border: 1px solid rgb(35, 35, 42) !important;
    top: calc(100% + 14px);
    left: 0;
    right: auto;
    transform: none
  }

  .hotspot-tip::before {
    bottom: 100%;
    left: 10px;
    transform: none;
    border-width: 0 8px 10px 8px;
    border-color: transparent transparent rgb(35, 35, 42) transparent !important;
  }

  .hotspot-tip-title {
    font-size: 16px;
    margin-bottom: var(--s-2);
    padding-right: 0
  }

  .hotspot-tip p {
    font-size: 13px;
    line-height: 1.5;
    max-width: none
  }
}

/* Phone wrap centered for case studies */
.phone-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-8) 0
}

.phone-center .device-phone {
  width: 280px;
  height: 560px
}

/* Screen placeholders (for case-study mocks) */
.screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7)
}

@media (min-width:768px) {
  .screens {
    grid-template-columns: repeat(3, 1fr)
  }
}

.screens.cols-2 {
  grid-template-columns: 1fr
}

@media (min-width:768px) {
  .screens.cols-2 {
    grid-template-columns: 1fr 1fr
  }
}

.screen {
  position: relative;
  background: #1B1B1F;
  border: 1px solid var(--line);
  aspect-ratio: 9/16;
  overflow: hidden
}

.screen.wide {
  aspect-ratio: 16/10
}

.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255, 255, 255, 0.025) 14px, rgba(255, 255, 255, 0.025) 15px);
  pointer-events: none
}

.screen .ph-label {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1
}

.screen .ph-caption {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  right: var(--s-4);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  z-index: 1
}

/* Compare (BBVA before/after) */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7)
}

@media (min-width:768px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6)
  }
}

.compare-col {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s-6)
}

.compare-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4)
}

.compare-col.bad h4 {
  color: #ef4444
}

.compare-col.good h4 {
  color: var(--accent)
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-3)
}

.compare-col li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.5
}

.compare-col li b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px
}

.compare-col.bad li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 600
}

.compare-col.good li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600
}

/* Steps (numbered process — used in ECI) */
.steps {
  margin-top: var(--s-7);
  border-top: 1px solid var(--line)
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--line);
  align-items: start
}

@media (min-width:768px) {
  .step {
    grid-template-columns: 90px 1fr 1.4fr;
    gap: var(--s-6)
  }
}

.step .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em
}

.step .step-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15
}

.step .step-desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 54ch
}

.step .step-desc b {
  color: var(--ink);
  font-weight: 500
}

.step .step-desc p+p {
  margin-top: var(--s-3)
}

/* Desafíos (ECI) */
.challenges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  margin-top: var(--s-7)
}

@media (min-width:768px) {
  .challenges {
    grid-template-columns: repeat(3, 1fr)
  }
}

.challenge {
  padding: var(--s-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-4)
}

.challenge:last-child {
  border-right: 0
}

@media (max-width:767px) {
  .challenge {
    border-right: 0
  }
}

.challenge .ch-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em
}

.challenge .ch-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.025em
}

.challenge .ch-desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5
}

.challenge.accent {
  background: var(--accent);
  color: #fff
}

.challenge.accent .ch-num {
  color: rgba(255, 255, 255, 0.5)
}

.challenge.accent .ch-desc {
  color: rgba(255, 255, 255, 0.85)
}

/* About page (simple — no decorative borrowed styles) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start
}

@media (min-width:900px) {
  .about-grid {
    grid-template-columns: 8fr 4fr;
    gap: var(--s-9)
  }
}

.about-photo-plain {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line)
}

.about-photo-plain img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* About hero — split: ¡Hola! big + role tagline smaller */
.about-h1 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink)
}

.about-h1 .hello,
.about-h1 .role {
  margin: 0;
  font-family: inherit;
  letter-spacing: inherit;
  color: inherit
}

.about-h1 .hello {
  display: block;
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.92;
  font-weight: 800
}

.about-h1 .role {
  display: block;
  margin-top: var(--s-5);
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 60ch
}

.about-h1 .accent {
  color: var(--accent)
}

/* Related */
.related {
  padding: var(--s-7) 0 var(--s-10);
  border-top: 1px solid var(--line);
}

.related .eyebrow {
  margin-bottom: var(--s-8)
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3) var(--s-6)
}

@media (min-width:620px) {
  .related-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:920px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 720px) {
  .related-grid {
    gap: var(--s-7);
  }
  .about-section {
    display: flex;
    flex-direction: column-reverse;
  }
  .about-photo-plain {
    display: none;
  }
}

.rcard {
  display: block;
  color: inherit;
  text-decoration: none
}

.rcard:hover .rcard-link {
  color: var(--ink);
  padding-right: 6px
}

.rcard:hover .rcard-link .arrow {
  transform: translate(2px, -2px);
  color: var(--ink)
}

.rcard-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--s-2);
  color: var(--ink)
}

.rcard-desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: var(--s-3)
}

.rcard-link {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease, padding-right .2s ease
}

.rcard-link .arrow {
  display: inline-block;
  transition: transform .2s ease, color .2s ease;
  color: var(--ink-dim);
  font-size: 16px
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ─── Custom cursor (dot + ring) ─────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  will-change: transform;
  transition: background .2s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: width .25s cubic-bezier(.2, .7, .2, 1),
    height .25s cubic-bezier(.2, .7, .2, 1),
    border-color .2s ease,
    background-color .2s ease,
    opacity .25s ease;
  will-change: transform, width, height;
}

.cursor-dot.on {
  opacity: 1
}

.cursor-ring.on {
  opacity: 1
}

.cursor-dot.is-hover {
  background: var(--ink);
  mix-blend-mode: normal
}

.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  opacity: 0.6;
  border-color: var(--ink);
  background: rgba(244, 244, 245, 0.06);
  mix-blend-mode: normal;
}

/* Hide native cursor only after JS has booted the custom one */
.custom-cursor-ready,
.custom-cursor-ready * {
  cursor: none
}

/* Re-enable native cursor on text-input fields so users can see caret */
.custom-cursor-ready input,
.custom-cursor-ready textarea {
  cursor: text
}

@media (hover:none),
(pointer:coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none
  }

  .custom-cursor-ready,
  .custom-cursor-ready * {
    cursor: auto
  }
}