/* ===== Sol y Brasa — estilos ===== */
:root {
  --bg: #f7efdd;
  --bg-deep: #f1e6cf;
  --ink: #4a4036;
  --muted: #8a7c69;
  --rust: #8c3f24;
  --gold: #c8982f;
  --gold-dark: #ad821f;
  --terracotta: #c87a3f;
  --footer-bg: #2c2620;
  --footer-ink: #cdbfa9;

  /* per-card tints sampled from the floral tiles */
  --tint-velas: #eddab0;
  --tint-jabones: #d6d2b7;
  --tint-auto: #e8cbb9;
  --tint-ropa: #efdec4;
}

@font-face {
  font-family: "TAYFlapjack";
  src: url("assets/fonts/TAYFlapjack.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mulish", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: "TAYFlapjack", Georgia, serif;
  font-weight: normal;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: "Mulish", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--sm { padding: 10px 22px; font-size: 0.74rem; }
.btn--gold { background: var(--gold); color: #2c2620; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.15); }
.btn--dark { background: #2c2620; color: #f3e6c8; }
.btn--dark:hover { background: #1d1813; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(140, 63, 36, 0.12);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: inline-flex; }
.brand__name {
  font-family: "TAYFlapjack", serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--rust); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 84vh;
  background: url("assets/hero.jpg") center 32% / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(40,32,24,0.10) 0%, rgba(40,32,24,0) 30%, rgba(40,32,24,0.30) 78%);
}
/* Bottom of the photo dissolves into the cream page colour (replaces the pink wave) */
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 175px;
  background: linear-gradient(to bottom, rgba(247,239,221,0) 0%, rgba(247,239,221,0.62) 74%, var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding-bottom: 150px;
}
/* Soft dark halo behind the hero text for legibility (sits above the cream fade) */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -40px -70px 24px;
  background: radial-gradient(ellipse at center, rgba(26,20,14,0.55) 0%, rgba(26,20,14,0.28) 45%, rgba(26,20,14,0) 74%);
  z-index: -1;
  pointer-events: none;
}
.hero__eyebrow {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero__tagline {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 30ch;
  margin: 0 auto 28px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Brand mark band ===== */
.brandmark {
  background: var(--bg);
  text-align: center;
  padding: 64px 0 44px;
}
.brandmark__logo {
  width: 280px;
  max-width: 64%;
  margin: 0 auto;
  display: block;
}
.brandmark__tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.08rem;
}

/* ===== Section base ===== */
.section { padding: 92px 0; }
.section__title {
  text-align: center;
  font-size: 2.6rem;
  color: var(--rust);
  letter-spacing: 0.06em;
}
.section__title--left { text-align: left; }
.section__sub {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 1.02rem;
}

/* ===== Products grid ===== */
.products .grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.card {
  position: relative;
  min-height: 280px;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 24px -16px rgba(60,40,20,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(60,40,20,0.55); }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--tint) 0%, var(--tint) 26%, rgba(255,255,255,0) 72%);
  opacity: 0.94;
}
.card__body { position: relative; z-index: 1; padding: 26px 28px 28px; }
.card__body h3 {
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 6px;
}
.card__body p { margin: 0; color: #5a4a38; font-size: 0.96rem; max-width: 38ch; }

.card--velas   { background-image: url("assets/tile-velas.jpg");   --tint: var(--tint-velas); }
.card--jabones { background-image: url("assets/tile-jabones.jpg"); --tint: var(--tint-jabones); }
.card--auto    { background-image: url("assets/tile-auto.jpg");    --tint: var(--tint-auto); }
.card--ropa    { background-image: url("assets/tile-ropa.jpg");    --tint: var(--tint-ropa); }

/* ===== Nuestra Historia ===== */
.historia { position: relative; overflow: hidden; background: var(--bg-deep); }
.historia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/texture-botanical.jpg") repeat;
  background-size: 620px;
  opacity: 0.07;
  pointer-events: none;
}
.historia__inner { position: relative; z-index: 1; }
.historia__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.historia__media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 34px -18px rgba(60,40,20,0.55);
}
.historia__text .section__title { margin-bottom: 18px; }
.historia__text p { margin: 0 0 16px; color: var(--ink); }
.historia__sign {
  font-style: italic;
  color: var(--rust);
  font-size: 1.2rem;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/texture-terracotta.jpg") repeat;
  background-size: 400px;
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta__title { font-size: 2.5rem; letter-spacing: 0.05em; color: #fff; }
.cta__sub { margin: 14px auto 30px; max-width: 540px; color: rgba(255,255,255,0.9); }

/* ===== Footer ===== */
.footer { background: var(--bg); color: var(--ink); border-top: 1px solid rgba(140, 63, 36, 0.16); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 28px 52px;
}
.footer__col--brand { max-width: 280px; }
.footer__logo { width: 180px; max-width: 70%; margin: 0 0 16px; }
.footer__col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  font-family: "Mulish", sans-serif;
  font-weight: 600;
}
.footer__col p { margin: 0 0 14px; font-size: 0.96rem; line-height: 1.6; }
.footer__sign { font-style: italic; color: var(--rust); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col li a { font-size: 0.96rem; transition: color 0.2s ease; }
.footer__col li a:hover { color: var(--rust); }
.footer__bottom {
  border-top: 1px solid rgba(140, 63, 36, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Productos — slideshow por categoría ===== */
/* Each category is a floating "pill" panel above the patterned background */
.catrow {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "media head"
    "media info";
  column-gap: 44px;
  align-content: center;
  margin-top: 32px;
  padding: 34px 38px;
  border-radius: 34px;
  /* same cream as the page, with a barely perceptible top-lit gradient for thickness */
  background: linear-gradient(180deg, #faf2e4 0%, #f4ecd7 100%);
  /* faint top highlight + softly layered elevation */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 1px rgba(60, 40, 20, 0.04),
    0 6px 12px -4px rgba(60, 40, 20, 0.06),
    0 18px 34px -14px rgba(60, 40, 20, 0.13),
    0 44px 64px -32px rgba(60, 40, 20, 0.16);
}
.catrow:first-of-type { margin-top: 48px; }
.slideshow {
  grid-area: media;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 8px 20px -12px rgba(60, 40, 20, 0.32);
}
.slide {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.82);
  color: #5a4632;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}
.arrow:hover { background: #fff; }
.arrow:active { transform: translateY(-50%) scale(0.94); }
.arrow--prev { left: 14px; }
.arrow--next { right: 14px; }
.counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(44, 38, 32, 0.6);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 20px;
}
.cat-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.cathead { grid-area: head; }
.prodinfo { grid-area: info; }
.cat-name { font-size: 2.5rem; color: var(--rust); margin-bottom: 12px; }
.cat-desc { color: var(--ink); margin: 0 0 24px; }
.prod {
  border-top: 1px solid rgba(140, 63, 36, 0.16);
  padding-top: 20px;
  margin-bottom: 26px;
}
.prod-name { font-size: 1.55rem; color: #5a4632; margin-bottom: 6px; }
.prod-desc { margin: 0 0 8px; color: var(--ink); }
.prod-meta { margin: 0; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* ===== Botanical wallpaper (soft pattern behind cream sections) ===== */
.products { position: relative; overflow: hidden; }
.products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/texture-botanical.jpg") repeat;
  background-size: 620px;
  opacity: 0.07;
  pointer-events: none;
}
.products > .wrap { position: relative; z-index: 1; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header__inner { flex-direction: column; gap: 12px; }
  .nav { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .brand__name { font-size: 1.3rem; }
  .hero { min-height: 72vh; }
  .hero__content { padding-bottom: 120px; }
  .footer__col--brand { max-width: none; }
  .footer__logo { margin-left: auto; margin-right: auto; }
  .section { padding: 64px 0; }
  .section__title { font-size: 2.1rem; }
  .products .grid { grid-template-columns: 1fr; }
  .catrow {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 20px 28px;
    border-radius: 26px;
    margin-top: 22px;
    text-align: center;
  }
  .catrow:first-of-type { margin-top: 30px; }
  .slide { height: 300px; }
  .cat-name { font-size: 2.1rem; }
  .cat-desc { margin: 0 auto; max-width: 46ch; }
  .prodinfo { display: flex; flex-direction: column; align-items: center; }
  .prod { width: 100%; }
  .historia__inner { grid-template-columns: 1fr; gap: 32px; }
  .section__title--left { text-align: center; }
  .historia__text { text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .footer__col ul { display: inline-block; text-align: left; }
}
