:root {
  --text: #F4F8FA;
  --main-bg: #0f0f0f;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
}

body {
  margin: 0;
  position: relative;
  color: var(--text);
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: url("assets/frutiger-wallpaper-mobile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Desktop */
@media (min-width: 769px) {
  .bg-layer {
    background-image: url("assets/frutiger-wallpaper.webp");
  }
}

.page-content {
  position: relative;
  z-index: 1;
}

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

.top-bar {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 40px 5px 40px;

  font-size: 32px;
  font-weight: 300;

  z-index: 999;
}

.container {
  padding: 10px;
  border-radius: 10px;

  background:
    radial-gradient(120% 100% at 50% 50%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.10) 35%,
      rgba(255, 255, 255, 0.05) 100%);

  backdrop-filter: blur(5px);

  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    inset 0 -1px 4px rgba(255, 255, 255, 0.25),
    0 9px 24px rgba(0, 0, 0, 0.5);
  width: 95%;
  align-self: center;
}

.navbar nav {
  height: 80px;
  border-radius: 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  padding: 0 10px;

  background: linear-gradient(to bottom,
      rgba(130, 130, 130, 0.81) 0%,
      rgba(61, 61, 61, 0.81) 48%,
      rgba(48, 48, 48, 0.81) 48%,
      rgba(0, 0, 0, 0.81) 100%);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}

.navbar nav ul li {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 23px;
  font-weight: 200;
  cursor: pointer;
}

.navbar nav ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 220ms ease;
  transform: translateX(-50%);
}

.navbar nav ul li:hover::after {
  width: 100%;
}

.navbar nav ul li a {
  color: rgba(255, 255, 255, 0.9);
}

.navbar nav .lang {
  position: absolute;
  right: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 200;
  font-size: 23px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar nav .lang:hover {
  opacity: 0.85;
}

.navbar nav .lang:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  padding: 80px 40px;
  overflow: hidden;
}

.hero-text {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-text h2 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: 1px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
}

.hero-text span {
  display: block;
  font-size: 30px;
  line-height: 1.55;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.80);
  max-width: 1000px;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 200;
  max-width: 700px;

  color: rgba(255, 255, 255, 0.70);
}

.buttons {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 30px;
  border-radius: 15px;

  background: linear-gradient(to bottom,
      #454747 0%,
      #1F1F1F 50%,
      #3D3D3D 100%);

  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(255, 255, 255, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);


  color: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  font-weight: 100;
  letter-spacing: 1px;

  cursor: pointer;
  user-select: none;
  margin-top: 20px;
}

.contact-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  transition: transform 160ms ease, filter 160ms ease;
}

.cv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 63.5px;
  border-radius: 15px;

  background: linear-gradient(to bottom,
      #F2F2F2 0%,
      #BEBEBE 50%,
      #DADADA 100%);

  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(255, 255, 255, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);

  color: #000000;
  font-size: 30px;
  font-weight: 100;
  letter-spacing: 1px;

  cursor: pointer;
  user-select: none;
  margin-top: 20px;
}

.cv-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  transition: transform 160ms ease, filter 160ms ease;
}

.hero-image {
  position: relative;
  width: 420px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  width: 300px;
  height: auto;
  display: block;
  transform: translateX(-60px) translateY(90px);
}

.about {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.about h2 {
  margin-bottom: 0;
}

/* Badge del icono: misma estética que .stat */
.about-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;

  /* misma paleta / mismo degradé que los pills (to bottom) */
  background: linear-gradient(to bottom,
      rgba(127, 179, 224, 0.80) 0%,
      rgba(79, 142, 196, 1.00) 50%,
      rgba(106, 159, 209, 0.75) 100%);

  /* mismo “stack” de sombras que venís usando */
  box-shadow:
    0px 7px 16px 0px rgba(0, 0, 0, 0.25),
    inset 0px -1px 2px 0px rgba(255, 255, 255, 0.30),
    inset 0px 1px 2px 0px rgba(255, 255, 255, 0.25);

  border: 1px solid rgba(255, 255, 255, 0.18);
  background-clip: padding-box;

  /* micro ajuste para que no parezca “pegote” */
  transform: translateY(1px);
}

