/* Mistral — estilos de la tienda (tokens del sistema de marca) */

@font-face {
  font-family: "DynaPuff";
  src: url("/fonts/DynaPuff.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --naranja-vintage: #D2642A;
  --oliva: #6F7A4A;
  --azul-viejo: #3F5A75;
  --azul-hover: #2B3E52;
  --gris-cemento: #A9A79F;
  --beige: #E9DCC4;
  --fondo: #F6F0E6;
  --tinta: var(--azul-viejo);
  --texto-suave: #55606B;
  --borde: #DCCFB8;
  --papel: #FFFDF9;
  --display: "DynaPuff", system-ui, sans-serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --radius-m: 20px;
  --radius-l: 24px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; }
a { color: var(--tinta); }
a:hover { color: var(--azul-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--naranja-vintage);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Tipografía ---------- */
.titulo {
  margin: 0; font-family: var(--display); font-weight: 700; color: var(--tinta);
  line-height: 1.02; font-size: clamp(40px, 10vw, 60px);
}
.titulo--hero { font-size: clamp(46px, 11vw, 76px); }
.titulo--seccion { font-size: clamp(36px, 9vw, 48px); }
.titulo--chico { font-size: clamp(32px, 8vw, 40px); }
.rotulo {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--texto-suave);
}
.texto-suave { color: var(--texto-suave); }
.lead { margin: 0; font-size: 20px; line-height: 1.5; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill);
  font-family: var(--sans); font-weight: 600; font-size: 17px; text-decoration: none;
  cursor: pointer; border: 2px solid var(--azul-viejo);
  background: var(--azul-viejo); color: var(--beige);
}
.boton:hover { background: var(--azul-hover); border-color: var(--azul-hover); color: var(--beige); }
.boton--secundario { background: transparent; color: var(--azul-viejo); }
.boton--secundario:hover { background: var(--beige); color: var(--azul-viejo); border-color: var(--azul-viejo); }
.boton--claro { background: var(--beige); color: var(--azul-viejo); border-color: var(--beige); }
.boton--claro:hover { background: var(--fondo); border-color: var(--fondo); color: var(--azul-viejo); }
.boton--chico { min-height: 48px; padding: 0 20px; }
.boton[disabled], .boton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.boton-redondo {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--azul-viejo);
  background: transparent; color: var(--azul-viejo); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.boton-redondo--sin-borde { border: 0; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 2px solid var(--azul-viejo); font-family: var(--sans); font-size: 16px;
  font-weight: 600; cursor: pointer; background: transparent; color: var(--azul-viejo);
}
.chip[aria-pressed="true"] { background: var(--azul-viejo); color: var(--beige); }
.chip--suave { border: 0; background: var(--beige); font-size: 15px; padding: 0 16px; }
.enlace-flecha {
  font-size: 17px; font-weight: 600; color: var(--tinta);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 0;
}
.icono { width: 22px; height: 22px; flex: none; }
.icono--20 { width: 20px; height: 20px; }

