/* ============================================
   RESET & VARIABLES
   SKILL: Outfit font, slate palette, blue accent < 80% sat,
          cubic-bezier motion, tinted shadows, no pure black
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* Palette — cool slate base, single blue accent */
  --c-bg:           #F8FAFC;
  --c-surface:      #FFFFFF;
  --c-border:       rgba(15, 23, 42, 0.08);
  --c-text:         #475569;
  --c-text-strong:  #0F172A;
  --c-muted:        #94A3B8;
  --c-accent:       #2563EB;
  --c-accent-hover: #1D4ED8;
  --c-accent-light: #EFF6FF;
  --c-accent-mid:   #BFDBFE;

  /* Tinted shadows — hue-matched to accent */
  --shadow-card:    0 4px 24px rgba(37, 99, 235, 0.07);
  --shadow-hover:   0 16px 40px rgba(37, 99, 235, 0.16);
  --shadow-diffuse: 0 20px 40px -15px rgba(0, 0, 0, 0.05);

  /* SKILL Motion: cubic-bezier(0.16, 1, 0.3, 1) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 860px;
}

html { scroll-behavior: smooth; }

/* Skip to main content — visible on focus for keyboard/screen reader users */
.skip__link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--c-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip__link:focus { top: 0; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ============================================
   SCROLL REVEAL
   SKILL: transform + opacity only, cubic-bezier, stagger cascade
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
  will-change: transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ============================================
   NAVBAR
   SKILL: Liquid Glass — 1px inner border + inner shadow
   ============================================ */
.navbar__nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 68px;
  z-index: 100;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* SKILL: Liquid Glass inner refraction */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar__container {
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img { width: 104px; }

.navbar__logo--link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.navbar__logo--img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar__logo--text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: var(--font);
}

.navbar__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__listItem ul,
.navbar__socialItem ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.navbar__listItem .item { padding-right: 2px; }

.item > a,
.socialItem a {
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.2s var(--ease-out-expo),
              background 0.2s var(--ease-out-expo);
  letter-spacing: 0.1px;
  display: block;
}

.item > a:hover,
.item.item__active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.socialItem { position: relative; padding-left: 4px; }

.socialItem a { font-size: 15px; padding: 6px 10px; }
.socialItem a:hover { color: #93C5FD; background: rgba(37, 99, 235, 0.14); }

/* Tooltip */
.socialItem .tooltiptext__fb,
.socialItem .tooltiptext__gh,
.socialItem .tooltiptext__tw,
.socialItem .tooltiptext__dr {
  visibility: hidden;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-text-strong);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.socialItem:hover .tooltiptext__fb,
.socialItem:hover .tooltiptext__gh,
.socialItem:hover .tooltiptext__tw,
.socialItem:hover .tooltiptext__dr { visibility: visible; }

/* Mobile bar */
.navbar__barIcon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

#btnControl { display: none; }

.mobileList {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: rgba(8, 12, 24, 0.97);
  backdrop-filter: blur(18px);
  list-style: none;
  padding: 8px 0 16px;
  z-index: 99;
}

.mobileItem {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobileItem:last-child { border-bottom: none; }

.mobileItem a {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out-expo),
              padding-left 0.2s var(--ease-out-expo);
}

.mobileItem a:hover { color: #fff; padding-left: 32px; }


/* ============================================
   HERO — full-bleed split: text left / photo right
   ============================================ */
#hero { margin-top: 68px; }

.hero__Container {
  position: relative;
  min-height: calc(100dvh - 68px);
  background: #080C18;
  overflow: hidden;
}

/* Solid dark bg layer */
.hero__bgLayer {
  position: absolute;
  inset: 0;
  background: #080C18;
  pointer-events: none;
}

/* Subtle blue glow behind text */
.hero__Container::before {
  content: '';
  position: absolute;
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.10) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

/* Thin accent line left edge */
.hero__Container::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #2563EB 25%, #3B82F6 75%, transparent 100%);
  z-index: 3;
}

/* ── Photo — right 50%, full height, image contained ── */
.hero__photo--bg {
  position: absolute;
  right: 0; top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.hero__photo--bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  display: block;
}

/* Seamless fade: left edge of photo dissolves into bg */
.hero__photo--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #080C18       0%,
    #080C18       5%,
    rgba(8,12,24,0.85) 18%,
    rgba(8,12,24,0.40) 38%,
    rgba(8,12,24,0.08) 60%,
    transparent   80%
  );
}

