@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;

  --purple: #5028c9;

  --ink: #191324;

  --muted: #655e70;

  --line: #241a35;

  --paper: #fff;

  --lilac: #f1ecff;

  --lime: #d9ff6a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #fff;

  color: var(--ink);

  font:
    16px/1.65 "Poppins",
    system-ui,
    sans-serif;

  overflow-x: hidden;
}

a {
  color: inherit;

  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--purple);

  outline-offset: 4px;
}

.wrap {
  max-width: 1180px;

  margin: auto;

  padding: 0 26px;
}

/* Navegación */

header {
  position: sticky;

  top: 0;

  z-index: 10;

  background: #ffffffed;

  backdrop-filter: blur(16px);

  border-bottom: 2px solid var(--ink);
}

nav {
  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 76px;

  gap: 16px;
}

.logo {
  font:
    800 1.55rem "Montserrat",
    sans-serif;
  letter-spacing: -0.07em;
}

.logo-img{
  width: 10rem;
}

.logo span,
.eyebrow {
  color: var(--purple);
}

.links {
  display: flex;

  gap: 26px;

  font-weight: 800;

  font-size: 0.83rem;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.links a:hover,
.plain:hover {
  color: var(--purple);
}

/* Presentación */

.hero {
  position: relative;

  isolation: isolate;

  padding: 100px 0 115px;

  max-width: 100%;

  /*  border-bottom: 3px solid var(--ink); */
}

/* .hero:before {

        content: '✳';

        position: absolute;

        right: 2%;

        top: 8%;

        font-size: clamp(120px, 24vw, 300px);

        color: var(--purple);

        opacity: 0.11;

        z-index: -1;

        line-height: 1;

      } */

/* .hero:after {

        content: '●';

        position: absolute;

        right: 8%;

        bottom: 6%;

        font-size: clamp(70px, 10vw, 130px);

        color: var(--lime);

        z-index: -1;

      } */

.eyebrow {
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  font-size: 0.83rem;
}

.hero h1 {
  font:
    700 clamp(3.5rem, 9vw, 8.2rem) / 0.96 "Montserrat",
    sans-serif;

  letter-spacing: -0.085em;

  margin: 20px 0 28px;

  max-width: 1050px;
}

.hero h1 span {
  color: var(--purple);

  font-style: italic;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);

  color: #4c4457;

  max-width: 760px;
}

.actions {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 35px;
}

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  border-radius: 0;

  padding: 14px 23px;

  font-weight: 800;

  border: 2px solid var(--ink);

  color: #fff;

  background: var(--purple);

  box-shadow: 5px 5px 0 var(--ink);

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn.alt {
  background: #fff;

  color: var(--ink);
}

.btn:hover {
  transform: translate(3px, 3px);

  box-shadow: 2px 2px 0 var(--ink);
}

/* Secciones y habilidades */

section {
  padding: 75px 0;
}

h2 {
  font:
    700 clamp(2.2rem, 5vw, 4.3rem) / 1.05 "Montserrat",
    sans-serif;

  letter-spacing: -0.07em;

  margin: 0 0 20px;
}

.intro {
  color: var(--muted);

  max-width: 800px;

  margin: 0 0 34px;

  font-size: 1.07rem;
}

.skills {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}

.skills span,
.tags span {
  display: inline-block;

  padding: 7px 14px;

  background: var(--lilac);

  border: 1.5px solid var(--purple);

  border-radius: 100px;

  font-size: 0.83rem;

  font-weight: 800;

  color: var(--purple);
}

#sobre-mi {
  background: var(--lilac);

  position: relative;

  border-top: 3px solid var(--ink);

  padding: 85px max(26px, calc((100vw - 1128px) / 2));

  margin: 0 calc(50% - 50vw);

  display: block;
}

#sobre-mi:before,
#experiencia:before,
#proyectos:before {
  display: block;

  font: 800 0.8rem "Montserrat";

  letter-spacing: 0.15em;

  color: var(--purple);

  margin-bottom: 18px;
}

/* #sobre-mi:before {

        content: '01 / ABOUT';

      } */

/* Experiencia */

#experiencia {
  padding: 85px max(26px, calc((100vw - 1128px) / 2));

  margin: 0 calc(50% - 50vw);

  border-block: 3px solid var(--ink);
}

/* #experiencia:before {

        content: '02 / EXPERIENCE';

      } */

.timeline {
  display: grid;

  gap: 20px;
}

.job {
  background: #fff;

  border: 2px solid var(--ink);

  border-left: 9px solid var(--purple);

  padding: 28px;

  box-shadow: none;
}

