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

/* MODO OSCURO DEFAULT */

body {
  background: #1d1d1b;
  color: #f4f4ef;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  overflow-x: hidden;
}

/* MENÚ BLANCO EN MODO OSCURO */

.site-header {
  background: #f4f4ef;
}

.logo,
.main-nav a,
.theme-toggle {
  color: #1d1d1b;
}

.burger span {
  background: #1d1d1b;
}

.sobre-mi {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 55px 5vw 45px;
}

.hero h1 {
  font-size: 76px;
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -4px;
  transform: translateX(-320px);
}

.hero h1 span {
  display: block;
  margin-left: 175px;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}

.intro {
  display: grid;
  grid-template-columns: 30ch 46ch;
  justify-content: end;
  column-gap: 640px;
  margin: 80px 0 -100px;
}

.intro p:first-child {
  max-width: 30ch;
}

.intro p:nth-child(2) {
  max-width: 46ch;
}

p {
  font-size: 15px;
  line-height: 0.93;
  letter-spacing: -0.45px;
}

.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid #f4f4ef;
}

.bloque {
  position: relative;
  padding: 20px;
  border-bottom: 2px solid #f4f4ef;
}

.bloque-izq-arriba {
  height: 760px;
  border-right: 2px solid #f4f4ef;
}

.bloque-der-arriba {
  height: 385px;
}

.bloque-izq-abajo {
  height: 295px;
  border-right: 2px solid #f4f4ef;
}

.bloque-der-abajo {
  height: 670px;
  margin-top: -375px;
  grid-column: 2;
}

.titulo-bloque {
  max-width: 190px;
}

.texto {
  max-width: 345px;
}

.texto-izq {
  position: absolute;
  left: 20px;
  top: 250px;
}

.texto-der {
  position: absolute;
  left: 20px;
  top: 235px;
  max-width: 365px;
}

.foto {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.foto:hover {
  filter: grayscale(0%);
}

.foto-grande {
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: calc(100% - 40px);
  height: 360px;
}

.foto-retrato {
  position: absolute;
  top: 25px;
  right: 20px;
  width: 305px;
  height: 335px;
}

.freelance {
  position: absolute;
  left: 20px;
  top: 285px;
}

.flecha-pequena {
  width: 52px;
  display: block;
}

.bloque-der-arriba .flecha-pequena {
  position: absolute;
  left: 20px;
  bottom: 22px;
}

.texto-final-izq {
  position: absolute;
  left: 20px;
  bottom: 25px;
  max-width: 360px;
}

.flecha-final {
  margin-top: 28px;
}

.flecha-grande {
  position: absolute;
  display: block;
  width: 110px;
  z-index: 2;
}

.flecha-grande img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.flecha-grande:hover img {
  transform: rotate(90deg);
}

.boton-cv {
  top: 25px;
  right: 20px;
}

.boton-carta {
  top: 32px;
  right: 22px;
}

.galeria-mini {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mini-col {
  border-right: 2px solid #f4f4ef;
  padding-right: 18px;
}

.mini-head {
  transform: translateY(-10px);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1px;
}

.mini-head span {
  font-size: 15px;
  line-height: 0.93;
  letter-spacing: -0.45px;
}

.galeria-mini img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* MODO CLARO */

body.light-mode {
  background: #f4f4ef;
  color: #1d1d1b;
}

/* MENÚ NEGRO EN MODO CLARO */

body.light-mode .site-header {
  background: #1d1d1b;
}

body.light-mode .logo,
body.light-mode .main-nav a,
body.light-mode .theme-toggle {
  color: #f4f4ef;
}

body.light-mode .burger span {
  background: #f4f4ef;
}

/* LÍNEAS EN MODO CLARO */

body.light-mode .poster-grid {
  border-top-color: #1d1d1b;
}

body.light-mode .bloque {
  border-bottom-color: #1d1d1b;
}

body.light-mode .bloque-izq-arriba,
body.light-mode .bloque-izq-abajo,
body.light-mode .mini-col {
  border-right-color: #1d1d1b;
}

/* ANIMACIÓN SCROLL */

.reveal {
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 850px) {
  .sobre-mi {
    width: 92vw;
    padding: 35px 0;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
    transform: translateX(0);
  }

  .hero h1 span {
    margin-left: 0;
  }

  .intro,
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 35px;
    margin: 70px 0;
  }

  .intro p:first-child,
  .intro p:nth-child(2) {
    transform: translateX(0);
  }

  .bloque,
  .bloque-izq-arriba,
  .bloque-izq-abajo,
  .bloque-der-abajo {
    height: auto;
    min-height: 420px;
    border-right: none;
    margin-top: 0;
    grid-column: auto;
  }

  .foto-grande,
  .foto-retrato,
  .texto-izq,
  .texto-der,
  .texto-final-izq,
  .freelance,
  .galeria-mini {
    position: static;
    margin-top: 35px;
  }

  .foto-grande,
  .foto-retrato {
    width: 100%;
    height: auto;
  }

  .flecha-grande {
    width: 80px;
  }

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

/* SVG NEGROS EN MODO CLARO */

body.light-mode .flecha-pequena,
body.light-mode .flecha-grande img {
  filter: brightness(0);
}