/* ============================================================
   Pepinillo Club — V1
   Estética: sticker, alto contraste, bordes negros gruesos.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Baloo";
  src: url("../fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Chango";
  src: url("../fonts/Chango.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Marker";
  src: url("../fonts/PermanentMarker.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green-dark: #4a6420;
  --green: #7ba428;
  --green-deep: #5f7d1f;
  --lime: #a7c957;
  --lime-bright: #b8d94a;
  --cream: #f7f2e0;
  --cream-2: #efe7cd;
  --ink: #1a1a1a;
  --white: #ffffff;
  --teal: #23b5a5;
  --yellow: #f6c945;
  --pink: #f2788f;
  --purple: #8b52c9;
  --blue: #4a9fe0;

  --font-display: "Chango", "Baloo", system-ui, sans-serif;
  --font-head: "Baloo", system-ui, sans-serif;
  --font-body: "Fredoka", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --border: 3px solid var(--ink);
  --border-thick: 4px solid var(--ink);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);

  --maxw: 1160px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 18px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.05; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .72em 1.4em;
  border: var(--border-thick);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--green  { background: var(--lime-bright); }
.btn--pink   { background: var(--pink); color: var(--white); }
.btn--dark   { background: var(--ink); color: var(--cream); }
.btn--teal   { background: var(--teal); color: var(--white); }
.btn--wa     { background: #25d366; color: var(--ink); }
.btn--ghost  { background: var(--white); }
.btn--lg     { font-size: 1.2rem; padding: .85em 1.7em; box-shadow: var(--shadow); }
.btn--block  { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: var(--border-thick);
}
.nav {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 12px 0; min-height: 66px;
}
.nav__logo { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo .club-tag {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .5px;
  background: var(--ink); color: var(--cream);
  padding: 2px 10px; border-radius: 8px; transform: rotate(-3deg);
}
.nav__links { display: flex; gap: 1.3rem; align-items: center; }
.nav__links a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 4px 2px; border-bottom: 3px solid transparent;
  transition: border-color .12s ease, color .12s ease;
}
.nav__links a:hover { border-bottom-color: var(--green); color: var(--green-dark); }
.nav__cta { margin-left: .4rem; }
.nav__burger {
  display: none; border: var(--border); background: var(--white);
  border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow-sm);
}
.nav__burger span { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 3px; }
.nav__burger span + span { margin-top: 4px; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-lead { font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* Grid children must be allowed to shrink below min-content (prevents overflow) */
.hero__grid > *, .meet__grid > *, .join__grid > *, .cards > *, .tee-grid > *, .gallery-grid > * { min-width: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(160deg, var(--lime-bright), var(--green));
  border-bottom: var(--border-thick);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px;
  align-items: center; padding: 70px 0 60px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .92; color: var(--cream);
  text-shadow: 4px 4px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  margin-bottom: .2em;
}
.hero__sub {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--ink); max-width: 24ch; margin-bottom: .6em;
}
.hero__text {
  background: var(--cream); border: var(--border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-sm); max-width: 46ch;
  font-size: 1.05rem; margin-bottom: 1.4rem;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__visual img { width: min(100%, 420px); height: auto; align-self: center; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.25)); }

/* Sellos / stamps */
.stamp {
  position: absolute; font-family: var(--font-head); font-weight: 800;
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 8px 14px; font-size: .95rem; text-align: center;
  box-shadow: var(--shadow-sm); line-height: 1.05;
}
.stamp--1 { top: 4%; left: -2%; background: var(--yellow); transform: rotate(-12deg); }
.stamp--2 { bottom: 12%; right: -4%; background: var(--pink); color: var(--white); transform: rotate(9deg); }
.stamp--3 { top: 44%; right: -6%; background: var(--teal); color: var(--white); transform: rotate(-6deg); }