/* Bottom fade to blend with next section */
.hero__photo--bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22%;
  background: linear-gradient(to top, #080C18 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Inner layout ── */
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 56px;
  min-height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content {
  padding: 80px 0;
  max-width: 52%;
}

/* ── Typography ── */
.hero__title {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.32);
}

.hero__subtitle {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  color: #60A5FA;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__subtitle::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse__dot 2.2s ease-in-out infinite;
}

.hero__tagline {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(148,163,184,0.85);
  max-width: 44ch;
  margin-bottom: 40px;
  line-height: 1.85;
}

/* ── CTA ── */
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__button {
  text-decoration: none;
  color: #fff;
  background: var(--c-accent);
  padding: 13px 28px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s var(--ease-out-expo),
              box-shadow 0.2s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.45);
  font-family: var(--font);
  letter-spacing: 0.1px;
  position: relative;
  overflow: hidden;
}

.hero__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-hover);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-out-expo);
  border-radius: inherit;
  z-index: 0;
}

.hero__button:hover::before { transform: translateY(0); }
.hero__button:hover { box-shadow: 0 8px 28px rgba(37,99,235,0.55); transform: translateY(-2px); }
.hero__button:active { transform: scale(0.98); }
.hero__button > * { position: relative; z-index: 1; }
.hero__button > i { position: relative; z-index: 1; }

.hero__button--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.22);
  box-shadow: none;
  color: rgba(255,255,255,0.75);
}
.hero__button--outline::before { background: rgba(255,255,255,0.07); }
.hero__button--outline:hover { border-color: rgba(255,255,255,0.5); box-shadow: none; }

/* ── Scroll arrow ── */
.hero__arrow--click {
  position: absolute;
  bottom: 28px; left: 56px;
  z-index: 3;
}
.hero__arrow--click a {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  font-size: 18px;
  display: block;
  animation: ar_bounce 2.5s ease-in-out infinite;
}
@keyframes ar_bounce {
  0%, 100% { transform: translateY(0); opacity: 0.28; }
  50%       { transform: translateY(8px); opacity: 0.65; }
}

/* ── MOBILE ── */
@media screen and (max-width: 768px) {
  .hero__Container {
    background-image: url(../img/perfil.jpeg);
    background-size: cover;
    background-position: center top;
  }
  .hero__bgLayer {
    background: linear-gradient(
      180deg,
      rgba(8,12,24,0.15)  0%,
      rgba(8,12,24,0.30)  35%,
      rgba(8,12,24,0.88)  60%,
      rgba(8,12,24,0.98)  74%,
      #080C18             100%
    );
  }
  .hero__photo--bg { display: none; }
  .hero__Container::before,
  .hero__Container::after { display: none; }
  .hero__inner {
    padding: 0 20px 44px;
    justify-content: flex-end;
  }
  .hero__content { padding: 0; max-width: 100%; }
  .hero__title { font-size: clamp(34px, 10vw, 52px); letter-spacing: -2px; }
  .hero__tagline { max-width: 100%; }
  .hero__cta { flex-direction: column; }
  .hero__button { width: 100%; justify-content: center; }
  .hero__arrow--click { display: none; }
}

/* ── TABLET portrait ── */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .hero__photo--bg { width: 48%; }
  .hero__content { max-width: 58%; }
  .hero__inner { padding: 0 40px; }
}


/* ============================================
   SECTION HEADERS — clean typographic, no giant BG text
   ============================================ */
