/* ===================================================================
   TALABAR — Sistema de diseño
   Paleta: cuero real (espresso, silla de montar, tan, bronce, pergamino)
   Tipografía: Fraunces (display) + Inter (cuerpo) + Space Mono (precios)
   Firma visual: costura de silletero (línea punteada) + etiquetas colgantes
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Colores — cuero real */
  --espresso: #241811;      /* cuero negro/espresso, casi el color de la suela */
  --saddle: #6b3f27;        /* café silla de montar — color de marca principal */
  --tan: #c99361;           /* cuero natural curtido */
  --brass: #a9782f;         /* herrería / hebillas */
  --brass-light: #d9ac5e;
  --parchment: #f1e8d8;     /* hilo / pergamino — fondo cálido */
  --parchment-dark: #e6d9bf;
  --ink: #241811;
  --cream: #faf6ee;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;

  --container: 1160px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Costura de silletero (elemento de firma) ---------- */
.stitch {
  border: none;
  border-top: 2px dashed rgba(36, 24, 17, 0.28);
  margin: 0;
}
.stitch--light { border-top-color: rgba(250, 246, 238, 0.35); }

.stitch-frame {
  position: relative;
}
.stitch-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(36, 24, 17, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

/* Remache (rivet) decorativo */
.rivet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-light), var(--brass) 60%, #7c5620 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35) inset, 0 1px 1px rgba(255,255,255,0.15);
  position: absolute;
}

/* =================== NAV =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 24, 17, 0.96);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.28em;
  color: var(--cream);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--parchment);
  font-size: 14px;
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brass);
  color: var(--espresso) !important;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13.5px;
  opacity: 1 !important;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--brass-light); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* =================== HERO =================== */
.hero {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(169,120,47,0.18), transparent 55%),
    linear-gradient(180deg, var(--espresso) 0%, #2c1d13 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::after {
  /* textura sutil tipo grano de cuero */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--tan);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 500;
}
.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--parchment);
  opacity: 0.86;
  max-width: 460px;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--espresso);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(169,120,47,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250,246,238,0.35);
}
.btn-ghost:hover { border-color: var(--cream); }

/* Sello de cuero (badge) */
.hero-seal {
  position: relative;
  justify-self: center;
}
.seal {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px dashed rgba(217,172,94,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.seal-inner {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.seal-word {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.22em;
  color: var(--parchment);
}
.seal-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--tan);
  margin-top: 10px;
  text-transform: uppercase;
}
.seal-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass-light);
  margin: 8px 0;
}

/* =================== MARQUEE DE MATERIALES =================== */
.materials {
  background: var(--parchment-dark);
  border-top: 2px dashed rgba(36,24,17,0.15);
  border-bottom: 2px dashed rgba(36,24,17,0.15);
  padding: 16px 0;
  overflow: hidden;
}
.materials-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-left 26s linear infinite;
  width: max-content;
}
.materials-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saddle);
  opacity: 0.75;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .materials-track { animation: none; }
}

/* =================== SECCIONES =================== */
.section {
  padding: 96px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  margin: 0;
  color: var(--espresso);
  max-width: 560px;
}
.section-head p {
  max-width: 380px;
  color: rgba(36,24,17,0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* =================== PRODUCTOS (etiquetas colgantes) =================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tag-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 34px 28px 28px;
  position: relative;
  box-shadow: 0 1px 0 rgba(36,24,17,0.04);
  border: 1px solid rgba(36,24,17,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(36,24,17,0.14);
}
.tag-hole {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--parchment-dark);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 2px 3px rgba(36,24,17,0.25);
}
.tag-icon {
  width: 64px;
  height: 64px;
  margin: 6px auto 22px;
}
.tag-icon svg { width: 100%; height: 100%; }
.tag-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 6px;
  color: var(--espresso);
}
.tag-material {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 18px;
}
.tag-desc {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(36,24,17,0.68);
  margin: 0 0 22px;
  flex-grow: 1;
}
.tag-divider {
  border-top: 2px dashed rgba(36,24,17,0.18);
  margin: 0 0 20px;
}
.tag-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tag-size {
  font-size: 12.5px;
  color: rgba(36,24,17,0.55);
}
.tag-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--espresso);
}
.tag-price small {
  font-size: 11px;
  font-weight: 400;
  color: rgba(36,24,17,0.5);
}
.tag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--espresso);
  color: var(--cream);
  padding: 13px 18px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.tag-btn:hover { background: var(--saddle); }
