@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #121212;
  --ink-soft: #6b6b6b;
  --paper: #ffffff;
  --paper-alt: #f2f2f0;
  --line: #e2e2df;
  --yellow: #f5d033;
  --yellow-deep: #d9ad00;
  --gray-mid: #9a9a9a;
  --white: #ffffff;
  --radius: 3px;
  --max-width: 1180px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.kicker {
  display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 14px;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-lead { color: var(--ink-soft); font-size: 1rem; max-width: 560px; margin-bottom: 40px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer; background: none;
}
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-outline { color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-light:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ============ HEADER ============ */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo-mark { display: flex; align-items: center; }
.logo-mark img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 0.85rem; font-weight: 600; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--yellow-deep); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { margin-left: 6px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; justify-content: flex-start;
    padding: 40px 28px; gap: 26px; font-size: 1.1rem;
    transform: translateX(100%); transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--white);
}
.hero-ph { position: absolute; inset: 0; overflow: hidden; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-ph::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero-content .kicker { color: var(--yellow); }
.hero-content h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--white); max-width: 780px; line-height: 1.08; text-transform: uppercase; }
.hero-content p { color: rgba(255,255,255,0.85); max-width: 500px; margin: 22px 0 34px; font-size: 1.02rem; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ INTRO / VALORES ============ */
.intro { padding: 90px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }

.profile-photo {
  width: 100%; max-width: 260px; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 22px; border: 3px solid var(--ink);
}
.intro-bio p { color: var(--ink-soft); margin-bottom: 14px; font-weight: 500; }
.intro-bio .credentials {
  margin-top: 20px; font-size: 0.82rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.9;
}
.intro-bio .credentials b { color: var(--ink); }

.values-list { display: grid; gap: 26px; }
.value-item { display: flex; gap: 18px; }
.value-num { font-weight: 900; font-size: 1.1rem; color: var(--yellow-deep); min-width: 34px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }

@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }

.estudio-photo { margin-top: 30px; border-radius: var(--radius); overflow: hidden; }
.estudio-photo img { width: 100%; max-height: 560px; object-fit: cover; display: block; }

.kicker-icon { height: 1.4em; width: auto; vertical-align: middle; margin-right: 8px; border-radius: 3px; }

/* ============ SUSTENTABILIDAD ============ */
.sustain {
  padding: 80px 0; background: var(--ink); color: var(--white);
}
.sustain-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.sustain .kicker { color: #30DB23; }
.sustain h2 { color: var(--white); font-size: clamp(1.5rem,2.6vw,2.1rem); margin-bottom: 16px; }
.sustain p { color: rgba(255,255,255,0.75); font-weight: 500; margin-bottom: 20px; }
.sustain-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 30px 26px;
}
.sustain-card img { height: 34px; margin-bottom: 16px; }
.sustain-card img.sustain-evaluarq-logo { height: 80px; background: #fff; padding: 12px 18px; border-radius: 4px; }
.sustain-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.sustain-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 18px; }
.btn-green { background: #30DB23; color: var(--ink); border-color: #30DB23; }
.btn-green:hover { background: var(--ink); color: #30DB23; border-color: #30DB23; }
.sustain-card .btn-outline { border-color: #30DB23; color: #30DB23; }
.sustain-card .btn-outline:hover { background: #30DB23; color: var(--ink); }

@media (max-width: 860px) { .sustain-grid { grid-template-columns: 1fr; } }

/* ============ SERVICIOS ============ */
.services { padding: 90px 0; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.services-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.services-banner img { width: 100%; height: 260px; object-fit: cover; display: block; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-tile { background: var(--paper-alt); padding: 36px 26px; transition: background var(--transition); }
.service-tile:hover { background: var(--white); }
.service-tile .n { font-weight: 900; color: var(--yellow-deep); font-size: 0.95rem; margin-bottom: 18px; display:block; }
.service-tile h3 { font-size: 1.02rem; margin-bottom: 10px; }
.service-tile p { color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; }

@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ TRAYECTORIA ============ */
.trajectory { padding: 90px 0; }
.tl { border-left: 2px solid var(--line); margin-top: 20px; }
.tl-item { position: relative; padding: 0 0 36px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
}
.tl-item .tl-date { font-size: 0.75rem; font-weight: 700; color: var(--yellow-deep); text-transform: uppercase; letter-spacing: 1px; }
.tl-item h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.tl-item .tl-org { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.tl-item p { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; max-width: 640px; }

/* ============ OBRAS DESTACADAS / GRID ============ */
.works { padding: 90px 0; }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.works-head .btn { flex-shrink: 0; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.work-card { display: block; }
.work-photo {
  aspect-ratio: 4/5; background: var(--paper-alt); position: relative; overflow: hidden; margin-bottom: 16px;
  border-radius: var(--radius);
}
.work-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform var(--transition); }
.work-card:hover .work-photo img { transform: scale(1.04); }
.work-card .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow-deep); }
.work-card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.work-card .loc { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 860px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

/* ============ PROCESO ============ */
.process { padding: 90px 0; background: var(--ink); color: var(--white); }
.process .kicker { color: var(--yellow); }
.process .section-title { color: var(--white); }
.process .section-lead { color: rgba(255,255,255,0.7); }
.process-two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.process-infographic-title {
  color: var(--yellow); font-size: 1.3rem; font-weight: 800; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.process-infographic img { width: 100%; display: block; border-radius: var(--radius); }

@media (max-width: 860px) { .process-two-grid { grid-template-columns: 1fr; gap: 50px; } }

/* ============ OBRAS PAGE — FILTROS ============ */
.page-head { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.filter-tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 9px 18px; border: 2px solid var(--line); border-radius: 20px;
  color: var(--ink-soft); cursor: pointer; transition: all var(--transition); background: var(--white);
}
.filter-tag.active, .filter-tag:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.obras-grid { padding: 60px 0 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
@media (max-width: 860px) { .obras-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .obras-grid { grid-template-columns: 1fr; } }

/* ============ CONTACTO ============ */
.contact { padding: 90px 0; border-top: 1px solid var(--line); }
.contact-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-wrap .section-lead { margin-left: auto; margin-right: auto; }
.contact-form { text-align: left; margin-top: 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--ink);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--yellow-deep); }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-status { font-size: 0.85rem; font-weight: 700; margin-top: 4px; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 50px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { padding-top: 22px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,0.5); font-weight: 500; }
.footer-bottom a { color: var(--yellow); font-weight: 700; }
