/* ===========================================
   Athenisa Maquillaje · estilos
   ===========================================
   La identidad es la de siempre (el logo, el lila y el ciruela, Playfair
   Display y Poppins). Las letras van dentro del sitio, sin pedirlas a
   Google, y solo con los grosores que se usan. */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ciruela: #5b1f6b;
  --ciruela-2: #7a3590;
  --lila: #c79be0;
  --lila-claro: #f4ebf8;
  --fondo: #fff8fc;
  --blanco: #fff;
  --texto: #2e1a33;
  --suave: #74627a;
  --borde: #ecdff2;
  --wa: #25d366;
  --serif: "Playfair Display", Georgia, serif;
  --letra: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radio: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.6 var(--letra); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lila); outline-offset: 2px; }
.ancho { width: min(1180px, 100% - 32px); margin-inline: auto; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ciruela); color: #fff; }
.saltar:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.titulo-seccion { font: 500 clamp(28px, 4.2vw, 42px)/1.15 var(--serif); color: var(--ciruela); }
.titulo-seccion em, h1 em { font-style: italic; color: var(--ciruela-2); }
.antetitulo { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ciruela-2); }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--ciruela); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.boton:hover { background: var(--ciruela-2); transform: translateY(-1px); }
.boton svg { width: 20px; height: 20px; }
.boton-wa { background: var(--wa); color: #0b3d1f; }
.boton-wa:hover { background: #20c05c; }
.boton-claro { background: var(--blanco); color: var(--ciruela); box-shadow: inset 0 0 0 1.5px var(--ciruela); }
.boton-claro:hover { background: var(--lila-claro); }
.boton-ancho { width: 100%; }
.boton:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 252, 0.96); border-bottom: 1px solid var(--borde); }
.cabecera .ancho { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marca img { width: auto; height: 46px; }
.menu { display: none; gap: 30px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--suave); }
.menu a:hover { color: var(--ciruela); }
.acciones-cabecera { display: flex; gap: 6px; }
.icono { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ciruela); cursor: pointer; }
.icono:hover { background: var(--lila-claro); }
.icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bolsa b { position: absolute; top: 3px; right: 2px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ciruela); color: #fff; font-size: 11px; font-weight: 600; }
@media (min-width: 860px) { .menu { display: flex; } }

/* ---------- portada ---------- */
.portada { background: radial-gradient(520px 320px at 85% 20%, #ecd9f5 0%, transparent 70%), radial-gradient(420px 300px at 5% 90%, #f7e3ef 0%, transparent 70%), var(--fondo); }
.portada-rejilla { display: grid; gap: 18px; padding: 28px 0 44px; }
.portada-visual { order: -1; display: grid; justify-items: center; gap: 14px; }
.sello { width: min(330px, 82vw); filter: drop-shadow(0 12px 22px rgba(91, 31, 107, 0.18)); }
/* Su espacio va reservado: las fotos llegan con el catálogo y, si no, empujan el título hacia abajo. */
.vitrina { display: flex; gap: 10px; min-height: 76px; }
.vitrina img { width: 76px; height: 76px; padding: 6px; border-radius: 999px; background: var(--blanco); object-fit: contain; box-shadow: 0 6px 18px rgba(91, 31, 107, 0.12); }
.portada-texto { text-align: center; }
.portada h1 { margin: 10px 0 14px; font: 500 clamp(38px, 6.4vw, 66px)/1.05 var(--serif); color: var(--ciruela); }
.bajada { max-width: 46ch; margin: 0 auto 24px; color: var(--suave); }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 900px) {
  .portada-rejilla { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 56px 0 72px; }
  .portada-visual { order: 0; }
  .portada-texto { text-align: left; }
  .bajada { margin-left: 0; }
  .botones { justify-content: flex-start; }
  .sello { width: 500px; }
  .vitrina { min-height: 96px; }
  .vitrina img { width: 96px; height: 96px; }
}

/* ---------- categorías ---------- */
.categorias { padding: 40px 0 8px; }
.carrusel { display: flex; gap: 12px; min-height: 178px; overflow-x: auto; margin: 20px -16px 0; padding: 4px 16px 14px; scroll-snap-type: x proximity; }
.categoria { flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; width: 132px; padding: 14px 10px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); text-align: center; cursor: pointer; scroll-snap-align: start; transition: border-color 0.2s, transform 0.2s; }
.categoria:hover { border-color: var(--lila); transform: translateY(-2px); }
.categoria img { width: 84px; height: 84px; padding: 6px; border-radius: 999px; background: var(--lila-claro); object-fit: contain; }
.categoria strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.categoria small { color: var(--suave); font-size: 12.5px; }
@media (min-width: 1000px) { .carrusel { margin-inline: 0; padding-inline: 0; justify-content: space-between; overflow: visible; } .categoria { width: 170px; } }

