:root {
  --jb-bg: #07080d;
  --jb-bg-elevated: #0f1119;
  --jb-surface: rgba(255, 255, 255, 0.04);
  --jb-border: rgba(255, 255, 255, 0.08);
  --jb-text: #e8eaef;
  --jb-muted: #9aa3b2;
  --jb-heading: #f4f6fb;
  --jb-accent: #22d3ee;
  --jb-accent-2: #a78bfa;
  --jb-gradient: linear-gradient(135deg, #22d3ee 0%, #818cf8 45%, #c084fc 100%);
  --jb-glow: 0 0 80px rgba(34, 211, 238, 0.12);
  --jb-radius: 20px;
  --jb-font-body: "DM Sans", var(--default-font);
  --jb-font-display: "Syne", var(--heading-font);
  --background-color: var(--jb-bg) !important;
  --default-color: var(--jb-text) !important;
  --heading-color: var(--jb-heading) !important;
  --accent-color: var(--jb-accent) !important;
  --contrast-color: #041016 !important;
}

body.index-page {
  font-family: var(--jb-font-body);
  background: var(--jb-bg);
  color: var(--jb-text);
}

body.index-page section[id] {
  scroll-margin-top: 96px;
}

body.index-page h1,
body.index-page h2,
body.index-page h3,
body.index-page h4,
body.index-page .sitename,
body.index-page .section-title h2 {
  font-family: var(--jb-font-display);
 letter-spacing: -0.02em;
}

/* ——— Header 2026 (top bar) ——— */
.header.header--2026 {
  --header-background-color: rgba(7, 8, 13, 0.72);
  --nav-color: var(--jb-muted);
  --nav-hover-color: var(--jb-heading);
  background: var(--header-background-color) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--jb-border) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-height: none;
  height: auto !important;
  padding: 0 !important;
  flex-direction: column !important;
  overflow: visible !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.header.header--2026 .header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}

.header.header--2026 .logo-wrap {
  text-decoration: none;
  color: var(--jb-heading) !important;
}

.header.header--2026 .logo-wrap:hover {
  color: var(--jb-accent) !important;
}

.header.header--2026 .header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid color-mix(in srgb, var(--jb-accent), transparent 40%);
  box-shadow: var(--jb-glow);
}

.header.header--2026 .sitename {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.header.header--2026 .profile-img {
  display: none !important;
}

.header.header--2026 .logo.d-flex {
  display: none !important;
}

.header.header--2026 .social-links {
  margin: 0 !important;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.header.header--2026 .social-links a {
  background: var(--jb-surface) !important;
  color: var(--jb-heading) !important;
  border: 1px solid var(--jb-border);
  width: 38px !important;
  height: 38px !important;
  font-size: 15px !important;
}

.header.header--2026 .social-links a:hover {
  background: color-mix(in srgb, var(--jb-accent), transparent 85%) !important;
  color: var(--jb-accent) !important;
  border-color: color-mix(in srgb, var(--jb-accent), transparent 60%);
}

.header.header--2026 .btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #041016 !important;
  background: var(--jb-gradient);
  border: none;
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header.header--2026 .btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(129, 140, 248, 0.35);
  color: #041016 !important;
}

/* Nav */
.header.header--2026 .navmenu {
  padding: 0 !important;
}

.header.header--2026 .navmenu ul {
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 1200px) {
  .header.header--2026 .navmenu ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.15rem;
  }

  .header.header--2026 .navmenu a {
    width: auto !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px;
    font-size: 0.92rem !important;
    color: var(--jb-muted) !important;
  }

  .header.header--2026 .navmenu a:hover,
  .header.header--2026 .navmenu .active {
    color: var(--jb-heading) !important;
    background: var(--jb-surface);
  }

  .header.header--2026 .navmenu .active .navicon {
    color: var(--jb-accent) !important;
  }
}