.section__header { margin-bottom: 52px; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section__title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  color: var(--c-text-strong);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.section__desc {
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.85;
  max-width: 62ch;
  margin-top: 14px;
}

/* Inverted titles for dark sections */
.section__title--inv { color: #fff; }
.section__eyebrow--inv { color: #60A5FA; }
.section__eyebrow--inv::before { background: #60A5FA; }

/* ============================================
   ABOUT — Asymmetric 3fr 2fr grid
   ============================================ */
#about {
  padding: 100px 0 90px;
  background: var(--c-bg);
}

.about__Container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* SKILL: 3fr 2fr — asymmetric, NOT equal cols */
.about__desc {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}

/* Bio */
.about__parag { padding: 0; max-width: unset; margin: 0; }

.about__bio--label {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 20px;
  display: block;
}

.aboutParag__desc {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--c-text);
  margin-bottom: 16px;
}

.aboutParag__desc strong {
  color: var(--c-text-strong);
  font-weight: 700;
}

.about__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.about__button {
  text-decoration: none;
  color: #fff;
  background: var(--c-accent);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s var(--ease-out-expo),
              box-shadow 0.2s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.about__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-hover);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-out-expo);
  border-radius: inherit;
  z-index: 0;
}

.about__button:hover::before { transform: translateY(0); }
.about__button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.about__button:active { transform: scale(0.98); }
.about__button > * { position: relative; z-index: 1; }

.about__button--secondary {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent-mid);
  box-shadow: none;
}

.about__button--secondary::before {
  background: var(--c-accent-light);
}

.about__button--secondary:hover {
  border-color: var(--c-accent);
  box-shadow: none;
  color: var(--c-accent);
}

/* Education timeline */
.about__education { padding: 0; }

.timeline__section--title {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline__section--title i { color: var(--c-accent); font-size: 12px; }

.about__education .timeline { position: relative; }

.about__education .timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent-mid));
}

.about__education .timeline__item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  border-left: none;
}

.about__education .timeline__item:last-child { margin-bottom: 0; }

.about__education .timeline__item::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 13px; height: 13px;
  background: var(--c-surface);
  border: 2.5px solid var(--c-accent);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.about__education .timeline__content {
  background: var(--c-surface);
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.about__education .timeline__content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.about__education .timeline__title {
  font-size: 14px;
  color: var(--c-text-strong);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.about__education .timeline__company {
  font-size: 12.5px;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 2px;
}

.about__education .timeline__date {
  font-size: 11px;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.about__education .timeline__desc {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.65;
}

/* ============================================
   ACHIEVEMENTS — Dark bento, 2x2 asymmetric
   SKILL: first card spans 2 cols (bento break)
   ============================================ */
#achievements {
  padding: 88px 0;
  background: var(--c-text-strong);
  position: relative;
  overflow: hidden;
}

/* SKILL: fixed decorative bg — pointer-events:none, NOT on scroll container */
#achievements::before,
#achievements::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#achievements::before {
  width: 480px; height: 480px;
  top: -130px; right: -130px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
}

#achievements::after {
  width: 340px; height: 340px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
}

.achievements__Container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* SKILL: 2x2 bento, NOT 3-col equal */
.achievements__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.achievement__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 28px 26px;
  transition: background 0.25s var(--ease-out-expo),
              transform 0.25s var(--ease-out-expo),
              border-color 0.25s var(--ease-out-expo);
}

.achievement__card:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.38);
  transform: translateY(-4px);
}

/* First card wider — bento asymmetry */
.achievement__card:first-child {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 32px;
}

.achievement__card:first-child .achievement__icon { margin-bottom: 0; font-size: 28px; flex-shrink: 0; }
.achievement__card:first-child .achievement__body { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.achievement__card:first-child .achievement__sublabel { margin-top: 0; }

.achievement__icon {
  font-size: 22px;
  color: #60A5FA;
  margin-bottom: 12px;
}

.achievement__number {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 5px;
}

.achievement__label {
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 500;
}

.achievement__sublabel {
  font-size: 11px;
  color: #334155;
  margin-top: 3px;
  display: block;
}

/* ============================================
   EXPERIENCE — Timeline with stagger cascade
   ============================================ */
#experience {
  padding: 100px 0;
  background: var(--c-bg);
}

.experience__Container {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.experience__Container .timeline {
  position: relative;
  margin-top: 16px;
}

.experience__Container .timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent-mid));
}

.experience__Container .timeline__item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  border-left: none;
}

.experience__Container .timeline__item:last-child { margin-bottom: 0; }