.job:nth-child(even) {
  border-left-color: #b6ff4d;
}

.job-date {
  color: var(--purple);

  font-size: 0.85rem;

  font-weight: 800;

  letter-spacing: 0.03em;
}

.job h3 {
  margin: 9px 0;

  font:
    700 1.3rem "Montserrat",
    sans-serif;
}

.job h3 span {
  color: var(--muted);

  font-weight: 500;
}

.job p {
  color: #554c61;

  margin: 0 0 18px;
}

.job .tags {
  margin-bottom: 0;
}

/* Proyectos */

/* #proyectos:before {

        content: '03 / SELECTED WORK';

      } */

.grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;
}

.project {
  background: #fff;

  border: 2px solid var(--ink);

  overflow: hidden;

  box-shadow: none;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project:nth-child(2n),
.project:hover,
.project:nth-child(2n):hover {
  box-shadow: none;
}

.project:hover {
  transform: translate(-3px, -3px);
}

.project-shot {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  border-bottom: 2px solid var(--ink);
  color: var(--purple);
  text-align: center;
  position: relative;
}

.shot {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, #f2edff 0, #f2edff 18px, #e7ddff 18px, #e7ddff 19px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 9px;

  border-bottom: 2px solid var(--ink);

  color: var(--purple);

  text-align: center;

  padding: 20px;

  position: relative;
}

.shot:before {
  content: "SCREENSHOT / PLACEHOLDER";

  position: absolute;

  top: 15px;

  left: 16px;

  font-size: 0.65rem;

  font-weight: 800;

  letter-spacing: 0.15em;

  color: #7863a9;
}

.shot svg {
  width: 54px;

  height: 54px;

  opacity: 0.85;
}

.shot strong {
  font:
    700 1.05rem "Montserrat",
    sans-serif;
}

.shot small {
  font-size: 0.78rem;

  color: #65538b;
}

.project-body {
  padding: 26px;
}

.project h3 {
  font:
    700 1.55rem "Montserrat",
    sans-serif;

  letter-spacing: -0.04em;

  margin: 0 0 10px;
}

.project p {
  color: var(--muted);

  margin: 0 0 19px;

  font-size: 0.96rem;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 22px;
}

.tags span {
  font-size: 0.73rem;

  padding: 4px 10px;
}

.project-actions {
  display: flex;

  gap: 18px;

  font-size: 0.9rem;

  font-weight: 800;
}

.plain {
  color: var(--purple);
}

.disabled {
  color: #8c8497;

  cursor: default;
}

/* Contacto y pie de página */

.contact {
  padding: 80px 0 110px;
}

.contact-box {
  background: var(--purple);

  color: #fff;

  border: 3px solid var(--ink);

  padding: clamp(28px, 5vw, 64px);

  box-shadow: none;

  position: relative;

  overflow: hidden;
}

.contact-box:after {
  content: "✳";

  position: absolute;

  right: -20px;

  top: -90px;

  font-size: 300px;

  opacity: 0.13;

  pointer-events: none;
}

.contact-box .eyebrow {
  color: var(--lime);
}

.contact-box h2 {
  max-width: 750px;
}

.contact-box p {
  color: #e6dcff;

  max-width: 620px;
}

.contact-box .btn {
  background: #fff;

  color: var(--purple);

  position: relative;

  z-index: 1;
}

footer {
  border-top: 3px solid var(--ink);

  color: var(--muted);

  font-size: 0.85rem;

  padding: 26px 0;

  text-align: center;
}

.marquee {
  background: var(--lime);

  border-block: 3px solid var(--ink);

  padding: 12px 0;

  text-align: center;

  font:
    800 clamp(0.9rem, 2vw, 1.15rem) "Montserrat",
    sans-serif;

  letter-spacing: 0.09em;

  text-transform: uppercase;

  margin: 0 calc(50% - 50vw);
}

@media (max-width: 750px) {
  .links {
    gap: 12px;

    font-size: 0.73rem;

    flex-wrap: wrap;
  }

  .hero {
    padding: 80px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .job {
    padding: 20px;
  }

  nav {
    align-items: flex-start;

    padding-block: 14px;

    flex-direction: column;
  }

  .contact-box {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

.lang-toggle {
  border: 1px solid var(--ink);
  background: var(--purple);
  color: #fff;
  padding: 7px 11px;
  font:
    800 0.78rem "Montserrat",
    sans-serif;
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {

  .lang-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .actions .btn {
    width: 100%;
    min-height: 56px;
    padding: 10px 10px;

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

    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

}
