/* ArqNova — base + components
   Interiorismo · Diseño · Construcción */

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin: 0 0 0.4em;
  letter-spacing: var(--tracking-tight);
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; }
::selection { background: var(--rosegold-200); color: var(--ink-900); }

.wrap-1200 { max-width: 1200px; margin-inline: auto; }
.wrap-1100 { max-width: 1100px; margin-inline: auto; }
.wrap-1040 { max-width: 1040px; margin-inline: auto; }

.arq-foil-text {
  background: var(--gradient-rosegold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(140, 94, 75, 0.55);
}

@keyframes an-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: rgba(250, 245, 240, 0.86);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__logo { height: 72px; width: auto; cursor: pointer; }

.site-nav { display: flex; gap: 34px; }

.site-nav a {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-700);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-base) var(--ease-standard);
}

.site-nav a:hover { color: var(--rosegold-600); }
.site-nav a.is-active { color: var(--rosegold-600); border-bottom-color: var(--rosegold-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
  padding: 8px;
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  z-index: 39;
}
.nav-scrim.is-open { display: block; }

@media (max-width: 900px) {
  .site-header { padding: 12px 20px; }
  .site-header__logo { height: 48px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 76px;
    height: calc(100vh - 76px);
    width: min(280px, 80vw);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 28px 28px;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: 10px 0; width: 100%; border-bottom-color: var(--border-subtle); }
  .site-header .btn { display: none; }
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--block { display: flex; width: 100%; }
.btn--pill { border-radius: var(--radius-pill); }

.btn--sm { padding: 8px 16px; font-size: 12px; gap: 7px; }
.btn--md { padding: 12px 24px; font-size: 13px; gap: 9px; }
.btn--lg { padding: 16px 34px; font-size: 14px; gap: 11px; }

.btn--primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--dark { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.btn--dark:hover:not(:disabled) { background: var(--ink-700); border-color: var(--ink-700); }

.btn--secondary { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--secondary:hover:not(:disabled) { background: var(--ink-900); color: var(--paper); }

.btn--ghost { background: transparent; color: var(--rosegold-600); border-color: transparent; }
.btn--ghost:hover:not(:disabled) { background: var(--rosegold-50); }

.btn--link {
  background: transparent;
  color: var(--rosegold-600);
  border-color: transparent;
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--rosegold-400);
}
.btn--link:hover:not(:disabled) { color: var(--rosegold-700); border-color: var(--rosegold-700); }

/* ============================================================
   CARD
   ============================================================ */
.card {
  border-radius: var(--radius-md);
  transition: box-shadow var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-out);
}
.card--pad-none { padding: 0; }
.card--pad-sm { padding: 16px; }
.card--pad-md { padding: 24px; }
.card--pad-lg { padding: 32px; }

.card--default { background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.card--flat { background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: none; }
.card--inset { background: var(--surface-inset); border: 1px solid transparent; box-shadow: none; }
.card--dark { background: var(--ink-900); border: 1px solid var(--ink-800); box-shadow: var(--shadow-md); color: var(--paper); }
.card--accent { background: var(--rosegold-50); border: 1px solid var(--rosegold-200); box-shadow: none; }

.card--interactive { cursor: pointer; }
.card--interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ============================================================
   TAG
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-pill);
}
.tag--sm { padding: 3px 9px; font-size: 9.5px; }
.tag--md { padding: 5px 12px; font-size: 10.5px; }

.tag--neutral { background: var(--ink-100); color: var(--ink-700); border: 1px solid var(--border-subtle); }
.tag--accent { background: var(--rosegold-50); color: var(--rosegold-700); border: 1px solid var(--rosegold-200); }
.tag--solid { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.tag--outline { background: transparent; color: var(--ink-800); border: 1px solid var(--ink-900); }
.tag--sage { background: rgba(138, 154, 107, 0.14); color: #5c6a42; border: 1px solid var(--sage-soft); }

/* ============================================================
   STAT
   ============================================================ */
.stat { font-family: var(--font-body); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.stat__value.arq-foil-text { color: transparent; }
.stat__label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { border: 0; height: 1px; width: 100%; background: var(--border-subtle); margin: 0; }
.divider--vertical { display: inline-block; width: 1px; height: 100%; align-self: stretch; background: var(--border-subtle); }
.divider--foil { height: 2px; background: var(--gradient-rosegold); }
.divider--vertical.divider--foil { width: 2px; height: 100%; }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading { font-family: var(--font-body); }
.section-heading--center { text-align: center; max-width: 620px; margin-inline: auto; }

.section-heading__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading--center .section-heading__eyebrow-row { justify-content: center; }

.section-heading__rule { width: 34px; height: 2px; border-radius: 2px; background: var(--gradient-rosegold); flex-shrink: 0; }

.section-heading__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rosegold-600);
}

.section-heading__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-900);
}
.section-heading--on-dark .section-heading__title { color: var(--paper); }