.experience__Container .timeline__item::before {
  content: '';
  position: absolute;
  left: 1px; top: 20px;
  width: 13px; height: 13px;
  background: var(--c-surface);
  border: 2.5px solid var(--c-accent);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.experience__Container .timeline__content {
  background: var(--c-surface);
  padding: 22px 26px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.experience__Container .timeline__content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.experience__Container .timeline__title {
  font-size: 16px;
  color: var(--c-text-strong);
  font-weight: 700;
  margin: 0;
  flex: 1;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.timeline__badge {
  display: inline-block;
  background: var(--c-accent-light);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-mid);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.timeline__badge--current {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
}

.experience__Container .timeline__company {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.experience__Container .timeline__date {
  font-size: 11.5px;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.experience__Container .timeline__desc {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.8;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.timeline__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid rgba(15, 23, 42, 0.09);
  padding: 2px 9px;
  border-radius: 5px;
}

/* ============================================
   RESEARCH — divide-y rows, not cards
   SKILL: avoid card overuse; use border-bottom + spacing
   ============================================ */
#research {
  padding: 100px 0;
  background: var(--c-surface);
}

.research__Container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.research__intro {
  max-width: 62ch;
  margin-bottom: 52px;
}

.research__blocks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.research__block {
  background: var(--c-surface);
  padding: 26px 30px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-diffuse);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.research__block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.research__category {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-text-strong);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.research__category i { color: var(--c-accent); font-size: 12px; }

.publication__list { display: flex; flex-direction: column; }

/* SKILL: divide-y spacing pattern */
.publication__item {
  padding: 11px 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.publication__item:last-child { border-bottom: none; padding-bottom: 0; }
.publication__item:first-child { padding-top: 0; }

.publication__item:hover .publication__title { color: var(--c-accent); }

.publication__main { flex: 1; }

.publication__title {
  display: block;
  font-size: 13.5px;
  color: var(--c-text-strong);
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.5;
  transition: color 0.15s var(--ease-out-expo);
}

.publication__title--link {
  text-decoration: none;
  cursor: pointer;
}

.publication__title--link:hover {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication__item:hover .publication__title--link { color: var(--c-accent); }

.publication__detail {
  font-size: 12px;
  color: var(--c-muted);
  font-style: italic;
}

.publication__year {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-accent);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   SKILLS — asymmetric bento, first card spans 2 cols
   SKILL: NO 3-col equal grid
   ============================================ */
#skills {
  padding: 100px 0;
  background: var(--c-bg);
}

.skills__Container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

/* First card wider — breaks the symmetry */
.skill__card:first-child { grid-column: span 2; }

.skill__card {
  background: var(--c-surface);
  padding: 24px 26px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.skill__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.skill__title {
  font-size: 14.5px;
  color: var(--c-text-strong);
  font-weight: 700;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.skill__title i { color: var(--c-accent); font-size: 14px; width: 16px; text-align: center; }

.skill__text {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.75;
}

.skill__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  color: #1E40AF;
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  padding: 2px 9px;
  border-radius: 5px;
  letter-spacing: 0.1px;
  transition: background 0.15s var(--ease-out-expo),
              color 0.15s var(--ease-out-expo);
}

.badge:hover { background: #DBEAFE; color: var(--c-accent-hover); }

/* First card wide — bento break, normal block flow */
.skill__card:first-child {
  display: block;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contactInfo__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-bg);
  border-radius: 10px;
  border: 1px solid var(--c-border);
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.contactInfo__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contactInfo__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
  font-size: 13px;
}

.contactInfo__label {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 2px;
  display: block;
}

.contactInfo__value {
  font-size: 13px;
  color: var(--c-text-strong);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.15s var(--ease-out-expo);
  word-break: break-word;
}

a.contactInfo__value:hover { color: var(--c-accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer__container {
  background: #06090F;
  color: rgba(255, 255, 255, 0.45);
  padding: 44px 0 32px;
  width: 100%;
  display: block;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand--name {
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer__brand--tagline {
  font-size: 11.5px;
  color: #1E293B;
  margin-top: 3px;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
}

.footer__linkItem a {
  display: inline-block;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 5px;
  border: none;
  transition: color 0.2s var(--ease-out-expo),
              background 0.2s var(--ease-out-expo);
}

.footer__linkItem a:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.footer__desc {
  width: 100%;
  font-size: 11.5px;
  color: #1E293B;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

/* ============================================
   LANG SWITCHER
   ============================================ */
.lang__switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.12);
  margin-left: 4px;
}

.lang__btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s var(--ease-out-expo),
              background 0.2s var(--ease-out-expo);
}

.lang__btn:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); }
.lang__btn--active { color: #fff; }

.lang__sep {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   INLINE LINK — used in bio, research desc
   ============================================ */
.inline__link {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--c-accent-mid);
  transition: border-color 0.15s var(--ease-out-expo),
              color 0.15s var(--ease-out-expo);
}

.inline__link:hover {
  color: var(--c-accent-hover);
  border-bottom-color: var(--c-accent);
}

/* Thesis link inside education card */
.thesis__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  border: 1px solid var(--c-accent-mid);
  background: var(--c-accent-light);
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.15s var(--ease-out-expo),
              border-color 0.15s var(--ease-out-expo);
}

.thesis__link:hover {
  background: #DBEAFE;
  border-color: var(--c-accent);
}

/* ============================================
   PUBLICATION ASIDE — year badge + external link
   ============================================ */
.publication__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.publication__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  text-decoration: none;
  font-size: 11px;
  transition: background 0.15s var(--ease-out-expo),
              color 0.15s var(--ease-out-expo),
              border-color 0.15s var(--ease-out-expo);
}

.publication__link:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-mid);
  color: var(--c-accent);
}

/* ============================================
   THESIS HIGHLIGHT CARD — bottom of research
   ============================================ */
.thesis__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--c-text-strong);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 4px;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo);
}

