/* Juguvera — hoja de estilos principal */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/baloo2-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-variable.woff2') format('woff2');
}

:root {
  --bg: #FFFDF6;
  --ink: #3B3355;
  --ink-soft: #6B6480;
  --ink-faint: #9990B8;
  --yellow: #FFC93C;
  --yellow-bg: #FFF6DE;
  --yellow-bg2: #FFEEC2;
  --yellow-text: #B8860B;
  --blue: #4FC3E8;
  --blue-bg: #E8F8FC;
  --blue-bg2: #D3F1FA;
  --pink: #FF9EC4;
  --pink-bg: #FFE9F2;
  --pink-bg2: #FFD9E8;
  --green-bg: #EAFBEA;
  --green-bg2: #D8F5D8;
  --green-check: #6FCF5E;
  --border-soft: #E4DEF5;
  --border-faint: #F3F0FA;
  --footer-bg: #3B3355;
  --footer-text: #E8E4F5;
  --footer-text-soft: #C7C1DE;
  --footer-line: #4A426A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Baloo 2', sans-serif; font-weight: 800; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.legal { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--yellow);
}
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #fff; font-size: 20px;
}
.logo__text { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 26px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: #706A88; font-weight: 700; font-size: 15px;
  border-bottom: 3px solid transparent; padding-bottom: 4px; white-space: nowrap;
}
.nav a.is-active { color: var(--ink); font-weight: 800; border-bottom-color: var(--yellow); }
.cart-btn {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 14px; position: relative;
}
.cart-badge {
  position: absolute; top: -8px; right: -8px; background: var(--pink); color: #fff;
  width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; border: 2px solid var(--bg);
}
.cart-badge.is-visible { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline-blue { background: transparent; border: 2px solid var(--blue); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Sections & tags ---------- */
.section { padding: 56px 24px; }
.section-tight { padding: 40px 24px; }
.bg-blue { background: var(--blue-bg); }
.bg-pink { background: var(--pink-bg); }
.bg-green { background: var(--green-bg); }
.bg-yellow { background: var(--yellow-bg); }
.eyebrow {
  display: inline-block; background: var(--yellow-bg); color: var(--yellow-text);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; margin-bottom: 16px;
}
.section-title { font-size: 28px; margin: 0 0 32px; text-align: center; }
.section-title-lg { font-size: 38px; margin: 0 0 16px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.text-center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 18px; }
.hero p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.photo { border-radius: 28px; overflow: hidden; height: 380px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-half { height: 300px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Age / occasion cards ---------- */
.age-card {
  text-decoration: none; background: #fff; border-radius: 20px; padding: 28px 18px;
  text-align: center; box-shadow: 0 6px 18px rgba(59,51,85,0.06); display: block;
}
.age-card__dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; }
.age-card__label { font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--ink); font-size: 17px; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(59,51,85,0.07); display: flex; flex-direction: column;
}
.product-card__photo { height: 150px; position: relative; overflow: hidden; }
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
}
.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card__age { font-size: 11px; color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.product-card__name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.product-card__desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-weight: 800; color: var(--blue); font-size: 16px; }
.product-card[hidden] { display: none; }

/* ---------- Values / mission ---------- */
.value { text-align: center; }
.value__icon {
  width: 60px; height: 60px; border-radius: 50%; background: #fff; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif;
  font-weight: 800; color: var(--ink); font-size: 22px;
}
.value__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.value__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-radius: 20px; padding: 26px; }
.testimonial__stars { color: var(--yellow); font-size: 16px; margin-bottom: 10px; }
.testimonial__quote { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.testimonial__name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px; }
.testimonial__city { font-size: 12px; color: var(--ink-faint); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.newsletter-form input {
  padding: 14px 18px; border-radius: 999px; border: 2px solid var(--border-soft);
  min-width: 260px; font-family: 'Nunito', sans-serif; font-size: 14px; outline: none;
}
.form-note { font-size: 13px; margin-top: 14px; }
.form-note.is-ok { color: #3d9a2a; }
.form-note.is-error { color: #c0392b; }
.form-note[hidden] { display: none; }

/* ---------- Forms (contact) ---------- */
.form-panel { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 8px 24px rgba(59,51,85,0.06); }
.form-field { margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--border-soft); font-family: 'Nunito', sans-serif; font-size: 14px; outline: none;
}
.form-field textarea { resize: vertical; }
.form-success { text-align: center; padding: 40px 0; }
.check-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green-check);
  font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.check-circle-lg { width: 64px; height: 64px; font-size: 30px; }
[data-form-success][hidden], [data-form-default][hidden] { display: none; }

/* ---------- Filters (Catalogo) ---------- */
.filters { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; padding: 32px 0 12px; }
.filters__label { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  border: 2px solid var(--border-soft); background: #fff; color: var(--ink); font-weight: 700;
  font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.filter-pill.is-active { border-color: var(--blue); background: var(--blue-bg); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(59,51,85,0.4); z-index: 90; display: none;
}
.cart-overlay.is-open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff;
  z-index: 91; box-shadow: -8px 0 30px rgba(0,0,0,0.15); display: none; flex-direction: column;
  transform: translateX(0);
}
.cart-drawer.is-open { display: flex; }
.cart-drawer__head {
  padding: 22px; border-bottom: 2px solid var(--yellow-bg); display: flex;
  justify-content: space-between; align-items: center;
}
.cart-drawer__title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; }
.cart-drawer__close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink-faint); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { color: var(--ink-faint); text-align: center; margin-top: 40px; }
.cart-empty[hidden] { display: none; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-faint); }
.cart-item__thumb { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; overflow: hidden; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; }
.cart-item__price { font-size: 12px; color: var(--ink-faint); margin: 4px 0; }
.cart-item__controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-soft); background: #fff; cursor: pointer; }
.cart-item__remove { margin-left: auto; background: none; border: none; color: var(--pink); font-size: 12px; cursor: pointer; font-weight: 700; }
.cart-drawer__footer { padding: 22px; border-top: 2px solid var(--yellow-bg); }
.cart-drawer__total {
  display: flex; justify-content: space-between; margin-bottom: 16px;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px;
}
.btn-block { width: 100%; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(59,51,85,0.5); z-index: 99; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-card { background: #fff; border-radius: 24px; padding: 40px; max-width: 400px; text-align: center; }
.modal-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.modal-text { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }

/* ---------- Development stages ---------- */
.stage {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; margin-bottom: 48px;
}
.stage__photo { border-radius: 24px; overflow: hidden; height: 220px; order: 1; }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__body { order: 2; }
.stage.reverse .stage__photo { order: 3; }
.stage__age {
  display: inline-block; background: var(--yellow-bg); color: var(--yellow-text);
  padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; margin-bottom: 12px;
}
.stage__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.stage__desc { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.stage__tips { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.dev-area-card { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 6px 18px rgba(59,51,85,0.06); }
.dev-area-card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--ink); margin-bottom: 14px;
}

/* ---------- Creativity projects ---------- */
.project-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(59,51,85,0.06); }
.project-card__photo { height: 130px; overflow: hidden; }
.project-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 18px; }
.project-card__meta { font-size: 11px; font-weight: 800; color: var(--ink-faint); }
.project-card__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; margin: 8px 0; }
.project-card__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.kit-card { background: #fff; border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.kit-card__thumb { width: 70px; height: 70px; border-radius: 16px; flex-shrink: 0; overflow: hidden; }
.kit-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kit-card__name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.kit-card__price { font-weight: 800; color: var(--blue); font-size: 14px; }

.tip-row { display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(59,51,85,0.05); }
.tip-row__num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--green-bg); color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
.tip-row__text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Regalos ---------- */
.occasion-card { text-decoration: none; display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(59,51,85,0.06); }
.occasion-card__photo { height: 110px; }
.occasion-card__label { background: #fff; padding: 16px; font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--ink); font-size: 15px; }

.persona-btn {
  text-align: left; border: 2px solid transparent; background: #fff; border-radius: 18px; padding: 20px;
  cursor: pointer; font-family: 'Nunito', sans-serif; color: var(--ink); width: 100%;
}
.persona-btn.is-active { border-color: var(--yellow); }
.persona-btn__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.persona-btn__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.persona-results { margin-top: 28px; background: #fff; border-radius: 20px; padding: 24px; display: none; }
.persona-results.is-visible { display: block; }
.persona-results__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.persona-product { text-align: center; }
.persona-product__photo { height: 90px; border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.persona-product__photo img { width: 100%; height: 100%; object-fit: cover; }
.persona-product__name { font-size: 12px; font-weight: 700; color: var(--ink); }
.persona-product__price { font-size: 12px; color: var(--blue); font-weight: 800; }

/* ---------- Articles (Consejos) ---------- */
.article-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(59,51,85,0.06); }
.article-card__photo { height: 120px; }
.article-card__body { padding: 18px; }
.article-card__meta { font-size: 11px; font-weight: 800; color: var(--ink-faint); }
.article-card__title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; margin: 8px 0; }
.article-card__excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.featured-article { background: #fff; border-radius: 24px; padding: 36px; box-shadow: 0 8px 24px rgba(59,51,85,0.06); }
.featured-article p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px; }
.featured-article p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-faint); padding: 18px 0; }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); padding: 0;
}
.faq-item__symbol { font-size: 20px; color: var(--ink-faint); }
.faq-item__a { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 12px 0 0; display: none; }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Stats ---------- */
.stat__number { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 34px; color: var(--ink); }
.stat__label { font-size: 13px; color: var(--ink-soft); }