@media (max-width: 1199px) {
  .header.header--2026 {
    left: 0 !important;
  }

  .header.header--2026 .navmenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
  }

  .header.header--2026.header-show .navmenu {
    max-height: 480px;
    border-top: 1px solid var(--jb-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem !important;
  }

  .header.header--2026 .navmenu a {
    color: var(--jb-muted) !important;
    border-radius: 12px;
  }

  .header.header--2026 .navmenu a:hover,
  .header.header--2026 .navmenu .active {
    color: var(--jb-heading) !important;
    background: var(--jb-surface);
  }
}

.header.header--2026 .header-toggle {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  background: var(--jb-surface) !important;
  color: var(--jb-heading) !important;
  border: 1px solid var(--jb-border);
  width: 42px !important;
  height: 42px !important;
}

.header.header--2026 .header-toggle:hover {
  background: color-mix(in srgb, var(--jb-accent), transparent 88%) !important;
 color: var(--jb-accent) !important;
}

/* Main offset (sin sidebar) */
.header.header--2026 ~ .main {
  margin-left: 0 !important;
  padding-top: 76px;
}

/* ——— Hero ——— */
.hero.hero--2026 {
  --default-color: var(--jb-text);
  --heading-color: var(--jb-heading);
  min-height: calc(100vh - 76px);
  padding: 4rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(129, 140, 248, 0.12), transparent 45%),
    var(--jb-bg) !important;
}

.hero.hero--2026::before {
  display: none !important;
}

.hero.hero--2026 .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero.hero--2026 .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero.hero--2026 .hero-actions {
    justify-content: center;
  }

  .hero.hero--2026 .hero-badges {
    justify-content: center;
  }

  .hero.hero--2026 {
    min-height: auto;
    padding: 1.75rem 0 2.75rem;
  }

  .hero.hero--2026 .hero-photo-frame {
    --hero-photo-w: min(268px, 88vw);
    max-height: min(50vh, 400px);
  }

  .header.header--2026 ~ .main {
    padding-top: 72px;
  }

  body.index-page section[id] {
    scroll-margin-top: 88px;
  }
}

.hero.hero--2026 .hero-greet {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jb-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.hero.hero--2026 .hero-title-main {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  background: linear-gradient(120deg, #f4f6fb 30%, #a5f3fc 50%, #e9d5ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

@media (max-width: 768px) {
  .hero.hero--2026 .hero-title-main {
    font-size: 2rem;
  }
}

.hero.hero--2026 .hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jb-accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--jb-accent), transparent 65%);
  background: color-mix(in srgb, var(--jb-accent), transparent 92%);
}

.hero.hero--2026 p {
  font-size: 1.25rem;
  color: var(--jb-muted);
  margin-top: 1.25rem;
}

.hero.hero--2026 p span.typed {
  color: var(--jb-heading);
  font-weight: 600;
  border-bottom: 2px solid color-mix(in srgb, var(--jb-accent), transparent 35%);
}

.hero.hero--2026 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero.hero--2026 .btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  color: #041016 !important;
  background: var(--jb-gradient);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.22);
  border: none;
}

.hero.hero--2026 .btn-primary-hero:hover {
  transform: translateY(-2px);
  color: #041016 !important;
}

.hero.hero--2026 .btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--jb-heading) !important;
  background: var(--jb-surface);
  border: 1px solid var(--jb-border);
}

.hero.hero--2026 .btn-ghost-hero:hover {
  border-color: color-mix(in srgb, var(--jb-accent), transparent 50%);
  color: var(--jb-accent) !important;
}

.hero.hero--2026 .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero.hero--2026 .hero-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--jb-border);
  color: var(--jb-muted);
  background: var(--jb-surface);
}

.hero.hero--2026 .hero-card {
  position: relative;
  border-radius: var(--jb-radius);
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--jb-border);
  box-shadow: var(--jb-glow);
  overflow: visible;
  max-width: 100%;
}