/* Ícono */
.about-icon i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  /* derecha fija y consistente */
  column-gap: 48px;
  /* gap tipo diseño */
  align-items: start;
}

.about .container {
  height: auto;
  /* About no necesita 90vh */
  padding: 34px 40px;
  /* padding del diseño */
}

.about h2 {
  font-size: 34px;
  font-weight: 200;
  letter-spacing: 0.5px;

  line-height: 1;
}

.about-left {
  grid-column: 1;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: none;
  padding-top: 1rem;
}

.about-left p {
  font-size: 25px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.80);
}

.about-left p+p {
  margin-top: 22px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.social-icon a {
  display: inline-block;
  transition: transform 180ms ease, filter 180ms ease;
}

.social-icon a:nth-child(2) {
  animation-delay: 0.25s;
}

.social-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;

  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.social-icon img:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

.social-icon a:hover {
  transform: translateY(-4px) scale(1.04);
}

.about-right .stat-container {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.about-right .stat-container::after {
  content: "";
  position: absolute;

  left: -22px;
  right: 0;

  bottom: 0;
  height: 1px;

  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.40) 50%,
      rgba(255, 255, 255, 0.10) 100%);

  pointer-events: none;
  opacity: 0.9;
}

.about-right .stat-container:last-child::after {
  display: none;
}

.about-right .stat-container .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-right .stat-container .stat {
  width: fit-content;
  white-space: nowrap;
}

.about-right {
  grid-column: 2;
  width: 100%;
  max-width: 520px;

  position: relative;
  padding-left: 28px;
}

.about-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;

  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.40) 50%,
      rgba(255, 255, 255, 0.10) 100%);

  border-radius: 2px;
  pointer-events: none;
}

.stat-container {
  margin-bottom: 26px;
}

.stat-container h3 {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  flex: 0 0 100%;
  margin-bottom: 6px;
}

.stat-container .stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 12px;

  font-size: 23px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.78);

}

span.stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  gap: .5rem;

  color: #EAF4FF;
  font-weight: 500;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);

  background: linear-gradient(to bottom,
      rgba(127, 179, 224, 0.80) 0%,
      rgba(79, 142, 196, 1.00) 50%,
      rgba(106, 159, 209, 0.75) 100%);

  box-shadow:
    0px 7px 16px 0px rgba(0, 0, 0, 0.25),
    inset 0px -1px 2px 0px rgba(255, 255, 255, 0.30),
    inset 0px 1px 2px 0px rgba(255, 255, 255, 0.25);

  border: 1px solid rgba(255, 255, 255, .18);
  background-clip: padding-box;
}


/* Pills */
.about-right .stat-container .stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  /* evita que “Java · Spring Boot” se parta */
}


.about-right .stat-container h3 {
  margin-bottom: 12px;
}

.about-right .stat-container .stat {
  display: inline-flex;
}

.project {
  display: flex;
  justify-content: center;
}

.project .container {
  padding-top: 0;
  height: auto;
  /* que crezca con el contenido */
  min-height: 90vh;
}

.title-bar {
  height: 70px;
  border-radius: 5px;

  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -10px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Degradado (to bottom) + opacidad 81% */
  background: linear-gradient(to bottom,
      rgba(78, 127, 168, 0.81) 0%,
      rgba(47, 95, 140, 0.81) 48%,
      rgba(40, 79, 118, 0.81) 48%,
      rgba(30, 63, 94, 0.81) 100%);

  /* Sombras: exterior + 2 interiores */
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.25),
    /* sombra paralela */
    inset 0 -1px 2px rgba(0, 0, 0, 0.30),
    /* sombra interior (arriba -> y -1) */
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
  /* brillo interior (abajo -> y +1) */
}

.title-bar h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 200;
  letter-spacing: 1.5px;
  line-height: 1;
  /* Ajustá esto a tu tipografía global si querés que calce 1:1 */
  font-size: 28px;
}