.thesis__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.22);
}

.thesis__icon {
  font-size: 28px;
  color: #60A5FA;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thesis__body { flex: 1; }

.thesis__label {
  font-size: 10px;
  font-weight: 700;
  color: #60A5FA;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}

.thesis__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.thesis__meta {
  font-size: 12.5px;
  color: #475569;
}

.thesis__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #fff;
  background: var(--c-accent);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  transition: background 0.2s var(--ease-out-expo),
              transform 0.15s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.thesis__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-hover);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-out-expo);
  border-radius: inherit;
}

.thesis__cta:hover::before { transform: translateY(0); }
.thesis__cta:hover,
.thesis__cta:focus-visible {
  transform: translateY(-2px);
  color: #fff;
}
.thesis__cta > * { position: relative; z-index: 1; }
.thesis__cta > i { position: relative; z-index: 1; }

/* ============================================
   CONTACT — 2-col layout: info left / form right
   ============================================ */
#contact {
  padding: 100px 0;
  background: var(--c-surface);
}

.contact__Container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
  margin-top: 12px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__closing {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.85;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}

/* ============================================
   CONTACT FORM
   SKILL: label above input, gap-2 blocks, error below
   ============================================ */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

/* Anti-spam honeypot — invisible for real users */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-strong);
  letter-spacing: 0.2px;
}

.form__input {
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text-strong);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease-out-expo),
              box-shadow 0.2s var(--ease-out-expo);
  width: 100%;
  resize: none;
}

.form__input::placeholder { color: var(--c-muted); }

.form__input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form__textarea { min-height: 128px; resize: vertical; }

/* Error state */
.form__error {
  font-size: 11.5px;
  color: #DC2626;
  font-weight: 500;
  display: none;
}

.form__group--error .form__input {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form__group--error .form__error { display: block; }

/* Submit button */
.form__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform 0.15s var(--ease-out-expo),
              box-shadow 0.2s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-hover);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-out-expo);
  border-radius: inherit;
}

