/* =====================================================================
   luzgomezcol.com — Tienda
   Hereda la paleta de la landing (negro + oro) pero sobre papel claro,
   que es lo que se lee bien en fichas, formularios y recibos.
   ===================================================================== */

:root {
  --negro:     #0f0e0c;
  --tinta:     #17150f;
  --suave:     #6b6357;
  --papel:     #faf8f4;
  --tarjeta:   #ffffff;
  --linea:     #e6dfd3;
  --linea-2:   #f0ebe2;
  --oro:       #8a6532;   /* acento sobre claro: contraste AA */
  --oro-claro: #d8b37a;   /* acento sobre negro */
  --verde:     #2f6b46;
  --verde-bg:  #e7f2ea;
  --rojo:      #9c2f2f;
  --rojo-bg:   #fbeaea;
  --azul:      #2d5580;
  --azul-bg:   #e8effa;
  --naranja:   #8a5a1b;
  --naranja-bg:#fdf0dd;
  --gris-bg:   #eeeae3;
  --radio:     4px;
  --sombra:    0 1px 2px rgba(23,21,15,.05), 0 8px 24px rgba(23,21,15,.06);
  --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--oro); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ cabecera */
.cab {
  background: var(--negro);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.cab__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: .95rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.cab__marca {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.cab__marca small {
  display: block;
  font-family: var(--sans);
  font-size: .53rem;
  letter-spacing: .3em;
  color: var(--oro-claro);
  margin-top: .22rem;
}
.cab__nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.cab__nav a {
  color: #e9e5dd;
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .55rem .7rem;
  border-radius: var(--radio);
  white-space: nowrap;
}
.cab__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.carrito-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; }
.carrito-btn svg { width: 17px; height: 17px; }
.carrito-btn .cuenta {
  background: var(--oro-claro);
  color: #17150f;
  font-size: .67rem;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  padding: 0 .3rem;
  letter-spacing: 0;
}

/* ------------------------------------------------------------- cuerpo */
.envoltura { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 2.2rem 1rem 4rem; }
.envoltura--angosta { max-width: 720px; }
.envoltura--media   { max-width: 940px; }

.titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: .01em;
}
.subtitulo { color: var(--suave); font-size: .93rem; margin-top: .4rem; }
.seccion-t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  margin-bottom: .9rem;
}

.migas { font-size: .78rem; color: var(--suave); margin-bottom: 1.1rem; letter-spacing: .04em; }
.migas a { color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--oro); text-decoration: underline; }