.project-bar {
  height: 45px;
  /* ajustá si la querés más alta/baja */
  border-radius: 5px;
  width: 95%;

  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;

  background: linear-gradient(to bottom,
      rgba(111, 152, 187, 0.81) 0%,
      rgba(78, 127, 168, 0.81) 48%,
      rgba(69, 114, 155, 0.81) 48%,
      rgba(58, 99, 136, 0.81) 100%);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
}

.project-nav {
  width: 95%;
  margin: 17px auto 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.project-bar h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 200;
  letter-spacing: 1px;
  font-size: 18px;
  line-height: 1;
}

/* Botones flecha con estética similar */
.project-arrow {
  height: 45px;
  width: 44px;
  border-radius: 10px;
  border: 0px solid;
  cursor: pointer;
  user-select: none;

  display: grid;
  place-items: center;

  color: rgba(255, 255, 255, 0.92);
  font-size: 26px;
  font-weight: 200;
  line-height: 1;

  background: linear-gradient(to bottom,
      rgba(111, 152, 187, 0.81) 0%,
      rgba(78, 127, 168, 0.81) 48%,
      rgba(69, 114, 155, 0.81) 48%,
      rgba(58, 99, 136, 0.81) 100%);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
}

.project-arrow:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  transition: transform 160ms ease, filter 160ms ease;
}

.project-arrow:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.project-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.project-container {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 56px;
  align-items: start;
  padding: 0 34px 30px 34px;
}

#projectContent {
  opacity: 1;
  transition: opacity 260ms ease;
  will-change: opacity;
}

#projectContent.is-fading-out {
  opacity: 0;
  pointer-events: none;
}

#projectContent.is-fading-in {
  opacity: 1;
}

.project-left {
  max-width: 900px;
  /* evita líneas eternas */
  font-weight: 100;
}

.project-left p {
  font-size: 20px;
}

.project-left h4 {
  font-size: 28px;
  font-weight: 200;
  padding: 15px 0;
}

.project-list {
  padding-left: 30px;
  font-size: 20px;
}

.project-list li {
  padding-bottom: 10px;
}

#list-last {
  position: relative;
  padding-bottom: 18px;
  /* espacio antes de la línea */
}

#list-last::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;

  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.40) 50%,
      rgba(255, 255, 255, 0.10) 100%);
}

.project-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  align-items: center;
  position: relative;
  padding-left: 32px;
}

.project-right::before {
  content: "";
  position: absolute;

  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;

  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.40) 50%,
      rgba(255, 255, 255, 0.10) 100%);

  border-radius: 2px;
  pointer-events: none;
}

.project-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 10px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  width: min(92vw, 980px);
  margin: 5vh auto 0;
  z-index: 1;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 20px;
}

.video-modal__close:hover {
  filter: brightness(1.08);
}

.video-modal__content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.video-modal__content video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.project-links a,
.project-links button {
  color: var(--text);
  font-weight: 200;
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: linear-gradient(to bottom,
      rgba(111, 152, 187, 0.81) 0%,
      rgba(78, 127, 168, 0.81) 48%,
      rgba(69, 114, 155, 0.81) 48%,
      rgba(58, 99, 136, 0.81) 100%);

  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30),
    inset 0 1px 2px rgba(255, 255, 255, 0.30);
}

.project-links a:hover,
.project-links button:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  transition: transform 160ms ease, filter 160ms ease;
}

.project-right h4 {
  font-size: 25px;
  font-weight: 200;
  margin-top: 20px;
  justify-self: start;
  align-self: start;
}

.project-stack {
  margin-top: 14px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 22px;
  /* row-gap / column-gap */
  justify-items: center;
  align-items: center;

  width: 100%;
  max-width: 320px;
  /* controla “compacto” como el diseño */
}

.project-stack img {
  width: 52px;
  /* ajustá a ojo */
  height: 52px;
  object-fit: contain;
  display: block;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.contact .container {
  height: auto;
  min-height: 70vh;
}

.contact .container h2 {
  font-size: 32px;
  font-weight: 200;
  text-align: center;
  margin: 0 0 14px 0;
}

.contact .container#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 22px 32px 18px;
  margin-bottom: 28px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 18px;
}