.tag-btn svg { width: 16px; height: 16px; }

.tag-card--featured {
  background: linear-gradient(180deg, var(--saddle) 0%, #532f1c 100%);
  border-color: transparent;
}
.tag-card--featured .tag-name,
.tag-card--featured .tag-price { color: var(--cream); }
.tag-card--featured .tag-desc { color: rgba(250,246,238,0.75); }
.tag-card--featured .tag-divider { border-top-color: rgba(250,246,238,0.28); }
.tag-card--featured .tag-hole { background: var(--saddle); border-color: rgba(250,246,238,0.3); }
.tag-card--featured .tag-size { color: rgba(250,246,238,0.6); }
.tag-card--featured .tag-material { color: var(--brass-light); }
.tag-card--featured .tag-btn { background: var(--brass); color: var(--espresso); }
.tag-card--featured .tag-btn:hover { background: var(--brass-light); }
.tag-card--featured .tag-price small { color: rgba(250,246,238,0.55); }

.featured-flag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--espresso);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 700;
}

/* =================== POR QUÉ TALABAR =================== */
.why {
  background: var(--espresso);
  color: var(--cream);
}
.why .section-eyebrow { color: var(--tan); }
.why .section-head h2 { color: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item {
  padding-top: 24px;
  border-top: 2px dashed rgba(250,246,238,0.25);
}
.why-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
}
.why-item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(250,246,238,0.7);
  margin: 0;
}

/* =================== CONTACTO / MAPA =================== */
.contact {
  background: var(--parchment);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 40px;
  border: 1px solid rgba(36,24,17,0.08);
  position: relative;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}
.contact-row + .contact-row {
  border-top: 2px dashed rgba(36,24,17,0.12);
}
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-row h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--espresso);
}
.contact-row p {
  margin: 0;
  font-size: 14px;
  color: rgba(36,24,17,0.65);
}
.contact-row a { font-weight: 600; color: var(--saddle); }

/* =================== FOOTER =================== */
.footer {
  background: var(--espresso);
  color: var(--parchment);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.24em;
  color: var(--cream);
  margin-bottom: 10px;
}
.footer-tag {
  font-size: 13.5px;
  color: rgba(250,246,238,0.5);
  max-width: 280px;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: 64px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13.5px;
  color: rgba(250,246,238,0.72);
  margin-bottom: 9px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250,246,238,0.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* =================== WHATSAPP FLOAT =================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 60;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* =================== ASISTENTE (chat widget) =================== */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  z-index: 60;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(36,24,17,0.08);
}
.chat-widget.open { display: flex; }
.chat-head {
  background: var(--espresso);
  color: var(--cream);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--espresso);
  flex-shrink: 0;
}
.chat-head-text strong { display:block; font-size: 14px; }
.chat-head-text span { font-size: 12px; color: var(--tan); }
.chat-close {
  margin-left: auto;
  background: none; border: none; color: var(--parchment);
  cursor: pointer; font-size: 18px; opacity: 0.7; line-height: 1;
}
.chat-close:hover { opacity: 1; }
.chat-body {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--parchment);
}
.chat-msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--cream);
  border: 1px solid rgba(36,24,17,0.08);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.chat-msg.user {
  background: var(--saddle);
  color: var(--cream);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-product {
  background: var(--cream);
  border: 1px dashed rgba(36,24,17,0.25);
  border-radius: 10px;
  padding: 12px;
  align-self: flex-start;
  max-width: 90%;
  font-size: 13px;
}
.chat-product strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 2px; }
.chat-product .cp-price { font-family: var(--font-mono); color: var(--saddle); font-weight: 700; margin-top: 4px; display:block; }
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
  background: var(--parchment);
}
.chat-option-btn {
  background: var(--cream);
  border: 1.5px solid var(--saddle);
  color: var(--saddle);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-option-btn:hover { background: var(--saddle); color: var(--cream); }
.chat-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
}
.chat-cta svg { width: 15px; height: 15px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
  .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .wa-float { right: 16px; bottom: 16px; }
}

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