/* Malaika · catálogo. Marfil, espresso, topo y un solo acento dorado. Cormorant (títulos) + Jost (textos). */
@font-face { font-family: Cormorant; src: url(fuentes/Cormorant.ttf); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Cormorant; src: url(fuentes/Cormorant-Italic.ttf); font-style: italic; font-weight: 300 700; font-display: swap; }
@font-face { font-family: Jost; src: url(fuentes/Jost.ttf); font-weight: 100 900; font-display: swap; }

:root {
  --marfil: #F4EFE6;
  --papel: #FBF8F2;
  --blanco: #FFFDF9;
  --espresso: #49352B;
  --topo: #8C7B6E;
  --topo-claro: #B5A79B;
  --dorado: #AC8958;
  --linea: rgba(73, 53, 43, .12);
  --sombra: 0 18px 50px -24px rgba(73, 53, 43, .35);
  --radio: 26px;
  --ancho: 1320px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--marfil); color: var(--espresso); font: 400 16px/1.55 Jost, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; }

.sobre-titulo { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--dorado); }
h1, h2, h3 { font-family: Cormorant, serif; font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 5vw, 58px); }
h2 em, h1 em { font-weight: 400; color: var(--dorado); }
.chico { font-size: 13px; color: var(--topo); }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
         font-size: 15px; font-weight: 500; letter-spacing: .02em; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.boton:active { transform: scale(.98); }
.boton.oscuro { background: var(--espresso); color: var(--papel); }
.boton.oscuro:hover { background: #5a4336; box-shadow: var(--sombra); }
.boton.claro { background: var(--blanco); color: var(--espresso); }
.boton.claro:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.boton.linea { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.boton.linea:hover { background: rgba(73,53,43,.06); }
.boton.ancho { width: 100%; }
.boton[disabled] { opacity: .45; pointer-events: none; }

/* barra superior */
.barra { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
         max-width: var(--ancho); margin: 0 auto; padding: 18px 28px; background: rgba(244, 239, 230, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.marca img { height: 26px; width: auto; }
.menu { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; position: relative; padding: 4px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--dorado); transform: scaleX(0); transition: transform .3s; }
.menu a:hover::after { transform: scaleX(1); }
.acciones { display: flex; justify-content: flex-end; gap: 10px; }
.buscar-mini { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px 0 16px; min-width: 190px; border: 0; border-radius: 999px; background: var(--blanco); color: var(--topo); font-size: 14px; }
.icono { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blanco); display: grid; place-items: center; }
.contador { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--dorado); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }

/* portada */
.portada-zona { position: relative; max-width: calc(var(--ancho) - 32px); margin: 4px auto 0; }
.portada { position: relative; height: min(78vh, 760px); min-height: 560px; border-radius: var(--radio); overflow: hidden; background: #d9c9b4; }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; animation: acercar 9s ease-out both; }
@keyframes acercar { from { transform: scale(1.06); } to { transform: scale(1); } }
.portada-velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60, 42, 32, .48) 0%, rgba(60, 42, 32, .18) 38%, transparent 58%), linear-gradient(0deg, rgba(40, 28, 20, .35), transparent 40%); }
.portada-texto { position: absolute; left: clamp(28px, 5vw, 64px); bottom: clamp(36px, 7vh, 72px); max-width: 520px; color: #fff; }
.portada-texto .sobre-titulo { color: #F1E2C8; }
.portada h1 { font-size: clamp(48px, 6.2vw, 84px); font-weight: 500; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.portada h1 em { color: #F1E2C8; }
.bajada { margin: 18px 0 28px; max-width: 400px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.92); }
.portada-texto > * { animation: subir .9s cubic-bezier(.2,.8,.2,1) both; }
.portada-texto > :nth-child(2) { animation-delay: .1s; } .portada-texto > :nth-child(3) { animation-delay: .2s; } .portada-texto > :nth-child(4) { animation-delay: .3s; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* burbuja de marcas, al costado */
.burbuja-marcas { position: absolute; z-index: 2; top: 28px; right: 28px; width: 236px; padding: 22px 24px 18px; border-radius: 22px; color: var(--espresso);
                  background: rgba(255, 252, 246, .72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
                  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 20px 50px -26px rgba(60, 40, 25, .55); animation: subir .9s .5s cubic-bezier(.2,.8,.2,1) both; }
.burbuja-titulo { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--dorado); }
.burbuja-marcas ul { list-style: none; margin: 0; padding: 0; }
.burbuja-marcas li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--linea); font-family: Cormorant, serif; font-size: 21px; font-weight: 500; line-height: 1.1; }
.burbuja-marcas li:first-child { border-top: 0; }
.burbuja-marcas li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dorado); flex: none; }

