/* ============================================================
   TONYLAND - ESTILOS
   Para cambiar los colores de toda la web, editá las variables
   de abajo (:root). Los colores de tu marca son --c1 y --c2.
   ============================================================ */
:root {
  --c1: #BA40F9;        /* violeta de la marca */
  --c1-dark: #8E2BD6;   /* violeta más oscuro (textos y botones) */
  --c2: #00BBFE;        /* celeste de la marca */
  --c2-dark: #006E9A;   /* celeste oscuro (textos) */
  --ink: #2a1342;       /* texto principal */
  --muted: #6b5a80;     /* texto secundario */
  --bg: #fbf6ff;        /* fondo general */
  --card: #ffffff;
  --line: #eadcf7;
  --wa: #12864a;        /* verde WhatsApp */
  --grad: linear-gradient(135deg, var(--c1), var(--c2));
  --radius: 22px;
  --shadow: 0 10px 30px rgba(142, 43, 214, .12);
  --font-title: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Aviso superior ---------- */
.notice { background: var(--grad); color: #fff; text-align: center; padding: 8px 16px; font-weight: 800; font-size: .95rem; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 8px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--c1-dark); }
.brand img { width: auto; height: 48px; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; color: var(--ink); }
.nav a:hover { background: #f1e2fc; color: var(--c1-dark); }
.nav { align-items: center; }
.nav-item { position: relative; }
.nav-drop {
  font: inherit; font-weight: 800; cursor: pointer; color: var(--ink);
  background: none; border: 0; padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-drop:hover, .nav-drop[aria-expanded="true"] { background: #f1e2fc; color: var(--c1-dark); }
.nav-drop .caret { width: 16px; height: 16px; transition: transform .2s; }
.nav-drop[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 35;
  background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 14px 40px rgba(42,19,66,.22);
  border: 2px solid var(--line); display: flex; flex-direction: column;
}
.dropdown button {
  font: inherit; font-weight: 800; text-align: left; cursor: pointer; color: var(--ink);
  background: none; border: 0; padding: 10px 14px; border-radius: 12px;
}
.dropdown button:hover { background: #f1e2fc; color: var(--c1-dark); }
.dropdown button.sep { border-top: 2px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; padding-top: 12px; color: var(--c1-dark); }
.menu-btn {
  display: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  background: #f1e2fc; color: var(--c1-dark); place-items: center;
}
.menu-btn:focus-visible, .nav-drop:focus-visible, .dropdown button:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--c1-dark); color: #fff; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(142,43,214,.3);
}
.cart-btn:hover { background: #7a22bd; }
.cart-count { background: #fff; color: var(--c1-dark); min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; font-size: .85rem; padding: 0 6px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800;
  padding: 12px 20px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--c1), var(--c1-dark)); color: #fff; box-shadow: 0 8px 20px rgba(142,43,214,.35); }
.btn-ghost { background: #fff; color: var(--c1-dark); border: 2px solid var(--c1); }
.btn-ghost:hover { background: #f6eafd; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e6e3c; }
.btn-mp { background: var(--c2); color: #042b3b; }
.btn-mp:hover { background: #22c6ff; }
.btn-light { background: #fff; color: var(--c1-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 14px; font-size: .92rem; }
.btn:focus-visible, .chip:focus-visible, .cart-btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, .nav a:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }

/* ---------- Imagen de inicio ---------- */
.hero-banner { max-width: 1200px; margin: 0 auto; padding: clamp(16px, 3vw, 28px) clamp(16px, 5vw, 64px) 0; }
.hero-banner img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-banner:not([hidden]) + .hero { padding-top: clamp(24px, 4vw, 44px); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 64px);
  max-width: 1200px; margin: 0 auto;
}
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: #e3f6ff; color: var(--c2-dark); font-weight: 800; font-size: .9rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; color: var(--ink); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 16px 0 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.perks li { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; }
.perks strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--c1-dark); }
.perks span { font-size: .85rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; }
/* Logo del inicio: sin círculo ni fondo */
.hero-logo { position: relative; width: min(100%, 270px); height: auto; filter: drop-shadow(0 12px 18px rgba(142,43,214,.25)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* ---------- Secciones ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 64px); }
.section-alt { max-width: none; background: linear-gradient(180deg, #f1e2fc, #e3f6ff); }
.section-alt > * { max-width: 1072px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--c1-dark); }
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Filtros ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 800; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--c1); }
.chip[aria-pressed="true"] { background: var(--c1-dark); border-color: var(--c1-dark); color: #fff; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { font: inherit; padding: 10px 16px 10px 42px; border-radius: 999px; border: 2px solid var(--line); background: #fff; min-width: 220px; color: var(--ink); }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-weight: 700; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 2px solid transparent;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--c1); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #f1e2fc, #e3f6ff); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; }
.card-media.ph > img { object-fit: contain; padding: 14%; opacity: .9; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--c2); color: #042b3b; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.badge.tag { left: auto; right: 12px; background: var(--c1-dark); color: #fff; }
.sold { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; color: var(--c1-dark); }
.thumbs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.thumbs button { width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 2px solid #fff; overflow: hidden; cursor: pointer; background: #fff; opacity: .85; }
.thumbs button[aria-current="true"] { border-color: var(--c1); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .cat { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c2-dark); }
.card h3 { font-size: 1.35rem; font-weight: 700; }
.card .desc { margin: 0; color: var(--muted); font-size: .95rem; }
.opt { display: flex; flex-direction: column; gap: 3px; }
.opt-l { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.sizes .chip { padding: 4px 10px; font-size: .85rem; white-space: nowrap; }
.sizes .chip.out { text-decoration: line-through; opacity: .55; }
.price { font-family: var(--font-title); font-weight: 800; font-size: 1.7rem; color: var(--c1-dark); margin-top: auto; }
.price small { font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.steps h3 { font-size: 1.35rem; color: var(--c1-dark); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-card { background: var(--grad); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); text-align: center; box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.contact-card p { margin: 10px auto 22px; max-width: 36em; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 16px 40px; color: var(--muted); font-weight: 700; text-align: center; }
.footer img { width: auto; height: 64px; }
.footer p { margin: 0; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c1-dark); box-shadow: var(--shadow); }
.social a:hover { background: var(--c1-dark); color: #fff; }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(42,19,66,.5); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  box-shadow: -10px 0 40px rgba(42,19,66,.25);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; color: var(--c1-dark); }
.icon-btn { border: 0; background: #f1e2fc; color: var(--c1-dark); width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 700; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #f1e2fc; }
.line img.ph { object-fit: contain; padding: 6px; }
.line-name { font-weight: 800; }
.line-meta { font-size: .85rem; color: var(--muted); }
.line-price { font-weight: 800; color: var(--c1-dark); text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; color: var(--ink); line-height: 1; }
.qty button:hover { border-color: var(--c1); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.line .rm { display: block; margin-top: 6px; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; }
.drawer-foot { padding: 16px 20px 20px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; background: #fdfaff; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.1rem; }
.total-row strong { font-family: var(--font-title); font-size: 1.8rem; color: var(--c1-dark); }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: .9rem; }
.field input { font: inherit; font-weight: 400; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); }
.pay { border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pay legend { font-weight: 800; font-size: .9rem; padding: 0 6px; }
.pay label { font-weight: 700; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.pay input { accent-color: var(--c1-dark); width: 18px; height: 18px; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.hint:empty { display: none; }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; align-self: center; }

/* ---------- Ventana de información ---------- */
.info {
  border: 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; width: min(680px, calc(100% - 24px));
  max-height: calc(100% - 40px); overflow-y: auto; color: var(--ink); background: #fff;
  box-shadow: 0 20px 60px rgba(42,19,66,.35);
}
.info::backdrop { background: rgba(42,19,66,.55); }
.info-close { position: sticky; top: 0; float: right; margin: -12px -12px 0 8px; z-index: 2; }
.info h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; color: var(--c1-dark); margin-bottom: 14px; }
.info-logo { width: auto; height: 96px; margin-bottom: 10px; }
.info-text p { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); }
.info-text p:first-child { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; color: var(--c1-dark); line-height: 1.3; }
.info .steps { grid-template-columns: 1fr; gap: 14px; }
.info .steps li { box-shadow: none; border: 2px solid var(--line); padding: 18px; }
.guide-img { width: 100%; height: auto; border-radius: 16px; margin-top: 8px; border: 2px solid var(--line); }
.guide-soon { text-align: center; padding: 28px 16px; margin: 8px 0 0; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); font-weight: 800; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .perks { justify-content: center; }
  .hero-art { order: -1; }
  .hero-logo { width: min(52%, 190px); }
  .cart-btn { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: #fff; box-shadow: 0 14px 30px rgba(42,19,66,.18); border-bottom: 3px solid var(--c1);
  }
  .nav.open { display: flex; }
  .nav a, .nav-drop { padding: 12px 14px; font-size: 1.05rem; }
  .nav-drop { width: 100%; justify-content: space-between; border-radius: 12px; }
  .dropdown { position: static; box-shadow: none; border: 0; background: #faf3ff; margin-top: 2px; }
}
@media (max-width: 520px) {
  .cart-label { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; gap: 8px; }
  .card h3 { font-size: 1.1rem; }
  .card .desc { display: none; }
  .price { font-size: 1.3rem; }
  .sizes { gap: 4px; }
  .sizes .chip { padding: 3px 7px; font-size: .78rem; }
  .search, .search input { width: 100%; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
