/* =======================================================
   ESTILOS BASE — Junior Planet (versión fondo blanco)
   Colores corporativos tomados del logo (azul marino, naranja, dorado, celeste)
   Usado por: index.html, producto.html, carrito.html, gracias.html, error.html
   ======================================================= */
:root{
  --navy: #0A0E42;
  --navy-2: #12184F;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FC;
  --panel: #FFFFFF;
  --border: #E7E9F5;
  --orange: #F7931E;
  --orange-dark: #D97A0A;
  --sky: #0E85CC;
  --gold: #C97F00;
  --gold-bg: #FFF4DE;
  --text-light: #0A0E42;
  --text-muted: #5B6178;
  --radius: 18px;
  /* Acentos de temporada Halloween (uso puntual, no dominante) */
  --purple: #6B2FA0;
  --purple-dark: #4B1F73;
  --purple-bg: #F3EAFB;
  --warm-yellow: #FFC93C;
}
*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{ background: var(--bg); color: var(--text-light); font-family: 'Nunito Sans', sans-serif; line-height: 1.5; overflow-x: hidden; }
h1,h2,h3, .display{ font-family: 'Baloo 2', sans-serif; font-weight: 800; line-height: 1.15; color: var(--navy); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; border:none; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- PROMO RIBBON ---------- */
.promo-ribbon{ background: linear-gradient(90deg, var(--orange), var(--orange-dark)); color:#241300; text-align:center; padding: 10px 16px; font-weight:800; font-size:.92rem; }
.promo-ribbon b{ color: var(--navy); }

/* ---------- NAV ---------- */
header{ position: sticky; top:0; z-index: 50; background: var(--orange); border-bottom: 3px solid var(--orange-dark); box-shadow: 0 2px 14px rgba(217,122,10,0.25); }
nav{ display:flex; align-items:center; justify-content: space-between; padding: 10px 24px; max-width: 1180px; margin:0 auto; gap:16px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo img{ height: 62px; width:auto; }
.logo-fallback{ font-family:'Baloo 2',sans-serif; font-weight:800; font-size: 1.4rem; color: white; }
.logo-fallback span{ color: var(--navy); }
.nav-links{ display:flex; gap: 28px; font-weight:800; align-items:center; color: white; }
.nav-links a:hover{ color: var(--navy); }
.nav-cta{ background: var(--navy); color:white; padding: 10px 18px; border-radius: 999px; font-weight:800; font-size:.92rem; white-space:nowrap; box-shadow: 0 4px 14px rgba(10,14,66,0.25); transition:.2s; }
.nav-cta:hover{ transform: translateY(-2px); background: var(--navy-2); }
.nav-cart{ position:relative; display:flex; align-items:center; font-size:1.4rem; color: white; }
.nav-cart .badge{ position:absolute; top:-8px; right:-10px; background: var(--navy); color:white; font-size:.68rem; font-weight:800; min-width:18px; height:18px; border-radius:999px; display:none; align-items:center; justify-content:center; padding:0 4px; }
.nav-social{ display:flex; gap:10px; align-items:center; }
.nav-social a{ width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,0.22); display:flex; align-items:center; justify-content:center; font-size:1rem; color: white; transition:.2s; border:1px solid rgba(255,255,255,0.3); }
.nav-social a svg{ width:18px; height:18px; }
.nav-social a:hover{ background: var(--navy); color:white; border-color: var(--navy); }

/* ---------- BOTONES GENERALES ---------- */
.btn-primary{ background: var(--orange); color:#241300; padding: 15px 30px; border-radius: 999px; font-weight:800; font-size:1rem; box-shadow: 0 8px 24px rgba(247,147,30,0.3); transition:.2s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-primary:hover{ transform: translateY(-3px); }
.btn-primary:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-ghost{ border: 2px solid var(--border); color: var(--navy); padding: 13px 28px; border-radius:999px; font-weight:800; transition:.2s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-ghost:hover{ border-color: var(--sky); color: var(--sky); }
.btn-order{ background: rgba(14,133,204,0.08); color: var(--sky); border:2px solid var(--sky); padding: 11px; border-radius: 12px; font-weight:800; text-align:center; display:flex; align-items:center; justify-content:center; gap:8px; transition:.2s; }
.btn-order:hover{ background: var(--sky); color: white; }
.btn-whatsapp-solid{ background:#25D366; color:white; padding: 15px 30px; border-radius: 999px; font-weight:800; font-size:1rem; box-shadow: 0 8px 24px rgba(37,211,102,0.35); transition:.2s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-whatsapp-solid:hover{ transform: translateY(-3px); }

/* ---------- HERO ---------- */
.hero{ position:relative; padding: 56px 24px 60px; overflow:hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%); }
.hero-grid{ max-width: 1180px; margin: 0 auto; display:grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items:center; position:relative; z-index:2; }
.promo-badge{ display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,0.15); color: var(--gold-bg); border:1px solid rgba(255,255,255,0.3); padding:8px 18px; border-radius:999px; font-weight:800; font-size:.88rem; margin-bottom: 20px; }
.hero h1{ font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; color: white; }
.hero h1 em{ font-style:normal; color: var(--gold-bg); }
.hero p{ color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: 26px; font-size: 1.08rem; font-weight:600; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 30px; }
.hero .btn-ghost{ border: 2px solid rgba(255,255,255,0.5); color: white; }
.hero .btn-ghost:hover{ border-color: white; background: rgba(255,255,255,0.12); }
.price-hero{ display:inline-flex; align-items:baseline; gap:12px; background: white; padding: 14px 26px; border-radius: 16px; border: 2px dashed var(--orange); box-shadow: 0 10px 26px rgba(10,14,66,0.25); }
.price-hero .old{ text-decoration: line-through; color: var(--text-muted); font-weight:700; font-size:.95rem; }
.price-hero .new{ font-family:'Baloo 2'; font-size:1.7rem; color: var(--orange-dark); font-weight:800; }
.price-hero .until{ display:block; font-size:.72rem; color:var(--text-muted); font-weight:800; margin-top:2px; text-transform:uppercase; letter-spacing:.02em; }
.hero-visual{ position:relative; }
.hero-visual img{ width:100%; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.25); }
.hero-visual .pin{ position:absolute; bottom:-16px; left:-16px; background: var(--orange); color:white; font-family:'Baloo 2'; font-weight:800; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 24px rgba(10,14,66,0.3); font-size:.95rem; }
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } .hero-visual{ order:-1; } }

