/* =========================================================
   SHOPPING — Área pública
   ========================================================= */
:root {
  --brand: #e2466f;
  --brand-dark: #c1305a;
  --navy: #1d1f3d;
  --ink: #2b2d42;
  --muted: #6b6f85;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --line: #e8e6f0;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 31, 61, .08);

  --a-perfumeria: #8e5bd8;
  --a-hogar: #e8913a;
  --a-ninos: #2fb6a3;
  --a-cosmeticos: #e2466f;
  --a-cremas: #4a9be0;
  --a-tecnologia: #3c3f6e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: 'Poppins', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: none; font-weight: 600; font-size: .92rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(226, 70, 111, .35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }

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

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 2.1rem; color: var(--navy); margin-bottom: 8px; }
.section-head p { color: var(--muted); }

/* ========== HEADER ========== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.45rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--brand); }
.logo-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-links .nav-admin { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); }
.nav-links .nav-admin:hover { border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--navy); }

/* ========== HERO ========== */
.hero { position: relative; height: 520px; overflow: hidden; background: var(--navy); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s; background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 45, .78) 0%, rgba(20, 20, 45, .35) 60%, rgba(20, 20, 45, .1) 100%); }
.hero-slide.tone-0 { background: linear-gradient(120deg, #1d1f3d 0%, #5b2a86 55%, #e2466f 100%); }
.hero-slide.tone-1 { background: linear-gradient(120deg, #142a4a 0%, #26609e 55%, #2fb6a3 100%); }
.hero-slide.tone-2 { background: linear-gradient(120deg, #3a1d3d 0%, #b8456a 55%, #f0a04b 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 1200px; }
.hero-content h1 { font-size: 3rem; line-height: 1.15; max-width: 620px; margin-bottom: 16px; }
.hero-content p { font-size: 1.1rem; max-width: 520px; margin-bottom: 28px; color: rgba(255, 255, 255, .85); }
.hero-deco { position: absolute; right: 8%; top: 50%; transform: translateY(-50%) rotate(-10deg); font-size: 16rem; color: rgba(255, 255, 255, .12); z-index: 1; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1rem; transition: background .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .35); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.hero-dots button.active { width: 30px; background: #fff; }
.hero.single .hero-arrow, .hero.single .hero-dots { display: none; }

/* ========== AREAS ========== */
.areas { margin-top: -56px; position: relative; z-index: 5; padding-bottom: 30px; }
.areas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.area-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .25s, box-shadow .25s;
}
.area-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(29, 31, 61, .14); }
.area-card strong { font-size: .92rem; color: var(--navy); line-height: 1.3; }
.area-card small { color: var(--muted); font-size: .78rem; }
.area-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.area-perfumeria .area-icon, .product-placeholder.area-perfumeria { background: var(--a-perfumeria); }
.area-hogar .area-icon, .product-placeholder.area-hogar { background: var(--a-hogar); }
.area-ninos .area-icon, .product-placeholder.area-ninos { background: var(--a-ninos); }
.area-cosmeticos .area-icon, .product-placeholder.area-cosmeticos { background: var(--a-cosmeticos); }
.area-cremas .area-icon, .product-placeholder.area-cremas { background: var(--a-cremas); }
.area-tecnologia .area-icon, .product-placeholder.area-tecnologia { background: var(--a-tecnologia); }

/* ========== QUIENES SOMOS ========== */
.about { padding: 80px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-placeholder {
  aspect-ratio: 4 / 3; border-radius: 22px; display: grid; place-items: center; font-size: 7rem; color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, var(--a-perfumeria), var(--brand));
}
.about-text h2 { font-size: 2.1rem; color: var(--navy); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }

/* ========== QUE OFRECEMOS ========== */
.offer { padding: 80px 0; background: var(--bg-soft); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.offer-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; }
.offer-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.5rem; background: #fde8ee; color: var(--brand); margin-bottom: 16px; }
.offer-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.offer-card p { color: var(--muted); font-size: .92rem; }

/* ========== SECCIONES EXTRA ========== */
.extra { padding: 70px 0; }
.extra-alt { background: var(--bg-soft); }
.extra-inner h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 14px; }
.extra-inner p { color: var(--muted); margin-bottom: 12px; }
.extra-inner.with-image { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.extra-inner img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ========== CATALOGO ========== */
.catalog { padding: 80px 0 100px; }
.catalog-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .9rem; transition: all .2s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.catalog-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-size: .82rem; color: var(--muted); }
.chip.active { background: #fde8ee; border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.search { position: relative; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.search input { padding: 10px 16px 10px 38px; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .9rem; width: 260px; outline: none; }
.search input:focus { border-color: var(--brand); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.catalog-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29, 31, 61, .12); }
.product-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4.2rem; color: rgba(255, 255, 255, .92); background-image: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .12)); }
.badge { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-area { left: 12px; background: rgba(255, 255, 255, .95); color: var(--navy); }
.badge-publico { right: 12px; background: var(--navy); color: #fff; }
.badge-agotado { top: auto; bottom: 12px; left: 12px; background: #d63c3c; color: #fff; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: .86rem; flex: 1; margin-bottom: 12px; }
.product-price { font-size: 1.35rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.product-actions { display: grid; gap: 8px; }
.product-actions .btn { width: 100%; padding: 10px 14px; font-size: .86rem; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-cart { background: var(--bg-soft); color: #a3a6b8; border: 1px dashed #cfd0dc; cursor: not-allowed; }

/* ========== FOOTER ========== */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-slogan { margin: 12px 0 18px; font-size: .9rem; }
.footer-list { list-style: none; display: grid; gap: 10px; font-size: .9rem; }
.footer-list i { color: var(--brand); width: 20px; }
.footer-list a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 18px; font-size: .82rem; }

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

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-links .nav-admin { border-radius: 0; border: none; border-top: 1px solid var(--line); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner, .extra-inner.with-image { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-deco { font-size: 10rem; }
}

@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .hero { height: 460px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: .95rem; }
  .hero-arrow { display: none; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-head h2, .about-text h2 { font-size: 1.6rem; }
  .catalog-filters { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
