/* Mimo Kids. Colores del logo (mimo-kids-marca/): rosa, amarillo, naranja y verde de "kids",
   coral y mostaza de las prendas, verde bosque de BOUTIQUE.
   Regla de formas: bloques 22 px, botones y filtros en píldora, campos 12 px. */
:root {
  color-scheme: light dark;
  --fondo: #fff9f4;
  --superficie: #ffffff;
  --texto: #231f20;
  --suave: #675c58;
  --borde: #f3e3da;
  --acento: #c93a60;
  --sobre-acento: #fffafb;
  --bosque: #325a42;
  --estrella: #f2b84a;
  --tono-rosa: #ffe1e7;
  --tono-sol: #fff3b5;
  --tono-naranja: #ffe2c2;
  --tono-verde: #d2f2e4;
  --tono-coral: #ffd6dd;
  --sombra: 0 14px 34px rgb(201 58 96 / .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #1d1a1f;
    --superficie: #29242b;
    --texto: #fbf4f1;
    --suave: #c9bdb8;
    --borde: #3d3540;
    --acento: #ff8fa6;
    --sobre-acento: #2a1018;
    --bosque: #9fd4b4;
    --tono-rosa: #5a2c38;
    --tono-sol: #57491a;
    --tono-naranja: #5c3a1c;
    --tono-verde: #1f4a3a;
    --tono-coral: #5e2632;
    --sombra: 0 14px 34px rgb(0 0 0 / .3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 17px/1.55 Nunito, system-ui, sans-serif; }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.cabecera { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: color-mix(in srgb, var(--fondo) 90%, transparent); backdrop-filter: blur(12px); }
.marca { display: block; flex: none; }
.marca img { width: auto; height: 46px; object-fit: contain; }
.antetitulo { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px !important; padding: 6px 14px; border-radius: 999px; background: var(--tono-verde); color: var(--bosque) !important; font-size: 1rem !important; font-weight: 800; }
.antetitulo i { color: var(--estrella); }
.pie-logo { width: 200px; height: auto; margin: 0 auto 14px; }
.cabecera nav { display: flex; gap: 26px; margin-left: auto; }
.cabecera nav a { font-weight: 700; text-decoration: none; color: var(--suave); }
.cabecera nav a:hover { color: var(--acento); }
.bolsa { position: relative; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--tono-rosa); color: var(--texto); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.cuenta { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--acento); color: var(--sobre-acento); font: 800 13px/22px Nunito, sans-serif; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border: 2px solid var(--acento); border-radius: 999px; background: var(--acento); color: var(--sobre-acento); font: 800 1rem Nunito, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secundario { background: transparent; color: var(--acento); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.heroe { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; max-width: 1240px; margin: 0 auto; padding: 44px 20px 76px; min-height: calc(100dvh - 72px); }
.heroe h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); }
.heroe p { max-width: 34ch; margin: 22px 0 30px; color: var(--suave); font-size: 1.2rem; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.mosaico { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, 22vh); gap: 14px; }
.baldosa { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; overflow: hidden; border-radius: 22px; background: var(--tono); text-decoration: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.baldosa:hover { transform: translateY(-5px) rotate(-.6deg); }
.baldosa i { font-size: clamp(56px, 7vw, 92px); }
.baldosa span { font: 600 1.35rem Fredoka, sans-serif; }
.baldosa:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.baldosa:nth-child(1) i { font-size: clamp(110px, 15vw, 190px); }
.baldosa:nth-child(2), .baldosa:nth-child(3) { grid-column: span 2; }
.baldosa:nth-child(4), .baldosa:nth-child(5) { grid-column: span 3; }

.catalogo, .comprar, .visitanos { max-width: 1240px; margin: 0 auto; padding: 72px 20px; }
.nota { margin: 10px 0 26px; color: var(--suave); }
.herramientas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 2px solid var(--borde); border-radius: 999px; background: var(--superficie); color: var(--texto); font: 700 .98rem Nunito, sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--acento); background: var(--acento); color: var(--sobre-acento); }
.buscador { position: relative; flex: 0 1 300px; }
.buscador i { position: absolute; left: 15px; top: 14px; color: var(--suave); }
.buscador input { padding-left: 42px; }
input, select { width: 100%; min-height: 46px; padding: 0 13px; border: 2px solid var(--borde); border-radius: 12px; background: var(--superficie); color: var(--texto); font: 600 1rem Nunito, sans-serif; }
input::placeholder { color: var(--suave); }