.hero.hero--2026 .hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), transparent 40%, rgba(192, 132, 252, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero.hero--2026 .hero-photo-frame {
  --hero-photo-w: min(280px, 100%);
  width: var(--hero-photo-w);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  max-height: min(52vh, 420px);
  border-radius: 16px;
  border: 1px solid var(--jb-border);
  background: var(--jb-bg-elevated);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.hero.hero--2026 .hero-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  border: none;
  border-radius: 0;
}

.hero.hero--2026 .hero-card-meta {
  margin-top: 1.25rem;
  text-align: center;
}

.hero.hero--2026 .hero-card-meta strong {
  display: block;
  color: var(--jb-heading);
  font-size: 1.1rem;
}

.hero.hero--2026 .hero-card-meta span {
  font-size: 0.9rem;
  color: var(--jb-muted);
}

/* ——— Sections ——— */
section.section,
section.section.alt-surface {
  background: var(--jb-bg) !important;
}

section.section.alt-surface {
  background: var(--jb-bg-elevated) !important;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
}

.section-title h2::after {
  background: var(--jb-gradient) !important;
  width: 64px !important;
  height: 4px !important;
  border-radius: 4px;
}

.section-title p.lead {
  font-size: 1.1rem;
  color: var(--jb-muted);
  max-width: 720px;
  font-weight: 600;
}

/* About */
.about-card {
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: var(--jb-surface);
  padding: 2rem;
}

.about-card .about-photo {
  border-radius: 16px;
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--jb-border);
}

.about .content ul li {
  color: var(--jb-muted);
}

.about .content ul strong {
  color: var(--jb-heading);
}

/* Experience timeline */
.exp-timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--jb-accent), var(--jb-accent-2));
  opacity: 0.45;
  border-radius: 2px;
}

.exp-item {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 2rem;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--jb-bg);
  border: 3px solid var(--jb-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--jb-accent), transparent 88%);
}

.exp-card {
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 1.5rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.exp-card:hover {
  border-color: color-mix(in srgb, var(--jb-accent), transparent 55%);
  transform: translateY(-3px);
}

.exp-card .exp-role {
  font-family: var(--jb-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--jb-heading);
  margin: 0 0 0.25rem;
}

.exp-card .exp-company {
  color: var(--jb-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.exp-card .exp-dates {
  font-size: 0.85rem;
  color: var(--jb-muted);
  margin: 0.35rem 0 0.75rem;
}

.exp-card .exp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jb-accent), transparent 88%);
  color: var(--jb-accent);
  margin-bottom: 0.75rem;
}

.exp-card p {
  margin: 0;
  color: var(--jb-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.exp-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--jb-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.exp-detail-list li {
  margin-bottom: 0.45rem;
}

.exp-detail-list li:last-child {
  margin-bottom: 0;
}

.exp-detail-list strong {
  color: var(--jb-heading);
  font-weight: 600;
}

.cert-columns {
  max-width: 900px;
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: var(--jb-surface);
  padding: 1.35rem 1.5rem;
}

/* Bento services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-item {
  grid-column: span 6;
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: var(--jb-surface);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
  min-height: 100%;
}

.bento-item:hover {
  border-color: color-mix(in srgb, var(--jb-accent-2), transparent 50%);
  transform: translateY(-2px);
}

.bento-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--jb-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-item h3 i {
  color: var(--jb-accent);
  font-size: 1.35rem;
}

.bento-item p {
  margin: 0;
  color: var(--jb-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bento-item.span-12 {
  grid-column: span 12;
}

.bento-item.span-8 {
  grid-column: span 8;
}

.bento-item.span-4 {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .bento-item,
  .bento-item.span-8,
  .bento-item.span-4 {
    grid-column: span 12;
  }
}

/* Skill pills */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--jb-border);
  color: var(--jb-muted);
  background: rgba(255, 255, 255, 0.03);
}

.skill-pill:hover {
  color: var(--jb-heading);
  border-color: color-mix(in srgb, var(--jb-accent), transparent 45%);
}

/* Stats */
.stats.section .stats-item {
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: var(--jb-surface);
}

.stats.section .stats-item .purecounter {
  color: var(--jb-heading) !important;
}

.stats.section .stats-item i {
  color: var(--jb-accent) !important;
}

