:root {
  --white: #F3F3F3;
  --yellow: #F0C400;
  --dark: #353535;
  --light-gray: #DADADA;
  --black: #111111;
  --page-x: clamp(2rem, 5vw, 6.5rem);
  --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .7rem 1rem;
  background: var(--black);
  color: white;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* INICIO */
.hero { background: var(--white); }
.hero__top {
  height: clamp(360px, 28vw, 680px);
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3.2vw, 4.3rem) var(--page-x) clamp(2rem, 3.7vw, 5rem);
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand { justify-self: start; width: clamp(150px, 10.9vw, 225px); }
.brand img { width: 100%; height: auto; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 2.6vw, 3.4rem);
  font-size: clamp(.78rem, .84vw, 1rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.desktop-nav a, .button-outline, .hero__projects-link, .pill-link {
  transition: opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { opacity: .55; }
.button-outline {
  justify-self: end;
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark);
  padding: .62em 1.3em;
  cursor: pointer;
  font-size: clamp(.78rem, .84vw, 1rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.button-outline:hover, .button-outline:focus-visible { background: var(--dark); color: var(--white); }
.menu-trigger { display: none; }
.hero__copy {
  margin-top: auto;
  max-width: 1120px;
  line-height: .95;
}
.hero__line {
  margin: 0 0 .15em;
  font-size: clamp(2.1rem, 3.6vw, 5rem);
  font-weight: 200;
  letter-spacing: -.045em;
}
.hero__heart { color: var(--yellow); }
.hero__copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4.7vw, 6.7rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero__image-wrap {
  position: relative;
  height: clamp(360px, 28vw, 680px);
  overflow: hidden;
  background: #111;
}
.hero__image-wrap picture { display:block; width:100%; height:100%; }
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}
.hero__projects-link {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(1.4rem, 2.4vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: white;
  font-size: clamp(.7rem, .72vw, .9rem);
  font-weight: 400;
}
.hero__projects-link span { font-size: 1.3em; }
.hero__projects-link:hover, .hero__projects-link:focus-visible { transform: translateY(3px); }

/* PROYECTOS */
.projects { background: var(--dark); }
.projects__intro {
  min-height: clamp(360px, 24vw, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--white);
  text-align: center;
}
.projects__intro h2 {
  margin: 0 0 .3rem;
  font-size: clamp(2.25rem, 3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 800;
}
.projects__intro p {
  margin: 0;
  font-size: clamp(.7rem, .78vw, .95rem);
  font-weight: 200;
  opacity: .95;
}
.pill-link {
  margin-top: clamp(1.8rem, 2.4vw, 3rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.7rem;
  padding: .62rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: clamp(.72rem, .75vw, .9rem);
  font-weight: 400;
}
.pill-link:hover, .pill-link:focus-visible { transform: translateY(-2px); background: white; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 25vw;
  width: 100%;
  background: #111;
}
.project-card {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}
.project-card--wide { grid-column: span 2; }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease), filter .4s ease;
}
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.018); filter: brightness(.94); }
.project-card:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; z-index: 1; }
.project-card--1 img { object-position: center 48%; }
.project-card--2 img { object-position: center center; }
.project-card--3 img { object-position: center 48%; }
.project-card--4 img { object-position: center center; }
.project-card--5 img { object-position: center 44%; }
.project-card--6 img { object-position: center 53%; }
.project-card--7 img { object-position: center center; }
.project-card--8 img { object-position: center center; }
.project-card--9 img { object-position: center center; }
.project-card--10 img { object-position: center center; }

/* SOBRE MÍ */
.about {
  display: grid;
  grid-template-columns: 39.6% 60.4%;
  min-height: clamp(700px, 50vw, 1000px);
  background: var(--white);
  overflow: hidden;
}
.about__portrait { min-height: inherit; background: #000; }
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.about__content {
  padding: clamp(3.5rem, 5vw, 6.4rem) clamp(3.5rem, 6.3vw, 8rem) clamp(3.25rem, 5vw, 6rem) clamp(2.8rem, 3vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about__content h2 {
  margin: 0 0 clamp(3.2rem, 5.2vw, 6.6rem);
  font-size: clamp(2.9rem, 3.55vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 800;
}
.timeline { width: 100%; }
.timeline__item { margin-bottom: clamp(1.7rem, 2.4vw, 3.1rem); }
.timeline__bar-row {
  display: flex;
  align-items: center;
  min-height: 1.3rem;
  gap: 0;
  margin-left: calc(-1 * clamp(2.8rem, 3vw, 4rem));
}
.timeline__bar { display: block; height: clamp(10px, .75vw, 15px); flex: 0 0 auto; }
.timeline__bar--gray { background: var(--light-gray); }
.timeline__bar--yellow { background: var(--yellow); }
.timeline__bar--first { width: 18.3vw; }
.timeline__bar--2016-gray { width: 18.3vw; }
.timeline__bar--2016-yellow { width: 4.65vw; }
.timeline__bar--2018-gray { width: 23vw; }
.timeline__bar--2018-yellow { width: 3.05vw; }
.timeline__bar--current-gray { width: 26vw; }
.timeline__bar--current-yellow { width: 11vw; }
.timeline__year {
  margin-left: clamp(1.4rem, 1.7vw, 2.2rem);
  font-size: clamp(1rem, 1.3vw, 1.7rem);
  font-weight: 200;
  white-space: nowrap;
}
.timeline__detail {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: clamp(2.4rem, 2.6vw, 3.2rem);
  margin-top: clamp(1.3rem, 1.8vw, 2.4rem);
}
.timeline__detail img {
  width: 32px;
  max-height: 48px;
  object-fit: contain;
  justify-self: start;
}
.timeline__item:nth-child(1) .timeline__detail img { width: 31px; }
.timeline__item:nth-child(2) .timeline__detail img { width: 42px; }
.timeline__item:nth-child(3) .timeline__detail img { width: 41px; }
.timeline__detail p {
  margin: 0;
  max-width: 100%;
  font-size: clamp(.82rem, .95vw, 1.2rem);
  line-height: 1.28;
  font-weight: 200;
  letter-spacing: -.025em;
}
.timeline__detail strong { font-weight: 500; }
.timeline__detail--current { align-items: start; }
.timeline__spacer { width: 1px; height: 1px; }
.timeline__item--current { margin-bottom: 0; }

/* CONTACTO */
.contact {
  position: relative;
  min-height: clamp(760px, 53.3vw, 1080px);
  overflow: hidden;
  background: var(--white);
  isolation: isolate;
}
.contact__socials {
  position: absolute;
  z-index: 3;
  top: clamp(5rem, 6.25vw, 7.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(2.8rem, 4vw, 5rem);
}
.contact__socials a {
  display: block;
  width: clamp(60px, 4vw, 76px);
  transition: transform .2s ease, opacity .2s ease;
}
.contact__socials a:hover, .contact__socials a:focus-visible { transform: translateY(-3px); opacity: .8; }
.contact__title {
  position: absolute;
  z-index: 1;
  top: clamp(12rem, 14.8vw, 19rem);
  left: 50%;
  transform: translateX(-50%) scaleX(1.12);
  margin: 0;
  white-space: nowrap;
  color: var(--dark);
  font-family: "Inter", sans-serif;
  font-size: clamp(7.5rem, 13.2vw, 17rem);
  line-height: .88;
  letter-spacing: -.03em;
  font-weight: 900;
}
.contact__phone {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

/* OVERLAYS */
.menu-overlay,
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.menu-overlay[hidden], .modal[hidden] { display: none; }
.menu-overlay {
  background: rgba(243,243,243,.985);
  color: var(--dark);
}
.menu-overlay__panel {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-overlay__close,
.modal__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}
.menu-overlay__close {
  position: absolute;
  top: max(1.6rem, env(safe-area-inset-top));
  right: max(1.6rem, env(safe-area-inset-right));
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--dark);
}
.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.3rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 500;
}
.menu-overlay__nav a:hover, .menu-overlay__nav a:focus-visible { color: var(--yellow); }
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(0,0,0,.88);
}
.modal__dialog { position: relative; }
.video-modal__dialog { width: min(1100px, 92vw); }
.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
  position: absolute;
  z-index: 2;
  top: -2.8rem;
  right: 0;
  color: white;
  font-size: 2.6rem;
  font-weight: 200;
}
.lightbox__dialog {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1500px);
  max-height: 88vh;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
}
.lightbox__figure figcaption {
  color: rgba(255,255,255,.74);
  font-size: .78rem;
  margin-top: .75rem;
  min-height: 1em;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: clamp(3.5rem, 5vw, 6rem);
  font-weight: 200;
  line-height: .7;
  padding: 1rem;
  opacity: .82;
}
.lightbox__nav:hover, .lightbox__nav:focus-visible { opacity: 1; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
}
.lightbox__close { top: 0; right: 0; }

@media (max-width: 1023px) {
  :root { --page-x: clamp(1.25rem, 6vw, 3rem); }

  .hero__top {
    height: auto;
    min-height: 123vw;
    padding: clamp(2.8rem, 8vw, 4.5rem) var(--page-x) clamp(3rem, 9vw, 5rem);
    align-items: center;
  }
  .site-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .brand { width: clamp(180px, 38vw, 280px); justify-self: auto; }
  .desktop-nav { display: none; }
  .menu-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: clamp(1.5rem, 5.5vw, 2.7rem);
    width: 42px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
    order: 2;
  }
  .menu-trigger span {
    display: block;
    width: 31px;
    height: 3px;
    border-radius: 999px;
    background: var(--dark);
  }
  .button-outline {
    order: 3;
    margin-top: clamp(1.2rem, 4.5vw, 2.2rem);
    justify-self: auto;
    font-size: clamp(.82rem, 2.65vw, 1.15rem);
    padding: .6em .72em;
  }
  .hero__copy {
    margin-top: auto;
    width: 100%;
    max-width: none;
    text-align: center;
    padding-top: clamp(3rem, 12vw, 6rem);
  }
  .hero__line {
    margin-bottom: .2em;
    font-size: clamp(2.1rem, 8.5vw, 4.8rem);
    line-height: 1.12;
  }
  .hero__heart { display: inline-block; }
  .hero__copy h1 {
    margin: 0 auto;
    max-width: 9.3em;
    font-size: clamp(3rem, 11vw, 6.5rem);
    line-height: .98;
  }
  .hero__image-wrap {
    height: auto;
    aspect-ratio: 1216 / 1116;
  }
  .hero__image { object-fit: cover; object-position: center center; }
  .hero__projects-link {
    left: 50%;
    right: auto;
    bottom: clamp(1.5rem, 5vw, 3rem);
    transform: translateX(-50%);
    flex-direction: column;
    gap: .1rem;
    font-size: clamp(.72rem, 2.5vw, 1rem);
  }
  .hero__projects-link:hover, .hero__projects-link:focus-visible { transform: translate(-50%, 3px); }

  .projects__intro {
    min-height: clamp(275px, 56vw, 470px);
    padding: 3rem 1.2rem 3.4rem;
  }
  .projects__intro h2 { font-size: clamp(2rem, 6.9vw, 3.8rem); }
  .projects__intro p { font-size: clamp(.62rem, 2vw, .86rem); }
  .pill-link {
    margin-top: clamp(1.7rem, 5vw, 2.5rem);
    min-width: 6.8rem;
    padding: .5rem 1rem;
    font-size: clamp(.7rem, 2.1vw, .86rem);
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 50vw;
  }
  .project-card--wide { grid-column: span 2; }

  .about {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .about__content {
    order: 1;
    padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(4rem, 10vw, 6rem);
  }
  .about__portrait {
    order: 2;
    min-height: 0;
    aspect-ratio: 754 / 758;
  }
  .about__portrait img { object-position: center 43%; }
  .about__content h2 {
    margin: 0 1.4rem clamp(3rem, 9vw, 5rem);
    text-align: center;
    font-size: clamp(2.8rem, 9vw, 5.1rem);
  }
  .timeline__item { margin-bottom: clamp(1.8rem, 5vw, 3rem); }
  .timeline__bar-row { margin-left: 0; }
  .timeline__bar { height: clamp(9px, 1.9vw, 14px); }
  .timeline__bar--first { width: 26%; }
  .timeline__bar--2016-gray { width: 26%; }
  .timeline__bar--2016-yellow { width: 12%; }
  .timeline__bar--2018-gray { width: 38%; }
  .timeline__bar--2018-yellow { width: 8%; }
  .timeline__bar--current-gray { width: 46%; }
  .timeline__bar--current-yellow { width: 28%; }
  .timeline__year {
    margin-left: clamp(1rem, 4vw, 2rem);
    font-size: clamp(1rem, 3.4vw, 1.65rem);
  }
  .timeline__detail {
    grid-template-columns: clamp(42px, 10vw, 68px) 1fr;
    gap: clamp(1rem, 4vw, 2rem);
    padding: 0 clamp(1.35rem, 6vw, 3.5rem);
    margin-top: clamp(1.2rem, 4vw, 2rem);
  }
  .timeline__detail img { width: clamp(28px, 6vw, 45px); justify-self: center; }
  .timeline__item:nth-child(1) .timeline__detail img,
  .timeline__item:nth-child(2) .timeline__detail img,
  .timeline__item:nth-child(3) .timeline__detail img { width: clamp(28px, 6vw, 45px); }
  .timeline__detail p {
    font-size: clamp(.72rem, 2.35vw, 1.05rem);
    line-height: 1.28;
  }

  .contact {
    min-height: 100vw;
    aspect-ratio: 752 / 758;
  }
  .contact__socials {
    top: clamp(3.2rem, 15vw, 7rem);
    gap: 8.2vw;
  }
  .contact__socials a { width: clamp(32px, 8.2vw, 62px); }
  .contact__title {
    top: clamp(8.5rem, 31vw, 15rem);
    font-size: clamp(3.25rem, 14vw, 7.5rem);
    transform: translateX(-50%) scaleX(1.10);
  }

  .lightbox__nav { display: none; }
  .lightbox__figure img { max-height: 78vh; }
  .lightbox__counter { bottom: .6rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__top { min-height: 86vw; padding-top: clamp(4rem, 8vw, 5.5rem); }
  .hero__copy { padding-top: 2rem; }
  .project-grid { grid-auto-rows: 46vw; }
  .contact__phone {
    width: 170%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .hero__top { min-height: 123.5vw; padding-top: 20vw; }
  .brand { width: clamp(150px, 40vw, 205px); }
  .menu-trigger { margin-top: clamp(1.3rem, 6vw, 2rem); }
  .button-outline { margin-top: clamp(1rem, 4.5vw, 1.6rem); min-width: clamp(150px, 41vw, 205px); }
  .hero__copy { padding-top: clamp(2.5rem, 10vw, 4rem); }
  .hero__line { font-size: clamp(1.9rem, 8.7vw, 3rem); }
  .hero__lead { display: block; }
  .hero__copy h1 { font-size: clamp(2.75rem, 11.2vw, 4rem); max-width: 7.6em; }

  .projects__intro { min-height: 57vw; }
  .projects__intro h2 { font-size: clamp(1.85rem, 7.2vw, 2.8rem); }

  .about__portrait { aspect-ratio: 1 / 1.02; }
  .about__content h2 { font-size: clamp(2.55rem, 9.5vw, 3.8rem); }
  .timeline__bar--first { width: 26%; }
  .timeline__bar--current-yellow { width: 29%; }
  .timeline__detail { padding-inline: clamp(1rem, 4vw, 1.7rem); }
  .timeline__detail p { font-size: clamp(.66rem, 2.5vw, .88rem); }

  .contact { min-height: 101vw; }
  .contact__title { font-size: clamp(3.15rem, 14.5vw, 5.1rem); }
  .contact__phone {
    width: 205%;
    left: 50%;
    transform: translateX(-50%);
  }

  .modal { padding: 1rem; }
  .modal__close { top: -2.6rem; }
  .video-modal__dialog { width: 96vw; }
  .lightbox__figure { max-width: 94vw; }
}


/* AJUSTES FINOS DESKTOP — V3 */
@media (min-width: 1024px) {
  /* INICIO: navegación ligeramente mayor y alineación óptica común */
  .site-header {
    align-items: center;
  }
  .brand {
    display: flex;
    align-items: center;
  }
  .brand img {
    display: block;
  }
  .desktop-nav {
    font-size: clamp(.82rem, .90vw, 1.08rem);
    line-height: 1;
  }
  .button-outline {
    line-height: 1;
  }
  .hero__line {
    font-size: clamp(2.05rem, 3.25vw, 4.55rem);
  }

  /* SOBRE MÍ: igualar tamaño visual y eje de los tres iconos */
  .timeline__detail img {
    justify-self: center;
  }
  .timeline__item:nth-child(1) .timeline__detail img {
    width: 31px;
  }
  .timeline__item:nth-child(2) .timeline__detail img {
    width: 45px;
  }
  .timeline__item:nth-child(3) .timeline__detail img {
    width: 43px;
  }

  /* CONTACTO: bajar levemente el titular y darle un poco más de escala vertical */
  .contact__title {
    top: clamp(12.65rem, 15.4vw, 19.65rem);
    transform: translateX(-50%) scaleX(1.12) scaleY(1.035);
    transform-origin: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* AJUSTES FINALES — V4 */
@media (min-width: 1024px) {
  /* SOBRE MÍ: solo Universidad y Lightbox, sin tocar Escuela de Arte */
  .timeline__item:nth-child(2) .timeline__detail img { width: 48px; }
  .timeline__item:nth-child(3) .timeline__detail img { width: 46px; }
}

@media (max-width: 1023px) {
  /* Compensación del espacio interno de los SVG para igualar su tamaño visual */
  .timeline__item:nth-child(1) .timeline__detail img { width: clamp(28px, 6vw, 45px); }
  .timeline__item:nth-child(2) .timeline__detail img { width: clamp(33px, 7.2vw, 53px); }
  .timeline__item:nth-child(3) .timeline__detail img { width: clamp(35px, 7.6vw, 55px); }
}

/* AJUSTE FINAL — V5: tamaño visual Universidad y Lightbox */
@media (min-width: 1024px) {
  /* Escuela de Arte queda exactamente igual. Los otros dos SVG necesitan
     más caja porque su dibujo ocupa menos espacio dentro del viewBox. */
  .timeline__item:nth-child(2) .timeline__detail img {
    width: 53px;
    max-height: none;
  }
  .timeline__item:nth-child(3) .timeline__detail img {
    width: 51px;
    max-height: none;
  }
}

@media (max-width: 1023px) {
  /* Mismo ajuste proporcional en tablet y móvil, sin tocar Escuela de Arte. */
  .timeline__item:nth-child(2) .timeline__detail img {
    width: clamp(36px, 7.8vw, 57px);
    max-height: none;
  }
  .timeline__item:nth-child(3) .timeline__detail img {
    width: clamp(38px, 8.2vw, 59px);
    max-height: none;
  }
}

/* AJUSTES FINALES — V6 */
@media (min-width: 1024px) {
  /* En desktop, el max-width global de img limitaba estos SVG al ancho de
     la primera columna de la rejilla (34px). Al liberarlo, Universidad y
     Lightbox pueden alcanzar el tamaño visual previsto sin mover el texto. */
  .timeline__item:nth-child(2) .timeline__detail img {
    width: 43px;
    max-width: none;
    max-height: none;
  }
  .timeline__item:nth-child(3) .timeline__detail img {
    width: 46px;
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 767px) {
  /* Un poco más de aire en el borde derecho de SOBRE MÍ sin alterar el
     arranque de las barras a la izquierda. */
  .timeline {
    padding-right: clamp(.85rem, 3.5vw, 1.15rem);
  }

  /* La fila de Actualidad era la que más se acercaba al borde derecho. */
  .timeline__bar--current-gray { width: 42%; }
  .timeline__bar--current-yellow { width: 27%; }
}

/* AJUSTE DEFINITIVO — V7: barra "Actualidad" en móvil */
@media (max-width: 767px) {
  /* Mantiene el aire lateral de V6, pero retrasa el inicio del tramo amarillo
     para reproducir la relación visual de la versión desktop. */
  .timeline__bar--current-gray { width: 46%; }
  .timeline__bar--current-yellow { width: 22%; }
}
