@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root {
  --green-dark: rgb(11, 68, 56);
  --green-alt: rgb(11, 66, 53);
  --beige: rgb(251, 248, 240);
  --gray-soft: rgb(163, 168, 156);
  --brown: rgb(111, 91, 63);
  --text-dark: #111111;
  --text-muted: #5f625c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  background-color: var(--beige);
  color: var(--text-dark);
}

.no-scroll {
  overflow: hidden;
}

/* INTRO */

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 18vw;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-logo {
  width: 150px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: introLogoReveal 0.8s ease forwards;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes introLogoReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* REVEAL GENERAL */

.site-header,
main,
.site-footer {
  opacity: 0;
}

body.intro-complete .site-header {
  animation: revealHeader 0.8s ease forwards;
}

body.intro-complete main,
body.intro-complete .site-footer {
  animation: revealMain 0.9s ease forwards;
}

@keyframes revealHeader {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealMain {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: rgba(251, 248, 240, 0.82);
  backdrop-filter: blur(14px);
}

.wordmark {
  text-decoration: none;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--green-dark);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 130px 6vw 80px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      to bottom,
      rgba(251, 248, 240, 0.92),
      rgba(251, 248, 240, 1)
    );
}

.hero-content {
  max-width: 920px;
}

.eyebrow,
.section-label {
  color: var(--brown);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  font-size: clamp(4rem, 10.5vw, 9.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 300;
  color: var(--green-dark);
  text-transform: lowercase;
}

.hero-description {
  max-width: 560px;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-button,
.contact-button {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 24px;
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-button:hover,
.contact-button:hover {
  background-color: var(--green-dark);
  color: var(--beige);
}

/* ANIMACIÓN HERO */

.hero .eyebrow,
.hero h1,
.hero-description,
.hero-button {
  opacity: 0;
  transform: translateY(18px);
}

body.intro-complete .hero .eyebrow {
  animation: revealElement 0.8s ease forwards;
  animation-delay: 0.15s;
}

body.intro-complete .hero h1 {
  animation: revealElement 0.9s ease forwards;
  animation-delay: 0.3s;
}

body.intro-complete .hero-description {
  animation: revealElement 0.8s ease forwards;
  animation-delay: 0.55s;
}

body.intro-complete .hero-button {
  animation: revealElement 0.8s ease forwards;
  animation-delay: 0.75s;
}

@keyframes revealElement {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECCIONES GENERALES */

.section {
  padding: 110px 6vw;
}

.section-intro {
  max-width: 980px;
}

.section h2 {
  max-width: 900px;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.04em;
}

/* NOSOTROS */

.about-section {
  background-color: var(--beige);
  border-top: 1px solid rgba(11, 68, 56, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.about-heading h2 {
  max-width: 780px;
}

.about-content {
  padding-top: 48px;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.about-lead {
  color: var(--green-dark) !important;
  font-size: 1.18rem !important;
  line-height: 1.6 !important;
  margin-bottom: 28px;
}

.about-values {
  margin-top: 56px;
  border-top: 1px solid rgba(11, 68, 56, 0.3);
}

.about-values article {
  padding: 28px 0;
  border-bottom: 1px solid rgba(11, 68, 56, 0.18);
}

.about-values span {
  display: block;
  color: var(--brown);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.about-values h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 12px;
}

.about-values p {
  font-size: 0.92rem;
}

/* SERVICIOS */

.services-section {
  background-color: rgba(251, 248, 240, 1);
}

.services-list {
  margin-top: 80px;
  border-top: 1px solid rgba(11, 68, 56, 0.35);
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  padding: 42px 0;
  border-bottom: 1px solid rgba(11, 68, 56, 0.22);
}

.service-number {
  color: var(--brown);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 8px;
}

.service-content {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.service-content h3 {
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.service-content p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

.service-content ul {
  list-style: none;
}

.service-content li {
  color: var(--green-dark);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.9;
}

/* PROYECTOS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 70px;
}

.project-card {
  cursor: pointer;
}

.project-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: rgba(11, 68, 56, 0.08);
}

.project-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.project-card:hover .project-img {
  transform: scale(1.035);
  filter: brightness(0.92);
}

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(11, 68, 56, 0.35);
  padding-top: 18px;
  margin-top: 22px;
}

.project-number {
  color: var(--brown);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-info h3 {
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.project-category {
  color: var(--brown);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
  max-width: 190px;
}

.project-card:nth-child(1) .project-img {
  object-position: center bottom;
}

.project-card:nth-child(2) .project-img {
  object-position: center center;
}

.project-card:nth-child(3) .project-img {
  object-position: center center;
}

/* CONTACTO */

.contact-section {
  background-color: var(--green-dark);
  color: var(--beige);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.contact-section .section-label,
.contact-section h2,
.contact-section p {
  color: var(--beige);
}

.contact-heading p {
  max-width: 620px;
  margin-top: 28px;
  line-height: 1.7;
  color: rgba(251, 248, 240, 0.82);
}

.contact-button {
  border-color: var(--beige);
  color: var(--beige);
}

.contact-button:hover {
  background-color: var(--beige);
  color: var(--green-dark);
}

.contact-info {
  border-top: 1px solid rgba(251, 248, 240, 0.35);
}

.contact-info article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(251, 248, 240, 0.22);
}

.contact-info span {
  color: rgba(251, 248, 240, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.contact-info p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, 0.62);
}

.contact-info a {
  grid-column: 2;
  color: var(--beige);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 300;
}

.contact-info a:hover {
  opacity: 0.72;
}

/* FOOTER */

.site-footer {
  background-color: var(--green-dark);
  color: var(--beige);
  padding: 38px 6vw;
  border-top: 1px solid rgba(251, 248, 240, 0.22);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.footer-brand p {
  color: rgba(251, 248, 240, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.footer-brand .footer-logo {
  color: var(--beige);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(251, 248, 240, 0.72);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--beige);
}

.footer-copy {
  text-align: right;
  color: rgba(251, 248, 240, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-content {
    padding-top: 0;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .project-info {
    align-items: flex-start;
  }

  .project-category {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

/* RESPONSIVE CELULAR */

@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 22px 6vw;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    gap: 12px 18px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .hero {
    padding-top: 150px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
    line-height: 0.96;
  }

  .section {
    padding: 80px 6vw;
  }

  .intro-screen {
    padding-left: 12vw;
  }

  .intro-logo {
    width: 120px;
  }

  .service-item {
    padding: 36px 0;
  }

  .service-content h3 {
    font-size: 2rem;
  }

  .contact-info article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-info a {
    grid-column: 1;
  }

  .contact-section {
    padding-bottom: 90px;
  }
}