/* ===========================================================
   Bazar Vivi — Puerto Montt
   styles.css
   =========================================================== */

:root {
  /* Brand */
  --red:        #C0202A;
  --red-dark:   #A6192E;
  --red-700:    #8E1622;
  --red-tint:   #FBEAEA;
  --gold:       #D8A441;
  --gold-soft:  #EBC77E;

  /* Neutrals (warm) */
  --cream:      #FDF4E3;
  --cream-2:    #FFF7ED;
  --paper:      #FFFFFF;
  --ink:        #2B1A14;
  --muted:      #6A5D55;
  --line:       #ECE0CE;

  /* WhatsApp */
  --wa:         #25D366;
  --wa-dark:    #1EA855;

  /* Tokens */
  --container:  1180px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(43,26,20,.06);
  --shadow:    0 14px 34px -18px rgba(43,26,20,.30);
  --shadow-lg: 0 30px 60px -28px rgba(43,26,20,.40);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream-2); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  background: var(--red-tint); padding: 7px 15px; border-radius: 999px;
}
.eyebrow i { font-size: .85em; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 16px; font-weight: 800;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--bg); color: var(--fg); transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--red:hover { background: var(--red-dark); }
.btn--wa { --bg: var(--wa); --fg: #08311c; }
.btn--wa:hover { --bg: var(--wa-dark); --fg:#fff; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { --bg: #fff; border-color: var(--red); --fg: var(--red); }
.btn--lg { padding: 17px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Photo placeholder ---------- */
.photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #f3e6d2 0 14px, #efdfc7 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 220px;
}
.photo::after {
  content: attr(data-label);
  font-family: "Nunito Sans", monospace; font-size: .8rem; font-weight: 700;
  letter-spacing: .02em; color: #a08a6d;
  background: rgba(255,255,255,.82); padding: 8px 14px; border-radius: 999px;
  border: 1px dashed #c9b591; box-shadow: var(--shadow-sm);
  text-align: center; max-width: 78%;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img)::after { display: none; }
.photo img + .ph-cap { display: none; }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,244,227,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand b { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1; }
.brand span { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  padding: 9px 14px; border-radius: 999px; color: var(--ink); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--red); background: var(--red-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1.25rem; color: var(--ink); align-items: center; justify-content: center;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(216,164,65,.16), transparent 60%),
    radial-gradient(55% 60% at 6% 95%, rgba(192,32,42,.08), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 48px);
}
.hero-logo { width: 132px; height: 132px; border-radius: 50%; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.025em;
}
.hero h1 .accent { display: inline; }
.hero .lede { margin-top: 22px; font-size: 1.16rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-media { position: relative; }
.hero-media .photo { min-height: 420px; box-shadow: var(--shadow-lg); border-radius: var(--r-lg); }
.hero-media .photo::after { font-size: .85rem; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff;
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
}
.hero-badge .yr { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--red); line-height: 1; }
.hero-badge small { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; }

/* mini destacados strip */
.hero-strip { position: relative; border-top: 1px solid var(--line); }
.strip-track {
  display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 20px 0 28px;
  align-items: center; justify-content: space-between;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.chip i { color: var(--red); font-size: 1.05em; }

/* trust bar */
.trust { background: var(--red); color: #fff; }
.trust-track { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px 24px; padding: 18px 0; }
.trust-item { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.trust-item i { font-size: 1.15rem; opacity: .92; }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.svc {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e3d3b8; }
.svc:hover::before { transform: scaleY(1); }
.svc-ic {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--red-tint); color: var(--red); font-size: 1.5rem; margin-bottom: 16px;
}
.svc h3 { font-size: 1.22rem; font-weight: 700; }
.svc p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.svc--feature {
  grid-column: span 1; background: linear-gradient(155deg, var(--red), var(--red-700));
  color: #fff; border-color: transparent;
}
.svc--feature .svc-ic { background: rgba(255,255,255,.16); color: #fff; }
.svc--feature p { color: rgba(255,255,255,.88); }
.svc--feature::before { display: none; }
.svc-tag {
  display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .03em; background: rgba(255,255,255,.16);
  padding: 5px 12px; border-radius: 999px;
}
.svc--docs { background: var(--ink); color: #fff; border-color: transparent; }
.svc--docs .svc-ic { background: rgba(255,255,255,.1); color: var(--gold-soft); }
.svc--docs p { color: rgba(255,255,255,.8); }
.svc--docs::before { display: none; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.svc-link i { transition: transform .2s; }
.svc:hover .svc-link i { transform: translateX(4px); }

/* ===========================================================
   PRODUCTOS
   =========================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-thumb {
  position: relative; height: 168px; display: grid; place-items: center; color: #fff;
}
.prod-thumb i { font-size: 2.6rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.22)); }
.prod-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.12)); pointer-events: none; }
.prod-thumb.c-libreria   { background: linear-gradient(150deg, #E36A4B, #C8472C); }
.prod-thumb.c-electronica{ background: linear-gradient(150deg, #5C7C99, #3C5872); }
.prod-thumb.c-confiteria { background: linear-gradient(150deg, #E58AAE, #CF5E89); }
.prod-thumb.c-joyeria    { background: linear-gradient(150deg, #E0B25C, #C28E2E); }
.prod-thumb.c-bazar      { background: linear-gradient(150deg, #6FA38A, #4C8067); }
.prod-thumb.c-tabaco     { background: linear-gradient(150deg, #3B2B23, #221812); }
.prod-thumb.c-juegos     { background: linear-gradient(150deg, #7D6BB2, #534784); }
.prod-thumb .age {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; z-index: 2;
  border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.42);
  border: 1.5px solid rgba(255,255,255,.55); font-family: var(--font-head); font-weight: 800; font-size: .85rem;
}
.prod-body { padding: 18px 20px 22px; }
.prod-body h3 { font-size: 1.2rem; font-weight: 700; }
.prod-body p { margin-top: 7px; color: var(--muted); font-size: .95rem; }
.prod-note { display: inline-block; margin-top: 12px; font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }

/* ===========================================================
   IMPRESIONES band
   =========================================================== */
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
.print-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 28px; }
.print-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.print-list i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); flex: none; }
.print-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.print-media .photo { min-height: 360px; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.print-note {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 20px;
  background: var(--red-tint); border: 1px solid #f3d4d4; border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--ink); font-size: .98rem; line-height: 1.5;
}
.print-note i { color: var(--red); font-size: 1.1rem; margin-top: 2px; flex: none; }
.print-note b { font-weight: 800; color: var(--red-dark); }

/* ===========================================================
   SOBRE NOSOTROS
   =========================================================== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px,5vw,60px); align-items: center; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.about-media { position: relative; }
.about-media .photo { min-height: 400px; box-shadow: var(--shadow-lg); border-radius: var(--r-lg); }
.about-badge {
  position: absolute; right: -16px; bottom: -16px; background: var(--gold);
  color: var(--ink); border-radius: var(--r); padding: 16px 22px; box-shadow: var(--shadow);
  text-align: center; border: 3px solid #fff;
}
.about-badge b { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; display: block; line-height: 1; }
.about-badge small { font-size: .82rem; font-weight: 700; }
.about-stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.about-stats div b { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--red); display: block; line-height: 1; }
.about-stats div span { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ===========================================================
   UBICACION + HORARIOS
   =========================================================== */
.loc-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: stretch; }
.loc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.loc-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.loc-row i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font-size: 1.15rem; flex: none; }
.loc-row b { font-family: var(--font-head); font-size: 1.02rem; display: block; }
.loc-row span { color: var(--muted); font-size: .95rem; }
.loc-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 340px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* horarios */
.hours-card {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; margin-top: 26px;
}
.hours-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hours-col { display: flex; gap: 16px; align-items: flex-start; }
.hours-col > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.2rem; flex: none; }
.hours-col h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.hours-col .t { font-weight: 700; color: var(--ink); }
.hours-col .t span { color: var(--muted); font-weight: 400; }
.hours-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--red-dark); font-weight: 700; }

