/* =========================================================
   BARRO — Estudio de Cerámica
   Demo de comercio construido por Web Pop.
   Paleta y tipografía propias — no reutiliza estilos de Web Pop.
   ========================================================= */

:root {
  /* Paleta arcilla / tierra — cerámica artesanal */
  --sand: #efe6d8;
  --sand-2: #e6d9c3;
  --cream-card: #faf5ec;
  --ink: #2b231c;
  --ink-soft: #5c4d3f;
  --ink-faint: #665545;
  --line: #d9c9ac;
  --terracotta: #b85c38;
  --terracotta-dark: #954a2c;
  --clay-rose: #d98b6b;
  --sage: #6e7a5c;
  --sage-dark: #4f5a40;
  --focus: #1c5b52;

  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --max: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
}

@media (prefers-color-scheme: dark) {
  /* Se mantiene paleta clara e intencional (identidad de marca cálida);
     solo se asegura contraste suficiente si el sistema fuerza oscuro. */
}

* { box-sizing: border-box; }

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

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

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

a {
  color: var(--terracotta-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta-dark);
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 0.6em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--sand);
  padding: 12px 18px;
  z-index: 200;
  border-radius: var(--radius-s);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Buttons — rectangular, thin border, no pill shapes */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #a8502d;
  border-color: #a8502d;
  color: #fffdfa;
}
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--sand); }
.btn-whatsapp {
  background: #64705a;
  border-color: #64705a;
  color: #fffdfa;
}
.btn-whatsapp:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =========== HEADER / NAV =========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 230, 216, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark span {
  color: var(--terracotta-dark);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.94rem;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.86rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sand);
  z-index: 99;
  padding: 170px 32px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-menu ul a {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========== HERO =========== */
.hero {
  padding: 72px 0 90px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  max-width: 14ch;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-meta strong { color: var(--ink); display: block; font-family: var(--font-head); font-size: 1.1rem; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--clay-rose) 0%, var(--terracotta) 55%, var(--terracotta-dark) 100%);
  opacity: 0.9;
  z-index: 0;
}
.hero-visual .frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 14px 18px 0 0 rgba(43, 35, 28, 0.12);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========== SECTION SHELL =========== */
section { padding: 88px 0; }
.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.alt-bg { background: var(--sand-2); }

/* =========== CATALOG =========== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-faint);
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px 28px;
}
.product-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-thumb {
  aspect-ratio: 4/5;
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.product-thumb.t1 { background: linear-gradient(150deg, #e9cba9 0%, #b85c38 100%); }
.product-thumb.t2 { background: linear-gradient(150deg, #d8dcc3 0%, #6e7a5c 100%); }
.product-thumb.t3 { background: linear-gradient(150deg, #f1ded0 0%, #d98b6b 100%); }
.product-thumb svg { width: 100%; height: 100%; }
.product-thumb img.icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: rgba(250, 245, 236, 0.95);
  filter: none;
}
.product-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 6px;
  display: inline-block;
  width: fit-content;
}
.product-body h3 { font-size: 1.15rem; margin-bottom: 0; }
.product-desc { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }
.product-price {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.product-price small {
  display: block;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--ink-faint);
  font-size: 0.76rem;
  margin-top: 2px;
}
.catalog-note {
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* =========== STORY =========== */
.story .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.story-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-visual svg { width: 46%; color: var(--sand); }
.story-body h2 { margin-bottom: 0.6em; }
.story-body p { color: var(--ink-soft); }
.story-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.story-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink);
}
.story-list .num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terracotta-dark);
  min-width: 2ch;
}

/* =========== VISIT / ORDER =========== */
.visit .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.visit-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px;
}
.visit-card h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.visit-card dl {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.visit-card dt {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.visit-card dd {
  margin: 2px 0 0;
  color: var(--ink);
}
.map-graphic {
  aspect-ratio: 16/10;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--sand-2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-graphic svg { width: 100%; height: 100%; }
.order-panel {
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius-m);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.order-panel h3 { color: var(--sand); font-size: 1.5rem; }
.order-panel p { color: #cabfab; }
.order-panel .btn-whatsapp { align-self: flex-start; }

/* =========== FOOTER =========== */
.site-footer {
  background: var(--ink);
  color: #d8ccb9;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--sand);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand .wordmark { color: var(--sand); }
.footer-brand .wordmark span { color: var(--clay-rose); }
.footer-brand p { color: #b7ab97; max-width: 34ch; margin-top: 14px; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #d8ccb9; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--clay-rose); }
.footer-bottom {
  border-top: 1px solid rgba(216, 204, 185, 0.2);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #a89b86;
}
.footer-bottom a { color: #a89b86; }
.footer-bottom a:hover { color: var(--clay-rose); }

/* =========== RESPONSIVE =========== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .hero-visual .frame { max-width: 300px; }
  .story .wrap { grid-template-columns: 1fr; }
  .story-visual { max-width: 320px; margin: 0 auto; }
  .visit .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .visit-card, .order-panel { padding: 26px 22px; }
  .topbar .wrap { font-size: 0.72rem; }
}
