body {
      font-family: 'Helvetica Neue', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #fff;
      color: #000;
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      padding: 1rem 2rem 0.5rem;
      max-width: 1000px;
      margin: auto;
    }

    .header-content h1 {
      font-size: 2.5rem;
      font-weight: 400;
      margin: 0;
    }

    nav {
      display: flex;
      gap: 1rem;
    }

    nav a {
      text-decoration: none;
      color: #000;
      font-weight: bold;
    }

    section {
      padding: 0 2rem 2rem;
      max-width: 1000px;
      margin: auto;
    }

    ul {
      list-style: none;
      padding-left: 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1rem;
    }

    li.obra {
      cursor: pointer;
      position: relative;
      height: 200px;
      background: var(--img) no-repeat center center / cover;
      border-radius: 0;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      transition: transform 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      font-weight: bold;
      text-align: center;
    }

    li.obra::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.7);
      z-index: 1;
    }

    li.obra a {
      text-decoration: none;
      color: #000;
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    li.obra span {
      position: relative;
      z-index: 2;
    }

    li.obra:hover {
      transform: scale(1.02);
    }

    footer {
      text-align: center;
      padding: 1rem;
      background-color: #f2f2f2;
      font-size: 0.9rem;
    }
	
	.site-title {
  max-height: 60px;       /* controla el alto máximo */
  height: auto;           /* mantiene proporción */
  width: auto;            /* evita deformación */
  object-fit: contain;    /* ajusta bien la escala */
}

    @media screen and (max-width: 768px) {
      .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }

      .header-content h1 {
        font-size: 2rem;
      }

      section {
        padding: 1rem;
      }
	  
	    .site-title {
    max-height: 40px;     /* más pequeño en pantallas medianas */
  }
    }

    @media screen and (max-width: 480px) {
      .header-content h1 {
        font-size: 1.5rem;
      }

      li.obra {
        font-size: 0.95rem;
        height: 160px;
      }
	  
	     .site-title {
    max-height: 30px;     /* aún más pequeño en móviles */
  }
    }