/* Portfolio */
.portfolio .portfolio-filters li {
  border-radius: 999px;
  border: 1px solid var(--jb-border);
  color: var(--jb-muted);
  padding: 0.4rem 1rem !important;
  margin: 0 0.35rem 0.35rem 0 !important;
}

.portfolio .portfolio-filters li.filter-active {
  background: var(--jb-gradient) !important;
  color: #041016 !important;
  border-color: transparent !important;
}

/* Project type filter (pills) */
.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--jb-border);
  background: color-mix(in srgb, var(--jb-surface), transparent 10%);
}

.project-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jb-muted);
  margin-right: 0.15rem;
}

.project-filter-btn {
  appearance: none;
  border: 1px solid var(--jb-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--jb-heading);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.project-filter-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--jb-accent), transparent 50%);
  color: var(--jb-accent);
}

.project-filter-btn.is-active {
  background: var(--jb-gradient);
  border-color: transparent;
  color: #041016;
}

.project-filter-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--jb-accent), transparent 60%);
  outline-offset: 2px;
}

.project-hidden {
  display: none !important;
}

/* Proyectos: enlaces y jerarquía (portafolio 2026) */
.portfolio-mosaic .portfolio-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-mosaic .portfolio-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--jb-bg-elevated);
}

.portfolio-mosaic .portfolio-thumb-wrap--phone {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.06), rgba(167, 139, 250, 0.05));
}

.portfolio-mosaic .portfolio-thumb-wrap--phone .portfolio-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--jb-border);
}

.project-thumb-gallery {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.05rem;
  margin-top: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.project-thumb-gallery::-webkit-scrollbar {
  height: 8px;
}

.project-thumb-gallery::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--jb-border), transparent 25%);
  border-radius: 999px;
}

.project-thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--jb-border);
  background: var(--jb-bg-elevated);
  overflow: hidden;
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02);
  transition: transform 0.2s ease;
}

.project-thumb:hover img {
  transform: scale(1.03);
}

.project-thumb--more img {
  filter: saturate(0.9) brightness(0.85);
}

.project-thumb-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--jb-heading);
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(34, 211, 238, 0.18), rgba(7, 8, 13, 0.65));
}

.portfolio-mosaic .portfolio-thumb-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.07), rgba(167, 139, 250, 0.07));
  border-bottom: 1px solid var(--jb-border);
}

.portfolio-mosaic .portfolio-placeholder-inner {
  text-align: center;
  padding: 1.25rem;
  color: var(--jb-muted);
}

.portfolio-mosaic .portfolio-placeholder-inner i {
  font-size: 2rem;
  color: var(--jb-accent);
  opacity: 0.65;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-mosaic .portfolio-placeholder-inner .placeholder-title {
  font-family: var(--jb-font-display);
  font-weight: 700;
  color: var(--jb-heading);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.portfolio-mosaic .portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-mosaic .portfolio-content:hover .portfolio-img {
  transform: scale(1.04);
}

.portfolio-mosaic .portfolio-card-foot {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--jb-border);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portfolio-mosaic .portfolio-card-foot h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--jb-font-display);
  color: var(--jb-heading);
  line-height: 1.3;
}

.project-year {
  font-family: var(--jb-font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--jb-muted);
  letter-spacing: 0.02em;
}

.portfolio-mosaic .portfolio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.portfolio-mosaic .btn-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--jb-border);
  color: var(--jb-muted) !important;
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-mosaic .btn-portfolio:hover {
  color: var(--jb-accent) !important;
  border-color: color-mix(in srgb, var(--jb-accent), transparent 45%);
}

.portfolio-mosaic .btn-portfolio-primary {
  background: var(--jb-gradient);
  border: none;
  color: #041016 !important;
}

.portfolio-mosaic .btn-portfolio-primary:hover {
  color: #041016 !important;
  opacity: 0.92;
}

