
@font-face {
  font-family: "Aresink";
  src: url("./demo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --fondo: #E5E2DA;
  --texto: #173B45;
  --acento: #3B7E82;
  --linea: #173B45;
  --titulos: #173B45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Aresink", serif;
  color: var(--texto);
  font-size: 19px;
  line-height: 1.7;
  text-align: center !important;
  background-color: var(--fondo);
  background-image: url("./Fondo%20trabajo%20final%20Imagen%20Escrita.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  background-attachment: scroll;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--acento);
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

button {
  font: inherit;
}

/* CENTRAR TODOS LOS TEXTOS */

body,
body h1,
body h2,
body h3,
body p,
body span,
body a,
body .nombre,
body .titulo-portafolio,
body .descripcion-portafolio,
body .texto-presentacion,
body .titulo-seccion,
body .wiki,
body .indice,
body .proyecto,
body footer {
  text-align: center !important;
}

/* ENCABEZADO */

.encabezado {
  position: relative;
  min-height: 75vh;
  padding: 7rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center !important;
}

.titulo-portafolio {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 1rem;
  font-size: 76px !important;
  line-height: 1.1;
  font-weight: normal;
  color: #173B45 !important;
}

.nombre {
  width: 100%;
  margin: 0 auto 2rem;
  font-size: 24px !important;
}

.descripcion-portafolio {
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
}

.descripcion-portafolio p {
  margin: 0 0 1.2rem;
  font-size: 19px !important;
  line-height: 1.7;
}

/* ESTRELLAS */

.estrella {
  position: absolute;
  color: var(--acento);
  line-height: 1;
  pointer-events: none;
}

.estrella-1 {
  top: 12%;
  right: 15%;
  font-size: 4rem;
}

.estrella-2 {
  top: 35%;
  right: 8%;
  font-size: 2.5rem;
}

.estrella-3 {
  top: 3rem;
  right: 10%;
  font-size: 3rem;
}

/* CARRUSEL */

.carrusel {
  position: relative;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carrusel-contenedor {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.grupo-fotos {
  display: none;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.grupo-fotos.activo {
  display: grid;
}

.grupo-fotos img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.flecha {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: var(--fondo);
  color: var(--texto);
  cursor: pointer;
}

.flecha:hover {
  background: var(--acento);
  color: white;
}

/* NAVEGACIÓN */

.indice {
  display: flex;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 6%;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.indice a {
  color: var(--texto);
  font-size: 1.1rem;
}

/* TÍTULOS DE SECCIÓN */

.titulo-seccion {
  width: 100%;
  margin: 0 0 2rem;
  font-size: 54px !important;
  line-height: 1.1;
  font-weight: normal;
  color: #173B45 !important;
}

/* PRESENTACIÓN */

.presentacion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 6rem 10%;
}

.texto-presentacion {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.texto-presentacion p {
  margin: 0 0 1.2rem;
  font-size: 19px !important;
  line-height: 1.7;
}

.fotos-presentacion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.fotos-presentacion img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

/* PORTAFOLIO */

.portfolio {
  position: relative;
  padding: 6rem 10%;
}

.proyectos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  justify-items: center;
}

.proyecto {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  min-width: 0;
  width: 100%;
  color: var(--texto);
}

.proyecto img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.proyecto p {
  margin: 0;
  font-size: 19px;
  color: #173B45;
}

/* WIKI */

.wiki {
  padding: 5rem 10%;
  border-top: 1px solid var(--linea);
}

.wiki p {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: 19px !important;
  line-height: 1.7;
  color: #173B45;
}

.wiki > a {
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--acento);
  font-size: 19px;
}

/* PIE DE PÁGINA */

footer {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 10%;
  border-top: 1px solid var(--linea);
  font-size: 18px;
  color: #173B45;
}

footer p {
  margin: 0;
}

/* TABLET */

@media (max-width: 900px) {
  .encabezado {
    min-height: auto;
    padding: 5rem 7%;
  }

  .titulo-portafolio {
    font-size: 60px !important;
  }

  .presentacion {
    gap: 2rem;
    padding: 4rem 7%;
  }

  .portfolio,
  .wiki {
    padding: 4rem 7%;
  }

  .proyectos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grupo-fotos img {
    height: 200px;
  }

  .fotos-presentacion img {
    max-height: 300px;
  }
}

/* CELULAR */

@media (max-width: 600px) {
  body {
    font-size: 16px;
    background-size: 100% auto;
  }

  .encabezado {
    padding: 4rem 6%;
  }

  .titulo-portafolio {
    font-size: 42px !important;
  }

  .nombre {
    font-size: 22px !important;
  }

  .descripcion-portafolio p,
  .texto-presentacion p,
  .wiki p {
    font-size: 17px !important;
  }

  .titulo-seccion {
    font-size: 36px !important;
  }

  .estrella-1 {
    top: 3%;
    right: 8%;
    font-size: 2.5rem;
  }

  .estrella-2 {
    top: 20%;
    right: 5%;
    font-size: 1.8rem;
  }

  .carrusel {
    padding: 1.5rem 2%;
    gap: 0.4rem;
  }

  .flecha {
    width: 32px;
    height: 32px;
  }

  .grupo-fotos {
    gap: 0.4rem;
  }

  .grupo-fotos img {
    height: 120px;
  }

  .indice {
    gap: 1rem;
    padding: 1.2rem 4%;
  }

  .indice a {
    font-size: 1rem;
  }

  .presentacion {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 6%;
  }

  .portfolio,
  .wiki {
    padding: 3.5rem 6%;
  }

  .fotos-presentacion img {
    max-height: 230px;
  }

  .proyectos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .proyecto img {
    height: 150px;
  }

  .proyecto p {
    font-size: 16px;
  }

  .estrella-3 {
    top: 2rem;
    right: 6%;
    font-size: 2rem;
  }

  footer {
    padding: 1.5rem 6%;
    flex-direction: column;
    gap: 0.5rem;
  }
}