/* ---------- Meet / personaje ---------- */
.meet__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; }
.meet__avatar {
  border: var(--border-thick); border-radius: 26px; background: var(--lime);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center;
}
.meet__avatar img { width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  border: var(--border); border-radius: 999px; padding: 6px 14px;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.tag:nth-child(5n+1){ background: var(--yellow); }
.tag:nth-child(5n+2){ background: var(--teal); color:#fff; }
.tag:nth-child(5n+3){ background: var(--pink); color:#fff; }
.tag:nth-child(5n+4){ background: var(--purple); color:#fff; }
.tag:nth-child(5n+5){ background: var(--lime-bright); }
.mini-list { list-style: none; padding: 0; margin: 1rem 0; font-family: var(--font-head); font-weight: 600; }
.mini-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mini-list li::before { content: "🥒"; font-size: 1.1rem; }

/* ---------- Club (¿qué es?) ---------- */
.club { background: var(--ink); color: var(--cream); border-block: var(--border-thick); }
.club .eyebrow { background: var(--lime-bright); color: var(--ink); }
.club .section-title { color: var(--cream); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
}
.card {
  background: var(--cream); color: var(--ink); text-align: left;
  border: var(--border-thick); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .1s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card__ico {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 1.7rem; border: var(--border); border-radius: 14px; margin-bottom: 14px;
}
.card:nth-child(1) .card__ico { background: var(--pink); }
.card:nth-child(2) .card__ico { background: var(--yellow); }
.card:nth-child(3) .card__ico { background: var(--teal); }
.card:nth-child(4) .card__ico { background: var(--purple); }
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; font-size: 1rem; }

/* ---------- Camisetas ---------- */
.tees { background: var(--cream-2); border-bottom: var(--border-thick); }
.tee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 28px; }
.tee {
  border: var(--border-thick); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tee__art {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  padding: 26px; color: var(--cream); text-align: center;
  background: var(--ink);
}
.tee:nth-child(1) .tee__art { background: linear-gradient(150deg,#2a2a2a,#111); }
.tee:nth-child(2) .tee__art { background: linear-gradient(150deg,var(--green),var(--green-dark)); }
.tee:nth-child(3) .tee__art { background: linear-gradient(150deg,#2a2a2a,#111); }
.tee__print { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.tee__print small { display:block; font-family: var(--font-head); font-weight:700; font-size:.85rem; letter-spacing:1px; opacity:.85; margin-top:8px; }
.tee__ribbon {
  position: absolute; top: 12px; right: -34px; transform: rotate(38deg);
  background: var(--yellow); color: var(--ink); border-block: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: 1px;
  padding: 4px 40px;
}
.tee__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tee__body h3 { font-size: 1.15rem; margin: 0; }
.tee__body p { margin: 0; font-size: .95rem; color: #444; flex: 1; }
.tees__note { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.tees__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }

/* ---------- Stickers ---------- */
.stickers { background: var(--teal); border-bottom: var(--border-thick); color: var(--ink); }
.stickers .eyebrow { background: var(--ink); color: var(--cream); }
.sticker-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 34px;
}
.sticker {
  background: var(--cream); border: var(--border); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-sm); aspect-ratio: 1;
  display: grid; place-items: center; transition: transform .12s ease;
}
.sticker:hover { transform: rotate(-4deg) scale(1.05); }
.sticker img { width: 100%; }

/* ---------- Galería (masonry: muestra cada gráfico completo) ---------- */
.gallery-grid { columns: 3; column-gap: 22px; margin-top: 40px; }
.g-item {
  display: block; width: 100%; margin: 0 0 22px; break-inside: avoid;
  border: var(--border-thick); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); position: relative;
  transition: transform .1s ease, box-shadow .1s ease;
}
.g-item:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.g-item img { width: 100%; height: auto; display: block; }
.gallery-cta { margin-top: 36px; }

/* ---------- Comunidad / form ---------- */
.join { background: linear-gradient(160deg, var(--purple), #6a3aa0); color: var(--cream); border-top: var(--border-thick); }
.join .eyebrow { background: var(--yellow); color: var(--ink); }
.join .section-title { color: var(--cream); }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card {
  background: var(--cream); color: var(--ink);
  border: var(--border-thick); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 6px; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: var(--border); border-radius: 12px;
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--lime-bright); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.microcopy { font-size: .9rem; opacity: .95; margin-top: 12px; font-style: italic; }
.form-msg {
  display: none; margin-top: 14px; padding: 12px 16px; border: var(--border);
  border-radius: 12px; background: var(--lime-bright); font-family: var(--font-head); font-weight: 700;
}
.form-msg.show { display: block; }
.join__aside p { font-size: 1.1rem; }
.join__or { display:flex; align-items:center; gap:12px; margin: 22px 0; font-family: var(--font-head); font-weight:700; opacity:.9; }
.join__or::before, .join__or::after { content:""; flex:1; height:3px; background: rgba(255,255,255,.4); border-radius:3px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--lime-bright); overflow: hidden;
  border-block: var(--border-thick); padding: 12px 0;
}
.marquee__track {
  display: flex; gap: 40px; white-space: nowrap; width: max-content;
  animation: scroll 26s linear infinite; font-family: var(--font-display); font-size: 1.3rem;
}
.marquee span { display: inline-flex; gap: 40px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--cream); padding: 54px 0 30px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer__brand img { display: inline-block; width: auto; height: 46px; margin-bottom: 10px; filter: brightness(1.05); }
.footer__brand p { max-width: 34ch; opacity: .9; font-size: .95rem; }
.footer__cols { display: flex; gap: 54px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-head); font-size: 1rem; margin: 0 0 10px; letter-spacing: .5px; }
.footer__col a { display: block; padding: 4px 0; opacity: .9; font-size: .95rem; }
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.25);
  font-size: .85rem; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__box {
  position: relative; z-index: 1; max-width: 520px; width: calc(100% - 32px);
  margin: 6vh auto 0; max-height: 88vh; overflow-y: auto;
  background: var(--cream); border: var(--border-thick); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: var(--border); border-radius: 10px; background: var(--pink); color: #fff;
  font-size: 1.3rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.modal h3 { font-size: 1.5rem; }

/* ---------- Cookie banner ---------- */
.cookies-bar {
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 90;
  max-width: 640px; margin: 0 auto;
  background: var(--cream); border: var(--border-thick); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px;
  display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookies-bar.show { display: flex; }
.cookies-bar p { margin: 0; flex: 1; min-width: 220px; font-size: .92rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); color: var(--green-dark); }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal a { color: var(--green-dark); text-decoration: underline; }
.legal .back { display:inline-block; margin-bottom: 24px; }

/* ---------- Utils / anims ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sticker-grid { grid-template-columns: repeat(3, 1fr); }
  .tee-grid { grid-template-columns: 1fr; max-width: 420px; }
  .gallery-grid { columns: 2; }
  .join__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--cream); border-bottom: var(--border-thick); padding: 18px 22px; gap: .8rem;
  }
  .nav.open .nav__cta { display: inline-flex; }
  .hero__grid, .meet__grid { grid-template-columns: 1fr; }
  .hero__sub, .hero__text { max-width: 100%; }
  .hero__btns .btn { flex: 1 1 auto; justify-content: center; }
  .hero__visual { order: -1; }
  .hero__visual img { width: min(72%, 300px); }
  .meet__avatar { max-width: 320px; margin: 0 auto; }
  .stamp--3 { display: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .sticker-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { gap: 30px; }
}