/* -------------------------------------------------------------- avisos */
.aviso {
  padding: .8rem 1rem;
  border-radius: var(--radio);
  margin-bottom: 1.1rem;
  font-size: .89rem;
  border: 1px solid transparent;
}
.aviso--ok    { background: var(--verde-bg);   color: var(--verde);   border-color: #cfe3d6; }
.aviso--error { background: var(--rojo-bg);    color: var(--rojo);    border-color: #eecdcd; }
.aviso--info  { background: var(--azul-bg);    color: var(--azul);    border-color: #cfdcf0; }
.aviso--ojo   { background: var(--naranja-bg); color: var(--naranja); border-color: #f0ddbd; }

/* ------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border: 1px solid var(--negro);
  border-radius: var(--radio);
  background: var(--negro);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, opacity .18s;
}
.btn:hover { background: #2a261e; border-color: #2a261e; }
.btn--oro   { background: var(--oro); border-color: var(--oro); }
.btn--oro:hover { background: #75551f; border-color: #75551f; }
.btn--linea { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn--linea:hover { background: var(--tarjeta); border-color: var(--tinta); color: var(--tinta); }
.btn--peligro { background: var(--rojo); border-color: var(--rojo); }
.btn--peligro:hover { background: #7d2424; border-color: #7d2424; }
.btn--bloque { width: 100%; }
.btn--chico { padding: .6rem 1rem; font-size: .7rem; letter-spacing: .12em; }
.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ tarjetas */
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.5rem;
}
.tarjeta + .tarjeta { margin-top: 1.1rem; }
.tarjeta__t {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--linea-2);
}

/* ----------------------------------------------------------- catalogo */
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.7rem;
  margin-top: 2rem;
}
.prod {
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}
.prod:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.prod__foto { aspect-ratio: 3 / 4; background: var(--gris-bg); overflow: hidden; }
.prod__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod:hover .prod__foto img { transform: scale(1.035); }
.prod__cuerpo { padding: 1.05rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prod__nombre { font-family: var(--serif); font-size: 1.16rem; font-weight: 500; line-height: 1.25; }
.prod__precio { font-size: 1rem; letter-spacing: .02em; }
.prod__antes { color: var(--suave); text-decoration: line-through; font-size: .84rem; margin-left: .45rem; }
.prod__colores { display: flex; gap: .3rem; margin-top: auto; padding-top: .55rem; }
.punto { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }

/* ------------------------------------------------------ ficha producto */
.ficha { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.6rem; align-items: start; }
.ficha__principal {
  aspect-ratio: 900 / 1056;
  background: var(--gris-bg);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
}
.ficha__principal img { width: 100%; height: 100%; object-fit: cover; }
.ficha__miniaturas { display: flex; gap: .6rem; margin-top: .7rem; }
.ficha__miniaturas button {
  width: 70px;
  aspect-ratio: 3/4;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--gris-bg);
  cursor: pointer;
  padding: 0;
  transition: border-color .18s;
}
.ficha__miniaturas button[aria-current="true"] { border-color: var(--tinta); }
.ficha__miniaturas img { width: 100%; height: 100%; object-fit: cover; }

.ficha__precio { font-size: 1.55rem; font-family: var(--serif); margin: .55rem 0 1.2rem; }
.ficha__desc { color: #3d382e; font-size: .95rem; line-height: 1.75; }

.bloque { margin: 1.5rem 0; }
.bloque__cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.bloque__rotulo { font-size: .69rem; letter-spacing: .21em; text-transform: uppercase; color: var(--suave); }
.bloque__valor { font-size: .87rem; }

.muestras { display: flex; flex-wrap: wrap; gap: .55rem; }
.muestra {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .15s;
}
.muestra:hover { transform: scale(1.08); }
.muestra[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--tinta);
  border-radius: 50%;
}
.muestra.sin-stock { opacity: .3; cursor: not-allowed; }

.tallas { display: flex; flex-wrap: wrap; gap: .5rem; }
.talla {
  min-width: 48px;
  padding: .62rem .8rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--tarjeta);
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.talla:hover { border-color: var(--tinta); }
.talla[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: #fff; }
.talla.sin-stock { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.talla.sin-stock:hover { border-color: var(--linea); }

.stock-aviso { font-size: .8rem; color: var(--naranja); margin-top: .6rem; }
.nota-legal { font-size: .78rem; color: var(--suave); line-height: 1.6; margin-top: 1.1rem; }

/* -------------------------------------------------------------- tablas */
.tabla { width: 100%; border-collapse: collapse; font-size: .89rem; }
.tabla th {
  text-align: left;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--suave);
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--linea);
  white-space: nowrap;
}
.tabla td { padding: .85rem .7rem; border-bottom: 1px solid var(--linea-2); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla--filas tbody tr:hover { background: #fcfaf7; }

.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- carrito */
.linea-carrito { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--linea-2); }
.linea-carrito:last-of-type { border-bottom: 0; }
.linea-carrito__foto { width: 84px; aspect-ratio: 3/4; border-radius: var(--radio); overflow: hidden; background: var(--gris-bg); }
.linea-carrito__foto img { width: 100%; height: 100%; object-fit: cover; }
.linea-carrito__nom { font-family: var(--serif); font-size: 1.08rem; }
.linea-carrito__det { font-size: .8rem; color: var(--suave); margin-top: .18rem; }
.linea-carrito__pre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cant { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; margin-top: .55rem; }
.cant button { width: 30px; height: 30px; border: 0; background: var(--tarjeta); cursor: pointer; font-size: 1rem; color: var(--tinta); line-height: 1; }
.cant button:hover { background: var(--gris-bg); }
.cant input { width: 40px; height: 30px; border: 0; border-left: 1px solid var(--linea); border-right: 1px solid var(--linea); text-align: center; font-family: var(--sans); font-size: .85rem; -moz-appearance: textfield; }
.cant input::-webkit-outer-spin-button, .cant input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.resumen { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 2.2rem; align-items: start; }
.totales { position: sticky; top: 90px; }
.totales__fila { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; color: var(--suave); }
.totales__fila--total { border-top: 1px solid var(--linea); margin-top: .6rem; padding-top: .9rem; font-size: 1.16rem; color: var(--tinta); font-family: var(--serif); }
.totales__fila--total strong { font-weight: 500; }

/* ---------------------------------------------------------- formularios */
.campos { display: grid; gap: 1.05rem; }
.campos--2 { grid-template-columns: 1fr 1fr; }
.campo { display: flex; flex-direction: column; gap: .32rem; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; color: var(--suave); }
.campo input, .campo select, .campo textarea {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 300;
  color: var(--tinta);
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: .72rem .85rem;
  width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(138,101,50,.12); }
.campo textarea { resize: vertical; min-height: 88px; }
.campo__ayuda { font-size: .76rem; color: var(--suave); }
.campo__error { font-size: .78rem; color: var(--rojo); }
.campo.tiene-error input, .campo.tiene-error select { border-color: var(--rojo); }
.campo-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; color: #3d382e; }
.campo-check input { margin-top: .22rem; width: 16px; height: 16px; flex: none; accent-color: var(--oro); }

fieldset { border: 0; }
legend { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1rem; }

/* -------------------------------------------------------------- pills */
.pill {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .62rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
}
.pill--gris    { background: var(--gris-bg);    color: #4d463b; }
.pill--verde   { background: var(--verde-bg);   color: var(--verde); }
.pill--rojo    { background: var(--rojo-bg);    color: var(--rojo); }
.pill--azul    { background: var(--azul-bg);    color: var(--azul); }
.pill--naranja { background: var(--naranja-bg); color: var(--naranja); }

/* -------------------------------------------------------------- pasos */
.pasos { display: flex; gap: .5rem; align-items: center; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); margin-bottom: 1.8rem; flex-wrap: wrap; }
.pasos span.on { color: var(--tinta); }
.pasos i { font-style: normal; opacity: .4; }

/* -------------------------------------------------------------- vacio */
.vacio { text-align: center; padding: 4rem 1rem; color: var(--suave); }
.vacio h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--tinta); font-weight: 500; margin-bottom: .6rem; }
.vacio p { margin-bottom: 1.6rem; }

