/* ============================================================
   BOLSAS DE LEÓN GUANAJUATO — sitio clon (estático)
   Identidad: artesanal mexicano, tonos tierra, rústico chic
   ============================================================ */

:root {
  --white: #ffffff;
  --cream: #fbf3eb;      /* secciones crema (cc3) */
  --peach: #f1bfb4;      /* durazno (cc2) */
  --rose: #e64e74;       /* acento rosa (cc4) */
  --rose-dark: #c93a5e;
  --ink: #3a2a22;        /* texto principal */
  --brown: #7a5c4f;      /* texto secundario */
  --sand: #efe3d3;       /* borde suave */
  --green: #1f6b52;      /* acento verde (bolso estrella) */
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(58, 42, 34, .10);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1240px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-peach { background: var(--peach); }
.section-dark  { background: var(--ink); color: #f5ede4; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.section-sub { color: var(--brown); max-width: 640px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Barra de anuncios infinita ---------- */
.announce {
  background: var(--rose);
  color: #fff;
  overflow: hidden;
  padding: 9px 0;
  white-space: nowrap;
}
.announce-track {
  display: inline-block;
  animation: marquee 22s linear infinite;
  font-size: .88rem;
  letter-spacing: .06em;
}
.announce-track span { margin: 0 28px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--peach);
  display: grid; place-items: center;
  font-size: 20px;
}
.logo-text { line-height: 1.05; }
.logo-text b {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: .01em;
  display: block;
  color: var(--ink);
}
.logo-text small {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brown);
}
.main-nav ul { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s;
}
.main-nav a:hover { background: var(--cream); color: var(--rose); }
.main-nav a.active { background: var(--cream); color: var(--rose); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  background: none; border: 0;
  font-size: 1.6rem; cursor: pointer;
  color: var(--ink);
}
@media (max-width: 1020px) {
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--sand);
    padding: 12px 4%;
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: min(78vh, 660px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38, 22, 14, .55) 0%, rgba(38, 22, 14, .15) 60%, transparent 100%);
  display: flex; align-items: center;
}
.hero-content { max-width: 560px; color: #fff; padding: 0 6%; }
.hero-content .eyebrow { color: var(--peach); }
.hero-content h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 14px; }
.hero-content p { font-size: 1.08rem; opacity: .95; margin-bottom: 26px; }
.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.45); cursor: pointer;
  transition: all .25s;
}
.hero-dots button.active { background: #fff; transform: scale(1.35); }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 1 / 1.05;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--rose); color: #fff;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cats { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.card-name { font-family: var(--font-head); font-size: 1.06rem; font-weight: 700; }
.card-price { margin-top: auto; }
.price-crc { font-size: 1.22rem; font-weight: 800; color: var(--ink); }
.price-mxn { font-size: .78rem; color: var(--brown); }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: .85rem; }

/* ---------- Catálogo ---------- */
.catalog-head { padding: 40px 0 10px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 18px 0 26px;
}
.search-box {
  flex: 1; min-width: 240px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  font-size: .95rem;
  outline: none;
  background: #fff;
}
.search-box input:focus { border-color: var(--rose); }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--sand);
  background: #fff;
  font-size: .86rem; font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  color: var(--brown);
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-box select {
  padding: 10px 16px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  font-size: .88rem;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.result-count { font-size: .85rem; color: var(--brown); margin-bottom: 18px; }

/* paginación */
.pager { display: flex; justify-content: center; gap: 7px; margin-top: 40px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--sand);
  background: #fff;
  font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pager button:hover { border-color: var(--rose); color: var(--rose); }
.pager button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------- Detalle de producto ---------- */
.detail { padding: 40px 0 70px; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 28px; } }
.detail-gallery { position: sticky; top: 100px; }
.detail-main {
  aspect-ratio: 1 / 1.02;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.detail-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs button {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--sand);
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}
.detail-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs button.active { border-color: var(--rose); }
.detail-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.detail-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.detail-cats .chip { padding: 6px 14px; font-size: .76rem; }
.detail-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 6px; }
.detail-price .price-crc { font-size: 2rem; }
.detail-price .price-mxn { font-size: 1rem; }
.detail-note { font-size: .8rem; color: var(--brown); margin-bottom: 24px; }
.detail-desc { color: var(--brown); margin-bottom: 26px; max-width: 60ch; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-meta {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--sand);
  font-size: .86rem; color: var(--brown);
  display: grid; gap: 6px;
}
.related { margin-top: 20px; }

/* ---------- Categorías (portada) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 34px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end;
  color: #fff;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,10,5,.72));
}
.cat-card-body { position: relative; z-index: 1; padding: 22px; width: 100%; }
.cat-card-body h3 { font-size: 1.35rem; }
.cat-card-body small { opacity: .85; letter-spacing: .06em; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 36px; }
.step {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--brown); }

/* ---------- Estrella ---------- */
.star-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .star-grid { grid-template-columns: 1fr; } }
.star-media { border-radius: var(--radius); overflow: hidden; }
.star-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Banner descuentos ---------- */
.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.promo-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,5,.62), rgba(20,10,5,.18)); }
.promo-content { position: relative; z-index: 1; color: #fff; padding: 40px 6%; max-width: 560px; }
.promo-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.promo-content p { opacity: .92; margin-bottom: 22px; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 30px; }
.story {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 9 / 15;
  position: relative;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--peach), var(--shadow);
}
.story img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Números ---------- */
.big-number { font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; color: var(--rose); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #2a1d17; color: #d9c9bd; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 9px; font-size: .92rem; }
.site-footer a:hover { color: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between;
  font-size: .82rem;
  color: #a8927f;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Páginas informativas ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--cream), var(--peach));
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { color: var(--brown); max-width: 640px; margin: 12px auto 0; }
.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 36px; }
.info-card {
  background: #fff; border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { font-size: .92rem; color: var(--brown); }

.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 36px; }
.contact-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.contact-item .icon { font-size: 1.7rem; }
.contact-item h3 { font-size: 1rem; margin: 8px 0 4px; }
.contact-item p { color: var(--brown); font-size: .93rem; }

/* ---------- Placeholder ---------- */
.ph { display: grid; place-items: center; background: var(--cream); color: var(--brown); }

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 36px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }
.fade-in { animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