.productos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.producto { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--superficie); box-shadow: var(--sombra); }
.foto { aspect-ratio: 4 / 4.4; background: var(--tono); }
.foto-vacia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--texto); text-align: center; }
.foto-vacia i { font-size: 76px; }
.foto-vacia span { font-size: .85rem; font-weight: 700; opacity: .75; }
.datos { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.cat { margin: 0 0 4px; color: var(--acento); font-size: .88rem; font-weight: 800; }
.producto h3 { font-size: 1.28rem; }
.detalle { flex: 1; margin: 7px 0 10px; color: var(--suave); font-size: .96rem; }
.precio { margin: 0 0 12px; font-weight: 800; }
.acciones { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.acciones label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; }
.acciones .btn { min-height: 46px; padding: 0 18px; }
.vacio { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--suave); }
.vacio i { font-size: 54px; }

.comprar { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.comprar ol { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.comprar li { display: flex; gap: 20px; align-items: flex-start; }
.comprar li i { flex: none; color: var(--acento); font-size: 46px; }
.comprar h3 { font-size: 1.4rem; }
.comprar li p { margin: 5px 0 0; color: var(--suave); }

.visitanos { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 52px; }
.foto-local { min-height: 400px; border-radius: 22px; background: var(--tono-sol); }
.visitanos dl { display: grid; gap: 18px; margin: 26px 0; }
.visitanos dt { display: flex; gap: 7px; align-items: center; font-weight: 800; }
.visitanos dd { margin: 2px 0 0 25px; color: var(--suave); }
.enlace { display: inline-flex; gap: 8px; align-items: center; color: var(--acento); font-weight: 800; }
.pie { padding: 26px 20px 34px; color: var(--suave); text-align: center; font-size: .92rem; }
.pie p { margin: 0; }

dialog { width: min(440px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--fondo); color: var(--texto); }
dialog::backdrop { background: rgb(30 15 30 / .5); }
dialog[open] { animation: entrar .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
.panel { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.panel-cabecera { display: flex; justify-content: space-between; align-items: center; }
.panel-cabecera h2 { font-size: 1.8rem; }
#cerrar { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--tono-rosa); color: var(--texto); font-size: 19px; cursor: pointer; }
.lineas { flex: 1; overflow-y: auto; margin: 16px 0; }
.linea { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; }
.linea small { display: block; color: var(--suave); }
.cantidad { display: flex; align-items: center; gap: 7px; }
.cantidad button { width: 36px; height: 36px; border: 2px solid var(--borde); border-radius: 999px; background: var(--superficie); color: var(--texto); cursor: pointer; }
.formulario { display: grid; gap: 7px; }
.formulario label { font-weight: 800; font-size: .92rem; }
.formulario .btn { margin-top: 12px; }
.aviso { position: fixed; z-index: 30; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--texto); color: var(--fondo); font-weight: 800; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }

.oculto { opacity: 0; transform: translateY(22px); }
.oculto.dentro { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1040px) { .productos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .heroe, .comprar, .visitanos { grid-template-columns: 1fr; }
  .heroe { min-height: 0; gap: 32px; padding-top: 22px; }
  .productos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cabecera nav { display: none; }
  .bolsa { margin-left: auto; }
}
@media (max-width: 560px) {
  .productos { grid-template-columns: 1fr; }
  .mosaico { grid-auto-rows: 118px; gap: 10px; }
  .botones .btn { width: 100%; }
  .buscador { flex: 1 1 100%; }
  .foto-local { min-height: 260px; }
}
