/* Kalimera — diseño «fresco»: mucho blanco, el violeta, celeste y verde del logo, formas redondeadas. */
:root {
  --violeta: #6d1f8f;
  --violeta-osc: #4e1266;
  --violeta-claro: #f3e9f8;
  --lila: #e7d9f2;
  --verde: #8cc63f;
  --verde-claro: #eef7e1;
  --celeste: #4fb3e8;
  --celeste-claro: #e6f4fc;
  --tinta: #2a1f33;
  --gris: #6c6474;
  --linea: #ece6f1;
  --fondo: #ffffff;
  --card: #ffffff;
  --sombra: 0 10px 30px -14px rgba(78, 18, 102, .28);
  --radio: 18px;
  --display: "Baloo 2", system-ui, sans-serif;
  --texto: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--texto); color: var(--tinta); background: var(--fondo); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.contenedor { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.btn--violeta { background: var(--violeta); color: #fff; box-shadow: 0 8px 18px -10px var(--violeta); }
.btn--violeta:hover { background: var(--violeta-osc); }
.btn--chico { padding: .62em 1.25em; font-size: .95rem; }
.btn--grande { padding: .85em 1.7em; font-size: 1.1rem; }
.btn--ancho { width: 100%; }
.btn--wa { background: #25d366; color: #fff; padding: .7em 1.4em; width: 170px; margin-bottom: 10px; }
.btn--ig { background: linear-gradient(90deg, #d62976, #962fbf); color: #fff; padding: .7em 1.4em; width: 170px; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--linea); }
.barra__fila { display: flex; align-items: center; gap: 22px; padding: 10px 0; }
.barra__logo img { width: 92px; height: 92px; margin: -6px 0; object-fit: contain; transition: transform .3s ease; }
.barra__logo:hover img { transform: rotate(-8deg) scale(1.04); }
.barra__menu { display: flex; gap: 22px; font-weight: 700; font-size: .95rem; }
.barra__menu a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.barra__menu a.activo, .barra__menu a:hover { color: var(--violeta); border-color: var(--violeta); }
.buscador { flex: 1; max-width: 300px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: #f6f3f8; border: 1px solid var(--linea); border-radius: 999px; padding: 9px 16px; }
.buscador svg { width: 18px; height: 18px; fill: none; stroke: var(--gris); stroke-width: 2; flex: none; }
.buscador input { border: 0; background: none; outline: none; font: inherit; width: 100%; color: var(--tinta); }
.buscador:focus-within { border-color: var(--violeta); background: #fff; }
.carrito-btn { position: relative; background: none; border: 0; padding: 6px; }
.carrito-btn svg { width: 30px; height: 30px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linejoin: round; }
.carrito-btn__n { position: absolute; top: -2px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--violeta); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.carrito-btn__n.salto { animation: salto .45s ease; }
@keyframes salto { 40% { transform: scale(1.4); } }
.aviso-mayorista { background: var(--violeta); color: #fff; text-align: center; font-size: .92rem; padding: 7px 16px; }
.aviso-mayorista button { background: none; border: 0; color: #fff; text-decoration: underline; font-weight: 700; margin-left: 6px; }
#modoMayorista[aria-pressed="true"] { background: var(--verde); color: var(--violeta-osc); }

/* Hero: la foto a todo el ancho, el texto encima a la izquierda (diseño 1) */
.hero { position: relative; overflow: hidden; min-height: clamp(480px, 47vw, 680px); display: flex; align-items: center; background: #f4eef8; }
.hero__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 72%; animation: acercar 14s ease-out both; }
@keyframes acercar { from { transform: scale(1.06); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(253,250,255,.94) 0%, rgba(253,250,255,.78) 30%, rgba(253,250,255,0) 55%); }
.hero__contenido { position: relative; z-index: 2; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; padding: 48px 0; }
.hero__contenido .hero__firma { position: absolute; left: 47%; top: 20px; background: rgba(255,255,255,.86); backdrop-filter: blur(4px); border-radius: 22px; padding: 14px 18px 10px; box-shadow: 0 12px 30px -16px rgba(78,18,102,.45); font-size: clamp(1.4rem, 1.9vw, 1.9rem); }
.hero__texto { max-width: 560px; }
.hero h1 { font-family: var(--display); font-weight: 800; color: var(--violeta); font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: .96; letter-spacing: -.02em; margin: 0 0 42px; }
.subrayado { position: relative; white-space: nowrap; }
.subrayado::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -.1em; height: .14em; border-radius: 99px; background: var(--verde); transform: rotate(-1.5deg); transform-origin: left; animation: trazo .9s .6s ease-out both; }
@keyframes trazo { from { transform: rotate(-1.5deg) scaleX(0); } }
.hero__texto p { font-size: 1.2rem; color: #4a4152; max-width: 29ch; margin: 0 0 30px; font-weight: 600; }
.hero__firma { margin: 8px 0 0; font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: .95; color: var(--violeta); text-align: center; transform: rotate(-7deg); text-shadow: 0 2px 12px rgba(255,255,255,.8); animation: subir .8s .5s ease-out both; }
.hero__firma svg { width: 36px; height: 36px; fill: none; stroke: var(--verde); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 6px auto 0; }
.hero__texto > * { animation: subir .7s ease-out both; }
.hero__texto > *:nth-child(2) { animation-delay: .12s; }
.hero__texto > *:nth-child(3) { animation-delay: .24s; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }

/* Títulos */
.titulo { font-family: var(--display); font-weight: 800; color: var(--violeta); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.02; margin: 0; position: relative; padding-bottom: 12px; }
.titulo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 99px; background: var(--verde); }

/* Categorías */
.categorias { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 56px 0 24px; }
.categorias__grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.cat img { aspect-ratio: 1.15; object-fit: cover; transition: transform .5s ease; }
.cat:hover img { transform: scale(1.05); }
.cat span { padding: 13px 16px; font-weight: 800; font-size: 1.02rem; color: var(--violeta-osc); display: flex; justify-content: space-between; align-items: center; }
.cat span::after { content: "›"; color: var(--violeta); font-size: 1.4rem; line-height: 1; }

/* Productos */
.productos { padding: 40px 0 24px; }
.productos__cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: .92rem; color: var(--gris); transition: all .2s ease; }
.filtro:hover { border-color: var(--violeta); color: var(--violeta); }
.filtro[aria-selected="true"] { background: var(--violeta); border-color: var(--violeta); color: #fff; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.prod { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 8px 8px 12px; box-shadow: 0 2px 10px -6px rgba(78,18,102,.15); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; animation: aparecer .4s ease-out both; }
.prod:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }
.prod__foto { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #f7f4f9; }
.prod__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod:hover .prod__foto img { transform: scale(1.04); }
.prod h3 { font-size: 1rem; font-weight: 800; margin: 12px 6px 0; line-height: 1.25; }
.prod__pres { color: var(--gris); font-size: .9rem; margin: 2px 6px 0; }
.prod__precio { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--violeta-osc); margin: 8px 6px 10px; }
.prod__precio small { font-family: var(--texto); font-size: .72rem; font-weight: 700; color: var(--verde); display: block; margin-top: -4px; }
.prod__accion { margin-top: auto; }
.prod__agregar { width: 100%; padding: .62em 1em; font-size: .98rem; }
.prod__agregar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cantidad { display: flex; align-items: center; justify-content: space-between; background: var(--violeta-claro); border-radius: 999px; padding: 4px; }
.cantidad button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--violeta); color: #fff; font-weight: 800; font-size: 1.2rem; }
.cantidad span { font-weight: 800; color: var(--violeta-osc); }
.productos__vacio { color: var(--gris); padding: 30px 0; }

/* Envío */
.envio { padding: 44px 0 10px; }
.envio__caja { display: grid; grid-template-columns: minmax(220px, 340px) 1fr auto; align-items: center; gap: 28px; padding: 18px 36px 18px 20px; border-radius: 30px; background: linear-gradient(180deg, #eaf6fd 0%, #f6fbef 70%, #e8f4d6 100%); border: 1px solid #dcefd0; position: relative; overflow: hidden; }
.envio__caja::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -46px; height: 80px; border-radius: 50%; background: rgba(140,198,63,.22); }
.envio__ilustracion { width: 100%; height: auto; position: relative; z-index: 1; animation: rodar 3.6s ease-in-out infinite; }
@keyframes rodar { 50% { transform: translateX(10px); } }
.envio__caja h2 { font-family: var(--display); font-weight: 800; color: var(--violeta); font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; line-height: 1; position: relative; z-index: 1; }
.envio__caja p { margin: 6px 0 0; font-weight: 700; color: var(--tinta); font-size: 1.15rem; position: relative; z-index: 1; }
.envio__burbuja { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.9); border: 1px solid #e3f1d4; border-radius: 26px; padding: 14px 22px 14px 14px !important; max-width: 320px; font-weight: 700 !important; font-size: 1rem !important; color: var(--violeta-osc) !important; }
.envio__pin { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--verde); display: grid; place-items: center; }
.envio__pin svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }

/* Sellos */
.sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 28px 0 44px; }
.sello { display: flex; align-items: center; gap: 14px; }
.sello + .sello { border-left: 1px solid var(--linea); padding-left: 18px; }
.sello__icono { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--violeta); display: grid; place-items: center; }
.sello__icono svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sello p { margin: 0; font-weight: 600; font-size: .95rem; color: var(--tinta); }

/* Pie */
.pie { background: #faf7fc; border-top: 1px solid var(--linea); padding: 40px 0 18px; }
.pie__grilla { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.pie__marca img { width: 120px; }
.pie__marca p { margin: 6px 0 0; color: var(--gris); font-weight: 700; }
.pie h3 { font-size: 1rem; margin: 0 0 10px; color: var(--violeta-osc); }
.pie a:not(.btn) { display: block; color: var(--gris); text-decoration: none; padding: 3px 0; }
.pie a:not(.btn):hover { color: var(--violeta); }
.pie p { color: var(--gris); margin: 0; }
.pie .pie__legal { font-size: .85rem; color: var(--gris); margin: 28px auto 0; padding-top: 14px; border-top: 1px solid var(--linea); }

/* Carrito */
.velo { position: fixed; inset: 0; background: rgba(42,31,51,.38); z-index: 40; }
.carrito { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 40px -20px rgba(42,31,51,.35); }
.carrito.abierto { transform: none; }
.carrito__cabeza { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--linea); }
.carrito__cabeza h2 { font-family: var(--display); color: var(--violeta); margin: 0; font-size: 1.6rem; }
.carrito__cerrar { border: 0; background: var(--violeta-claro); color: var(--violeta); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.carrito__lista { flex: 1; overflow: auto; padding: 12px 22px; }
.linea { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.linea img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.linea b { display: block; font-size: .95rem; }
.linea small { color: var(--gris); }
.linea .cantidad { padding: 2px; gap: 8px; }
.linea .cantidad button { width: 28px; height: 28px; font-size: 1rem; }
.carrito__vacio { color: var(--gris); text-align: center; padding: 40px 0; }
.carrito__pie { border-top: 1px solid var(--linea); padding: 16px 22px 20px; display: grid; gap: 10px; }
.carrito__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.carrito__total strong { font-family: var(--display); font-size: 1.6rem; color: var(--violeta-osc); }
.carrito__pie label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--gris); }
.carrito__pie input, .carrito__pie select { font: inherit; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 12px; color: var(--tinta); }
.carrito__pie input:focus, .carrito__pie select:focus { outline: 2px solid var(--violeta); border-color: transparent; }
.carrito__nota { font-size: .8rem; color: var(--gris); margin: 0; text-align: center; }

/* Responsive */
@media (max-width: 1000px) {
  .barra__menu { display: none; }
  .hero__firma { display: none; }
  .categorias { grid-template-columns: 1fr; }
  .envio__caja { grid-template-columns: 220px 1fr; }
  .envio__burbuja { grid-column: 1 / -1; max-width: none; }
  .sellos { grid-template-columns: repeat(2, 1fr); }
  .sello:nth-child(3) { border-left: 0; padding-left: 0; }
  .pie__grilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .barra__fila { flex-wrap: wrap; gap: 10px; }
  .barra__logo img { width: 56px; height: 56px; }
  .buscador { order: 5; max-width: none; flex-basis: 100%; }
  #modoMayorista { margin-left: auto; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; background: #fbf8fd; }
  .hero__fondo { position: relative; order: 2; height: 300px; object-position: 78% 60%; }
  .hero::before { display: none; }
  .hero__contenido { padding: 30px 0 24px; margin-inline: auto; }
  .categorias__grilla { grid-template-columns: repeat(2, 1fr); }
  .grilla { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod__precio { font-size: 1.2rem; }
  .envio__caja { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .envio__ilustracion { max-width: 300px; margin: 0 auto; }
  .envio__burbuja { margin-inline: auto; text-align: left; }
  .sellos { grid-template-columns: 1fr; }
  .sello + .sello { border-left: 0; padding-left: 0; }
  .pie__grilla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