.section-heading__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 52ch;
}
.section-heading--center .section-heading__lead { max-width: none; }
.section-heading--on-dark .section-heading__lead { color: rgba(250, 245, 240, 0.75); }

/* ============================================================
   PROJECT CARD
   ============================================================ */
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-200);
  display: block;
}
.project-card--clickable { cursor: pointer; }

.project-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slower) var(--ease-out);
}
.project-card:hover .project-card__image { transform: scale(1.05); }

.project-card__scrim { position: absolute; inset: 0; background: var(--overlay-scrim); }

.project-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(6px);
}

.project-card__body { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.project-card__title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1; margin: 0; color: #fff; }

.project-card__meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.project-card:hover .project-card__meta { max-height: 24px; opacity: 1; }
.project-card__meta span.sep { opacity: 0.5; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { display: block; font-family: var(--font-body); }
.field__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 8px;
}
.field__hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.field__hint--error { color: var(--danger); }

.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.field__box:focus-within { border-color: var(--rosegold-500); box-shadow: var(--ring-accent); }

.field input,
.field textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-900);
  width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; padding: 0; }

.field__select-wrap { position: relative; }
.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-900);
  cursor: pointer;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.field select:focus { border-color: var(--rosegold-500); box-shadow: var(--ring-accent); }
.field__select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-500);
  font-size: 11px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-900); color: var(--paper); padding: 64px 48px 34px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer__logo { height: 80px; margin-bottom: 18px; }
.site-footer__tagline { font-size: 13.5px; line-height: 1.7; color: rgba(250, 245, 240, 0.6); max-width: 260px; }

.site-footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosegold-300);
  margin-bottom: 18px;
}
.site-footer__link {
  display: block;
  font-size: 13.5px;
  color: rgba(250, 245, 240, 0.72);
  margin-bottom: 11px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.site-footer__link:hover { color: var(--rosegold-300); }
.site-footer__service { font-size: 13.5px; color: rgba(250, 245, 240, 0.72); margin-bottom: 11px; }

.site-footer__contact-row { display: flex; gap: 10px; font-size: 13.5px; color: rgba(250, 245, 240, 0.72); margin-bottom: 12px; }
.site-footer__contact-row svg { color: var(--rosegold-300); flex-shrink: 0; margin-top: 1px; }

.site-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer__social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(222, 181, 162, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosegold-300);
  cursor: pointer;
}
.site-footer__social-icon:hover { background: rgba(222, 181, 162, 0.12); }

.site-footer__bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 245, 240, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(250, 245, 240, 0.45);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer { padding: 48px 24px 28px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   SHARED PAGE LAYOUT PATTERNS
   ============================================================ */
.section { padding: 96px 64px; }
.section--tight { padding: 56px 64px; }
.service-art {
  display: inline-flex;
  margin-bottom: 18px;
}
.section-icon-circle {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: var(--rosegold-50);
  align-items: center;
  justify-content: center;
  color: var(--rosegold-600);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .section { padding: 64px 24px; }
  .section--tight { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 20px; }
  .section--tight { padding: 32px 20px; }
}
