/* IMPORTAR TIPOGRAFÍAS */
@import url('https://fonts.googleapis.com/css2?family=Jomhuria&family=Karla:wght@400;500;700&display=swap');

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

html, body {
  height: 100%;
}

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;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px 100px;
  background: linear-gradient(to right, #c4f0f1 50%, #ffffff 50%);
}

.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
  margin-top: -40px;
}

.hero-left h1 {
  font-family: 'Jomhuria', cursive;
  font-size: 220px;
  font-weight: 400;
  color: #000;
  line-height: 0.8;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  top: -20px;
}

.hero-libro {
  position: absolute;
  bottom: -100px;
  left: 20px;
  width: 130px;
  height: auto;
}

.hero-right {
  text-align: right;
  width: 50%;
}

.hero-nom {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-banner {
  position: relative;
  background-color: #75aef3;
  padding: 40px 80px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.logo-hero-img {
  width: 420px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* PRESENTACIÓN */
.presentacion {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  padding: 180px 20px 60px 20px;
  flex-wrap: wrap;
}

.present-left {
  max-width: 420px;
  margin-left: 100px;
}

.present-left h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.present-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-left: 250px;
}

.img-block {
  position: relative;
  width: 260px;
  height: 300px;
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #00e0b8;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 3;
}

/* PROYECTOS */
.proyectos {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  margin-bottom: 160px;
}

.projects-shapes {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  z-index: 1;
}

.square {
  position: absolute;
  border-radius: 8px;
}

.square-large {
  width: 420px;
  height: 220px;
  background: #b8e7f0;
  transform: rotate(-3deg);
  left: -160px;
  top: 20px;
}

.square-medium {
  width: 400px;
  height: 400px;
  background: #7fbef5;
  left: 50%;
  top: 50px;
  transform: translateX(-50%) rotate(6deg);
  z-index: 2;
}

.square-small {
  width: 140px;
  height: 140px;
  background: #c9e9ff;
  transform: rotate(-10deg);
  left: 220px;
  top: 120px;
}

.projects-inner {
  position: relative;
  z-index: 3;
}

.project-icons img {
  width: 320px;
  height: 320px;
  margin: 0 18px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

/* CABRONAZI */
.cabronazi {
  text-align: center;
  padding: 60px 20px;
}

.cab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.cab-grid img {
  width: auto;
  height: auto;
  max-width: 260px;
  display: block;
  border-radius: 14px;
}

/* 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;
}

/* RESPONSIVE GENERAL */
@media (max-width: 900px) {

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
    background: #c4f0f1;
    padding: 40px 20px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 120px;
    margin-bottom: 10px;
    top: 0;
  }

  .hero-libro {
    position: static;
    margin-top: 10px;
    width: 80px;
  }

  .hero-banner {
    padding: 20px 40px;
  }

  .logo-hero-img {
    width: 280px;
  }

  /* PROYECTOS */
  .square-medium {
    width: 300px;
    height: 300px;
    top: 20px;
    transform: translateX(-50%) rotate(6deg);
  }

  /* PRESENTACIÓN */
  .present-left {
    margin-left: 0;
    text-align: center;
  }

  .present-right {
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }

  .presentacion {
    padding-top: 100px;
    gap: 20px;
  }

  .img-block {
    width: 200px;
    height: 240px;
  }

  .proyectos {
    padding-bottom: 30px;
  }

  .project-icons img {
    width: 110px;
    height: 110px;
    margin: 0 6px;
  }

  .cabronazi {
    padding-top: 20px;
  }

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

  .cab-grid img {
    max-width: 180px;
  }
}

@media (max-width: 600px) {

  .hero-left h1 {
    font-size: 90px;
  }

  .logo-hero-img {
    width: 240px;
  }

  .project-icons img {
    width: 90px;
    height: 90px;
    margin: 0 4px;
  }

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

  .cab-grid img {
    max-width: 150px;
  }
}
