/* Enlaces · LA2MIL Joyería — la página para la biografía de Instagram (joyeriala2000.com/links/)
   Escenario negro con oro, como la tienda: títulos en serif, rótulos en mayúsculas espaciadas y líneas finas. */
:root {
  --negro: #0d0d0c;
  --carbon: #171614;
  --carbon-2: #1f1d1a;
  --linea: #34302a;
  --oro: #d3a24b;
  --oro-claro: #ecc77f;
  --hueso: #f1ece2;
  --gris: #a59f94;
  --f-titulo: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --f-texto: 'Jost', 'Century Gothic', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--negro); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 16px/1.5 var(--f-texto); font-variant-numeric: lining-nums;
  color: var(--hueso); background: var(--negro);
  padding: max(28px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Fondo: un brillo dorado arriba y el «29» grande en línea fina, como el «Joyería» de la tienda */
.escenario { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -8%, rgba(211, 162, 75, .20), rgba(211, 162, 75, 0) 62%), var(--negro); }
.cifra { position: absolute; right: -.08em; bottom: -.22em; font: 500 min(78vw, 520px)/1 var(--f-titulo); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(211, 162, 75, .2); user-select: none; }

.tarjeta { position: relative; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* Compartir la página (en el celular abre el menú de compartir; en el computador copia el enlace) */
.compartir { align-self: flex-end; margin-bottom: -10px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--linea); border-radius: 18px; background: rgba(23, 22, 20, .75); color: var(--gris); cursor: pointer;
  font: 500 10.5px/1 var(--f-texto); letter-spacing: .18em; text-transform: uppercase; transition: color .18s, border-color .18s; }
.compartir:hover { color: var(--oro-claro); border-color: var(--oro); }
.compartir svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) { .compartir span { display: none; } .compartir { padding: 0 10px; } }
button:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }

/* Cabeza */
.cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0 6px; }
.logo { width: min(64vw, 240px); height: auto; margin-bottom: 10px; }
.lema { margin: 0; font: italic 500 clamp(22px, 6.2vw, 27px)/1.15 var(--f-titulo); color: var(--hueso); text-wrap: balance; }
.lugar { margin: 2px 0 0; font: 500 11px/1.5 var(--f-texto); letter-spacing: .26em; text-transform: uppercase; color: var(--gris); }

.redes { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.redes a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 50%;
  color: var(--oro); background: rgba(23, 22, 20, .7); transition: border-color .18s, color .18s, background-color .18s, transform .18s; }
.redes a:hover { border-color: var(--oro); color: var(--oro-claro); transform: translateY(-2px); }
.redes svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.redes svg .lleno { fill: currentColor; stroke: none; }
.redes svg .fino { stroke-width: 1.2; }

/* Precio del día (sale solo cuando el sistema publicó el precio de hoy) */
.precio { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; text-decoration: none; text-align: center;
  border: 1px solid rgba(211, 162, 75, .45); background: linear-gradient(180deg, rgba(211, 162, 75, .12), rgba(211, 162, 75, .04)); }
.precio:hover { border-color: var(--oro); }
.precio-rot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 10.5px/1.4 var(--f-texto); letter-spacing: .26em; text-transform: uppercase; color: var(--oro); }
.punto { width: 7px; height: 7px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95, 208, 138, .6); animation: latido 2.4s infinite; }
.precio-val { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font: 500 15px/1.45 var(--f-texto); color: var(--hueso); }
.precio-val .p { white-space: nowrap; }
.precio-val b { font: 600 19px/1.2 var(--f-titulo); color: var(--oro-claro); letter-spacing: .01em; }

@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, .55); } 70% { box-shadow: 0 0 0 8px rgba(95, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0); } }

/* Sorteo destacado (se quita solo después del 4 de diciembre) */
.sorteo { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 12px; text-decoration: none;
  background: var(--oro); color: #14110b; transition: background-color .18s, transform .18s; }
.sorteo:hover { background: var(--oro-claro); transform: translateY(-1px); }
.sorteo img { width: 76px; height: 100px; object-fit: cover; display: block; }
.sorteo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sorteo-rot { font: 600 10.5px/1.4 var(--f-texto); letter-spacing: .22em; text-transform: uppercase; }
.sorteo b { font: 600 22px/1.08 var(--f-titulo); text-wrap: balance; }
.sorteo-cta { font: 500 13px/1.35 var(--f-texto); text-decoration: underline; text-underline-offset: 3px; }

/* Enlaces */
.enlaces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.enlaces a { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px 12px 12px;
  text-decoration: none; background: var(--carbon); border: 1px solid var(--linea);
  transition: border-color .18s, background-color .18s, transform .18s; }
.enlaces a:hover { border-color: var(--oro); background: var(--carbon-2); transform: translateY(-1px); }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(211, 162, 75, .35); color: var(--oro); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.txt b { font: 600 20px/1.15 var(--f-titulo); color: var(--hueso); letter-spacing: .005em; }
.txt small { font: 400 13px/1.35 var(--f-texto); color: var(--gris); }
.flecha { color: var(--oro); font-size: 18px; transition: transform .18s; }
.enlaces a:hover .flecha { transform: translateX(3px); }

.horario { margin: 2px 0 0; text-align: center; font: 400 13px/1.5 var(--f-texto); color: var(--gris); }

/* Pie */
.pie { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--linea); text-align: center; }
.sellos { display: flex; gap: 18px; font: 500 10.5px/1 var(--f-texto); letter-spacing: .26em; text-transform: uppercase; color: var(--oro); }
.pie small { font: 400 12px/1.5 var(--f-texto); color: #7d776d; }

/* Foco visible para teclado */
a:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }

/* Entrada suave, una por una */
.tarjeta > * { animation: entra .55s cubic-bezier(.2, .7, .2, 1) both; }
.tarjeta > *:nth-child(2) { animation-delay: .06s; }
.tarjeta > *:nth-child(3) { animation-delay: .12s; }
.tarjeta > *:nth-child(4) { animation-delay: .18s; }
.tarjeta > *:nth-child(5) { animation-delay: .24s; }
.tarjeta > *:nth-child(6) { animation-delay: .3s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tarjeta > *, .punto { animation: none; } .enlaces a, .redes a, .sorteo { transition: none; } }

@media (min-width: 560px) { body { padding-top: max(56px, env(safe-area-inset-top, 0px)); } .tarjeta { gap: 18px; } }
