/* IMPORTAR TIPOGRAFÍAS */

body {
  font-family: 'Karla', sans-serif;
  color: #111;
  background: #ffffff;
  line-height: 1.4;
}

/* HEADER */
.header {
  background-color: #5ea2f1;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

.perfil-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}



h1 {
    font-family: 'Jomhuria', cursive;
    font-size: 120px;
}

.grafica {
    font-family: 'Jomhuria', cursive;
    font-size: 50px;
}

main {
    padding: 60px 20px;
}

.projectes {
    display: flex; /* Para poner los divs en horizontal */
    justify-content: space-between; /* Espacio entre las imágenes */
    flex-wrap: wrap; /* Que se ajusten en pantallas pequeñas */
    gap: 20px; /* Espacio entre imágenes */
    margin-top: 40px;
}

.projectes > div {
    flex: 1 1 22%; 
    position: relative; /* Para que el texto se posicione sobre la imagen */
    text-align: center;
    overflow: hidden; /* Evita que el texto sobresalga */
    border-radius: 12px;
}

.graficaimg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Texto sobre la imagen */
.projectes > div .grafica {
    position: absolute;
    bottom: 0; /* Pegado abajo de la imagen */
    left: 0;
    width: 100%;
    color: black;
    font-size: 50px;
    padding: 10px 0;
    font-family: 'Jomhuria', cursive;
}

/* FOOTER */
.footer {
  position: relative;
  padding: 36px 20px;
  background: #f2fbff;
}

.footer-shape {
  position: absolute;
  left: 12px;
  bottom: -18px;
  width: 160px;
  height: 80px;
  background: #fff4b0;
  border-radius: 6px;
  transform: rotate(-4deg);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 3;
  text-align: center; /* texto centrado */
  font-family: 'Karla', sans-serif;
}

.small-logo {
  margin-bottom: 12px;
  text-align: left; /* logo a la izquierda */
}

.small-logo img {
  width: 120px; /* logo más grande */
  height: auto;
  display: block;
}