/* CARD */
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;

  width: 100%;
  max-width: 560px;

  padding: 18px 22px;
  border-radius: 18px;

  background: linear-gradient(to bottom,
      rgba(127, 179, 224, 0.80) 0%,
      rgba(79, 142, 196, 1.00) 50%,
      rgba(106, 159, 209, 0.75) 100%);

  border: 1px solid rgba(255, 255, 255, 0.18);
  background-clip: padding-box;

  box-shadow:
    0px 7px 16px 0px rgba(0, 0, 0, 0.25),
    inset 0px -1px 2px 0px rgba(0, 0, 0, 0.25),
    inset 0px 1px 2px 0px rgba(255, 255, 255, 0.30);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0px 10px 22px 0px rgba(0, 0, 0, 0.28),
    inset 0px -1px 2px 0px rgba(0, 0, 0, 0.25),
    inset 0px 1px 2px 0px rgba(255, 255, 255, 0.30);
}

/* ICONO */
.icon-container {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;

  display: grid;
  place-items: center;
  border-radius: 14px;

  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.10) 100%);

  border: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.18);
}

.icon-container i {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.20);
}

/* TEXTO */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-info h3 {
  font-size: 22px;
  font-weight: 500;
  color: #EAF4FF;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.20);
}

.card-info span,
.card-info a {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  word-break: break-word;
}

.contact-location {
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.68);
  margin: 10px;
}





/* INITIAL ANIMATION */

.hero {
  animation: pageFadeIn 650ms ease-out both;
}

.hero .container {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  animation: heroPanelIn 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.top-bar,
.navbar,
.hero-text h2,
.hero-text span,
.hero-text p,
.buttons {
  opacity: 0;
  transform: translateY(18px);
}

.top-bar {
  animation: heroItemIn 650ms ease-out 80ms forwards;
}

.navbar {
  animation: heroItemIn 650ms ease-out 320ms forwards;
}

.hero-text h2 {
  animation: heroItemIn 650ms ease-out 460ms forwards;
}

.hero-text span {
  animation: heroItemIn 650ms ease-out 580ms forwards;
}

.hero-text p {
  animation: heroItemIn 650ms ease-out 700ms forwards;
}

.buttons {
  animation: heroButtonsIn 650ms ease-out 820ms forwards;
}

.hero-image img {
  opacity: 0;
  transform: translateX(-60px) translateY(120px) scale(0.94);
  animation: heroPhotoIn 850ms cubic-bezier(0.22, 1, 0.36, 1) 940ms forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(4px);
  }

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

@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

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

@keyframes heroButtonsIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translateX(-60px) translateY(120px) scale(0.94);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateX(-60px) translateY(90px) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero,
  .hero .container,
  .top-bar,
  .navbar,
  .hero-text h2,
  .hero-text span,
  .hero-text p,
  .buttons,
  .hero-image img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-image img {
    transform: translateX(-60px) translateY(90px) !important;
  }
}


/* =========================
   ABOUT SCROLL ANIMATIONS
========================= */