/* ---------- catálogo ---------- */
.catalogo { padding: 40px 0 56px; }
.catalogo-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.conteo { margin: 0; color: var(--suave); font-size: 14px; }
.filtros { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; margin: 18px -16px 0; padding: 10px 16px; background: rgba(255, 248, 252, 0.97); }
.buscador { position: relative; flex: 1; }
.buscador svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--suave); stroke-width: 2; stroke-linecap: round; }
.buscador input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid var(--borde); border-radius: 999px; background: var(--blanco); }
.buscador input:focus { border-color: var(--lila); outline: none; }
.orden select { max-width: 150px; height: 46px; padding: 0 10px; border: 1.5px solid var(--borde); border-radius: 999px; background: var(--blanco); color: var(--texto); }
.fichas { display: flex; gap: 8px; overflow-x: auto; margin: 4px -16px 18px; padding: 6px 16px; }
.fichas button { flex: 0 0 auto; padding: 9px 16px; border: 1.5px solid var(--borde); border-radius: 999px; background: var(--blanco); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.fichas button[aria-pressed="true"] { border-color: var(--ciruela); background: var(--ciruela); color: #fff; }
@media (min-width: 900px) { .filtros { margin-inline: 0; padding-inline: 0; } .fichas { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.producto { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); transition: box-shadow 0.25s, transform 0.25s; }
.producto:hover { box-shadow: 0 14px 30px -18px rgba(91, 31, 107, 0.45); transform: translateY(-2px); }
.producto .ver { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.producto .foto { aspect-ratio: 1; padding: 10px; background: var(--lila-claro); }
.producto .foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.producto .datos { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.producto .cat { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ciruela-2); }
.producto h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.producto .precio { margin-top: auto; padding-top: 4px; font: 600 19px/1.2 var(--serif); color: var(--ciruela); font-variant-numeric: tabular-nums; }
.agregar { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: 8px; border: 0; border-radius: 999px; background: var(--ciruela); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.agregar:hover { background: var(--ciruela-2); }
.agregar.listo { background: var(--wa); color: #0b3d1f; }
.vacio { padding: 40px 0; color: var(--suave); text-align: center; }
.mas { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- ventajas y contacto ---------- */
.ventajas { padding: 48px 0; background: var(--lila-claro); }
.ventajas-rejilla { display: grid; gap: 24px; }
.ventajas-rejilla div { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; }
.ventajas svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--blanco); fill: none; stroke: var(--ciruela); stroke-width: 1.6; stroke-linejoin: round; }
.ventajas h3 { font-size: 16px; font-weight: 600; color: var(--ciruela); }
.ventajas p { margin: 0; color: var(--suave); font-size: 14.5px; }
@media (min-width: 860px) { .ventajas-rejilla { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.contacto { padding: 56px 0 72px; }
.contacto-rejilla { display: grid; gap: 32px; }
@media (min-width: 860px) { .contacto-rejilla { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; } }
.pasos { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.pasos li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; counter-increment: paso; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--ciruela); color: #fff; font: 600 17px/1 var(--serif); }
.pasos b { color: var(--ciruela); font-weight: 600; }
.datos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.datos li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); }
.datos svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--ciruela); stroke-width: 1.7; }
.datos li:first-child svg { color: #1aa652; stroke: none; }
.datos b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--suave); }
.pie { padding: 28px 0 96px; border-top: 1px solid var(--borde); color: var(--suave); font-size: 14px; }
.pie .ancho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pie img { width: auto; height: 52px; }
.flotante { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.flotante svg { width: 30px; height: 30px; }

/* ---------- ficha de producto ---------- */
.ficha { width: min(880px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--blanco); color: var(--texto); }
.ficha::backdrop { background: rgba(46, 26, 51, 0.55); }
.ficha .cerrar { position: absolute; right: 12px; top: 12px; z-index: 2; }
.ficha-rejilla { display: grid; }
@media (min-width: 760px) { .ficha-rejilla { grid-template-columns: 1fr 1fr; } }
.ficha-foto { display: grid; place-items: center; padding: 20px; background: var(--lila-claro); }
.ficha-foto img { width: 100%; max-height: 52vh; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.ficha-texto { display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; }
.ficha-texto h2 { font: 500 26px/1.2 var(--serif); color: var(--ciruela); }
.ficha-precio { margin: 0; font: 600 28px/1 var(--serif); color: var(--ciruela); }
.ficha-desc { margin: 0; color: var(--suave); }
.ficha-desc:empty { display: none; }
.ficha-cantidad { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; font-weight: 500; }
.contador { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1.5px solid var(--borde); border-radius: 999px; }
.contador button { width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--lila-claro); color: var(--ciruela); font-size: 20px; cursor: pointer; }
.contador output { min-width: 32px; text-align: center; font-weight: 600; }
.cerrar { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--blanco); color: var(--ciruela); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }

/* ---------- pedido ---------- */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(46, 26, 51, 0.45); }
.carrito { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--fondo); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carrito.abierto { transform: none; box-shadow: -20px 0 50px rgba(46, 26, 51, 0.25); }
.carrito > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--borde); }
.carrito h2 { font: 500 24px/1 var(--serif); color: var(--ciruela); }
.carrito-items { flex: 1; overflow-y: auto; padding: 4px 18px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--borde); }
.item img { width: 64px; height: 64px; padding: 4px; border-radius: 12px; background: var(--lila-claro); object-fit: contain; }
.item h3 { font-size: 14px; font-weight: 500; line-height: 1.3; }
.item .contador { margin-top: 6px; padding: 2px; }
.item .contador button { width: 30px; height: 30px; font-size: 17px; }
.item strong { font-variant-numeric: tabular-nums; }
.carrito-vacio { padding: 48px 0; color: var(--suave); text-align: center; }
.carrito > footer { display: grid; gap: 12px; padding: 16px 18px 20px; border-top: 1px solid var(--borde); background: var(--blanco); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.total strong { font: 600 26px/1 var(--serif); color: var(--ciruela); }
.nombre-cliente { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.nombre-cliente input { height: 44px; padding: 0 14px; border: 1.5px solid var(--borde); border-radius: 12px; }
.nota { margin: 0; color: var(--suave); font-size: 13px; text-align: center; }