/* prenda destacada flotante */
.tarjeta-destacada { position: absolute; right: 28px; bottom: 28px; display: flex; gap: 16px; width: 340px; padding: 12px; border: 0; border-radius: 22px; text-align: left;
                     background: var(--blanco); box-shadow: 0 24px 60px -24px rgba(40, 25, 15, .55); animation: subir .9s .7s cubic-bezier(.2,.8,.2,1) both; transition: transform .25s; }
.tarjeta-destacada:hover { transform: translateY(-3px); }
.tarjeta-destacada img { width: 104px; height: 128px; object-fit: cover; border-radius: 14px; background: var(--marfil); }
.td-texto { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px 4px 0; min-width: 0; }
.td-texto strong { font-family: Cormorant, serif; font-size: 22px; font-weight: 600; line-height: 1.05; }
.td-texto span { font-size: 13px; color: var(--topo); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.td-texto b { margin-top: auto; font-size: 17px; font-weight: 600; }

/* catálogo */
.catalogo { max-width: var(--ancho); margin: 0 auto; padding: 96px 28px 40px; }
.encabezado { text-align: center; margin-bottom: 34px; }
.buscador { position: relative; display: flex; gap: 10px; max-width: 760px; margin: 0 auto; padding: 8px; border-radius: 999px; background: var(--blanco); box-shadow: var(--sombra); border: 1px solid var(--linea); }
.buscador .lupa { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--topo); }
.buscador input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px 0 46px; font-size: 16px; outline: none; }
.buscador input::placeholder { color: var(--topo-claro); }
.buscador input::-webkit-search-cancel-button { filter: grayscale(1); }
.ayuda-ia { text-align: center; margin: 14px 0 30px; font-size: 14px; color: var(--topo); }
.chispa { color: var(--dorado); }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.chip:hover { background: rgba(73,53,43,.06); }
.chip[aria-selected="true"] { background: var(--espresso); color: var(--papel); border-color: var(--espresso); }
.interpretacion { text-align: center; font-size: 14px; color: var(--topo); margin: 0 0 22px; }
.interpretacion b { color: var(--espresso); font-weight: 500; }
.interpretacion button { border: 0; background: none; color: var(--dorado); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 0 8px; }

.grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; margin-top: 10px; }
.tarjeta { border: 0; padding: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 12px; animation: subir .6s cubic-bezier(.2,.8,.2,1) both; }
.tarjeta-foto { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #ece4d7; }
.tarjeta-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.tarjeta-foto img + img { opacity: 0; }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.04); }
.tarjeta:hover .tarjeta-foto img + img { opacity: 1; }
.sello { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,253,249,.9); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sello.agotado { background: var(--espresso); color: var(--papel); }
.tarjeta.sin-stock .tarjeta-foto img { filter: grayscale(.6); opacity: .7; }
.tarjeta-marca { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--topo); }
.tarjeta h3 { font-size: 23px; font-weight: 600; line-height: 1.1; }
.tarjeta-linea { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.precio { font-weight: 600; font-size: 16px; }
.tarjeta-talles { font-size: 12px; color: var(--topo); letter-spacing: .06em; }
.vacio { text-align: center; color: var(--topo); padding: 40px 0; }

/* visitanos + pie */
.visitanos { max-width: calc(var(--ancho) - 32px); margin: 70px auto 0; padding: 70px 28px; border-radius: var(--radio); text-align: center;
             background: var(--papel) url(papel.jpg) center / 700px; background-blend-mode: multiply; }
.visitanos p { color: var(--topo); }
.fila-botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pie { margin-top: 70px; padding: 54px 28px 40px; background: var(--espresso); color: var(--marfil); text-align: center; }
.pie img { height: 30px; width: auto; margin: 0 auto 18px; }
.pie p { margin: 4px 0; } .pie .chico { color: var(--topo-claro); margin-top: 16px; }

/* diálogos */
dialog { border: 0; padding: 0; color: var(--espresso); background: var(--papel); }
dialog::backdrop { background: rgba(40, 28, 20, .45); backdrop-filter: blur(4px); }
.cerrar { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,253,249,.92); font-size: 26px; line-height: 1; }