/* Panel */
.about .container {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Título */
.about-top {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    filter 600ms ease;
  transition-delay: 140ms;
}

/* Texto izquierdo */
.about-left p {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    filter 600ms ease;
}

/* escalonado del texto */
.about-left p:nth-of-type(1) {
  transition-delay: 260ms;
}

.about-left p:nth-of-type(2) {
  transition-delay: 380ms;
}

.about-left p:nth-of-type(3) {
  transition-delay: 500ms;
}

/* Columna derecha */
.about-right {
  opacity: 0;
  transform: translateX(28px);
  filter: blur(8px);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 800ms ease;
  transition-delay: 520ms;
}

/* Cada grupo de skills */
.about-right .stat-container {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
  will-change: opacity, transform;
}

.about-right .stat-container:nth-child(1) {
  transition-delay: 620ms;
}

.about-right .stat-container:nth-child(2) {
  transition-delay: 740ms;
}

.about-right .stat-container:nth-child(3) {
  transition-delay: 860ms;
}

/* Social icons */
.about .social-icon {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    filter 500ms ease;
  transition-delay: 980ms;
  will-change: opacity, transform, filter;
}

/* Estado visible */
.about.is-visible .container {
  opacity: 1;
  transform: translateY(0);
}

.about.is-visible .about-top {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.about.is-visible .about-left p {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.about.is-visible .about-right {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.about.is-visible .about-right .stat-container {
  opacity: 1;
  transform: translateY(0);
}

.about.is-visible .social-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


/* =========================
   PROJECTS SCROLL ANIMATIONS
========================= */

/* 1) Panel */
.project .container {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
  will-change: opacity, transform, filter;
}

/* 2) Título */
.project .title-bar {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    filter 260ms ease;
  transition-delay: 120ms;
  will-change: opacity, transform, filter;
}

/* 3) Selector de proyecto */
.project .project-nav {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    filter 260ms ease;
  transition-delay: 240ms;
  will-change: opacity, transform, filter;
}

/* 4) Descripción / bloque izquierdo */
.project .project-left {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 240ms ease,
    transform 280ms ease,
    filter 280ms ease;
  transition-delay: 380ms;
  will-change: opacity, transform, filter;
}

/* 5) Preview / bloque derecho */
.project .project-right {
  opacity: 0;
  transform: translateX(24px);
  filter: blur(8px);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
  transition-delay: 500ms;
  will-change: opacity, transform, filter;
}

/* 6) Tecnologías */
.project .project-stack {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    filter 260ms ease;
  transition-delay: 660ms;
  will-change: opacity, transform, filter;
}

/* Estado visible */
.project.is-visible .container {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.project.is-visible .title-bar {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.project.is-visible .project-nav {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.project.is-visible .project-left {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.project.is-visible .project-right {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.project.is-visible .project-stack {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

  .project .container,
  .project .title-bar,
  .project .project-nav,
  .project .project-left,
  .project .project-right,
  .project .project-stack {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================
   CONTACT SCROLL ANIMATIONS
========================= */

/* 1) Panel */
.contact .container {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
  will-change: opacity, transform, filter;
}

/* 2) Título */
.contact .container h2 {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 240ms ease,
    transform 280ms ease,
    filter 280ms ease;
  transition-delay: 120ms;
  will-change: opacity, transform, filter;
}

/* 3) Cards */
.contact .contact-card {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition:
    opacity 260ms ease,
    transform 320ms ease,
    filter 320ms ease;
  will-change: opacity, transform, filter;
}

.contact .contact-card:nth-child(1) {
  transition-delay: 240ms;
}

.contact .contact-card:nth-child(2) {
  transition-delay: 340ms;
}

/* 4) Social icons */
.contact .social-icon {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  filter: blur(4px);
  transition:
    opacity 240ms ease,
    transform 280ms ease,
    filter 280ms ease;
  transition-delay: 460ms;
  will-change: opacity, transform, filter;
}

/* 5) Línea final */
.contact-location {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 240ms ease,
    transform 260ms ease;
  transition-delay: 580ms;
  will-change: opacity, transform;
}

/* Estado visible */
.contact.is-visible .container {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.contact.is-visible .container h2 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.contact.is-visible .contact-card {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.contact.is-visible .social-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.contact.is-visible .contact-location {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .contact .container,
  .contact .container h2,
  .contact .contact-card,
  .contact .social-icon,
  .contact-location {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}









/* RESPONSIVE */

@media (max-width: 600px) {
  .top-bar {
    padding: 12px 16px 6px;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    gap: 12px;
  }

  .container {
    width: calc(100% - 16px);
    padding: 8px;
  }

  .navbar nav {
    height: auto;
    padding: 0;
    overflow: hidden;
    display: block;
  }

  .navbar nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
  }

  .navbar nav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    font-size: 0.875rem;
    font-weight: 300;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .navbar nav ul li:nth-child(2n) {
    border-right: none;
  }

  .navbar nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .navbar nav ul li::after {
    display: none;
  }

  .navbar nav .lang {
    position: static;
    display: block;
    width: 100%;
    min-height: 44px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 300;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 16px 20px;
    gap: 24px;
  }

  .hero-text {
    max-width: 100%;
    gap: 14px;
  }

  .hero-text h2 {
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .hero-text span {
    font-size: clamp(1.25rem, 5.2vw, 1.5rem);
    line-height: 1.45;
    max-width: 100%;
  }

  .hero-text p {
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.6;
    max-width: 100%;
  }

  .buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 10px;
  }

  .contact-cta,
  .cv-cta {
    width: 100%;
    margin-top: 0;
    padding: 14px 20px;
    font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  }

  .hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .hero-image img {
    opacity: 1;
    animation: none;
    transform: none;
    transform: translateY(90px);
  }






    .about {
    margin: 20px 0;
  }

  .about .container {
    padding: 20px 16px;
  }

  .about-top {
    gap: 10px;
    margin-bottom: 18px;
  }

  .about h2 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .about-icon {
    width: 36px;
    height: 36px;
  }

  .about-icon i {
    font-size: 16px;
  }

  .about-container {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }

  .about-left,
  .about-right {
    grid-column: auto;
    max-width: 100%;
    width: 100%;
  }

  .about-left {
    gap: 18px;
    padding-top: 0;
  }

  .about-left p {
    font-size: clamp(1rem, 4.3vw, 1.125rem);
    line-height: 1.65;
  }

  .about-left p + p {
    margin-top: 0;
  }

  .social-icon {
    margin-top: 12px;
    gap: 12px;
    justify-content: center;
  }

  .social-icon img {
    width: 48px;
    height: 48px;
  }

  .about-right {
    padding-left: 0;
  }

  .about-right::before {
    display: none;
  }

  .about-right .stat-container {
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .about-right .stat-container::after {
    left: 0;
  }

  .stat-container h3 {
    font-size: clamp(1.35rem, 5.5vw, 1.6rem);
    margin-bottom: 10px;
  }

  .about-right .stat-container .stats {
    gap: 10px;
  }

  .about-right .stat-container .stat {
    white-space: normal;
    text-align: center;
  }

  span.stat {
    padding: 10px 14px;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.35;
  }



    .project .container {
    padding-bottom: 24px;
    min-height: auto;
  }

  .title-bar {
    height: 60px;
  }

  .title-bar h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .project-nav {
    width: 100%;
    grid-template-columns: 38px 1fr 38px;
    gap: 8px;
    margin-top: 14px;
  }

  .project-bar {
    height: 42px;
    width: 100%;
  }

  .project-bar h3 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    text-align: center;
    padding: 0 8px;
  }

  .project-arrow {
    width: 38px;
    height: 42px;
    font-size: 20px;
  }

  .project-container {
    grid-template-columns: 1fr;
    row-gap: 28px;
    column-gap: 0;
    padding: 0 16px 24px;
  }

  .project-left {
    max-width: 100%;
  }

  .project-left p {
    font-size: clamp(1rem, 4vw, 1.15rem);
    line-height: 1.6;
  }

  .project-left h4 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    padding: 12px 0;
  }

  .project-list {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    padding-left: 20px;
  }

  .project-right {
    padding-left: 0;
    max-width: 100%;
    align-items: center;
  }

  .project-right::before {
    display: none;
  }

  .project-right img {
    width: 100%;
    max-width: 340px;
  }

  .project-links {
    gap: 10px;
  }

  .project-links a {
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    padding: 8px 14px;
  }

  .project-right h4 {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin-top: 16px;
  }

  .project-stack {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 260px;
  }

  .project-stack img {
    width: 44px;
    height: 44px;
  }



    .contact {
    padding: 20px 0;
  }

  .contact .container {
    min-height: auto;
  }

  .contact .container#contact {
    padding: 20px 16px 18px;
    margin-bottom: 20px;
  }

  .contact .container h2 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
    margin: 0 0 16px 0;
  }

  .cards-container {
    gap: 14px;
    margin-bottom: 16px;
  }

  .contact-card {
    gap: 14px;
    padding: 16px 14px;
    border-radius: 16px;
    max-width: 100%;
  }

  .icon-container {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
  }

  .icon-container i {
    font-size: 20px;
  }

  .card-info {
    gap: 3px;
    min-width: 0;
    flex: 1;
  }

  .card-info h3 {
    font-size: clamp(1.15rem, 4.6vw, 1.35rem);
    line-height: 1.15;
  }

  .card-info span,
  .card-info a {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact .social-icon {
    margin-top: 10px;
    gap: 12px;
  }

  .contact .social-icon img {
    width: 48px;
    height: 48px;
  }

  .contact-location {
    max-width: 260px;
    margin: 12px auto 0;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.5;
  }
}


@media (min-width: 601px) and (max-width: 1023px) {
  .top-bar {
    padding: 14px 24px 8px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
  }

  .container {
    width: calc(100% - 32px);
    padding: 10px;
  }

  .navbar nav {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }

  .navbar nav ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav ul li {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .navbar nav .lang {
    position: static;
    margin-left: 14px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px 28px;
    gap: 28px;
  }

  .hero-text {
    max-width: 720px;
    align-items: center;
    gap: 16px;
  }

  .hero-text h2 {
    font-size: clamp(3rem, 6vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .hero-text span {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.45;
    max-width: 680px;
  }

  .hero-text p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    max-width: 640px;
  }

  .buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
  }

  .contact-cta,
  .cv-cta {
    margin-top: 0;
    min-width: 180px;
    padding: 14px 28px;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }

  .hero-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    animation: none;
    transform: none;
    width: min(320px, 52vw);
    margin: 0 auto;
    opacity: 1;
  }




    .about {
    margin: 24px 0;
  }

  .about .container {
    padding: 28px 24px;
  }

  .about-top {
    gap: 12px;
    margin-bottom: 20px;
  }

  .about h2 {
    font-size: clamp(2rem, 4vw, 2.4rem);
  }

  .about-icon {
    width: 40px;
    height: 40px;
  }

  .about-icon i {
    font-size: 17px;
  }

  .about-container {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 28px;
    column-gap: 0;
  }

  .about-left,
  .about-right {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

  .about-left {
    gap: 20px;
    padding-top: 0;
  }

  .about-left p {
    font-size: clamp(1.5rem, 2vw, 1.3rem);
    line-height: 1.7;
    max-width: 100%;
  }

  .about-left p + p {
    margin-top: 0;
  }

  .social-icon {
    margin-top: 16px;
    gap: 14px;
  }

  .social-icon img {
    width: 54px;
    height: 54px;
  }

  .about-right {
    padding-left: 0;
  }

  .about-right::before {
    display: none;
  }

  .about-right .stat-container {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .about-right .stat-container::after {
    left: 0;
  }

  .stat-container h3 {
    font-size: clamp(1.5rem, 2.8vw, 1.8rem);
    margin-bottom: 12px;
  }

  .about-right .stat-container .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .about-right .stat-container .stat {
    white-space: nowrap;
  }

  span.stat {
    padding: 10px 16px;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.35;
  }


    .project .container {
    min-height: auto;
    padding-bottom: 28px;
  }

  .title-bar {
    height: 64px;
  }

  .title-bar h2 {
    font-size: clamp(2rem, 3.8vw, 2.4rem);
  }

  .project-nav {
    width: calc(100% - 32px);
    margin-top: 18px;
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
  }

  .project-bar {
    width: 100%;
    height: 44px;
  }

  .project-bar h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    padding: 0 10px;
  }

  .project-arrow {
    width: 42px;
    height: 44px;
    font-size: 22px;
  }

  .project-container {
    grid-template-columns: 1fr;
    row-gap: 30px;
    column-gap: 0;
    padding: 0 28px 28px;
  }

  .project-left,
  .project-right {
    max-width: 100%;
    width: 100%;
  }

  .project-left p {
    font-size: clamp(1.1rem, 1.9vw, 1.25rem);
    line-height: 1.65;
  }

  .project-left h4 {
    font-size: clamp(1.7rem, 2.8vw, 2rem);
    padding: 14px 0;
  }

  .project-list {
    padding-left: 24px;
    font-size: clamp(1.05rem, 1.8vw, 1.15rem);
    line-height: 1.55;
  }

  .project-list li {
    padding-bottom: 12px;
  }

  .project-right {
    padding-left: 0;
    justify-self: stretch;
    align-items: center;
  }

  .project-right::before {
    display: none;
  }

  .project-right img {
    width: 100%;
    max-width: 520px;
    margin-bottom: 12px;
  }

  .project-links {
    gap: 12px;
    margin-top: 12px;
  }

  .project-links a {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    padding: 9px 16px;
  }

  .project-right h4 {
    align-self: center;
    margin-top: 20px;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  }

  .project-stack {
    margin-top: 16px;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    max-width: 360px;
  }

  .project-stack img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1200px) {

  /* más aire en la barra superior */
  .top-bar {
    padding: 14px 60px 10px;
    font-size: clamp(1.6rem, 1.6vw, 2rem);
  }

  /* navbar un poco más refinada */
  .navbar nav {
    height: 72px;
    padding: 0 20px;
  }

  .navbar nav ul {
    gap: 28px;
  }

  .navbar nav ul li {
    font-size: 22px;
  }

  .navbar nav .lang {
    right: 30px;
    font-size: 22px;
  }

  /* hero con más respiración */
  .hero-content {
    padding: 90px 60px;
    gap: 40px;
  }

  /* bloque de texto más controlado */
  .hero-text {
    max-width: 560px;
    gap: 20px;
  }

  .hero-text h2 {
    font-size: clamp(4rem, 4vw, 4.5rem);
  }

  .hero-text span {
    font-size: clamp(2rem, 1.6vw, 1.9rem);
  }

  .hero-text p {
    font-size: clamp(1.5rem, 1.1vw, 1.2rem);
  }

  /* botones un poco más equilibrados */
  .buttons {
    gap: 28px;
  }

  .contact-cta,
  .cv-cta {
    font-size: 26px;
    padding: 14px 32px;
  }


  .about .container {
    padding: 40px 48px;
  }

  .about-top {
    gap: 16px;
    margin-bottom: 26px;
  }

  .about h2 {
    font-size: 36px;
  }

  .about-icon {
    width: 44px;
    height: 44px;
  }

  .about-icon i {
    font-size: 18px;
  }

  .about-container {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 420px);
    column-gap: 56px;
    align-items: start;
  }

  .about-left {
    max-width: 100%;
    gap: 28px;
    padding-top: 0.25rem;
  }

  .about-left p {
    font-size: 27px;
    line-height: 1.5;
    max-width: 900px;
  }

  .about-left p + p {
    margin-top: 18px;
  }

  .social-icon {
    margin-top: 30px;
    gap: 16px;
  }

  .social-icon img {
    width: 58px;
    height: 58px;
  }

  .about-right {
    max-width: 100%;
    padding-left: 30px;
  }

  .about-right::before {
    top: 10px;
    bottom: 10px;
  }

  .about-right .stat-container {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .about-right .stat-container::after {
    left: -30px;
  }

  .stat-container h3 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .about-right .stat-container .stats {
    gap: 14px;
  }

  span.stat {
    padding: 11px 18px;
    font-size: 21px;
    border-radius: 14px;
  }





    .project-container {
    grid-template-columns: 1.45fr 0.9fr;
    column-gap: 72px;
  }

  .project-left {
    max-width: 760px;
  }

  .project-left p {
    font-size: 23px;
    line-height: 1.65;
  }

  .project-bar h3 {
    font-size: 20px;
  }

  .project-right {
    max-width: 480px;
  }

  .project-right img {
    max-width: 460px;
  }

  .project-right h4 {
    margin-top: 24px;
  }

  .project-stack {
    margin-top: 18px;
  }

}