.fold-block {
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  background: var(--jb-surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.fold-block summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-family: var(--jb-font-display);
  color: var(--jb-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fold-block summary::-webkit-details-marker {
  display: none;
}

.fold-block summary::after {
  content: "+";
  font-weight: 400;
  color: var(--jb-accent);
  font-size: 1.25rem;
  line-height: 1;
}

.fold-block[open] summary::after {
  content: "−";
}

.fold-block .fold-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--jb-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid var(--jb-border);
}

.fold-block .fold-body p:last-child {
  margin-bottom: 0;
}

.stats-item > p {
  font-weight: 600;
}

.portfolio-card-foot p.small strong {
  font-weight: 600;
}

.portfolio .portfolio-content {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jb-border);
  background: var(--jb-bg-elevated);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio .portfolio-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.portfolio .portfolio-img {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.portfolio .portfolio-info {
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.92)) !important;
}

.portfolio .portfolio-info h4,
.portfolio .portfolio-info p {
  color: var(--jb-heading) !important;
}

/* SEO case cards */
.seo-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.seo-case {
  border-radius: var(--jb-radius);
  border: 1px solid var(--jb-border);
  padding: 1.5rem;
  background: var(--jb-surface);
}

.seo-case strong {
  color: var(--jb-accent);
}

.seo-case a {
  word-break: break-all;
}

/* Contact */
.contact .info-wrap .info-item {
  border-radius: 16px;
  border: 1px solid var(--jb-border);
  padding: 1.25rem !important;
  margin-bottom: 1rem !important;
  background: var(--jb-surface);
}

.contact .info-wrap .info-item i {
  color: var(--jb-accent) !important;
  background: color-mix(in srgb, var(--jb-accent), transparent 90%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact .info-wrap h3 {
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jb-muted) !important;
}

.contact .info-wrap p {
  color: var(--jb-heading) !important;
  margin: 0 !important;
}

/* Scroll top & preloader */
.scroll-top {
  background: var(--jb-gradient) !important;
  bottom: 96px !important;
}

.scroll-top.active {
  bottom: 96px !important;
}

#preloader {
  background: var(--jb-bg) !important;
}

#preloader:before {
  border-color: var(--jb-accent) transparent var(--jb-accent-2) transparent !important;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 1000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 26px;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float i {
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  color: #fff !important;
}

/* AOS / utilities */
.text-muted-custom {
  color: var(--jb-muted) !important;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 36rem;
}

.text-highlight {
  color: var(--jb-heading);
}

.exp-card .exp-company a {
  color: var(--jb-accent);
}

.exp-card .exp-company a:hover {
  color: color-mix(in srgb, var(--jb-accent), white 25%);
}

/* ——— Móvil: legibilidad, toques táctiles y safe-area (notch / home indicator) ——— */
@media (max-width: 575px) {
  .hero.hero--2026 .hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.7rem;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .hero.hero--2026 .hero-title-main {
    font-size: 1.65rem;
  }

  .hero.hero--2026 p {
    font-size: 1.05rem;
  }

  .hero.hero--2026 .hero-lead {
    font-size: 0.95rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero.hero--2026 .hero-card {
    padding: 1.2rem 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .hero.hero--2026 .hero-photo-frame {
    --hero-photo-w: min(240px, 86vw);
    max-height: min(42vh, 360px);
  }

  .hero.hero--2026 .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero.hero--2026 .btn-primary-hero,
  .hero.hero--2026 .btn-ghost-hero {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .section-title {
    padding-bottom: 1.75rem !important;
  }

  .section-title p.lead {
    font-size: 1rem;
  }

  section.section,
  section.section.alt-surface {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .portfolio-mosaic .btn-portfolio {
    min-height: 44px;
    justify-content: center;
  }

  .portfolio-mosaic .portfolio-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fold-block summary {
    min-height: 48px;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

  .contact .info-wrap .info-item {
    min-height: 52px;
  }

  .header.header--2026 .navmenu a {
    min-height: 48px;
  }

  .stats.section .stats-item {
    padding: 1.25rem;
  }

  body.index-page {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

@media (max-width: 575px) {
  .scroll-top.active {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
  }
}
