:root {
  --yellow:#FFD93D;
  --purple:#7B2FBE;
  --teal:#0EC4B8;
  --pink:#FF6B9D;
  --orange:#FF8C42;
  --green:#4CAF50;
  --blue:#2F80ED;
  --lilac:#C9A9FF;
  --light-purple:#F3E8FF;
  --dark:#1A1035;
  --text:#2D2040;
}

* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; background:#FFFBF0; color:var(--text); font-family:'Nunito',sans-serif; overflow-x:hidden }
a { color:inherit }

.nav { position:sticky; top:0; z-index:60; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); box-shadow:0 2px 18px rgba(123,47,190,.12) }
.nav-inner { max-width:1100px; margin:0 auto; padding:10px 18px; display:flex; align-items:center; gap:16px; justify-content:space-between }
.nav-brand { display:flex; align-items:center; gap:10px; text-decoration:none }
.nav-brand img { width:34px; height:34px }
.nav-brand b { color:var(--purple); font-family:'Baloo 2',cursive; font-size:1.1rem; font-weight:800; letter-spacing:.5px }
.nav-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px }
.nav-links a { padding:8px 12px; border-radius:16px; color:var(--text); font-size:.85rem; font-weight:800; line-height:1.25; text-align:center; text-decoration:none; transition:background .2s,color .2s }
.nav-links a small { display:block; font-size:inherit; font-weight:inherit }
.nav-links a:hover { background:var(--light-purple); color:var(--purple) }
.nav-links a.to-pv { background:#511F74; color:#fff }
.nav-links a.to-pv small { color:rgba(255,255,255,.85) }
.nav-links a.to-pv:hover { background:#0056BF; color:#fff }

.ludo-main { max-width:1100px; margin:0 auto; padding:34px 20px 72px }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 auto 26px; color:#766d89; font-size:.86rem; line-height:1.6 }
.breadcrumb a { color:var(--purple); font-weight:800; text-decoration:none }
.breadcrumb a:hover { text-decoration:underline }
.page-intro { max-width:820px; margin:0 auto 34px; text-align:center }
.page-intro .eyebrow { margin:0 0 6px; color:var(--purple); font-size:.82rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase }
.page-intro .eyebrow a { color:inherit; text-decoration:none }
.page-intro h1 { margin:0 auto 12px; color:var(--dark); font-family:'Baloo 2',cursive; font-size:clamp(2rem,5vw,3rem); font-weight:800; line-height:1.12 }
.page-intro > p:last-child { margin:0 auto; max-width:720px; color:#6b6480; font-size:1.04rem; font-weight:600; line-height:1.65 }

.category-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(225px,1fr)); gap:20px }
.category-card { overflow:hidden; border-radius:22px; background:#fff; box-shadow:0 4px 20px rgba(123,47,190,.09); text-decoration:none; transition:transform .22s,box-shadow .22s }
.category-card:hover { transform:translateY(-5px); box-shadow:0 14px 34px rgba(123,47,190,.18) }
.category-card > img { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; padding:10px; background:#fff }
.category-card-body { display:flex; flex-direction:column; align-items:flex-start; gap:7px; padding:4px 18px 20px }
.category-card h2 { margin:0; color:var(--dark); font-family:'Baloo 2',cursive; font-size:1.14rem; font-weight:800; line-height:1.25 }
.category-card p { margin:0; color:#6b6480; font-size:.88rem; font-weight:700 }
.category-card-body > span { margin-top:5px; color:var(--purple); font-weight:900 }

.ludo-cats { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:950px; margin:0 auto 30px }
.ludo-cats a,.category-pills a { display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border:2px solid #E6D9FF; border-radius:50px; background:#fff; color:var(--purple); font-size:.82rem; font-weight:800; line-height:1.3; text-align:center; text-decoration:none; transition:all .18s }
.ludo-cats a:hover,.category-pills a:hover { border-color:var(--purple); background:var(--light-purple) }
.ludo-cats .ludo-cats-all { border-color:var(--purple); background:var(--purple); color:#fff }
.ludo-cats .ludo-cats-all:hover { background:#64249d }

.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:20px }
.product { display:flex; flex-direction:column; overflow:hidden; border:2px solid transparent; border-radius:22px; background:#fff; box-shadow:0 4px 20px rgba(123,47,190,.09); transition:transform .22s,box-shadow .22s,border-color .22s }
.product[hidden] { display:none }
.product:hover { transform:translateY(-5px); border-color:var(--yellow); box-shadow:0 14px 34px rgba(123,47,190,.18) }
.product-image-link { display:block; text-decoration:none }
.product-img { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; padding:10px; background:#fff }
.product-body { display:flex; flex:1; flex-direction:column; gap:8px; padding:4px 16px 18px }
.product h2,.product h3 { margin:0; color:var(--dark); font-family:'Baloo 2',cursive; font-size:1rem; font-weight:800; line-height:1.25 }
.product h2 a,.product h3 a { color:inherit; text-decoration:none }
.product h2 a:hover,.product h3 a:hover { text-decoration:underline }
.product p { flex:1; margin:0; color:#6b6480; font-size:.83rem; line-height:1.45 }
.senses { display:flex; flex-wrap:wrap; gap:5px }
.sense-tag { padding:4px 9px; border-radius:50px; background:var(--purple); color:#fff; font-size:.66rem; font-weight:800; letter-spacing:.4px; text-transform:uppercase }
.sense-tag[data-s="Táctil"] { background:#9B51E0 }
.sense-tag[data-s="Visual"] { background:#2F80ED }
.sense-tag[data-s="Auditivo"] { background:#F2A007 }
.sense-tag[data-s="Propioceptivo"] { background:#EB5757 }
.sense-tag[data-s="Vestibular"] { background:#0EC4B8 }
.sense-tag[data-s="Interoceptivo"] { background:#4CAF50 }
.sense-tag[data-s="Olfativo"] { background:#FF6B9D }
.sense-tag[data-s="Matemáticas"] { background:#511F74 }
.sense-tag[data-s="Lenguaje"] { background:#FF8C42 }
.product-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:4px }
.price,.detail-price { display:inline-flex; align-items:center; border-radius:50px; background:var(--yellow); color:#6B4A00; font-family:'Baloo 2',cursive; font-size:.86rem; font-weight:800; line-height:1.2 }
.price { padding:6px 14px }
.buy { display:inline-flex; align-items:center; justify-content:center; border-radius:50px; background:#25D366; color:#fff; padding:7px 12px; font-size:.78rem; font-weight:800; text-decoration:none }
.buy:hover { background:#1da851 }

.ludo-backlinks { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:36px auto 0 }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:50px; padding:12px 20px; font-family:'Baloo 2',cursive; font-size:1rem; font-weight:800; text-align:center; text-decoration:none; transition:transform .2s,box-shadow .2s }
.btn:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.16) }
.btn-purple { background:var(--purple); color:#fff }
.btn-green { background:#25D366; color:#fff }
.btn-ghost-dark { border:2px solid var(--purple); background:#fff; color:var(--purple) }
.category-links,.related-products { margin:48px 0 0 }
.category-links h2,.related-products h2 { margin:0 0 18px; color:var(--dark); font-family:'Baloo 2',cursive; font-size:1.55rem; font-weight:800; text-align:center }
.category-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:8px }

.product-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:42px; align-items:center; margin:0 auto; padding:28px; border-radius:28px; background:#fff; box-shadow:0 8px 32px rgba(123,47,190,.1) }
.product-detail-image { display:flex; align-items:center; justify-content:center; min-width:0; border-radius:22px; background:#FFFBF0 }
.product-detail-image img { width:min(100%,480px); max-height:480px; aspect-ratio:1/1; object-fit:contain; padding:16px }
.product-detail-info { display:flex; flex-direction:column; align-items:flex-start; gap:14px }
.category-kicker { margin:0; color:#766d89; font-size:.9rem; font-weight:800 }
.category-kicker a { color:var(--purple); text-decoration:none }
.category-kicker a:hover { text-decoration:underline }
.product-detail h1 { margin:0; color:var(--dark); font-family:'Baloo 2',cursive; font-size:clamp(2rem,4vw,2.8rem); font-weight:800; line-height:1.12 }
.product-description { margin:0; color:#6b6480; font-size:1.02rem; line-height:1.65 }
.detail-price { padding:8px 18px; font-size:1.2rem }
.variant-options { display:flex; flex-wrap:wrap; gap:8px }
.variant-option { border:2px solid #E6D9FF; border-radius:50px; background:#fff; color:var(--purple); padding:8px 14px; font:inherit; font-weight:800; cursor:pointer }
.variant-option[aria-pressed="true"] { border-color:var(--purple); background:var(--purple); color:#fff }
.variant-option:focus-visible { outline:3px solid var(--blue); outline-offset:2px }
.catalog-unavailable { margin:0 auto 16px; border-radius:16px; background:#FFF1F0; color:#9B1C1C; padding:14px 18px; font-weight:800; text-align:center }
.price-note { margin:-8px 0 2px; color:#766d89; font-size:.82rem; line-height:1.5 }
.product-actions { display:flex; flex-wrap:wrap; gap:10px }

footer { background:#100825; color:#8a83a0; padding:24px 20px 76px; font-size:.82rem; text-align:center }
footer span { color:var(--teal); font-weight:700 }
.footer-links { margin-top:8px }
.footer-links a { color:#C9A9FF; font-weight:700; text-decoration:none }
.wa-float { position:fixed; right:18px; bottom:18px; z-index:80; display:flex; align-items:center; gap:8px; border-radius:50px; background:#25D366; box-shadow:0 8px 26px rgba(37,211,102,.45); color:#fff; padding:14px 20px; font-family:'Baloo 2',cursive; font-weight:800; text-decoration:none }
.wa-float:hover { transform:translateY(-3px) }

@media(max-width:760px) {
  .product-detail { grid-template-columns:1fr; gap:22px; padding:20px }
  .product-detail-image img { max-height:380px }
}
@media(max-width:640px) {
  .nav-inner { flex-wrap:wrap; justify-content:center; gap:6px }
  .nav-brand b { display:none }
  .nav-links { justify-content:center; gap:2px }
  .nav-links a { padding:7px 9px; font-size:.76rem }
  .ludo-main { padding:26px 16px 56px }
  .page-intro { margin-bottom:26px }
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
  .category-card { border-radius:17px }
  .category-card-body { padding:2px 12px 15px }
  .category-card h2 { font-size:1rem }
  .category-card p,.category-card-body > span { font-size:.78rem }
  .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
  .product { border-radius:17px }
  .product-body { gap:7px; padding:4px 11px 14px }
  .product h2,.product h3 { font-size:.91rem }
  .product p { font-size:.77rem }
  .sense-tag { padding:4px 7px; font-size:.58rem }
  .product-foot { align-items:flex-start; flex-direction:column }
  .product-actions { width:100% }
  .product-actions .btn { width:100% }
  .wa-float { right:12px; bottom:12px; padding:11px 16px }
}
@media(max-width:390px) {
  .products-grid,.category-grid { grid-template-columns:1fr }
}
