/* ============================================
   El Grinch Librería Boutique — tokens
   Verde bosque + crema + dorado. Editorial, sofisticado.
   ============================================ */
:root {
  --forest: #1b4332;
  --forest-deep: #0f2a1e;
  --forest-soft: #e7efe9;
  --cream: #faf6ee;
  --cream-card: #ffffff;
  --gold: #b8933d;
  --gold-soft: #eadfc4;
  --ink: #211f1a;
  --ink-soft: #5c584e;
  --line: rgba(33, 31, 26, 0.12);
  --shadow: 0 20px 44px -26px rgba(15, 42, 30, 0.4);
  --radius: 4px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--forest); font-weight: 600; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *:not(.galeria-track-inner) { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 12px 26px -14px rgba(15,42,30,0.55); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }

/* Grinch touch: cursor mischievous on all clickable things */
a, button, .cat-card, .review-card { cursor: pointer; }

/* Promo bar */
.promo-bar {
  background: var(--forest-deep);
  color: var(--gold-soft);
  text-align: center;
  font-size: 0.86rem;
  padding: 10px 20px;
}
.promo-bar strong { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(15, 42, 30, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; position: relative; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--forest); line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }

/* Grinch peek: sly eyes appear behind the logo on hover */
.grinch-peek { position: absolute; left: -6px; top: -10px; opacity: 0; transform: translateY(4px) scale(0.85); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.brand:hover .grinch-peek { opacity: 1; transform: translateY(0) scale(1); }

.header-ctas { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 30px; font-weight: 500; font-size: 0.94rem; }
.nav a { position: relative; }
.nav a:hover { color: var(--gold); }
.nav-cta { padding: 10px 22px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 82%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,30,0.35) 0%, rgba(10,26,18,0.86) 100%);
}
.hero-content { position: relative; padding: clamp(64px, 13vh, 120px) 24px clamp(44px, 9vh, 80px); max-width: 720px; }
.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.12;
}
.hero .eyebrow { color: var(--gold-soft); margin-bottom: 10px; }
.hero-tagline { font-size: 1.05rem; margin: 14px 0 24px; color: rgba(255,255,255,0.85); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: #fff; color: var(--forest-deep); }

/* Section shells */
section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }

/* Categorias */
.categorias { text-align: center; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cat-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 20px 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.cat-icon {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.08rem; font-weight: 600; }
.cat-card p { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }

/* Galeria */
.galeria { background: var(--cream-card); }
.galeria-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.galeria-track-inner {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: galeria-scroll 60s linear infinite;
}
.galeria-track:hover .galeria-track-inner { animation-play-state: paused; }
.galeria-slide {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.galeria-slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes galeria-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nosotros */
.nosotros { background: var(--forest); color: rgba(255,255,255,0.92); }
.nosotros-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nosotros-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55); }
.nosotros-content .eyebrow { color: var(--gold-soft); }
.nosotros-content h2 { color: #fff; margin-bottom: 20px; }
.nosotros-content p { color: rgba(255,255,255,0.82); margin-bottom: 16px; font-size: 1.02rem; }
.nosotros-signature { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); margin-top: 20px; font-size: 1.05rem; }
.social-stat {
  margin-top: 26px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.social-note { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-links a { font-size: 0.8rem; font-weight: 600; background: transparent; border: 1px solid var(--gold-soft); color: var(--gold-soft); padding: 6px 14px; border-radius: 999px; }
.social-links a:hover { background: var(--gold-soft); color: var(--forest-deep); }

/* TikTok */
.tiktok { text-align: center; }
.tiktok-sub { color: var(--ink-soft); margin-top: -30px; margin-bottom: 40px; }
.tiktok-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tiktok-cta { margin-top: 36px; }

.tiktok-card {
  display: block;
  width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-card);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tiktok-card:hover { transform: translateY(-6px); }
.tiktok-thumb { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--forest-soft); }
.tiktok-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tiktok-card:hover .tiktok-thumb img { transform: scale(1.05); }
.tiktok-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tiktok-play svg {
  width: 46px; height: 46px;
  padding: 12px;
  color: #fff;
  background: rgba(15, 42, 30, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(2px);
}
.tiktok-caption {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.45;
}

/* Resenas */
.resenas { background: var(--cream-card); text-align: center; }
.rating-summary { color: var(--gold); font-size: 1.5rem; margin-top: -30px; margin-bottom: 44px; }
.rating-summary span { display: block; font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); margin-top: 4px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
.review-card { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.review-card p { color: var(--ink); margin-bottom: 16px; font-style: italic; }
.review-card cite { font-weight: 600; font-style: normal; color: var(--forest); }
.review-card cite span { font-weight: 400; color: var(--ink-soft); }

/* Ubicacion */
.ubicacion-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.info-list a { color: var(--forest); font-weight: 600; }
.hours-list { list-style: none; margin-top: 8px; }
.hours-list li { display: flex; justify-content: space-between; max-width: 320px; padding: 4px 0; color: var(--ink-soft); }
.hours-note { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.payments { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.payments span { background: var(--forest-soft); padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; color: var(--forest); font-weight: 500; }
.ubicacion-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.7); padding: 34px 0; position: relative; }
.footer-inner { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 38px; height: 38px; border-radius: 50%; }

/* Grinch peeking around the page */
.grinch-char { position: absolute; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(15,42,30,0.4)); }
.grinch-char--hero { width: 130px; height: 130px; right: 30px; bottom: 6px; z-index: 2; }
.grinch-char--footer { width: 138px; height: 138px; top: -84px; right: 64px; z-index: 2; }
@media (max-width: 860px) {
  .grinch-char--hero { width: 96px; height: 96px; right: 14px; bottom: 4px; }
  .grinch-char--footer { width: 100px; height: 100px; top: -60px; right: 24px; }
}

/* Whatsapp floating */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px;
  background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3); z-index: 60;
}

/* Responsive */
@media (max-width: 860px) {
  .nav, .header-ctas { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 18px 24px;
    box-shadow: 0 10px 20px rgba(15,42,30,0.1); gap: 18px;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid, .ubicacion-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .galeria-slide { width: 170px; height: 170px; }
}
@media (max-width: 520px) {
  .galeria-slide { width: 140px; height: 140px; }
  .galeria-track-inner { gap: 10px; animation-duration: 40s; }
}