.ficha { width: min(1040px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); border-radius: var(--radio); overflow: hidden; }
.ficha[open] { display: grid; grid-template-columns: 1.05fr 1fr; animation: aparecer .35s cubic-bezier(.2,.8,.2,1); }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ficha-galeria { position: relative; background: #ece4d7; min-height: 0; }
.ficha-fotos { display: flex; height: 100%; max-height: calc(100dvh - 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ficha-fotos::-webkit-scrollbar { display: none; }
.ficha-fotos img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.ficha-puntos { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.ficha-puntos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.ficha-puntos span.on { background: #fff; }
.ficha-info { padding: 44px 40px 32px; overflow-y: auto; display: flex; flex-direction: column; }
.ficha-info h3 { font-size: clamp(32px, 4vw, 44px); }
.ficha-precio { font-size: 22px; font-weight: 600; margin: 14px 0 0; }
.ficha-desc { color: #6d5a4d; margin: 18px 0 26px; white-space: pre-line; }
.etiqueta { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--topo); }
.talles { display: flex; flex-wrap: wrap; gap: 8px; }
.talle { min-width: 52px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linea); background: var(--blanco); font-weight: 500; }
.talle[aria-checked="true"] { background: var(--espresso); color: var(--papel); border-color: var(--espresso); }
.aviso { margin: 10px 0 0; font-size: 14px; color: #a0522d; }
.ficha-botones { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }

.carrito { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: none; margin: 0; }
.carrito[open] { display: flex; flex-direction: column; animation: deslizar .35s cubic-bezier(.2,.8,.2,1); }
@keyframes deslizar { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.carrito-cabeza { position: relative; padding: 26px 28px 18px; border-bottom: 1px solid var(--linea); }
.carrito-cabeza h3 { font-size: 34px; }
.carrito-cabeza .cerrar { top: 20px; right: 20px; background: var(--marfil); }
.carrito-lista { flex: 1; overflow-y: auto; padding: 8px 28px; }
.item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.item img { width: 78px; height: 98px; object-fit: cover; border-radius: 12px; background: #ece4d7; }
.item h4 { margin: 0; font-family: Cormorant, serif; font-size: 20px; font-weight: 600; line-height: 1.1; }
.item p { margin: 4px 0 0; font-size: 13px; color: var(--topo); }
.item .problema { color: #a0522d; }
.item-acciones { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cantidad { display: flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; }
.cantidad button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; }
.cantidad span { min-width: 18px; text-align: center; font-size: 14px; }
.quitar { border: 0; background: none; color: var(--topo); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.item select { margin-top: 6px; border: 1px solid var(--linea); border-radius: 8px; background: var(--blanco); padding: 4px 8px; font-size: 13px; }
.carrito-pie { padding: 18px 28px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--blanco); }
.total { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 18px; }
.carrito-vacio { text-align: center; padding: 60px 10px; color: var(--topo); }

.aviso-flotante { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 13px 22px; border-radius: 999px;
                  background: var(--espresso); color: var(--papel); font-size: 14px; box-shadow: var(--sombra); transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.aviso-flotante.ver { opacity: 1; transform: translate(-50%, 0); }

/* tablet */
@media (max-width: 1100px) {
  .grilla { grid-template-columns: repeat(3, 1fr); }
  .menu { gap: 22px; }
  .buscar-mini { min-width: 0; }
}
/* celular */
@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .barra { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .menu { display: none; }
  .buscar-mini { width: 44px; padding: 0; justify-content: center; }
  .buscar-mini span { display: none; }
  .marca img { height: 22px; }
  .portada-zona { margin: 0 12px; }
  .portada { height: auto; min-height: 0; aspect-ratio: 4 / 5; border-radius: 22px; }
  .portada-foto { object-position: 50% 20%; }
  .portada-velo { background: linear-gradient(0deg, rgba(50, 34, 25, .78) 0%, rgba(50, 34, 25, .45) 35%, rgba(50, 34, 25, 0) 65%); }
  .portada-texto { left: 22px; right: 22px; bottom: 26px; }
  .portada h1 { font-size: 46px; }
  .bajada { font-size: 15px; margin: 12px 0 20px; }
  .burbuja-marcas { position: static; width: auto; margin: 12px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--blanco); backdrop-filter: none; box-shadow: none; border: 1px solid var(--linea); }
  .burbuja-marcas ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .burbuja-marcas li { border: 0; padding: 3px 0; font-size: 19px; }
  .tarjeta-destacada { display: none; }
  .catalogo { padding: 64px 16px 30px; }
  .buscador { flex-direction: column; border-radius: 22px; padding: 6px; }
  .buscador input { height: 50px; }
  .buscador .lupa { top: 31px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grilla { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .tarjeta h3 { font-size: 19px; }
  .tarjeta-linea { flex-direction: column; gap: 2px; }
  .visitanos { margin: 50px 12px 0; padding: 50px 22px; }
  .ficha { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .ficha[open] { display: block; overflow-y: auto; }
  .ficha-fotos { max-height: none; }
  .ficha-info { padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
  .ficha-botones { position: sticky; bottom: 0; background: var(--papel); padding: 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
