/* BY ARQS 2026: legibilidad, contraste y SEO/UX */

html {
  font-size: 16px;
}

body {
  color: #555;
  line-height: 1.75;
}

p,
.contact-row,
.contact-address,
.project-description,
.footer {
  font-size: 1rem;
}

.text-muted,
.brand-text,
.contact-social a {
  color: #666;
}

.btn-yellow,
.btn-yellow:hover,
.btn-yellow:focus {
  color: #111;
}

.section-subtitle,
.info-title,
.view-projects,
.link-arrow,
.link-arrow-2 {
  font-size: .95rem;
}

.portfolio-intro {
  padding: 9rem 0 4rem;
  background: #fff;
}

.portfolio-intro h1,
.contact-page-title {
  margin: 0 0 1.25rem;
  color: #111;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-transform: none;
}

.contact-page-title {
  font-size: clamp(2rem, 3vw, 3rem);
}

.portfolio-intro p {
  max-width: 780px;
  margin: 0;
  color: #555;
  font-size: 1.08rem;
  line-height: 1.75;
}

.portfolio-intro .eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: #765f00;
  font-family: Poppins, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-item img,
.news-item img {
  width: 100%;
  height: auto;
}

/* Mantiene visibles las cuatro opciones del menú también en notebooks. */
.menu .menu-lang {
  top: 2.5rem !important;
}

.menu-list {
  top: 7rem !important;
  bottom: 6rem !important;
}

.menu-list > li {
  margin-top: 1rem !important;
}

/*
 * Compacta las fichas de portfolio. El tema original suma un margen superior
 * grande al h5 y desplaza la descripción hacia abajo; ambos valores provocaban
 * que el año saliera del fondo amarillo al aumentar la tipografía base.
 */
.project-item:hover .project-hover.trab {
  padding: 1rem 1.5rem !important;
  box-sizing: border-box;
}

.project-item:hover .project-hover.trab .project-hover-content {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.project-item:hover .project-hover.trab .project-title {
  left: 0 !important;
  margin: 0 !important;
  line-height: 1.18;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  transform: none !important;
}

.project-item:hover .project-hover.trab .project-description {
  margin: .5rem 0 0 !important;
  line-height: 1.4;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  transform: none !important;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(241, 209, 45, .75);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  html {
    font-size: 16px;
  }

  body {
    line-height: 1.65;
  }

  .portfolio-intro {
    padding: 7rem 0 2.75rem;
  }

  .portfolio-intro h1,
  .contact-page-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .footer-flex {
    display: block;
  }

  .footer-flex .flex-item {
    margin-bottom: 2rem;
  }

  .input-gray,
  textarea.input-gray,
  .btn {
    font-size: 1rem;
  }

  .menu-list {
    top: 6.5rem !important;
    bottom: 5rem !important;
  }

  .menu-list > li {
    margin-top: .85rem !important;
  }

  .menu-list li a {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}


/* BY ARQS | Ajuste footer mobile - 2026-10-23 */
@media (max-width: 767px) {
  .footer .footer-flex { display: flex; flex-direction: column; align-items: flex-start; }
  .footer .footer-flex .flex-item { width: 100%; min-width: 0; flex: 0 0 auto; }
  .footer .footer-flex .flex-item .inline-block { display: block; clear: both; max-width: 100%; line-height: 1.6; overflow-wrap: break-word; }
  .menu-footer .copy { max-width: 78vw; overflow-wrap: break-word; font-size: 0.85rem; line-height: 1.5; }
}