/* ---------- Values (Nosotros) ---------- */
.value-dot { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px; }
.mission-card { background: #fff; border-radius: 20px; padding: 28px; text-align: center; }
.mission-card__title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 10px; }

/* ---------- Contact ---------- */
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info__label { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.contact-info__value { font-size: 14px; color: var(--ink-soft); }
.contact-info a.contact-info__value { color: var(--blue); text-decoration: none; }
.contact-map { border-radius: 20px; height: 160px; overflow: hidden; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 60px; }
.site-footer__grid {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.site-footer__brand { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; color: #fff; margin-bottom: 10px; }
.site-footer__desc { font-size: 14px; line-height: 1.7; color: var(--footer-text-soft); max-width: 280px; }
.site-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__social {
  width: 36px; height: 36px; border-radius: 50%; background: #4A426A; display: flex;
  align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 13px;
}
.site-footer__heading { font-family: 'Baloo 2', sans-serif; font-weight: 700; color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a, .site-footer__links span { color: var(--footer-text-soft); text-decoration: none; font-size: 14px; }
.site-footer__bottom {
  border-top: 1px solid var(--footer-line); padding: 18px 24px; max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.site-footer__bottom span { font-size: 13px; color: var(--footer-text-soft); }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 19px; margin: 28px 0 10px; }
.legal p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.legal a { color: var(--blue); }
.legal .updated { color: var(--ink-faint); font-size: 13px; margin: 0 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .stage, .stage.reverse { grid-template-columns: 1fr; }
  .stage__photo, .stage.reverse .stage__photo { order: 1 !important; }
  .stage__body { order: 2 !important; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .section-title-lg { font-size: 28px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}
