/* ============================================================
   Monerías Retro Costa Rica — 2026
   Nostalgia warm and playful, modernized typography and grid.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Chango&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }

:root {
  --cream:       #FFF8EE;
  --cream-2:     #FFEFD8;
  --pink:        #F472B6;
  --pink-soft:   #FCE7F3;
  --purple:      #7C3AED;
  --purple-soft: #EDE9FE;
  --teal:        #14B8A6;
  --yellow:      #FACC15;
  --orange:      #FB923C;
  --ink:         #2A1B36;
  --ink-soft:    #5B4B66;
  --line:        #F0E5D6;
  --white:       #ffffff;
  --whatsapp:    #25D366;
  --whatsapp-2:  #1DA851;

  --font-display: 'Chango', 'Baloo 2', system-ui, cursive;
  --font-head:    'Baloo 2', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-fun:     'Chango', system-ui, cursive;

  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.25s var(--ease);
  --r:    14px;
  --r-sm: 8px;

  --shadow-sm: 0 2px 4px rgba(42,27,54,0.06);
  --shadow-md: 0 8px 20px rgba(42,27,54,0.08);
  --shadow-lg: 0 20px 40px rgba(42,27,54,0.12);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(at 10% 0%, rgba(244,114,182,0.07) 0px, transparent 50%),
    radial-gradient(at 90% 0%, rgba(124,58,237,0.07) 0px, transparent 50%);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
h1, h2 { font-family: var(--font-display); letter-spacing: 0.4px; line-height: 1.04; }
h3, h4 { font-family: var(--font-head); letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }

p { color: var(--ink-soft); }
p + p { margin-top: 0.85rem; }

strong { color: var(--ink); font-weight: 700; }

/* LAYOUT */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 3.5vw, 2rem); }
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

/* EYEBROW */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0.35rem 0.85rem;
  background: var(--purple-soft);
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #7C3AED 0%, #9D2FB0 55%, #C026A8 100%);
  box-shadow: 0 4px 18px rgba(42,27,54,0.18);
}
.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1rem 0.8rem;
  text-align: center;
}
.header-top .brand img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  background: var(--white);
  padding: 4px;
  transition: var(--t);
}
.header-top .brand:hover img { transform: rotate(-4deg) scale(1.04); }
.header-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.navbar { background: rgba(0,0,0,0.16); }
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.nav-links a:hover { color: var(--yellow); }
.nav-wa {
  background: var(--whatsapp);
  color: #fff !important;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--t);
}
.nav-wa:hover { background: var(--whatsapp-2); color: #fff !important; }

/* Blog pages keep the simpler horizontal .nav, restyled for the purple header */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: var(--white); padding: 4px; box-shadow: var(--shadow-sm); }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple);
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
    gap: 0;
    z-index: 60;
  }
  .nav-links.open { max-height: 540px; padding: 0.5rem 1.25rem 1.25rem; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.18); text-align: center; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: var(--t);
  border: none;
}
.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-wa:hover { background: var(--whatsapp-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-purple:hover { background: #6D28D9; transform: translateY(-2px); }

/* HERO */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  font-size: 6rem;
  opacity: 0.08;
  pointer-events: none;
  font-family: var(--font-display);
  color: var(--pink);
}
.hero-deco.left { top: 10%; left: -2%; transform: rotate(-15deg); }
.hero-deco.right { bottom: 5%; right: -2%; transform: rotate(10deg); color: var(--purple); }

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--purple);
  text-shadow: 3px 3px 0 #C9B8F2, 6px 6px 0 rgba(124,58,237,0.22);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-clientes {
  margin: 2.5rem auto 0;
  max-width: 540px;
  background: var(--white);
  padding: 10px 10px 14px;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}
.hero-clientes img { border-radius: var(--r-sm); width: 100%; height: auto; display: block; }
.hero-clientes figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple);
  font-size: 0.95rem;
  margin-top: 0.7rem;
}

/* HOW IT WORKS */
.how-band {
  background: linear-gradient(135deg, var(--purple) 0%, #6D28D9 100%);
  color: #fff;
  border-radius: var(--r);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  margin: 0 auto;
}
.how-band h2 { color: #fff; text-align: center; margin-bottom: 0.75rem; }
.how-band .sub { text-align: center; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.how-step {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem;
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
}
.how-step .num {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-family: var(--font-display);
  text-align: center;
  line-height: 36px;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.how-step h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; }
.how-step p { color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.55; }

.payment-info {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.payment-info > div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-sm);
}
.payment-info h4 { color: var(--yellow); font-size: 0.95rem; margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.payment-info p, .payment-info li { color: rgba(255,255,255,0.88); font-size: 0.92rem; }
.payment-info ul { margin-top: 0.35rem; padding-left: 1.1rem; list-style: disc; }

@media (max-width: 820px) {
  .how-steps { grid-template-columns: 1fr; }
  .payment-info { grid-template-columns: 1fr; }
}

/* CATEGORY SECTIONS */
.cat-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.cat-head .icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cat-head h2 { margin-bottom: 0.5rem; }
.cat-head p { color: var(--ink-soft); max-width: 500px; margin: 0 auto; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product .img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-2);
}
.product .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product:hover .img img { transform: scale(1.04); }
.product .body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.product p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex: 1;
}
.product .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.product .price {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.product .btn {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}
.btn-preventa { background: var(--purple); color: #fff; }
.btn-preventa:hover { background: #6D28D9; transform: translateY(-2px); }

/* SOLD OUT */
.product.soldout .img { position: relative; }
.product.soldout .img img { opacity: 0.82; }
.product.soldout .img::after {
  content: "Agotado";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* SECTION BACKGROUNDS for visual rhythm */
.bg-pink { background: linear-gradient(180deg, var(--cream) 0%, var(--pink-soft) 100%); }
.bg-purple { background: linear-gradient(180deg, var(--cream) 0%, var(--purple-soft) 100%); }
.bg-cream-2 { background: var(--cream-2); }

/* TRUST STRIP */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}
.trust-item {
  text-align: center;
  padding: 1.25rem 1rem;
}
.trust-item .icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.4rem;
  line-height: 48px;
  margin-bottom: 0.6rem;
}
.trust-item h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.trust-item p { font-size: 0.9rem; }

@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* BLOG TEASER */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--purple); }
.blog-card p { font-size: 0.93rem; }

@media (max-width: 820px) { .blog-list { grid-template-columns: 1fr; } }

/* FOOTER */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}
.footer .wrap { text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.footer-tag { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: var(--t);
}
.footer-social a:hover { background: var(--pink); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.wizardweb-credit { margin-top: 0.5rem; font-size: 0.78rem; }
.wizardweb-credit a { color: var(--pink); }
.wizardweb-credit a:hover { color: var(--yellow); }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.4);
  z-index: 100;
  transition: var(--t);
  animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); animation: none; }
.wa-float svg { width: 30px; height: 30px; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 28px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

@media (max-width: 600px) {
  .wa-float { bottom: 20px; left: 20px; width: 54px; height: 54px; }
}

/* SELECTION */
::selection { background: var(--pink); color: #fff; }
