/* ===========================================================
   TOYSTOPIA — tienda de juguetes (estilo e-commerce pro)
   Scoped bajo .toy.  Página standalone con su propia cabecera.
   =========================================================== */

.toy {
  --tt-blue: #1f95df;
  --tt-blue-d: #1477b6;
  --tt-green: #74c13d;
  --tt-green-d: #5aa02c;
  --tt-ink: #1d2a3a;
  --tt-gray: #6a7688;
  --tt-line: #e6edf4;
  --tt-bg: #f4f9fd;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--tt-ink);
  background: #fff;
}
.toy * { box-sizing: border-box; }
.toy-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 26px; }

/* ---------- Barra "proyecto de Olicartoons" ---------- */
.toy-topbar {
  background: #0f1622; color: #cdd6e4; font-size: .82rem; font-weight: 700;
  padding: 7px 0;
}
.toy-topbar .toy-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toy-topbar a { color: #ffd24d; text-decoration: none; }
.toy-topbar a:hover { text-decoration: underline; }

/* ---------- Cabecera tienda ---------- */
.toy-header {
  position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--tt-line);
}
.toy-nav { display: flex; align-items: center; gap: 28px; height: 78px; }
.toy-brand { display: flex; align-items: center; }
.toy-brand img { height: 46px; width: auto; }
.toy-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0 auto 0 20px; padding: 0; }
.toy-menu a {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem; color: #3a4657; text-decoration: none;
  padding: 6px 0; position: relative; transition: color .2s;
}
.toy-menu a:hover { color: var(--tt-blue); }
.toy-menu a.activo { color: var(--tt-blue); }
.toy-menu a.activo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--tt-blue);
}
.toy-icons { display: flex; align-items: center; gap: 18px; }
.toy-icons button { background: none; border: 0; cursor: pointer; color: #3a4657; display: grid; place-items: center; padding: 4px; transition: color .2s, transform .2s; }
.toy-icons button:hover { color: var(--tt-blue); transform: translateY(-1px); }
.toy-icons svg { width: 24px; height: 24px; }
.toy-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.toy-burger span { width: 26px; height: 3px; background: var(--tt-ink); border-radius: 3px; }

/* ---------- HERO ---------- */
.toy-hero { position: relative; overflow: hidden; background: var(--tt-bg); }
.toy-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, #e8f4fc 0%, #e8f4fc 46%, #eef7e6 62%, #dff0cf 100%);
}
.toy-hero__bg::after { /* cuña verde a la derecha */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  background: linear-gradient(120deg, transparent, rgba(116,193,61,.28));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.toy-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 30px; min-height: 520px; padding-block: 40px; }
.toy-hero__title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.01em; }
.toy-hero__title .b { color: var(--tt-blue); display: block; }
.toy-hero__title .g { color: var(--tt-green); display: block; }
.toy-hero__lead { color: #46566a; font-size: 1.15rem; line-height: 1.7; max-width: 42ch; margin: 22px 0 30px; font-weight: 600; }
.toy-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.toy-hero__art { position: relative; text-align: center; }
.toy-hero__art img { width: 100%; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 26px 34px rgba(0,0,0,.22)); animation: tt-float 6s ease-in-out infinite; }
@keyframes tt-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Botones */
.tt-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.tt-btn--blue { background: var(--tt-blue); color: #fff; box-shadow: 0 8px 20px rgba(31,149,223,.34); }
.tt-btn--blue:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,149,223,.45); }
.tt-btn--green-o { background: #fff; color: var(--tt-green-d); border-color: var(--tt-green); }
.tt-btn--green-o:hover { background: var(--tt-green); color: #fff; transform: translateY(-2px); }
.tt-btn--ghost { background: #fff; color: var(--tt-blue); border-color: var(--tt-line); }

/* ---------- Franja de ventajas ---------- */
.toy-feats { background: #fff; border-bottom: 1px solid var(--tt-line); }
.toy-feats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.toy-feat { display: flex; gap: 14px; align-items: flex-start; }
.toy-feat__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.toy-feat__ico svg { width: 24px; height: 24px; }
.toy-feat__ico.b { background: rgba(31,149,223,.12); color: var(--tt-blue); }
.toy-feat__ico.g { background: rgba(116,193,61,.14); color: var(--tt-green-d); }
.toy-feat h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem; margin: 2px 0 3px; }
.toy-feat p { color: var(--tt-gray); font-size: .9rem; line-height: 1.45; }

/* ---------- Series ---------- */
.toy-series { padding-block: clamp(48px, 7vw, 84px); background: var(--tt-bg); }
.toy-series__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.toy-series__head h2 { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--tt-blue); }
.toy-serie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.toy-serie { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: none; color: inherit; }
.toy-serie__art {
  position: relative; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  box-shadow: 0 14px 30px rgba(29,42,58,.16); border: 1px solid var(--tt-line);
  display: grid; place-items: center; transition: transform .3s ease, box-shadow .3s ease;
}
.toy-serie:hover .toy-serie__art { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(29,42,58,.24); }
.toy-serie__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.toy-serie__logo { position: relative; z-index: 2; width: 82%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); transition: transform .3s ease; }
.toy-serie:hover .toy-serie__logo { transform: scale(1.04); }
.toy-serie__soon {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: #ffcc00; color: #4a3800; padding: 5px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.toy-serie__name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; margin: 14px 0 2px; }
.toy-serie__tag { color: var(--tt-green-d); font-weight: 700; font-size: .92rem; }

/* ---------- Sobre nosotros ---------- */
.toy-about { padding-block: clamp(48px, 7vw, 84px); }
.toy-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.toy-about h2 { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--tt-ink); }
.toy-about p { color: #46566a; line-height: 1.8; margin-top: 14px; font-weight: 600; }
.toy-about__img { border-radius: 22px; overflow: hidden; border: 3px solid var(--tt-ink); box-shadow: 10px 10px 0 rgba(29,42,58,.12); }
.toy-about__img img { width: 100%; display: block; }

/* ---------- Únete al equipo ---------- */
.toy-join { position: relative; overflow: hidden; text-align: center; color: #fff; padding-block: clamp(52px, 8vw, 92px); }
.toy-join__bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, #1f95df 0%, #38b6a0 50%, #74c13d 100%); }
.toy-join__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px); background-size: 26px 26px; opacity: .5; }
.toy-join .toy-wrap { position: relative; z-index: 1; }
.toy-join h2 { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.toy-join p { max-width: 60ch; margin: 14px auto 0; font-weight: 600; line-height: 1.7; opacity: .96; }
.toy-join .tt-btn { margin-top: 26px; background: #fff; color: #1477b6; }
.toy-join .tt-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.2); }

/* ---------- Footer tienda ---------- */
.toy-foot { background: #0f1622; color: #aeb9c9; padding-block: 44px 26px; }
.toy-foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.toy-foot img { height: 44px; }
.toy-foot__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.toy-foot h4 { color: #fff; font-family: "Fredoka", sans-serif; margin-bottom: 10px; font-size: 1rem; }
.toy-foot a { display: block; color: #aeb9c9; text-decoration: none; padding: 4px 0; cursor: pointer; }
.toy-foot a:hover { color: #fff; }
.toy-foot__bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .85rem; }

/* ---------- Mini sub-página de serie ---------- */
.toy-mini {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding-block: clamp(56px, 9vw, 120px);
  background: radial-gradient(90% 80% at 50% 0%, #3a3f4a, #12141a);
}
.toy-mini::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px); background-size: 24px 24px;
}
.toy-mini .toy-wrap { position: relative; z-index: 1; }
.toy-mini__crumb { font-weight: 700; letter-spacing: .04em; color: #c9d1de; margin-bottom: 22px; }
.toy-mini__crumb a { color: #ffd24d; text-decoration: none; }
.toy-mini__crumb a:hover { text-decoration: underline; }
.toy-mini__logo { width: min(560px, 86%); margin: 0 auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,.6)); }
.toy-mini__group { width: min(640px, 92%); margin: 26px auto 0; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); animation: tt-float 6s ease-in-out infinite; }
.toy-mini__desc { max-width: 56ch; margin: 22px auto 0; color: #d6dce6; font-weight: 600; line-height: 1.8; font-size: 1.08rem; }
.toy-mini__cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* reveal */
.toy .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.toy .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .toy-menu, .toy-icons { display: none; }
  .toy-burger { display: flex; }
  .toy-hero__grid { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .toy-hero__art { order: -1; }
  .toy-hero__lead { margin-inline: auto; }
  .toy-hero__cta { justify-content: center; }
  .toy-feats__grid { grid-template-columns: 1fr 1fr; }
  .toy-serie-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .toy-about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .toy-feats__grid { grid-template-columns: 1fr; } .tt-btn { width: 100%; justify-content: center; } }