.form__submit:hover::before { transform: translateY(0); }
.form__submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,0.45); }
.form__submit:active { transform: scale(0.98); }
.form__submit > * { position: relative; z-index: 1; }
.form__submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Success message */
.form__success {
  display: none;
  font-size: 13.5px;
  color: #16A34A;
  font-weight: 600;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Desktop nav: hide mobile toggle ── */
@media screen and (min-width: 992px) {
  .navbar__listItem--mobile { display: none; }
}

/* ── Tablet / large mobile: show hamburger, hide desktop nav + social ── */
@media screen and (max-width: 991.98px) {
  #btnControl:checked ~ ul.mobileList { display: block; }
  .navbar__socialItem,
  .navbar__listItem { display: none; }

  /* Keep lang switcher visible inside mobile menu */
  .mobileList .lang__switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

/* ── 768px — tablets and large phones ── */
@media screen and (max-width: 768px) {

  /* Navbar */
  .navbar__container,
  .about__Container,
  .experience__Container,
  .research__Container,
  .skills__Container,
  .contact__Container { padding: 0 20px; }

  /* Experience: reduce left padding on timeline so content doesn't overflow */
  .experience__Container .timeline__item { padding-left: 28px; }
  .experience__Container .timeline__content { padding: 18px 20px; }

  /* Hero: una columna en móvil */
  .hero__inner {
    padding: 0 20px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    justify-items: center;
    gap: 0;
    min-height: calc(100dvh - 68px);
  }
  .hero__content {
    padding: 36px 0 32px;
    max-width: 100%;
    order: 2;
  }
  .hero__photo {
    order: 1;
    height: 260px;
    width: 100%;
    align-items: center;
    padding-bottom: 0;
  }
  .hero__photo--frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(37,99,235,0.5);
    mask-image: none;
    -webkit-mask-image: none;
    box-shadow: 0 0 0 6px rgba(37,99,235,0.12);
  }
  .hero__photo--img {
    object-position: center 15%;
  }
  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -1.5px;
    margin-bottom: 12px;
  }
  .hero__subtitle {
    font-size: clamp(14px, 3.5vw, 17px);
    margin-bottom: 14px;
  }
  .hero__tagline {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 32px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
  }
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero__button {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
  }
  .hero__arrow--click { left: 20px; }

  /* About */
  .about__desc { grid-template-columns: 1fr; gap: 40px; }

  /* Experience timeline */
  .timeline__tags { flex-wrap: wrap; gap: 6px; }

  /* Research blocks */
  .research__block { padding: 20px 18px; }

  /* Skills */
  .skills__grid { grid-template-columns: 1fr; }
  .skill__card:first-child { grid-column: span 1; display: block; }

  /* Contact */
  .contact__layout { grid-template-columns: 1fr; gap: 36px; }
  .contact__wrap { padding: 0; }

  /* Thesis card */
  .thesis__card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .thesis__cta { width: 100%; justify-content: center; }

  /* Sections vertical padding */
  #about, #experience, #research, #skills, #contact { padding: 72px 0; }
  .section__header { margin-bottom: 36px; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── 480px — small phones ── */
@media screen and (max-width: 480px) {
  .hero__content { padding: 60px 0 72px; }
  .hero__title {
    font-size: clamp(28px, 9vw, 38px);
    letter-spacing: -1px;
  }
  .section__title { font-size: 22px; letter-spacing: -0.8px; }
  .section__eyebrow { font-size: 10px; }

  /* Timeline items: tighter on small screens */
  .timeline__content { padding: 18px 16px; }
  .timeline__title { font-size: 14px; }
  .timeline__badge { font-size: 9px; padding: 2px 7px; }

  /* Publication items: stack year badge above detail */
  .publication__item { flex-direction: column; gap: 6px; }
  .publication__aside { align-items: flex-start; }

  /* Skills badges wrap nicely */
  .skill__badges { gap: 5px; }
  .badge { font-size: 10.5px; padding: 3px 8px; }

  /* Contact info: smaller gap */
  .contactInfo__item { gap: 10px; }

  /* Form full-width on tiny screens */
  .form__input { font-size: 16px; } /* prevent iOS zoom on focus */
}

/* ── 360px — very small phones ── */
@media screen and (max-width: 360px) {
  .hero__title { font-size: 26px; }
  .hero__subtitle { font-size: 13px; }
  .navbar__container,
  .about__Container,
  .experience__Container,
  .research__Container,
  .skills__Container,
  .contact__Container { padding: 0 16px; }
  .hero__inner { padding: 0 16px; }
}