/* ---------- Encabezado ---------- */
.franja {
  margin: 0; background: var(--azul-viejo); color: var(--beige);
  text-align: center; font-size: 15px; padding: 10px 16px;
}
.encabezado {
  padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.encabezado__logo img { height: 56px; width: auto; display: block; }
.nav-principal { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-principal a {
  font-size: 17px; font-weight: 600; color: var(--tinta); text-decoration: none;
  padding: 12px 18px; border-radius: var(--radius-pill);
}
.nav-principal a[aria-current="page"], .nav-principal a:hover { background: var(--beige); }
.acciones { display: flex; gap: 10px; }
.accion {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--azul-viejo); color: var(--azul-viejo);
  display: inline-flex; align-items: center; justify-content: center;
}
.accion:hover { background: var(--beige); }
.contador {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px;
  border-radius: 11px; background: var(--azul-viejo); color: var(--beige);
  font-size: 13px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; border: 2px solid var(--fondo); padding: 0 4px;
}

/* ---------- Pie ---------- */
.feston {
  height: 20px; margin-top: 96px;
  background: radial-gradient(circle at 20px 20px, var(--azul-viejo) 19.5px, transparent 20px) 0 0 / 40px 20px repeat-x;
}
.pie { background: var(--azul-viejo); color: var(--beige); padding: 48px 0 32px; }
.pie__grilla { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.pie__marca { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pie__marca img { width: 200px; height: auto; display: block; }
.pie__lema { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.pie__texto { margin: 0; font-size: 16px; max-width: 320px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 40px; }
.pie__col { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.pie__col h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie a { color: var(--beige); text-decoration: none; font-size: 16px; display: inline-block; padding: 6px 0; }
.pie a:hover { text-decoration: underline; color: var(--beige); }
.pie__copy { margin-top: 40px; margin-bottom: 0; font-size: 14px; }

/* ---------- Inicio ---------- */
.hero {
  padding-top: 40px; padding-bottom: 72px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 48px;
}
.hero__texto { flex: 1 1 440px; max-width: 560px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__arte { position: relative; flex: 1 1 420px; max-width: 540px; aspect-ratio: 1 / 1; }
.hero__arte > svg:first-child { display: block; width: 100%; }
.hero__lampara { position: absolute; inset: 14% 18% 12% 18%; display: flex; align-items: center; justify-content: center; }
.hero__lampara svg { width: 100%; display: block; }
.hero__flor-chica { position: absolute; top: 2%; right: 0; width: 22%; display: block; }
.hero__sticker { position: absolute; left: -4%; bottom: 6%; width: 52%; }
.hero__sticker svg { display: block; width: 100%; transform: rotate(-6deg); }
.beneficios { background: var(--beige); border-radius: var(--radius-l); padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.beneficio { flex: 1 1 260px; display: flex; gap: 16px; align-items: flex-start; }
.beneficio svg { width: 52px; height: 52px; flex: none; }
.beneficio h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.beneficio p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--texto-suave); }
.seccion { padding-top: 88px; display: flex; flex-direction: column; gap: 32px; }
.seccion__cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.patron {
  margin-top: 96px; padding: 56px 24px; display: flex; justify-content: center;
  background-image: url("/assets/patron-flores.svg"); background-size: 192px 192px;
}
.patron__sticker { width: min(400px, 100%); }
.patron__sticker svg { display: block; width: 100%; transform: rotate(-3deg); }

/* ---------- Tarjetas de producto ---------- */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.tarjeta { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--tinta); }
.tarjeta__foto {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .2s;
}
.tarjeta:hover .tarjeta__foto { transform: translateY(-4px); }
.tarjeta__foto > svg.lampara { width: 64%; display: block; }
.tarjeta__foto > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sello { position: absolute; top: 14px; left: 14px; width: 78px; height: 78px; display: block; }
.tarjeta__linea { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tarjeta__nombre { font-size: 19px; font-weight: 600; }
.tarjeta__precio { font-size: 17px; font-weight: 700; white-space: nowrap; }
.puntos { display: flex; gap: 6px; }
.punto { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(43, 62, 82, 0.25); }
.cargando { color: var(--texto-suave); font-size: 17px; }

/* ---------- Listado ---------- */
.migas { font-size: 15px; color: var(--texto-suave); }
.migas a { color: var(--texto-suave); }
.pagina { padding-top: 24px; display: flex; flex-direction: column; gap: 32px; }
.pagina--alta { padding-top: 32px; gap: 28px; }
.listado__cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.listado__titulo { display: flex; flex-direction: column; gap: 10px; }
.orden { display: flex; align-items: center; gap: 10px; }
.orden label { font-size: 16px; font-weight: 600; }
.select {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 2px solid var(--azul-viejo); background: var(--fondo); color: var(--tinta);
  font-family: var(--sans); font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Producto ---------- */
.producto { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.galeria { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.galeria__principal {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-l);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.galeria__principal > svg.lampara { width: 62%; display: block; }
.galeria__principal > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria__etiqueta {
  position: absolute; top: 16px; left: 16px; background: var(--fondo); color: var(--tinta);
  font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill);
}
.miniaturas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.miniatura {
  aspect-ratio: 1 / 1; border-radius: 16px; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.miniatura[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--azul-viejo); }
.miniatura > svg.lampara { width: 58%; display: block; }
.miniatura > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detalle { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.detalle__precio { margin: 0; font-size: 30px; font-weight: 700; }
.detalle__desc { margin: 0; font-size: 18px; line-height: 1.55; }
.colores { display: flex; gap: 12px; flex-wrap: wrap; }
.muestra {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--fondo); cursor: pointer;
}
.muestra[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--azul-viejo); }
.compra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.compra .boton { flex: 1 1 220px; }
.cantidad { display: flex; align-items: center; gap: 14px; }
.cantidad__num { font-size: 20px; font-weight: 700; min-width: 24px; text-align: center; }
.ficha { margin: 0; font-size: 16px; }
.ficha div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--borde); }
.ficha dt { font-weight: 600; }
.ficha dd { margin: 0; color: var(--texto-suave); text-align: right; }
.aviso {
  margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--beige);
  font-size: 15px; font-weight: 600;
}
.aviso--error { background: #F3D9CC; color: #7A2E10; }

/* ---------- Carrito ---------- */
.carrito { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.carrito__lista { list-style: none; margin: 0; padding: 0; flex: 1 1 560px; min-width: 0; border-top: 1px solid var(--borde); }
.linea { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--borde); }
.linea__foto { width: 104px; height: 104px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.linea__foto > svg.lampara { width: 70%; display: block; }
.linea__foto > img { width: 100%; height: 100%; object-fit: cover; }
.linea__info { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.linea__nombre { font-size: 19px; font-weight: 600; color: var(--tinta); text-decoration: none; }
.linea__color { font-size: 15px; color: var(--texto-suave); }
.linea__precio { font-size: 17px; font-weight: 700; }
.resumen {
  flex: 1 1 320px; min-width: 0; background: var(--beige); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.resumen h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; }
.resumen__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 16px; }
.resumen__fila--total { font-size: 20px; font-weight: 700; }
.resumen__feston { height: 12px; background: radial-gradient(circle at 6px 6px, var(--fondo) 5px, transparent 5.5px) 0 0 / 16px 12px repeat-x; }
.resumen__nota { margin: 0; font-size: 14px; color: var(--texto-suave); text-align: center; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .etiqueta-campo { font-size: 15px; font-weight: 600; }
.entrada {
  width: 100%; min-height: 48px; border-radius: var(--radius-pill); border: 2px solid var(--azul-viejo);
  background: var(--papel); padding: 0 18px; font-family: var(--sans); font-size: 16px; color: var(--tinta);
}
textarea.entrada { border-radius: 18px; padding: 12px 18px; min-height: 88px; resize: vertical; }
.cupon { display: flex; gap: 8px; }
.cupon .entrada { flex: 1; min-width: 0; }
.vacio {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 56px 24px; background: var(--beige); border-radius: var(--radius-l);
}
.vacio img, .vacio svg { width: 96px; height: 96px; }
.vacio__titulo { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; }
.datos { display: flex; flex-direction: column; gap: 14px; }
.datos__fila { display: flex; flex-wrap: wrap; gap: 12px; }
.datos__fila .campo { flex: 1 1 140px; }

/* ---------- Buscar ---------- */
.buscador { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.buscador label { font-size: 17px; font-weight: 600; }
.buscador__caja { position: relative; display: flex; align-items: center; }
.buscador__lupa { position: absolute; left: 20px; display: flex; color: var(--tinta); }
.buscador input {
  width: 100%; min-height: 60px; padding: 0 56px; border-radius: var(--radius-pill);
  border: 2px solid var(--azul-viejo); background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-size: 18px;
}
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador__borrar {
  position: absolute; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--beige); color: var(--tinta); display: flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.sugerencias { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.resultado { margin: 0; font-size: 18px; font-weight: 600; }

/* ---------- Preguntas ---------- */
.preguntas { padding-top: 32px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.preguntas__lista { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.acordeon { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--borde); }
.acordeon li { border-bottom: 1px solid var(--borde); }
.acordeon h2 { margin: 0; }
.acordeon button {
  width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 0; border: 0; background: transparent; color: var(--tinta);
  text-align: left; cursor: pointer; font-family: var(--sans); font-size: 20px; font-weight: 600;
}
.acordeon__flecha {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--beige);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s;
}
.acordeon button[aria-expanded="true"] .acordeon__flecha { transform: rotate(180deg); }
.acordeon p { margin: 0; padding: 0 56px 22px 0; font-size: 17px; line-height: 1.6; }
.duda {
  flex: 1 1 300px; background: var(--azul-viejo); color: var(--beige); border-radius: var(--radius-l);
  padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 8px;
}
.duda h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; }
.duda p { margin: 0; font-size: 17px; line-height: 1.5; }

/* ---------- Páginas de estado ---------- */
.estado { padding-top: 48px; display: flex; justify-content: center; }
.estado .vacio { max-width: 640px; width: 100%; }

/* ---------- Panel ---------- */
.tabla-pedidos { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--papel); border-radius: 16px; overflow: hidden; }
.tabla-pedidos th, .tabla-pedidos td { text-align: left; padding: 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla-pedidos th { background: var(--beige); font-weight: 600; }
.caja-tabla { overflow-x: auto; }
.estado-pill { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--beige); font-weight: 600; font-size: 13px; }
.estado-pill--pagado { background: #DCE3C9; }
.estado-pill--rechazado, .estado-pill--monto_incorrecto { background: #F3D9CC; }

@media (max-width: 640px) {
  .beneficios, .resumen, .duda { padding: 24px; }
  .acordeon p { padding-right: 0; }
}
