/* Foresta Cuatro — Ingeniería en Mobiliario
   Paleta oficial: Nogal Profundo (#2E1F18) & Abedul Crudo (#D4C3A3) */

:root {
  --bg-paper: #F7F5F0;
  --bg-surface: #FFFFFF;
  --bg-warm: #EFECE4;
  --nogal: #2E1F18;
  --nogal-muted: #54433A;
  --nogal-subtle: #78665B;
  --abedul: #D4C3A3;
  --abedul-soft: #E6DBC6;
  --hairline: rgba(46, 31, 24, 0.14);
  --hairline-strong: rgba(46, 31, 24, 0.28);
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1140px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--nogal);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--nogal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nogal);
  color: var(--bg-paper);
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nogal);
}

.brand-sub {
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--nogal-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--nogal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--nogal);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--nogal);
  color: var(--bg-paper);
  border-color: var(--nogal);
}

.btn-primary:hover {
  background-color: #3d2a21;
  border-color: #3d2a21;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--nogal);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover {
  border-color: var(--nogal);
  background-color: rgba(212, 195, 163, 0.2);
}

.btn-header {
  padding: 0.56rem 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--nogal);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--hairline);
  background-color: var(--bg-paper);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-list .nav-link {
  padding-block: 0.35rem;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  padding-right: clamp(0rem, 2vw, 1.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background-color: var(--abedul);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.02em;
  color: var(--nogal);
}

.hero-lead {
  margin: 0 0 2.1rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: var(--nogal-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.hero-visual {
  position: relative;
  padding-left: clamp(0rem, 3.5vw, 3rem);
  border-left: 1px solid var(--hairline-strong);
}

.blueprint-frame {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blueprint-frame::before,
.blueprint-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--abedul);
  border-style: solid;
  pointer-events: none;
}

.blueprint-frame::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.blueprint-frame::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

.blueprint-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo {
  width: min(260px, 72%);
  height: auto;
  position: relative;
  z-index: 1;
}

.frame-caption {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
}

.spec-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
}

.spec-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--nogal);
}

/* Shared Section Layout */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--hairline);
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 640px;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--nogal);
}

.section-desc {
  margin: 0;
  font-weight: 300;
  color: var(--nogal-muted);
}

/* Enfoque Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline);
}

.pillar-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background-color: rgba(255, 255, 255, 0.45);
}

.pillar-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--nogal-subtle);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--abedul);
  margin-bottom: 1.15rem;
}

.pillar-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nogal);
}

.pillar-card p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--nogal-muted);
}

/* Línea actual band */
.line-band {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--nogal);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.line-band-copy {
  max-width: 68ch;
}

.line-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background-color: var(--abedul-soft);
  color: var(--nogal);
  margin-bottom: 0.75rem;
}

.line-band h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nogal);
}

.line-band p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 300;
  color: var(--nogal-muted);
}

/* Proceso Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  padding-top: 1.35rem;
  border-top: 1px solid var(--hairline-strong);
  position: relative;
}

.step-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--nogal);
}

.step-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--nogal-subtle);
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nogal);
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--nogal-muted);
}

/* Contacto & Quote Builder */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.contact-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background-color: var(--bg-surface);
  color: var(--nogal);
  border-radius: var(--radius);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nogal-subtle);
}

.contact-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--nogal);
  word-break: break-word;
}

a.contact-value:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--nogal-muted);
}

.contact-sublinks a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-sublinks a:hover {
  color: var(--nogal);
}

.contact-owner {
  margin: 1.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--nogal-subtle);
}

/* Quote Panel */
.quote-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.quote-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nogal);
}

.quote-intro {
  margin: 0 0 1.6rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--nogal-muted);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nogal-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background-color: var(--bg-paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--nogal);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--nogal-subtle);
  font-weight: 300;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--nogal);
  background-color: var(--bg-surface);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.quote-feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: #8b2d22;
}

.quote-feedback.is-ok {
  color: var(--nogal-muted);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--nogal);
  color: var(--bg-paper);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand .brand-title {
  color: var(--bg-paper);
}

.footer-brand .brand-sub {
  color: var(--abedul);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.84rem;
  font-weight: 400;
}

.footer-links a {
  color: rgba(247, 245, 240, 0.84);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--abedul);
}

.footer-taller {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(212, 195, 163, 0.35);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--abedul) !important;
}

.footer-taller:hover {
  border-color: var(--abedul);
  background-color: rgba(212, 195, 163, 0.1);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(247, 245, 240, 0.68);
}

/* Subtle reveal animation (progressive enhancement) */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
  }

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

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

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

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .spec-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav-link::after {
    transition: none;
  }
}
