/* ============================================================
   Tapicería Facenor Murcia — demo conceptual
   ============================================================ */

:root {
  --color-ink: #1c1712;
  --color-ink-soft: #3a3128;
  --color-paper: #f6f1e6;
  --color-paper-2: #ece2cf;
  --color-card: #fffdf8;
  --color-amber: #dfa02c;
  --color-amber-deep: #b17a1a;
  --color-cognac: #a5673c;
  --color-cognac-deep: #7c4a28;
  --color-steel: #3c5872;
  --color-line: rgba(28, 23, 18, 0.14);
  --color-line-soft: rgba(28, 23, 18, 0.08);

  --font-display: "Zilla Slab", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --wrap: 1180px;
  --space-1: 8px;
  --space-2: 14px;
  --space-3: 22px;
  --space-4: 34px;
  --space-5: 56px;
  --space-6: 84px;

  --radius: 4px;
  --shadow-card: 0 18px 40px -22px rgba(28, 23, 18, 0.45);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2.5px solid var(--color-steel);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 48px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn-primary:hover {
  background: #2c241b;
}

.btn-ghost {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-4);
}

.cta-row .btn {
  width: 100%;
}

.cta-row-center {
  align-items: center;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-ink);
  color: var(--color-amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.18;
  color: var(--color-ink);
}

.brand-name em {
  font-style: normal;
  color: var(--color-cognac-deep);
}

.nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-call {
  display: none;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 14px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius);
}

.header-call svg {
  color: var(--color-cognac-deep);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 18, 0.42);
  z-index: 400;
}

/* mobile nav panel */
@media (max-width: 899px) {
  .nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(78vw, 320px);
    background: var(--color-paper);
    padding: 84px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 450;
    box-shadow: -12px 0 32px -18px rgba(0, 0, 0, 0.4);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-line-soft);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: var(--space-5) 0 var(--space-4);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cognac-deep);
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.7rem + 2.4vw, 3.4rem);
  line-height: 1.06;
}

.hero-lead {
  margin-top: var(--space-3);
  font-size: 1.06rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
}

.hero-visual {
  width: 100%;
}

.swatch-card {
  position: relative;
  display: flex;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.swatch {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.swatch.before {
  background:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 18px),
    linear-gradient(155deg, #8a5a35, #6a4326);
}

.swatch.after {
  background: linear-gradient(155deg, #c98f56, #a5673c);
}

.swatch-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 23, 18, 0.55);
  padding: 5px 10px;
  border-radius: 2px;
}

.stitch-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.55);
}

.swatch-caption {
  margin-top: var(--space-2);
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  max-width: 44ch;
}

/* ---------- section shared ---------- */
section {
  padding: var(--space-5) 0;
}

.section-head {
  max-width: 56ch;
  margin-bottom: var(--space-4);
}

.section-head p {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
}

/* ---------- services ---------- */
.services {
  border-top: 1px solid var(--color-line);
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line-soft);
}

.service-list li:last-child {
  border-bottom: 1px solid var(--color-line-soft);
}

.service-list svg {
  flex-shrink: 0;
  color: var(--color-cognac-deep);
  margin-top: 2px;
}

.service-list h3 {
  margin-bottom: 4px;
}

.service-list p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* ---------- craft ---------- */
.craft {
  background: var(--color-ink);
  color: var(--color-paper);
}

.craft h2 {
  color: var(--color-paper);
}

.craft-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.craft-copy p {
  margin-top: var(--space-3);
  color: rgba(246, 241, 230, 0.78);
  max-width: 56ch;
}

.craft-note {
  border-left: 2px solid var(--color-amber);
  padding-left: 14px;
  font-size: 0.92rem;
}

.craft-textures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.texture {
  height: 92px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.texture span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.texture-leather {
  background:
    repeating-linear-gradient(60deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, #7c4a28, #5c341c);
}

.texture-synthetic {
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px 12px),
    linear-gradient(160deg, #3c5872, #263c4f);
}

.texture-fabric {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 2px, transparent 2px 8px),
    linear-gradient(160deg, #6b5738, #4a3b26);
}

/* ---------- trust ---------- */
.trust-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.trust-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: var(--space-3);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  width: fit-content;
}

.trust-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--color-amber-deep);
  line-height: 1;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.35;
}

.trust-label strong {
  color: var(--color-ink);
}

.trust-copy p {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
  max-width: 50ch;
}

.trust-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-3);
  font-weight: 600;
}

.trust-links a {
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: var(--color-line);
}

/* ---------- location ---------- */
.location {
  border-top: 1px solid var(--color-line);
}

.location-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.location-address {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.location p:not(.location-address) {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
}

.location-map {
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
}

/* ---------- cta final ---------- */
.cta-final {
  background: var(--color-paper-2);
  text-align: center;
}

.cta-final-inner {
  max-width: 52ch;
}

.cta-final p {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
}

.cta-row-center .btn {
  width: 100%;
}

/* ---------- footer ---------- */
.site-footer {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-detail {
  font-size: 0.84rem;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
  line-height: 1.5;
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 600px) {
  .cta-row {
    flex-direction: row;
  }

  .cta-row .btn {
    width: auto;
  }

  .cta-row-center {
    justify-content: center;
  }

  .cta-row-center .btn {
    width: auto;
  }

  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
  }
}

@media (min-width: 768px) {
  .header-call {
    display: inline-flex;
  }

  .craft-textures {
    grid-template-columns: repeat(3, 1fr);
  }

  .texture {
    height: 120px;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    transform: none;
    box-shadow: none;
    gap: var(--space-3);
  }

  .nav a {
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: none;
    min-height: auto;
    padding: 6px 2px;
    position: relative;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 2px;
    background: var(--color-amber);
    transform: scaleX(0);
    transition: transform 0.18s ease;
  }

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

  .nav-toggle,
  .nav-overlay {
    display: none;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
  }

  .hero-copy {
    flex: 1.1;
  }

  .hero-visual {
    flex: 1;
  }

  .craft-grid {
    flex-direction: row;
    align-items: center;
  }

  .craft-copy {
    flex: 1.2;
  }

  .craft-textures {
    flex: 1;
  }

  .trust-grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .trust-stat {
    flex-shrink: 0;
  }

  .location-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .location-grid > div:first-child {
    flex: 1;
  }

  .location-map {
    flex: 1;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }

  section {
    padding: var(--space-6) 0;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 3.6rem;
  }
}