/* ---------- ENVÍOS INFO BAR ---------- */
.envios-bar{ background: var(--navy); color:white; padding: 16px 24px; }
.envios-bar .wrap{ display:flex; flex-wrap:wrap; gap: 22px; justify-content:center; align-items:center; }
.envios-bar .item{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:.92rem; }
.envios-bar .item b{ color: var(--gold-bg); }

/* ---------- FEATURED / NUEVA COLECCIÓN ---------- */
.featured{ padding: 30px 24px 20px; }
.featured-row{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card{ position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: 0 14px 30px rgba(10,14,66,0.14); aspect-ratio: 3/4; border:1px solid var(--border); display:block; transition:.2s; }
.featured-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10,14,66,0.2); }
.featured-card img{ width:100%; height:100%; object-fit:cover; }
.featured-badge{ position:absolute; top:14px; left:14px; background: var(--orange); color:#241300; font-family:'Baloo 2'; font-weight:800; padding: 6px 14px; border-radius: 999px; font-size:.8rem; }
.featured-name{ position:absolute; bottom:0; left:0; right:0; padding: 30px 16px 14px; font-family:'Baloo 2'; font-weight:800; font-size:1.15rem; color:white; background: linear-gradient(0deg, rgba(10,14,66,0.85), transparent); }
@media (max-width: 780px){ .featured-row{ grid-template-columns: 1fr 1fr; } .featured-row .featured-card:nth-child(3){ display:none; } }

/* ---------- CATEGORY CHIPS ---------- */
.categories{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; padding: 40px 24px 40px; }
.chip{ background: var(--bg-soft); border:2px solid var(--border); padding: 10px 20px; border-radius:999px; font-weight:800; font-size:.92rem; color:var(--text-muted); transition:.18s; }
.chip:hover{ color: var(--navy); }
.chip.active{ background: rgba(14,133,204,0.08); border-color: var(--sky); color: var(--sky); }

/* ---------- CATALOG ---------- */
.catalog{ padding: 10px 24px 90px; }
.section-title{ text-align:center; margin-bottom: 44px; }
.section-title h2{ font-size: clamp(1.7rem,3.6vw,2.4rem); margin-bottom:10px; }
.section-title p{ color:var(--text-muted); font-weight:600; }
.grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 30px; }
.card{ background: var(--panel); border-radius: var(--radius); position:relative; transition:.25s; border: 1px solid var(--border); display:flex; flex-direction:column; box-shadow: 0 4px 14px rgba(10,14,66,0.05); }
.card:hover{ transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,14,66,0.14); }
.card-photo{ height: 230px; border-radius: var(--radius) var(--radius) 0 0; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size: 3.5rem; position:relative; background: var(--bg-soft); }
.card-photo img{ width:100%; height:100%; object-fit: cover; }
.card-photo a{ display:block; width:100%; height:100%; }
.card-photo .ph-label{ position:absolute; bottom:8px; left:8px; font-size:.65rem; font-weight:800; background: rgba(10,14,66,0.55); color: white; padding:3px 8px; border-radius:6px; text-transform:uppercase; }
.tag-price{ position:absolute; top:-14px; right:16px; background: var(--gold-bg); color:#5c3d00; border: 1px solid #F3D48A; font-family:'Baloo 2'; font-weight:800; padding: 8px 14px 8px 18px; border-radius: 8px 8px 8px 2px; transform: rotate(6deg); box-shadow: 0 6px 14px rgba(10,14,66,0.12); font-size: 1.05rem; }
.tag-price::before{ content:''; position:absolute; left:-5px; top:50%; width:10px; height:10px; background: var(--bg); border: 1px solid #F3D48A; border-radius:50%; transform: translateY(-50%); }
.card-body{ padding: 26px 20px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.card-cat{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color: var(--sky); }
.card-body h3{ font-size:1.15rem; }
.card-body h3 a:hover{ color: var(--sky); }
.card-actions{ display:flex; gap:8px; margin-top:auto; }
.card-actions .btn-order{ flex:1; }
.btn-add{ background: var(--orange); color:#241300; border:2px solid var(--orange); padding: 11px 14px; border-radius: 12px; font-weight:800; transition:.2s; }
.btn-add:hover{ background: var(--orange-dark); border-color: var(--orange-dark); }

/* ---------- HOW TO BUY ---------- */
.how{ background: var(--bg-soft); padding: 90px 24px; }
.how-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.how-card{ text-align:center; padding: 20px; }
.how-num{ width:56px; height:56px; border-radius:50%; background: var(--orange); color:#241300; display:flex; align-items:center; justify-content:center; font-family:'Baloo 2'; font-weight:800; font-size:1.3rem; margin: 0 auto 18px; }
.how-card h3{ font-size:1.15rem; margin-bottom:8px; }
.how-card p{ color:var(--text-muted); font-weight:600; font-size:.92rem; }

/* ---------- MAYORISTAS ---------- */
.mayoristas{ padding: 80px 24px; }
.mayoristas .box{ max-width: 980px; margin:0 auto; background: linear-gradient(120deg, var(--navy), var(--navy-2)); border-radius: 26px; padding: 50px 40px; display:grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items:center; color:white; }
.mayoristas h2{ color:white; font-size: clamp(1.5rem,3.2vw,2.1rem); margin-bottom:14px; }
.mayoristas p{ color: #C7CCEC; font-weight:600; margin-bottom:0; line-height:1.7; }
.mayoristas .lado-boton{ text-align:center; }
.mayoristas .lado-boton p.aviso{ color:#C7CCEC; font-size:.8rem; font-weight:700; margin-top:14px; }
@media (max-width: 780px){ .mayoristas .box{ grid-template-columns: 1fr; text-align:center; } }

/* ---------- SEO TEXT BLOCK ---------- */
.seo-block{ padding: 70px 24px; max-width: 900px; margin: 0 auto; text-align:center; }
.seo-block h2{ font-size: clamp(1.5rem,3.2vw,2rem); margin-bottom: 18px; }
.seo-block p{ color: var(--text-muted); font-weight:600; margin-bottom: 14px; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs{ max-width:1180px; margin:0 auto; padding: 18px 24px 0; font-size:.85rem; font-weight:700; color:var(--text-muted); }
.breadcrumbs a:hover{ color: var(--sky); }

/* ---------- FOOTER ---------- */
footer{ padding: 60px 24px 40px; text-align:center; background: var(--bg-soft); border-top:1px solid var(--border); }
footer .logo{ justify-content:center; margin-bottom: 14px; }
footer .logo img{ height: 64px; }
footer p{ color:var(--text-muted); font-weight:600; margin-bottom: 22px; max-width:620px; margin-left:auto; margin-right:auto; }
.footer-links{ display:flex; gap:26px; justify-content:center; flex-wrap:wrap; margin-bottom: 24px; font-weight:800; color: var(--navy); }
.footer-links a:hover{ color: var(--sky); }
.footer-social{ display:flex; gap:14px; justify-content:center; margin-bottom: 26px; }
.footer-social a{ width:42px; height:42px; border-radius:50%; background: white; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:1.2rem; color: var(--navy); transition:.2s; }
.footer-social a svg{ width:20px; height:20px; }
.footer-social a:hover{ background: var(--orange); color:white; border-color: var(--orange); transform: translateY(-2px); }
.fine{ font-size:.8rem; color: var(--text-muted); opacity:.7; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float{ position:fixed; bottom: 22px; right: 22px; z-index: 60; background: #25D366; color:white; width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.7rem; box-shadow: 0 10px 24px rgba(37,211,102,0.45); transition:.2s; }
.wa-float:hover{ transform: scale(1.08); }

/* ---------- DISFRACES DE TEMPORADA ---------- */
.temporada{ padding: 70px 24px; background: var(--purple-bg); }
.temporada .section-title h2{ color: var(--purple-dark); }
.temporada-grid{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.temporada-card{ background:white; border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); box-shadow: 0 10px 26px rgba(107,47,160,0.12); transition:.2s; display:flex; flex-direction:column; }
.temporada-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 36px rgba(107,47,160,0.2); }
.temporada-card .foto{ height:220px; background:var(--bg-soft); }
.temporada-card .foto img{ width:100%; height:100%; object-fit:cover; }
.temporada-card .body{ padding:22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.temporada-card .tag{ font-size:.78rem; font-weight:800; color:var(--purple); text-transform:uppercase; letter-spacing:.03em; }
.temporada-card h3{ font-size:1.3rem; }
.temporada-card p{ color:var(--text-muted); font-weight:600; font-size:.92rem; flex:1; }
.temporada-card .precio{ font-family:'Baloo 2'; font-weight:800; color:var(--orange-dark); font-size:1.3rem; }
@media (max-width:800px){ .temporada-grid{ grid-template-columns:1fr; } }

/* ---------- ¿QUÉ QUIERE SER HOY? ---------- */
.que-ser-hoy{ padding: 70px 24px; }
.que-ser-hoy .section-title h2{ color: var(--navy); }
.chips-grid{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap:16px; }
.chip-cat{ background: var(--bg-soft); border:2px solid var(--border); border-radius: 16px; padding: 22px 14px; text-align:center; font-weight:800; color:var(--navy); transition:.2s; display:flex; flex-direction:column; align-items:center; gap:10px; }
.chip-cat .emoji{ font-size:2rem; }
.chip-cat:hover{ border-color: var(--orange); background: var(--gold-bg); transform: translateY(-3px); }

/* ---------- COMPRA CON CONFIANZA ---------- */
.confianza{ background: var(--navy); padding: 70px 24px; color:white; }
.confianza .section-title h2{ color:white; }
.confianza .section-title p{ color: rgba(255,255,255,0.7); }
.confianza-grid{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:24px; }
.confianza-card{ background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius: 16px; padding:26px; text-align:center; }
.confianza-card .emoji{ font-size:2.2rem; margin-bottom:12px; }
.confianza-card h3{ color:white; font-size:1rem; margin-bottom:6px; }
.confianza-card p{ color: rgba(255,255,255,0.65); font-size:.85rem; font-weight:600; }

/* ---------- PROMO FINAL ---------- */
.promo-final{ padding: 70px 24px; text-align:center; background: linear-gradient(120deg, var(--orange), var(--purple)); }
.promo-final h2{ color:white; font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom:10px; }
.promo-final .precio-grande{ font-family:'Baloo 2'; font-size: clamp(2.4rem,6vw,3.4rem); color:white; font-weight:800; margin: 10px 0; }
.promo-final .fecha{ color: rgba(255,255,255,0.9); font-weight:800; margin-bottom:26px; }
.promo-final .btn-primary{ background:white; color:var(--purple-dark); }

@media (max-width: 780px){ .nav-links{ display:none; } .hero{ padding: 40px 20px 40px; } }
