@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300&family=Barlow+Condensed:wght@300;400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1a1a1a;
  --gray-dark: #333;
  --gray: #666;
  --gray-light: #999;
  --gray-subtle: #e8e8e8;
  --cream: #f7f5f2;
  --white: #ffffff;
  --green: #3d6b4a;
  --green-light: #5a8a65;
  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--gray-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}
.nav-logo span { font-weight: 300; }
.nav-brand-logo { height: 30px; width: auto; display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

.nav-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 9px 16px;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-pdf-btn:hover { background: var(--green); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(120px, 18vw, 280px);
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-brand-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}

.hero-label {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 24px;
}
.hero-name em {
  font-style: normal;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-dark);
  max-width: 520px;
  line-height: 1.7;
  border-left: 2px solid var(--green);
  padding-left: 20px;
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--black);
}
.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* SECTION COMMONS */
section { padding: 96px 48px; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--gray-subtle);
  padding-bottom: 20px;
}

.section-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: rgba(0,0,0,0.08);
}

.section-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
}

/* BIO */
.bio-section { background: var(--white); }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.bio-photo-wrap {
  position: relative;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--gray-subtle);
}

.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bio-text h3 {
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
}
.bio-text .bio-role {
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}

.bio-text p {
  color: var(--gray-dark);
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 15px;
  font-weight: 300;
}

.bio-dotted-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--gray-subtle);
}

.bio-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dotted var(--gray-subtle);
}
.bio-row-label {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.bio-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-align: right;
}

/* ESPECIALIDADES */
.especialidades-section { background: var(--black); }

.especialidades-section .section-num { color: rgba(255,255,255,0.06); }
.especialidades-section .section-title { color: var(--white); }
.especialidades-section .section-header { border-bottom-color: rgba(255,255,255,0.1); }

.esp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.esp-card {
  background: rgba(255,255,255,0.03);
  padding: 40px 32px;
  transition: background 0.3s;
}
.esp-card:hover { background: rgba(255,255,255,0.06); }

.esp-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 48px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}

.esp-title {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}

.esp-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  font-weight: 300;
}

/* PORTAFOLIO */
.portafolio-section { background: var(--cream); }

.project-list { display: flex; flex-direction: column; gap: 0; }

.project-item {
  display: grid;
  grid-template-columns: 80px 1fr 480px;
  gap: 0;
  border-top: 1px solid var(--gray-subtle);
  padding: 32px 0;
  align-items: start;
  transition: background 0.2s;
  cursor: default;
}
.project-item:last-child { border-bottom: 1px solid var(--gray-subtle); }
.project-item:hover { background: rgba(0,0,0,0.02); }

.project-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: rgba(0,0,0,0.08);
  padding-top: 4px;
}

.project-meta { padding-right: 48px; }

.project-cat {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 10px;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-detail-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--gray-subtle);
}
.project-detail-row:last-child { border-bottom: none; }
.detail-label {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  min-width: 100px;
}
.detail-value {
  font-size: 12px;
  color: var(--gray-dark);
}

.project-img-wrap { overflow: hidden; }

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--gray-subtle);
  transition: transform 0.4s ease;
}
.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-subtle), #d4d4d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.project-item:hover .project-img { transform: scale(1.03); }

/* CONTACTO */
.contacto-section { background: var(--white); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto-info { }

.contacto-info h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.contacto-info h3 em {
  font-style: normal;
  font-weight: 300;
  color: var(--gray);
}

.contacto-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.contact-rows { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-subtle);
}
.contact-row-label {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.contact-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}
.contact-row-value:hover { color: var(--green); }

.contacto-cta {
  background: var(--cream);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.cta-label {
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}
.cta-btn:hover { background: var(--green); }
.cta-btn svg { transition: transform 0.2s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* CLIENTES */
.clientes-section {
  padding: 48px 48px;
  background: var(--cream);
  text-align: center;
}
.clientes-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 28px;
}
.clientes-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.clientes-logos img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.clientes-logos img:hover { opacity: 0.9; }

.clientes-badge {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  padding: 8px 14px;
  border-radius: 4px;
}
.clientes-badge img {
  filter: none;
  opacity: 1;
}
.clientes-badge img:hover { opacity: 1; }

/* FOOTER */
footer {
  background: var(--black);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer .footer-logo {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
footer .footer-logo span { font-weight: 300; }

footer .footer-brand-logo { height: 32px; width: auto; display: block; }

footer .footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
footer .footer-credit a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
footer .footer-credit a:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  section { padding: 72px 32px; }
  nav { padding: 0 32px; }
  .hero { padding: 0 32px 64px; }

  .bio-grid { grid-template-columns: 1fr; gap: 48px; }
  .bio-photo-placeholder { aspect-ratio: 4/3; }

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

  .project-item { grid-template-columns: 60px 1fr; }
  .project-img-wrap { grid-column: 2; }

  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-pdf-btn span { display: none; }
  section { padding: 56px 20px; }
  .hero { padding: 0 20px 56px; }
  .esp-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; }
  .project-img-wrap { grid-column: 1; order: -1; margin-bottom: 16px; }
  .project-meta { padding-right: 0; }
  .project-num { display: none; }
  footer { padding: 32px 20px; }
  .clientes-section { padding: 40px 20px; }
  .clientes-logos { gap: 32px; }
  .clientes-logos img { height: 28px; }
}

/* PRINT / PDF */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  @page { margin: 14mm; }

  nav, .hero-bg-text { display: none !important; }

  body { font-size: 12px; }

  .hero {
    min-height: auto;
    padding: 0 0 24px;
    display: block;
  }
  .hero-content { max-width: none; }

  section { padding: 24px 0; }

  .section-header { margin-bottom: 32px; page-break-after: avoid; }

  .bio-grid { page-break-inside: avoid; }
  .bio-photo-wrap, .bio-photo-placeholder { aspect-ratio: 4/3; }

  .esp-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .esp-card { padding: 20px 16px; page-break-inside: avoid; }

  .project-item {
    grid-template-columns: 1fr;
    padding: 20px 0;
    page-break-inside: avoid;
  }
  .project-img-wrap { grid-column: 1; margin-top: 12px; max-width: 340px; }
  .project-meta { padding-right: 0; }

  .contacto-grid { page-break-inside: avoid; }
  .contacto-cta { min-height: auto; }

  footer { page-break-inside: avoid; }
}
