/* LotoNavidad · componentes. Toman los colores del tema (theme.json) y
   tienen valores de reserva para funcionar en cualquier tema. */
:root {
	/* La Lotera (marca): cian + marrón oscuro */
	--ln-brand: var(--wp--preset--color--primary, #04C0C7);
	--ln-brand-hover: var(--wp--preset--color--primary-light, #04E7EC);
	--ln-brand-ink: var(--wp--preset--color--dark, #392E2C);
	--ln-brand-strong: var(--wp--preset--color--primary-strong, #007A80);
	/* Lotería Nacional (sorteo): azul del logotipo */
	--ln-lnac: var(--wp--preset--color--lnac, #4479BB);
	--ln-lnac-dark: var(--wp--preset--color--lnac-dark, #2F5F99);
	--ln-lnac-ink: #ffffff;
	--ln-accent: var(--wp--preset--color--primary, #04C0C7);
	--ln-ink: var(--wp--preset--color--contrast, #333333);
	--ln-muted: var(--wp--preset--color--muted, #575756);
	--ln-surface: var(--wp--preset--color--surface, #ffffff);
	--ln-soft: var(--wp--preset--color--soft, #F1F6FB);
	--ln-line: var(--wp--preset--color--line, #DDE6EF);
	--ln-ok: var(--wp--preset--color--success, #12784a);
	--ln-radius: 14px;
	--ln-shadow: 0 1px 2px rgba(57,46,44,.05), 0 8px 24px rgba(57,46,44,.06);
	--ln-num-font: var(--wp--preset--font-family--numbers, "Roboto Slab", Rockwell, Georgia, serif);
}

.ln-card { background: var(--ln-surface); color: var(--ln-ink); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); box-shadow: var(--ln-shadow); padding: clamp(18px, 3vw, 28px); }
.ln-card__title { margin: 0 0 .35em; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; }
.ln-card__lead { margin: 0 0 1em; color: var(--ln-muted); }
.ln-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Número tipo décimo */
.ln-num { display: inline-block; font-family: var(--ln-num-font); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .12em; font-size: 1.9rem; line-height: 1; padding: .18em .35em .14em .47em; border-radius: 8px; background: var(--ln-soft); border: 1px solid var(--ln-line); color: var(--ln-lnac-dark); }
.ln-num.is-small { font-size: 1.05rem; padding: .2em .3em .16em .42em; }
.ln-ball { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--ln-brand); color: var(--ln-brand-ink); font-weight: 700; }

/* Formularios */
.ln-form { display: grid; gap: 14px; }
.ln-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ln-field { display: grid; gap: 6px; }
.ln-field label, .ln-digits legend { font-weight: 600; font-size: .92rem; }
.ln-form select, .ln-form input { font: inherit; accent-color: var(--ln-brand); color: inherit; background: #fff; border: 1.5px solid var(--ln-line); border-radius: 10px; padding: .7em .8em; min-height: 48px; width: 100%; box-sizing: border-box; }
.ln-form select:focus-visible, .ln-form input:focus-visible, .ln-btn:focus-visible, .ln-link:focus-visible { outline: 3px solid var(--ln-accent); outline-offset: 2px; border-color: var(--ln-lnac); }
.ln-input-num { font-family: var(--ln-num-font) !important; font-size: 1.8rem !important; letter-spacing: .3em; text-align: center; font-weight: 700; }
.ln-importe { position: relative; }
.ln-importe span { position: absolute; right: .9em; top: 50%; transform: translateY(-50%); color: var(--ln-muted); }
.ln-hint { color: var(--ln-muted); font-size: .85rem; }
@media (min-width: 640px) {
	.ln-comprobador .ln-form { grid-template-columns: 1fr 1fr; }
	.ln-field--sorteo, .ln-field--numero, .ln-comprobador .ln-actions { grid-column: 1 / -1; }
}

.ln-digits { border: 0; padding: 0; margin: 0; min-width: 0; }
.ln-digits legend { margin-bottom: 6px; padding: 0; }

.ln-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ln-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: inherit; font-weight: 700; min-height: 48px; padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--ln-brand); background: transparent; color: var(--ln-brand-ink); cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.ln-btn:hover { transform: translateY(-1px); }
.ln-btn--primary { background: var(--ln-brand); color: var(--ln-brand-ink); }
.ln-btn--primary:hover { background: var(--ln-brand-hover); }
.ln-btn--ghost { border-color: var(--ln-line); color: var(--ln-ink); }
.ln-btn--small { min-height: 40px; padding: .45em 1em; font-size: .9rem; }
.ln-link { color: var(--ln-brand-strong); font-weight: 600; text-underline-offset: 3px; }

/* Resultados */
.ln-result:empty { display: none; }
.ln-result { margin-top: 18px; }
.ln-result__box { border-radius: 12px; padding: 18px; background: var(--ln-soft); text-align: center; }
.ln-result__box.is-yes { background: color-mix(in srgb, var(--ln-brand) 12%, #fff); border: 1px solid color-mix(in srgb, var(--ln-brand) 55%, #fff); }
.ln-result__sorteo { margin: 0 0 8px; color: var(--ln-muted); font-size: .9rem; }
.ln-result__big { margin: 0 0 8px; }
.ln-result__msg { font-size: 1.1rem; margin: 8px 0; }
.ln-result__amount { font-size: 1.6rem; color: var(--ln-lnac); white-space: nowrap; }
.ln-result__list { list-style: none; margin: 12px auto; padding: 0; max-width: 460px; text-align: left; }
.ln-result__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--ln-line); }
.ln-result__tax { font-size: .9rem; color: var(--ln-muted); }
.ln-result__count { font-weight: 700; }
.ln-empty, .ln-error, .ln-loading { padding: 14px; border-radius: 10px; background: var(--ln-soft); margin: 0; }
.ln-error { background: #fdecec; color: #8a1020; }
.ln-alert { padding: 10px 14px; border-radius: 10px; background: #fff6db; border: 1px solid #f0d37a; }
.ln-legal { font-size: .8rem; color: var(--ln-muted); }
.ln-spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -2px; border: 2px solid var(--ln-line); border-top-color: var(--ln-brand); border-radius: 50%; animation: ln-spin .8s linear infinite; }
@keyframes ln-spin { to { transform: rotate(360deg); } }
.is-celebrating .ln-result__box.is-yes { animation: ln-pop .6s ease; }
@keyframes ln-pop { 40% { transform: scale(1.03); } }

/* Mis décimos */
.ln-mis { margin-top: 16px; border-top: 1px solid var(--ln-line); padding-top: 12px; }
.ln-mis summary { cursor: pointer; font-weight: 700; }
.ln-mis__list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.ln-mis__list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ln-mis__res .is-yes { color: var(--ln-ok); }
.ln-mis__res .is-no { color: var(--ln-muted); }
.ln-x { margin-left: auto; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--ln-muted); min-width: 40px; min-height: 40px; }
.ln-badge { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--ln-lnac); color: var(--ln-lnac-ink); font-size: .8rem; text-align: center; }

/* Décimos encontrados */
.ln-decimos { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ln-decimo { display: grid; justify-items: center; gap: 8px; padding: 16px 12px; border-radius: 12px; border: 1px solid var(--ln-line); background: linear-gradient(180deg, #fff, var(--ln-soft)); text-align: center; position: relative; overflow: hidden; }
.ln-decimo::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ln-lnac); }
.ln-decimo__sorteo { font-size: .8rem; color: var(--ln-muted); display: block; }
.ln-decimo__disp { font-size: .85rem; color: var(--ln-muted); }
.ln-more { margin: 4px auto; display: flex; }

/* Últimos resultados / tarjetas */
.ln-ultimo { display: grid; gap: 12px; align-content: start; }
.ln-ultimo__head h3 { margin: 6px 0 0; font-size: 1.05rem; }
.ln-ultimo__head h3 a { display: inline-block; }
.ln-ultimo__head h3 a::first-letter, .ln-table th[scope=row] a::first-letter, .ln-decimo__sorteo::first-letter { text-transform: uppercase; }
.ln-ultimo__head h3 a { color: inherit; text-decoration: none; }
.ln-ultimo__foot { display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.ln-chip { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; background: var(--ln-soft); color: var(--ln-lnac); margin: 0 4px 0 0; }
.ln-chip--live { background: var(--ln-lnac); color: var(--ln-lnac-ink); }
.ln-principales { margin: 0; display: grid; gap: 10px; }
.ln-principales__row { display: grid; gap: 4px; }
.ln-principales dt { font-size: .82rem; color: var(--ln-muted); font-weight: 600; }
.ln-principales dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ln-principales .ln-cat-primer .ln-num { background: var(--ln-lnac); color: var(--ln-lnac-ink); border-color: var(--ln-lnac); }
.ln-premio { font-weight: 700; }
.ln-premio small { font-weight: 400; color: var(--ln-muted); }
.ln-principales.is-compact .ln-num { font-size: 1.35rem; }

.ln-sorteo-tile { display: grid; gap: 6px; text-decoration: none; transition: transform .12s ease; }
.ln-sorteo-tile:hover { transform: translateY(-2px); }
.ln-sorteo-tile strong { font-size: 1.1rem; color: var(--ln-ink); }
.ln-sorteo-tile span { color: var(--ln-muted); font-size: .9rem; }
.ln-sorteo-tile .ln-link { color: var(--ln-brand-strong); }
.ln-tipo-navidad, .ln-tipo-nino { border-top: 4px solid var(--ln-lnac); }

/* Histórico */
.ln-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ln-years a { padding: .35em .8em; border-radius: 999px; border: 1px solid var(--ln-line); text-decoration: none; color: var(--ln-ink); font-weight: 600; font-size: .9rem; }
.ln-years a.is-active { background: var(--ln-lnac); color: var(--ln-lnac-ink); border-color: var(--ln-lnac); }
.ln-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ln-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ln-table th, .ln-table td { padding: 10px 8px; border-bottom: 1px solid var(--ln-line); text-align: left; vertical-align: middle; }
.ln-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ln-muted); }
.ln-table th[scope=row] a { color: inherit; display: inline-block; }
@media (max-width: 600px) { .ln-historico .ln-table th:last-child, .ln-historico .ln-table td:last-child { display: none; } .ln-table th, .ln-table td { padding: 8px 4px; } .ln-num.is-small { font-size: .95rem; letter-spacing: .06em; } }
.ln-detalle__head h1 { text-transform: none; }
.ln-detalle .ln-principales { margin: 20px 0; }
.ln-detalle .ln-comprobador { margin: 24px 0; }
.ln-bloque { margin: 28px 0; }
.ln-bloque h2 small { font-weight: 400; color: var(--ln-muted); font-size: .7em; }
.ln-numlist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ln-miles { display: grid; gap: 6px; }
.ln-miles details { border: 1px solid var(--ln-line); border-radius: 10px; padding: 8px 12px; }
.ln-miles summary { cursor: pointer; font-weight: 600; }
.ln-numtext { font-family: var(--ln-num-font); font-variant-numeric: tabular-nums; line-height: 1.9; word-spacing: .2em; }

/* Estadísticas */
.ln-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ln-bars li { display: grid; grid-template-columns: 1.5em 1fr 2.5em; align-items: center; gap: 10px; }
.ln-bars__k { font-family: var(--ln-num-font); font-weight: 700; text-align: center; }
.ln-bars__bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--ln-lnac) var(--v), var(--ln-soft) var(--v)); }
.ln-bars__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ln-muted); }

/* Cuenta atrás */
.ln-countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 18px; border-radius: var(--ln-radius); background: var(--ln-lnac); color: var(--ln-lnac-ink); margin-bottom: 20px; }
.ln-countdown__label { font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.ln-countdown__value b { font-family: var(--ln-num-font); font-size: 1.4rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .ln-btn, .ln-sorteo-tile, .ln-spinner { transition: none; animation: none; } }

/* Logotipo de Lotería Nacional */
.ln-logo-lnac { display: block; height: auto; max-width: 100%; }
.ln-card__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .4em; }
.ln-card__brand .ln-card__title { margin: 0; }
.ln-card__brand .ln-logo-lnac { width: 96px; flex: none; }
.ln-sorteo-tile .ln-logo-lnac, .ln-ultimo .ln-logo-lnac { width: 110px; margin: 0 0 6px; }
.ln-decimos { max-height: 760px; overflow-y: auto; padding-right: 4px; }
.ln-countdown { align-items: center; }
.ln-countdown .ln-logo-lnac { width: 120px; margin-right: 6px; }
.ln-form .ln-input-num, .ln-form .ln-digits input { color: var(--ln-lnac-dark); }
.ln-comprobador, .ln-buscador { border-top: 4px solid var(--ln-lnac); }
@media (max-width: 480px) { .ln-card__brand .ln-logo-lnac { width: 72px; } .ln-countdown .ln-logo-lnac { width: 96px; } }

/* Tarjetas de sorteo y accesos */
.ln-sorteo-tile h3 { margin: 0; font-size: 1.1rem; }
.ln-sorteo-tile h3 a { color: var(--ln-ink); text-decoration: none; }
.ln-sorteo-tile h3 a:hover { color: var(--ln-brand-strong); }
.ln-tile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 2px; align-items: start; }
.ln-sorteos { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ln-tile-links .ln-btn { padding: .45em .6em; min-height: 42px; line-height: 1.2; }
.ln-sorteo-tile:hover { transform: none; }
.ln-accesos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 24px; }
.ln-acceso { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ln-ink); transition: transform .12s ease, box-shadow .12s ease; }
.ln-acceso:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(57,46,44,.10); }
.ln-acceso strong { font-size: 1.15rem; color: var(--ln-brand-ink); }
.ln-acceso span:not(.ln-btn) { color: var(--ln-muted); }
.ln-acceso .ln-btn { justify-self: start; margin-top: 4px; }
.ln-acceso.is-main { border-top: 4px solid var(--ln-lnac); }
.ln-acceso .ln-logo-lnac { width: 110px; }

/* Recuadros de cifras con flechas (como en La Lotera) */
.ln-digits__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ln-digit { width: clamp(48px, 13vw, 60px); display: grid; border: 1.5px solid var(--ln-line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .12s ease, box-shadow .12s ease; }
.ln-digit:focus-within { border-color: var(--ln-lnac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ln-lnac) 22%, transparent); }
.ln-form .ln-digit input { border: 0; border-radius: 0; min-height: 54px; padding: 0; width: 100%; text-align: center; font-family: var(--ln-num-font); font-size: 1.9rem; font-weight: 700; color: var(--ln-lnac-dark); background: #fff; caret-color: var(--ln-brand); }
.ln-form .ln-digit input:focus-visible { outline: none; }
.ln-digit__btn { display: grid; place-items: center; height: 34px; border: 0; padding: 0; margin: 0; background: var(--ln-soft); color: var(--ln-lnac); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ln-digit__btn:hover { background: var(--ln-lnac); color: #fff; }
.ln-digit__btn:active { transform: scale(.94); }
.ln-digit__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ln-borrar { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: .45em 1em; margin-left: 4px; border: 2px solid var(--ln-line); border-radius: 999px; background: #fff; color: var(--ln-brand-ink); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.ln-borrar:hover { border-color: var(--ln-brand); background: color-mix(in srgb, var(--ln-brand) 10%, #fff); }
.ln-borrar:focus-visible, .ln-digit__btn:focus-visible { outline: 3px solid var(--ln-brand); outline-offset: 2px; }
.ln-borrar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ln-digit.is-error { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198,40,40,.15); }
@media (max-width: 420px) { .ln-borrar { margin-left: 0; } }

/* ===== Estadísticas ===== */
.ln-estadisticas { display: grid; gap: 20px; }
.ln-periodos { margin: 0; }
.ln-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ln-kpi { background: var(--ln-surface); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); padding: 16px; display: grid; gap: 6px; align-content: start; }
.ln-kpi__v { font-family: var(--ln-num-font); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ln-lnac-dark); }
.ln-kpi__v .ln-ball { width: 1.6em; height: 1.6em; font-family: inherit; font-size: 1.3rem; }
.ln-kpi__l { color: var(--ln-muted); font-size: .9rem; }
.ln-stat h3 { font-size: 1rem; margin: 18px 0 8px; }
.ln-stat__grid { display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ln-bars--big li { grid-template-columns: minmax(2.5em, auto) 1fr auto; }
.ln-bars--big .ln-bars__k { text-align: left; font-size: .95rem; white-space: nowrap; }
.ln-bars--big .ln-bars__bar { height: 18px; border-radius: 9px; position: relative; }
.ln-bars--big .ln-bars__v { text-align: right; min-width: 6.5em; font-size: .9rem; }
.ln-bars__bar[style*="--m"]::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--m); width: 2px; background: var(--ln-brand-ink); opacity: .55; }
.ln-bars li.is-mas .ln-bars__bar { background: linear-gradient(90deg, var(--ln-brand) var(--v), var(--ln-soft) var(--v)); }
.ln-bars li.is-menos .ln-bars__k { color: #b3261e; }
.ln-ball.is-off { background: var(--ln-soft); color: var(--ln-muted); border: 1px dashed var(--ln-line); }
.ln-table--compact th, .ln-table--compact td { text-align: center; padding: 8px 6px; }
.ln-table--compact th[scope=row] { text-align: left; white-space: nowrap; }

.ln-heat { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 6px 0 4px; max-width: 620px; }
.ln-heat__c { display: grid; place-items: center; aspect-ratio: 1.1; border-radius: 6px; background: color-mix(in srgb, var(--ln-lnac) var(--v), #fff); border: 1px solid color-mix(in srgb, var(--ln-lnac) calc(var(--v) + 12%), #fff); color: var(--ln-ink); line-height: 1.05; }
.ln-heat__c b { font-family: var(--ln-num-font); font-size: .95rem; }
.ln-heat__c small { font-size: .7rem; opacity: .75; }
.ln-heat__c.is-dark { color: #fff; }
.ln-heat__c.is-zero { background: #fff; border: 1px dashed #d9a6a2; color: #b3261e; }
@media (max-width: 480px) { .ln-heat { gap: 2px; } .ln-heat__c b { font-size: .78rem; } .ln-heat__c small { display: none; } }

.ln-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ln-chips li { font-family: var(--ln-num-font); font-weight: 700; padding: .2em .6em; border-radius: 8px; background: var(--ln-soft); border: 1px solid var(--ln-line); color: var(--ln-lnac-dark); }
.ln-chips.is-off li { background: #fff; border-style: dashed; border-color: #d9a6a2; color: #b3261e; }
.ln-rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ln-rank li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ln-rank small { color: var(--ln-muted); }
.ln-split { height: 14px; border-radius: 7px; background: var(--ln-brand); overflow: hidden; margin-top: 10px; }
.ln-split span { display: block; height: 100%; width: var(--v); background: var(--ln-lnac); }

.ln-stat__grid--heat { grid-template-columns: minmax(0, 620px) minmax(240px, 1fr); align-items: start; }
@media (max-width: 860px) { .ln-stat__grid--heat { grid-template-columns: 1fr; } }
.ln-mt0 { margin-top: 0 !important; }
.ln-estadisticas > *, .ln-stat__grid > *, .ln-kpis > * { min-width: 0; }
.ln-key { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .35em; vertical-align: -1px; }
.ln-key.is-a { background: var(--ln-lnac); }
.ln-key.is-b { background: var(--ln-brand); }

/* Histórico en lista vertical (Navidad / Niño) */
.ln-hlist { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--ln-surface); border: 1px solid var(--ln-line); }
.ln-hlist thead th { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1; background: var(--ln-lnac); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 12px 16px; }
.ln-hlist td, .ln-hlist tbody th { padding: 10px 16px; border-top: 1px solid var(--ln-line); vertical-align: middle; text-align: left; }
.ln-hlist tbody tr:nth-child(even) { background: var(--ln-soft); }
.ln-hlist tbody tr:hover { background: color-mix(in srgb, var(--ln-brand) 10%, #fff); }
.ln-hlist tbody th a { font-family: var(--ln-num-font); font-size: 1.15rem; font-weight: 700; color: var(--ln-brand-ink); text-decoration: none; }
.ln-hlist__num { text-decoration: none; }
.ln-hlist .ln-num { font-size: 1.45rem; background: #fff; }
.ln-hlist tbody tr:first-child .ln-num { background: var(--ln-lnac); color: #fff; border-color: var(--ln-lnac); }
@media (max-width: 480px) { .ln-hlist td, .ln-hlist tbody th { padding: 8px 10px; } .ln-hlist .ln-num { font-size: 1.2rem; } }

.ln-hlist--wide { max-width: none; }
.ln-hlist--wide td .ln-num { font-size: 1.15rem; }
.ln-hlist--wide tbody th a { font-family: inherit; font-size: 1rem; }

.ln-decimo__buy { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ln-decimo__qty { font: inherit; min-height: 40px; border: 1.5px solid var(--ln-line); border-radius: 10px; padding: 0 .5em; background: #fff; }

.ln-decimo.is-term::before { background: var(--ln-brand); }
.ln-decimo__term { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ln-brand-ink); }
.ln-decimo__nota { font-size: .75rem; color: var(--ln-muted); }
.ln-decimos--term { max-height: none; }

/* Sin disponibilidad + similares (1.8.1) */
.ln-nodisp { margin: 12px 0 4px; padding: 14px 16px; border-radius: 10px; background: #FDF1EF; border-left: 4px solid #C0392B; }
.ln-nodisp__title { margin: 0 0 4px; font-weight: 700; color: #8E2A1F; font-size: 1.05rem; }
.ln-nodisp__title b { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ln-nodisp__text { margin: 0; color: var(--ln-ink, #333); }
.ln-decimos--sim { max-height: none; }
.ln-decimo__motivo { display: inline-block; justify-self: center; align-self: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--ln-soft, #F1F6FB); color: var(--ln-brand-strong, #007A80); }

/* Número encontrado destacado (1.9.2) */
.ln-decimos--destacado { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); max-height: none; }
.ln-decimos--destacado .ln-decimo { padding: 22px 18px; gap: 10px; border-width: 2px; border-color: var(--ln-lnac); box-shadow: 0 8px 24px rgba(68,121,187,.15); }
.ln-decimos--destacado .ln-decimo::before { height: 6px; }
.ln-decimos--destacado .ln-num { font-size: 2.9rem; background: var(--ln-lnac); color: #fff; border-color: var(--ln-lnac); }
.ln-decimos--destacado .ln-decimo__sorteo { font-size: .95rem; }
.ln-decimos--destacado .ln-decimo__disp { font-size: 1rem; font-weight: 700; color: var(--ln-ink); }
.ln-decimos--destacado .ln-btn { font-size: 1.05rem; padding: .8em 1.6em; }
@media (max-width: 480px) { .ln-decimos--destacado { grid-template-columns: 1fr; } .ln-decimos--destacado .ln-num { font-size: 2.4rem; } }

/* Enlaces como botones (2.0.1) */
.ln-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.ln-ultimo__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ln-ultimo__foot .ln-btn, .ln-actions-row .ln-btn, .ln-tile-links .ln-btn { text-decoration: none; }
.ln-btn--ghost { background: #fff; }
.ln-btn--ghost:hover { border-color: var(--ln-lnac); color: var(--ln-lnac-dark); }
.ln-tile-links .ln-btn--ghost { grid-column: 1 / -1; }

/* Lista oficial PDF (2.1.0) */
.ln-btn--pdf svg { flex: none; }
.ln-hlist__pdf { text-align: right; white-space: nowrap; }
.ln-hlist__pdf a { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ln-line); color: var(--ln-lnac-dark); text-decoration: none; background: #fff; }
.ln-hlist__pdf a:hover { border-color: var(--ln-lnac); }

/* Listas oficiales (2.2.0) */
.ln-listas__meta { color: var(--ln-muted, #575756); font-size: .95rem; margin: 0 0 12px; }
.ln-listas__acc { text-align: right; white-space: nowrap; }
.ln-listas__acc .ln-btn { min-height: 36px; padding: .3em .9em; font-size: .85rem; }
@media (max-width: 560px) { .ln-listas__tabla .ln-hide-sm { display: none; } }

/* Blog con datos automáticos (2.3.0) */
.ln-dato { font-variant-numeric: tabular-nums; }
.ln-num--sm { font-size: 1rem; padding: 2px 8px; letter-spacing: .08em; }
.ln-tstats { margin: 12px 0 24px; }
.ln-tstats caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--ln-ink, #333); }
.ln-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-faq { margin: 12px 0 24px; border-top: 1px solid var(--ln-line, #DDE6EF); }
.ln-faq__item { border-bottom: 1px solid var(--ln-line, #DDE6EF); padding: 12px 0; }
.ln-faq__item summary { cursor: pointer; font-weight: 700; color: var(--ln-ink, #333); }
.ln-faq__item p { margin: 8px 0 0; }

/* Textos de las páginas ([ln_texto]) */
.ln-texto { margin-top: 2.5rem; }
.ln-texto h2 { margin: 2rem 0 .75rem; }
.ln-texto p, .ln-texto li { line-height: 1.65; }
.ln-texto ul { padding-left: 1.25rem; }
.ln-texto li { margin: .35rem 0; }
.ln-ttexto-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.ln-ttexto { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ln-ttexto th, .ln-ttexto td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid #e6e6e6; }
.ln-ttexto td:last-child, .ln-ttexto th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* ---------- Cesta de décimos ---------- */
.lnc-boton { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .8rem; border: 1.5px solid var(--ln-line, #dfe6ea); border-radius: 4px; background: #fff; color: var(--ln-ink, #392E2C); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.lnc-boton:hover { border-color: var(--ln-lnac, #04C0C7); }
.lnc-boton__n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #e6e6e6; color: #392E2C; font-size: .75rem; font-weight: 800; }
.lnc-boton.has-items .lnc-boton__n { background: #D32F2F; color: #fff; }
.lnc-boton.is-pulso { animation: lnc-pulso .5s ease; }
@keyframes lnc-pulso { 50% { transform: scale(1.08); } }
.lnc-boton.is-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
@media (max-width: 781px) { .lnc-boton__txt { display: none; } .lnc-boton { padding: .45rem .55rem; } }
html.lnc-abierta { overflow: hidden; }
.lnc-capa { position: fixed; inset: 0; z-index: 100000; }
.lnc-capa[hidden] { display: none; }
.lnc-fondo { position: absolute; inset: 0; background: rgba(20,20,20,.45); }
.lnc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #392E2C; }
.lnc-cab { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 3px solid var(--ln-lnac, #04C0C7); }
.lnc-cab h2 { margin: 0; font-size: 1.3rem; }
.lnc-x { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; }
.lnc-cuerpo { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.lnc-vacia { color: #575756; }
.lnc-grupo + .lnc-grupo { margin-top: 1.5rem; }
.lnc-grupo h3 { margin: 0 0 .5rem; font-size: 1rem; }
.lnc-lista { list-style: none; margin: 0 0 .75rem; padding: 0; }
.lnc-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num info quitar" "num cant imp"; gap: .25rem .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid #eef1f2; }
.lnc-item .ln-num { grid-area: num; }
.lnc-item__info { grid-area: info; font-size: .85rem; color: #575756; }
.lnc-cant { grid-area: cant; display: inline-flex; align-items: center; border: 1px solid #dfe6ea; border-radius: 8px; width: max-content; }
.lnc-cant button { width: 34px; height: 34px; border: 0; background: #f4f8f9; font-size: 1.1rem; font-weight: 800; cursor: pointer; color: inherit; }
.lnc-cant button[disabled] { opacity: .4; cursor: default; }
.lnc-cant b { min-width: 2rem; text-align: center; }
.lnc-item__imp { grid-area: imp; font-weight: 700; text-align: right; }
.lnc-quitar { grid-area: quitar; border: 0; background: none; color: #575756; font-size: .8rem; text-decoration: underline; cursor: pointer; justify-self: end; }
.lnc-comprar { width: 100%; justify-content: center; }
.lnc-pie { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px solid #392E2C; }
.lnc-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 1rem; font-size: 1.1rem; }
.lnc-total strong { font-size: 1.5rem; }
.lnc-nota { font-size: .82rem; color: #575756; margin: .75rem 0 0; }
.lnc-vaciar { margin-top: .75rem; border: 0; background: none; color: #575756; text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }
.lnc-aviso { position: fixed; left: 50%; bottom: 20px; z-index: 99999; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; display: flex; gap: .75rem; align-items: center; padding: .7rem .8rem .7rem 1.1rem; border-radius: 10px; background: #392E2C; color: #fff; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: translate(-50%, 140%); transition: transform .25s ease; max-width: calc(100% - 32px); }
.lnc-aviso.is-visible { transform: translate(-50%, 0); }
.lnc-aviso button { border: 0; border-radius: 6px; padding: .45rem .8rem; background: var(--ln-lnac, #04C0C7); color: #392E2C; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ln-btn.is-added { background: #2E7D32 !important; color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .lnc-aviso { transition: none; } .lnc-boton.is-pulso { animation: none; } }