/* ---------------------------------------------------------------- pie */
.pie { background: var(--negro); color: #a9a298; padding: 2.4rem 1rem; font-size: .8rem; }
.pie__in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.pie a { color: var(--oro-claro); text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__sellos { display: flex; align-items: center; gap: .7rem; font-size: .74rem; letter-spacing: .06em; }

/* ------------------------------------------------------------- recibo */
.recibo { background: #fff; max-width: 820px; margin: 0 auto; padding: 2.6rem; border: 1px solid var(--linea); }
.recibo__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; border-bottom: 2px solid var(--negro); padding-bottom: 1.4rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.recibo__marca { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .22em; text-transform: uppercase; }
.recibo__marca small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .28em; color: var(--oro); margin-top: .3rem; }
.recibo__meta { text-align: right; font-size: .84rem; color: var(--suave); line-height: 1.8; }
.recibo__meta strong { color: var(--tinta); font-size: 1rem; }
.recibo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.recibo__rot { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); margin-bottom: .5rem; }
.recibo__total { text-align: right; font-family: var(--serif); font-size: 1.5rem; margin-top: .3rem; }
.recibo__pie { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--linea); font-size: .78rem; color: var(--suave); line-height: 1.7; }

@media print {
  .cab, .pie, .no-imprimir { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .envoltura { padding: 0; max-width: none; }
  .recibo { border: 0; padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  @page { margin: 14mm; }
}

/* ------------------------------------------------------------ pantallas */
@media (max-width: 900px) {
  .ficha   { grid-template-columns: 1fr; gap: 1.8rem; }
  .resumen { grid-template-columns: 1fr; }
  .totales { position: static; }
  .recibo__cols { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 620px) {
  .envoltura { padding: 1.5rem 1rem 3rem; }
  .cab__in { flex-wrap: wrap; gap: .5rem .8rem; padding: .8rem 1rem; }
  .cab__marca { font-size: 1.05rem; }
  .cab__nav { margin-left: auto; gap: .1rem; }
  .cab__nav a { padding: .45rem .5rem; font-size: .68rem; letter-spacing: .1em; }
  .campos--2 { grid-template-columns: 1fr; }
  .linea-carrito { grid-template-columns: 64px 1fr; gap: .9rem; }
  .linea-carrito__foto { width: 64px; }
  .linea-carrito__pre { grid-column: 2; text-align: left; }
  .tarjeta { padding: 1.15rem; }
  .recibo { padding: 1.3rem; }
  .btn { padding: .9rem 1.3rem; }
}