/* ===========================================================
   CONTACTO / CTA
   =========================================================== */
.cta { background: linear-gradient(160deg, var(--red), var(--red-700)); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,64px); align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.cta .lede { color: rgba(255,255,255,.9); font-size: 1.12rem; margin-top: 16px; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-card { background: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 18px; color: var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font-size: 1.1rem; flex: none; transition: background .15s, color .15s; }
.contact-list b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); }
.contact-list span { font-size: .85rem; color: var(--muted); }
.contact-list a { transition: color .15s; }
.contact-list a:hover i { background: var(--red); color: #fff; }
.contact-list a:hover b { color: var(--red); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: #2E1E15; color: rgba(255,255,255,.72); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand b { font-family: var(--font-head); color: #fff; font-size: 1.2rem; font-weight: 800; }
.footer-brand p { font-size: .92rem; margin-top: 8px; max-width: 32ch; }
.footer h4 { font-family: var(--font-head); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; padding: 5px 0; font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: background .18s, transform .18s; }
.footer-social a:hover { background: var(--red); transform: translateY(-2px); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; }

/* ===========================================================
   FLOATING WHATSAPP
   =========================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 0; background: var(--wa); color: #fff;
  border-radius: 999px; padding: 0; height: 60px; width: 60px; overflow: hidden;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: width .28s ease, background .2s;
  font-family: var(--font-head); font-weight: 700;
}
.wa-float i { width: 60px; height: 60px; flex: none; display: grid; place-items: center; font-size: 1.7rem; }
.wa-float span { white-space: nowrap; padding-right: 22px; opacity: 0; transition: opacity .2s; }
.wa-float:hover { width: 230px; background: var(--wa-dark); }
.wa-float:hover span { opacity: 1; }
.wa-pulse { position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); z-index: 69; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.7); opacity: 0; } }

/* ===========================================================
   Reveal on scroll — base state is VISIBLE; entrance is a
   keyframe enhancement so content can never stay hidden.
   =========================================================== */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealUp .7s cubic-bezier(.22,.61,.36,1); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .photo { min-height: 280px; }
  .hero-badge { left: auto; right: 16px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .print-grid, .about-grid, .loc-grid, .cta-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn span.lbl { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 76px; background: var(--cream-2);
    padding: 14px 22px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 13px 16px; font-size: 1.05rem; }
  .strip-track { justify-content: flex-start; }
  .svc-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .print-list, .hours-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { right: 12px; bottom: -12px; }
}

@media (max-width: 460px) {
  .hero-actions .btn, .print-actions .btn, .cta-actions .btn { width: 100%; }
}
