/* RUTFinder — lienzo claro, tinta casi negra y un único color de acción: rojo.
   El rojo marca lo que se puede hacer o lo que requiere atención (botón principal, avisos, favoritos, foco). */
:root {
  --ink: #18181a;
  --muted: #6c6b67;
  --canvas: #f4f3f0;
  --surface: #ffffff;
  --hover: #edebe7;
  --line: #e3e1dc;
  --red: #e0201b;
  --red-dark: #bf1913;
  --red-soft: #fdeae8;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-pop: 0 12px 32px rgba(24, 24, 26, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.link, .flash a, .field-value a, .kv a, .cell-wrap a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

h1 { margin: 0 0 20px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
ul { margin: 12px 0 0; padding-left: 20px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--surface); border-radius: var(--radius); }

/* Cabecera: la misma para visitantes, usuarios y administradores */
.header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-weight: 500; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.count { min-width: 18px; padding: 0 5px; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; color: #fff; background: var(--red); border-radius: 9px; }
.account > summary { display: flex; align-items: center; gap: 10px; border-radius: var(--radius); }
.account-name { display: none; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 50%; }

/* Panel de administración: menú lateral fijo + contenido */
.shell { flex: 1; display: flex; align-items: flex-start; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 20px; width: 236px; height: 100vh; flex: none; padding: 16px 12px; border-right: 1px solid var(--line); }
.sidebar .brand { padding: 4px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-weight: 500; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.side-nav a:hover { color: var(--ink); background: var(--hover); }
.side-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.side-nav .icon { width: 18px; height: 18px; }
.side-nav .count { margin-left: auto; }
.sidebar .account > summary { padding: 6px; }
.sidebar .account > summary:hover { background: var(--hover); }
.sidebar .account-name { display: block; min-width: 0; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .dropdown-panel { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.content { flex: 1; min-width: 0; max-width: 1240px; padding: 28px 32px 64px; }

/* Inicio del panel: cifras, mapa y últimos accesos */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 16px 18px; transition: border-color 0.15s; }
.stat:hover { border-color: #c9c6bf; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.stat-alert .stat-label::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 12px; align-items: start; }
.world { display: block; width: 100%; height: auto; }
.world path { fill: #e6e3dd; stroke: var(--surface); stroke-width: 0.5; transition: fill 0.15s; }
.world path:hover { fill: #cfcbc3; }
.logins { margin: 0; padding: 0; list-style: none; }
.logins li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.logins li:first-child { padding-top: 0; border-top: 0; }
.logins span { min-width: 0; }
.logins strong, .logins small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logins small { font-size: 13px; color: var(--muted); }
.logins time { flex: none; font-size: 13px; color: var(--muted); }

/* Estructura */
.container { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 24px 64px; }
.narrow { width: 100%; max-width: 400px; margin: 40px auto 0; }
.narrow > h1 { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1, .page-head p { margin: 0; }
.page-head > :last-child:not(:first-child) { margin-left: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.box-pad { padding: 24px; }
.box-pad > :last-child { margin-bottom: 0; }
.box + .box { margin-top: 12px; }
.grid > .box, .stats > .box, .dash > .box { margin: 0; }
.blankslate { padding: 64px 24px; text-align: center; color: var(--muted); }
.blankslate p { margin: 0; }
.disclosure summary { font-weight: 500; cursor: pointer; }

.alt { margin: 16px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
.alt a { font-weight: 500; color: var(--ink); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; font: inherit; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn-primary { color: #fff; background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-danger { color: var(--red-dark); }
.btn-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; margin-top: 24px; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.star { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.star:hover { color: var(--ink); background: var(--hover); }
.star .icon { width: 19px; height: 19px; }
.star[aria-pressed="true"] { color: var(--red); }
.star[aria-pressed="true"] .icon { fill: currentColor; }

/* Menús desplegables (cuenta, importar, sugerir, añadir usuario) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(360px, calc(100vw - 32px)); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.menu { width: 240px; padding: 6px; }
.menu-who { margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.menu-who strong, .menu-who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who span { font-size: 13px; color: var(--muted); }
.menu a, .menu button { display: block; width: 100%; padding: 8px 10px; font: inherit; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--hover); }

/* Formularios */
label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 500; }
label:first-child, input[type="hidden"] + label { margin-top: 0; }
input, select, textarea { width: 100%; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
input, select { height: 38px; }
input[type="file"] { height: auto; padding: 0; font-size: 14px; background: none; border: 0; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
::placeholder { color: #9d9b96; }
input[type="search"] { padding-left: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6b67' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") no-repeat 12px center / 16px; }
select { padding-top: 0; padding-bottom: 0; padding-right: 40px; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6b67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1 1 240px; width: auto; }
.filters select { flex: 0 1 200px; width: auto; }
.filters .link { padding: 0 6px; font-size: 14px; color: var(--muted); }
.views { display: flex; gap: 2px; margin-left: auto; }
.view-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--muted); background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.view-toggle:hover { color: var(--ink); }
.view-toggle[aria-pressed="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); }
.view-toggle .icon { width: 18px; height: 18px; }

/* Mensajes */
.flash { margin-bottom: 16px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flash-error { color: var(--red-dark); background: var(--red-soft); border-color: #f5c6c1; }
.flash-warn { background: #fff6dc; border-color: #ecdca6; }

/* Etiquetas */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.badge { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 500; line-height: 20px; color: var(--muted); background: var(--hover); border-radius: 6px; white-space: nowrap; vertical-align: 1px; }
.badge-red { color: var(--red-dark); background: var(--red-soft); }
/* Etiquetas de la ficha por tipo (fields.js → BADGE_KINDS): producción, dieta, evidencia y UNICEF */
.badge .icon { width: 13px; height: 13px; margin: 0 5px 0 -1px; vertical-align: -2px; stroke-width: 2; }
.badge-blue { color: #1f4fa8; background: #e6eefb; }
.badge-violet { color: #5a43a6; background: #ede8fb; }
.badge-green { color: #1d6b38; background: #e2f1e5; }
.badge-amber { color: #855400; background: #fcefd2; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
thead th { padding-top: 10px; padding-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; border-top: 0; }
tbody tr:hover > * { background: #faf9f7; }
tbody th { font-weight: 600; }
tbody th a:hover { text-decoration: underline; }
tbody small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
/* Columnas ordenables (app.js): flechas tenues; la activa marca el sentido */
.sort-btn { display: inline-flex; align-items: center; gap: 4px; margin: -4px -6px; padding: 4px 6px; font: inherit; color: inherit; background: none; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.sort-btn:hover { color: var(--ink); background: var(--hover); }
th[aria-sort] .sort-btn { color: var(--ink); }
.sort-ico { width: 14px; height: 14px; stroke-width: 2; }
.sort-ico path { opacity: 0.35; }
th[aria-sort="ascending"] .sort-up, th[aria-sort="descending"] .sort-down { opacity: 1; }
th[aria-sort="ascending"] .sort-down, th[aria-sort="descending"] .sort-up { opacity: 0; }
.cell-wrap { max-width: 420px; overflow-wrap: anywhere; }
.cell-clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-actions { width: 1%; text-align: right; white-space: nowrap; }
.cell-actions > * { display: inline-flex; vertical-align: middle; }
.cell-actions > * + * { margin-left: 4px; }
.cell-actions .star { margin: -6px 0; }

/* Catálogo en tarjetas: toda la tarjeta enlaza a la ficha */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 52px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s; }
.card:hover { border-color: #c9c6bf; }
.card:has(h2 a:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.card h2 { margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h2 a:focus-visible { outline: none; }
.card-producer { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { margin: auto 0 0; padding-top: 14px; font-size: 13px; color: var(--muted); }
.card .fav { position: absolute; top: 10px; right: 10px; }
.product-head .star { width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Ficha de producto */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.back:hover { color: var(--ink); }
.product-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.product-head > div:first-child { flex: 1 1 480px; min-width: 0; }
.product-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; }
.sections { display: grid; gap: 12px; }
.section { padding: 24px; scroll-margin-top: 16px; }
.section h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 18px; }
.section h2 .icon { width: 20px; height: 20px; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.field { grid-column: 1 / -1; min-width: 0; }
.field-half { grid-column: auto; }
.field h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field h3 .badge { margin-left: 4px; }
.field-value { line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.section h2 + .empty-note { margin-top: 0; }
.kv { font-size: 14px; }
.kv th, .kv td { padding: 6px 0; vertical-align: top; }
.kv tr:first-child > * { border-top: 0; }
.kv tr:hover > * { background: none; }
.kv th { padding-right: 16px; font-weight: 400; }
.kv td { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 8px; }
.toc .icon { width: 17px; height: 17px; }
.toc a:hover { color: var(--ink); background: var(--hover); }
.toc .toc-empty { opacity: 0.55; }

/* Formulario de producto: mismas secciones e índice que la ficha */
.form-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 16px 0; background: linear-gradient(rgba(244, 243, 240, 0), var(--canvas) 35%); }

@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .product-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 820px) {
  .shell { flex-direction: column; align-items: stretch; }
  .sidebar { position: static; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 8px; width: auto; height: auto; padding: 10px 16px; border-right: 0; }
  .sidebar .brand { padding: 0; }
  .side-nav { order: 3; flex: 0 0 100%; flex-direction: row; overflow-x: auto; }
  .sidebar .account > summary { padding: 0; }
  .sidebar .account-name { display: none; }
  .sidebar .dropdown-panel { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; }
  .content { padding: 8px 16px 48px; }
}

@media (max-width: 640px) {
  .header { padding: 10px 16px; }
  .header .nav { order: 3; flex: 0 0 100%; overflow-x: auto; }
  .header .dropdown { margin-left: auto; }
  .container { padding: 8px 16px 48px; }
  .narrow { margin-top: 16px; }
  .hide-sm { display: none; }
  .filters select { flex: 1 1 140px; }
  th, td { padding: 10px 12px; }
  .page-head { position: relative; }
  .page-head .dropdown { position: static; }
  .page-head .dropdown-panel { left: 0; right: 0; width: auto; }
  .fields { grid-template-columns: 1fr; }
  .field-half { grid-column: 1 / -1; }
  .section, .box-pad { padding: 20px 16px; }
}

/* =====================================================================
   Web pública (visitantes: body.public). Mobile first: la base es el móvil
   y los min-width añaden lo de pantallas grandes. El panel y la vista de
   usuarios no usan nada de esto.
   ===================================================================== */
@font-face {
  font-family: "Roboto Condensed";
  src: url(/fonts/roboto-condensed-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
.public {
  /* Titulares en Roboto Condensed; el «inder» de RUTFinder en serif cursiva (Instrument Serif).
     Para probar otra tipografía, cambia la variable y su @font-face. */
  --font-display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  /* Complementarios del rojo: fondos de iconos y de las tarjetas de la portada, nunca acciones ni estados. */
  --mint: #0b6b57; --mint-soft: #ddf2ea;
  --peach: #a3401e; --peach-soft: #f7e4da;
  --sun: #8a5800;  --sun-soft: #fcefd2;
  --lilac: #5a43a6; --lilac-soft: #ebe5fb;
  --green: #1d6b38; --green-dot: #2e9150; --green-soft: #e2f1e5;
  --lime-soft: #eef6d4;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Fondo de puntos de la web pública */
body.public { background: var(--canvas) radial-gradient(#d6d2ca 1.2px, transparent 1.7px) 0 0 / 22px 22px; }
.public h1, .public h2, .public h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.public h3 { font-weight: 600; letter-spacing: 0; }
.public .btn { border-radius: 999px; }

/* Friso y menú */
.banner { display: block; padding: 13px 16px; font-size: 13px; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, 0.9); background: var(--red); transition: background 0.15s; }
.banner:hover { background: var(--red-dark); }
.banner-ico { display: inline-flex; margin-right: 8px; vertical-align: top; }
.banner-ico .icon { width: 18px; height: 18px; color: #fff; }
.banner-cta { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-weight: 500; color: #fff; vertical-align: top; }
.banner-cta .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.banner:hover .banner-cta .icon { transform: translateX(2px); }
.site-header { position: sticky; top: 0; z-index: 25; background: rgba(244, 243, 240, 0.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.site-header-in { display: flex; align-items: center; gap: 12px; max-width: 1120px; height: 64px; margin: 0 auto; padding: 0 16px; }
.site-header .brand { font-size: 19px; }
.site-nav, .site-login { display: none; }
.site-nav a, .site-login { padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color 0.15s, background 0.15s; }
.site-nav a:hover, .site-login:hover { color: var(--ink); background: var(--hover); }
.site-nav [aria-current="page"], .site-login[aria-current="page"] { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-menu-btn { width: 36px; padding: 0; }
.site-menu-btn .icon { width: 18px; height: 18px; }

/* Portada: cuadro redondeado con titular, buscador y «cómo funciona» abajo */
.home { flex: 1; display: flex; flex-direction: column; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Mismo ancho que el contenido de las secciones (.section-wrap: 1120px menos su relleno) */
  width: calc(100% - 32px);
  max-width: 1088px;
  margin: 4px auto 0;
  padding: 20px 12px 16px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  /* Alto de la zona blanca de abajo, donde van los pasos: el papel rojo termina justo encima */
  --steps: 122px;
}
/* Papel rojo rasgado de fondo en los ~2/3 de arriba; el borde rasgado queda al pie, justo antes de los pasos */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(100% - var(--steps));
  background: url(/images/hero-paper-900.webp) bottom center / cover no-repeat;
  pointer-events: none;
}
/* Sobre el rojo, los textos van en claro */
.hero .hero-title { color: #fff; }
.hero .hero-title em { color: #e8e4de; }
.hero .hero-sub { color: rgba(255, 255, 255, 0.88); }
.hero .try { color: rgba(255, 255, 255, 0.88); }
.hero .pill { background: rgba(226, 241, 229, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .pill:hover { background: rgba(212, 234, 218, 0.92); }
/* Cómo funciona: tres pictogramas con el sobre rojo y su verbo, unidos por una línea discontinua */
.how { --ico: 72px; --gap: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); width: 100%; max-width: 640px; margin: 18px 0 0; padding: 14px 12px 12px; list-style: none; background: var(--surface); border-radius: 18px; }
.how li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.how li + li::before { content: ""; position: absolute; top: calc(var(--ico) / 2); right: calc(50% + var(--ico) / 2 + 8px); width: calc(100% + var(--gap) - var(--ico) - 16px); border-top: 2px dashed rgba(24, 24, 26, 0.22); }
.how-ico { display: block; width: var(--ico); height: var(--ico); object-fit: contain; }
.how-label { font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 12px; font-size: 12.5px; text-wrap: balance; font-weight: 500; color: var(--green); background: var(--green-soft); border-radius: 999px; transition: background 0.15s; }
.pill:hover { background: #d4eada; }
.pill-dot { position: relative; flex: none; width: 7px; height: 7px; background: var(--green-dot); border-radius: 50%; }
.pill .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.pill:hover .icon { transform: translateX(2px); }
.public .hero-title { margin: 0; font-weight: 900; letter-spacing: -0.02em; font-size: clamp(44px, 14vw, 80px); line-height: 0.95; white-space: nowrap; }
.hero-title .word { display: inline-block; }
.hero-title em { font-family: var(--font-serif); font-size: 1.12em; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--muted); }
.hero-sub { margin: -4px 0 6px; font-family: var(--font-display); font-size: clamp(18px, 4.8vw, 26px); font-weight: 400; line-height: 1.25; color: var(--muted); }

/* Buscador (portada y página de resultado) */
.search { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 560px; padding: 5px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(24, 24, 26, 0.07); transition: border-color 0.15s, box-shadow 0.15s; }
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft), 0 10px 30px rgba(24, 24, 26, 0.07); }
.search input { flex: 1; min-width: 0; height: 44px; padding-left: 40px; font-size: 16px; background-color: transparent; background-position: 14px center; border: 0; }
.search input:focus { box-shadow: none; }
.search .btn { flex: none; height: 44px; padding: 0 20px; }
.search-sm { max-width: 440px; box-shadow: none; }
.search-sm input, .search-sm .btn { height: 36px; }
.try { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.try .icon { width: 16px; height: 16px; }

/* Módulos blancos sobre el lienzo */
.module { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.module-pad { padding: 24px 20px; }
.tint { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.tint .icon { width: 20px; height: 20px; }
.tint-mint { color: var(--mint); background: var(--mint-soft); }
.tint-sun { color: var(--sun); background: var(--sun-soft); }
.tint-lilac { color: var(--lilac); background: var(--lilac-soft); }
.tint-peach { color: var(--peach); background: var(--peach-soft); }
.tint-red { color: var(--red-dark); background: var(--red-soft); }

.section-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 64px 16px 0; scroll-margin-top: 24px; }
.section-wrap:last-child { padding-bottom: 64px; }
.section-head { max-width: 920px; margin-bottom: 28px; }
.section-head h1, .section-head h2, .contact-text h2 { margin: 0 0 12px; font-size: clamp(32px, 7.4vw, 56px); line-height: 1.05; }
.section-head p, .contact-text p { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
/* Tarjetas de «Qué es»: tres columnas altas con icono arriba, una pieza de interfaz en medio y el texto abajo */
.features { display: grid; gap: 12px; }
.fcard { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 24px; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fcard-logo .icon { display: block; width: 40px; height: 40px; stroke-width: 1.6; }
.fcard-art { flex: 1; display: flex; align-items: center; min-width: 0; margin: 28px -24px 28px 0; }
.fcard-text h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; }
.fcard-text p { max-width: 36ch; margin: 0; font-size: 15.5px; line-height: 1.55; }
.fcard-logo { color: var(--red); }
.fcard-text p { color: color-mix(in srgb, var(--ink) 62%, transparent); }
/* Piezas de interfaz (decorativas): se cortan por la derecha con un fundido, como si siguieran fuera de la tarjeta */
.art-code { width: 100%; padding: 20px 22px; font-size: 15px; line-height: 2; white-space: nowrap; background: var(--canvas); border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 98%); mask-image: linear-gradient(90deg, #000 62%, transparent 98%); }
.art-code p { margin: 0; }
.art-code-head { margin-bottom: 10px !important; font-weight: 500; }
.art-code-head span { color: var(--muted); }
.art-check { color: var(--red); }
.art-check { display: inline-block; width: 1.4em; }
.art-stack { width: calc(100% - 24px); }
.art-stack-wide { width: 100%; }
.art-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 10px 14px; font-size: 15px; background: var(--canvas); border-radius: 999px; }
.art-pill span { margin-right: 10px; }
.art-pill .icon { width: 18px; height: 18px; }
.art-list, .art-menu { margin: 0; padding: 6px; list-style: none; border-radius: 14px; }
.art-list { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(24, 24, 26, 0.08); }
.art-list li, .art-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 14.5px; line-height: 1.2; white-space: nowrap; border-radius: 9px; }
.art-list li span { overflow: hidden; text-overflow: ellipsis; }
.art-list li.on { background: #f1f0ee; }
.art-list .icon, .art-menu .icon { flex: none; width: 18px; height: 18px; }
.art-list em { margin-left: auto; font-style: normal; color: var(--muted); }
.art-toggle { position: relative; flex: none; width: 30px; height: 18px; margin-left: auto; background: var(--red); border-radius: 999px; }
.art-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; background: #fff; border-radius: 50%; }
.art-input { display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 18px; font-size: 15px; color: var(--muted); white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; box-shadow: 0 6px 18px rgba(24, 24, 26, 0.06); -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.art-input .icon { width: 18px; height: 18px; color: var(--ink); }
.art-menu { position: relative; width: min(78%, 250px); margin: -4px 0 0 6px; color: #fff; background: #1c1c1e; box-shadow: 0 16px 36px rgba(24, 24, 26, 0.28); }
.art-menu li.on { background: var(--red); }
.art-menu .art-sep { height: 1px; margin: 6px -6px; padding: 0; background: rgba(255, 255, 255, 0.12); border-radius: 0; }
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--canvas) radial-gradient(#dad7d0 1px, transparent 1.3px) 0 0 / 18px 18px; border-radius: 16px; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Contacto */
.contact { display: grid; gap: 24px; padding: 24px 20px; color: #fff; background: #111113; border-color: transparent; }
.contact .contact-text p { color: rgba(255, 255, 255, 0.66); }
.contact .tint-red { color: #fff; background: var(--red); }
.contact label { color: rgba(255, 255, 255, 0.86); }
.contact input, .contact textarea { color: #fff; background: #1d1d20; border-color: #34343a; }
.contact input:focus, .contact textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 32, 27, 0.35); }
.contact .form-note { color: rgba(255, 255, 255, 0.55); }
.contact-text .tint + h2 { margin-top: 16px; }
.contact-row { display: grid; gap: 16px 12px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { padding: 40px 16px; text-align: center; background: #1d1d20; border-radius: 20px; }
.contact-done .muted { color: rgba(255, 255, 255, 0.66); }
.contact-check { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; color: #fff; background: var(--red); border-radius: 50%; }
.contact-check .icon { width: 22px; height: 22px; stroke-width: 2.25; }
.contact-done h3 { margin: 0 0 4px; font-size: 19px; }
.contact-done p { margin: 0; }

/* Solicitar acceso (también es la página de resultado del buscador) */
.access { display: grid; gap: 28px; max-width: 1040px; margin: 4px auto 0; }
/* Resultado de la búsqueda: bloque lima suave con un check y el número */
.match { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; padding: 20px; background: var(--lime-soft); border-radius: 20px; }
.match-check { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 1px; color: #fff; background: var(--green-dot); border-radius: 50%; }
.match-check .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.match h1 { margin: 0; font-size: clamp(22px, 5vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.match-n { display: inline-block; font-weight: 900; color: var(--red); }
.match p { margin: 6px 0 0; color: var(--muted); }
.access-grid { display: grid; gap: 28px; grid-template-areas: "main" "form"; padding: 24px 20px; }
.access-main { grid-area: main; min-width: 0; }
.access-why h1 { margin: 0 0 20px; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.1; }
.access-why h2 { margin: 0 0 20px; font-size: clamp(22px, 5vw, 28px); line-height: 1.15; }
.why { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.why li { display: flex; align-items: flex-start; gap: 14px; }
.why h3 { margin: 1px 0 2px; font-size: 17px; }
.why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.access-form { grid-area: form; padding-top: 28px; border-top: 1px solid var(--line); }

/* Sobre nosotros */
.about { padding-top: 16px; }
.about-head p { max-width: 60ch; }
.about-media { padding: 10px; }
.about-media .media { aspect-ratio: 16 / 10; }
.about-row { display: grid; gap: 16px; padding: 44px 0; }
.about-row + .about-row { border-top: 1px solid var(--line); }
.about-row h2 { margin: 0; font-size: 22px; }
.about-row p { max-width: 62ch; font-size: 17px; line-height: 1.65; }
.about-row p:last-of-type { margin-bottom: 0; }
.about-stats { display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 32px 0 0; }
.about-stats dt { font-size: 13px; color: var(--muted); }
.about-stats dd { margin: 2px 0 0; font: 900 44px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 16px; border-top: 1px solid var(--ink); }
.step-num { display: block; margin-bottom: 24px; font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--red); }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 48px; padding: 28px 24px; }
.cta h2 { margin: 0; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; }

/* Pie: sin fondo, del mismo ancho que las secciones; claim y botones centrados */
.site-footer {
  --f-ink: var(--ink);
  --f-muted: var(--muted);
  --f-line: #dad7d0;
  width: calc(100% - 32px);
  max-width: 1072px;
  margin: 56px auto 16px;
  padding: 40px 0 20px;
  color: var(--f-muted);
}
.home + .site-footer { margin-top: 0; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 56px; text-align: center; }
/* Mismo tamaño y peso que los titulares de sección («Hablemos.») */
.footer-claim { margin: 0; font: 700 clamp(32px, 7.4vw, 56px)/1.05 var(--font-display); letter-spacing: -0.01em; color: var(--f-ink); text-wrap: balance; }
.footer-claim span { display: block; }
.footer-claim span + span { color: var(--f-muted); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.btn-ghost { color: var(--f-ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { background: var(--hover); }
.btn-ghost .icon { width: 18px; height: 18px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 44px; }
.public .footer-cols h2 { margin: 0 0 14px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--f-ink); }
.footer-cols ul { display: grid; gap: 11px; margin: 0; padding: 0; font-size: 15px; list-style: none; }
.footer-cols a { transition: color 0.15s; }
.footer-cols a:hover { color: var(--f-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 14px; border-top: 1px solid var(--f-line); }
.footer-bottom p { display: flex; align-items: center; gap: 12px; margin: 0; }
.footer-bottom .brand { font-size: 16px; color: var(--f-ink); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { transition: color 0.15s; }
.footer-legal a:hover { color: var(--f-ink); }

/* Nota de privacidad bajo los formularios públicos (contacto y solicitar acceso) */
.form-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form-note .link { color: inherit; }

/* Política de privacidad y aviso legal: una columna de lectura */
.legal { width: 100%; max-width: 720px; margin: 0 auto; padding-top: 16px; }
.legal-head { margin-bottom: 32px; }
.legal-head h1 { margin: 0 0 8px; font-size: clamp(32px, 7.4vw, 48px); line-height: 1.05; }
.legal-head .muted { margin: 0 0 20px; font-size: 14px; }
.legal-intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.legal-owner { margin-bottom: 40px; padding: 20px 24px; }
.legal-owner h2 { margin: 0 0 12px; font-size: 18px; }
.legal-owner dl { display: grid; gap: 8px; margin: 0; }
.legal-owner dl div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 12px; }
.legal-owner dt { color: var(--muted); }
.legal-owner dd { margin: 0; overflow-wrap: anywhere; }
.legal-section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.legal-section p { max-width: 68ch; margin: 0 0 10px; line-height: 1.6; }
.legal-section p:last-child { margin-bottom: 0; }

/* Selector de idioma (cabecera, zona de usuarios y pie) */
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color 0.15s, background 0.15s; }
.lang-btn:hover, .lang[open] .lang-btn { color: var(--ink); background: var(--hover); }
.lang-btn .icon:last-child { width: 14px; height: 14px; }
.lang-menu { width: 190px; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; }
.lang-menu [aria-current] { font-weight: 600; }
.lang-menu .icon { color: var(--red); }
.site-actions .lang { display: none; }
.header .lang ~ .dropdown { margin-left: 0; }
.lang-up .lang-btn { height: 40px; padding: 0 14px; color: var(--f-ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lang-up .lang-btn:hover, .lang-up[open] .lang-btn { color: var(--f-ink); background: var(--hover); }
.lang-up .dropdown-panel { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.menu-langs { display: flex; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.menu .menu-langs a { flex: 1; padding: 7px 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.menu .menu-langs [aria-current] { color: var(--ink); background: var(--hover); }

@media (min-width: 480px) {
  .pill { gap: 9px; padding: 8px 12px 8px 16px; font-size: 14px; }
  .pill-dot { width: 8px; height: 8px; }
}

@media (min-width: 640px) {
  .hero::before { background-image: url(/images/hero-paper-1600.webp); }
  /* Botón verde arriba a la derecha de la cabecera */
  .hero .pill { position: absolute; top: 18px; right: 18px; }
  .hero { padding-top: 68px; }
  .module-pad { padding: 28px; }
  .contact-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-media { padding: 16px; }
  .site-actions .lang { display: block; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .site-header-in { gap: 36px; height: 76px; padding: 0 24px; }
  .site-header .brand { font-size: 20px; }
  .site-nav { display: flex; gap: 2px; }
  .site-login { display: inline-block; }
  .site-menu { display: none; }
  .hero { --steps: 118px; gap: 16px; width: calc(100% - 48px); max-width: 1072px; margin-top: 8px; padding: 80px 24px 16px; border-radius: 40px; }
  .hero .pill { top: 22px; right: 22px; }
  .public .hero-title { font-size: 80px; }
  .how { --ico: 84px; --gap: 40px; max-width: 680px; margin-top: 40px; padding: 8px 32px 4px; border-radius: 22px; }
  .how-label { font-size: 15px; }
  .search { padding: 6px; }
  .search input, .search .btn { height: 48px; }
  .search .btn { padding: 0 26px; font-size: 16px; }
  .search-sm input, .search-sm .btn { height: 38px; }
  .search-sm .btn { padding: 0 18px; font-size: 15px; }
  .module { border-radius: 32px; }
  .section-wrap { padding: 112px 24px 0; }
  .section-wrap:last-child { padding-bottom: 112px; }
  .section-head { margin-bottom: 48px; }
  .section-head p, .contact-text p { font-size: 18px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .fcard { min-height: 480px; padding: 32px; }
  .fcard-art { margin-right: -32px; }
  .media { border-radius: 20px; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: start; padding: 48px; }
  .access { gap: 40px; margin-top: 24px; }
  .match { padding: 24px; margin-bottom: 36px; }
  .access-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: "main form"; gap: 56px; align-items: start; padding: 48px; }
  .access-form { padding-top: 0; border-top: 0; }
  .about { padding-top: 48px; }
  .about-media .media { aspect-ratio: 21 / 9; }
  .about-row { grid-template-columns: 260px minmax(0, 1fr); gap: 20px 48px; padding: 64px 0; }
  .cta { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 64px; padding: 40px 48px; }
  .site-footer { width: calc(100% - 48px); padding: 64px 0 28px; }
  .footer-top { gap: 32px; padding-bottom: 88px; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 64px; }
}

@media (min-width: 1600px) {
  .public .hero-title { font-size: 88px; }
}

/* Movimiento: entradas suaves al cargar y al hacer scroll. Nada se mueve si el sistema pide menos movimiento. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.4em) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: 0.55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--ease-out) both; }
  .hero .pill { animation-delay: 0.05s; }
  .hero-title .word { animation: word-in 0.8s var(--ease-out) 0.15s both; }
  .hero-title .word-2 { animation-delay: 0.42s; }
  .hero-sub { animation-delay: 0.6s; }
  .hero .search { animation-delay: 0.7s; }
  .hero .try { animation-delay: 0.8s; }
  .hero .how { animation-delay: 0.9s; }
  /* Las tres ilustraciones aparecen una detrás de otra */
  .how-ico { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .how li:nth-child(1) .how-ico { animation-delay: 1s; }
  .how li:nth-child(2) .how-ico { animation-delay: 1.25s; }
  .how li:nth-child(3) .how-ico { animation-delay: 1.5s; }
  .match-n { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.35s both; }
  .pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-dot); animation: ping 2.4s var(--ease-out) 1.2s infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* =========================================================
   Panel de administración (body.admin): menú lateral blanco, barra superior y tarjetas.
   Solo afecta al admin; la web pública y la zona de usuarios no cambian.
   ========================================================= */
.admin {
  --green: #1d6b38;
  --green-soft: #e2f1e5;
  --panel-radius: 18px;
}

/* Menú lateral */
.admin .sidebar { gap: 24px; width: 248px; padding: 20px 14px 16px; background: var(--surface); }
.admin .sidebar .brand { padding: 0 8px; font-size: 19px; }
.side-label { margin: 20px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9d9b96; }
.side-label:first-child { margin-top: 0; }
.admin .side-nav a { padding: 9px 10px; border-radius: 10px; }
.admin .side-nav a[aria-current="page"] { color: var(--ink); background: var(--hover); box-shadow: none; }
.admin .count { padding: 0 7px; border-radius: 999px; }
.side-card { padding: 16px; text-align: center; background: var(--canvas); border-radius: 16px; }
.side-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.side-card strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
.side-card .btn-block { margin-top: 0; height: 40px; border-radius: 12px; }
.btn-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #2e2e31; border-color: #2e2e31; }

/* Barra superior: buscador (⌘K), avisos y cuenta */
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 6px; height: 68px; padding: 0 32px; background: rgba(244, 243, 240, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.topbar-search { position: relative; width: min(340px, 100%); margin-right: auto; }
.topbar-search input { height: 40px; padding-right: 56px; border-radius: 12px; }
.kbd { position: absolute; top: 50%; right: 10px; padding: 1px 6px; font-family: inherit; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--hover); border-radius: 6px; transform: translateY(-50%); pointer-events: none; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); border-radius: 12px; }
.icon-btn:hover, .bell[open] .icon-btn { color: var(--ink); background: var(--hover); }
.icon-btn .icon { width: 19px; height: 19px; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--red); border: 2px solid var(--canvas); border-radius: 50%; }
.bell .menu a { display: flex; align-items: center; gap: 10px; }
.bell .menu .icon { color: var(--muted); }
.menu-n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.menu-n.on { padding: 0 7px; line-height: 18px; color: #fff; background: var(--red); border-radius: 999px; }
.topbar .account > summary { padding: 4px 8px 4px 4px; border-radius: 12px; }
.topbar .account > summary:hover, .topbar .account[open] > summary { background: var(--hover); }
.topbar .account-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.topbar .account-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.topbar .account > summary > .icon { color: var(--muted); }
.admin .content { width: 100%; max-width: 1280px; padding: 8px 32px 64px; }

/* Cabeceras, tarjetas, tablas y botones del panel */
.admin h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.admin .page-head { margin-bottom: 24px; }
.admin .box, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--panel-radius); }
.admin .btn { border-radius: 10px; }
.admin .btn-lg { border-radius: 12px; }
.admin .flash { border-radius: 12px; }
.admin thead th { background: #faf9f7; }
.admin .dropdown-panel { border-radius: 16px; }
.admin .badge { border-radius: 999px; padding: 1px 10px; }

/* Inicio del panel */
.panel { min-width: 0; padding: 22px 24px; }
.panel h2 { margin: 0; font-size: 16px; font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.panel-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--red); }
.panel-link .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.panel-link:hover .icon { transform: translateX(2px); }
.dash-row { display: grid; gap: 16px; margin-bottom: 16px; }
.dash-row-end { align-items: start; }

/* Cifras: icono en círculo, número grande y «Ver detalles», separadas por líneas verticales */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.kpi { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 8px; text-align: center; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.kpi-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--ink); background: var(--canvas); border-radius: 50%; }
.kpi-alert .kpi-ico { color: var(--red); background: var(--red-soft); }
.kpi-value { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); transition: color 0.15s; }
.kpi-more .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.kpi:hover .kpi-more { color: var(--red); }
.kpi:hover .kpi-more .icon { transform: translateX(2px); }

/* Mapa: países con productos en rojo suave y un marcador en cada uno (más grande cuantos más productos) */
.panel-map { display: flex; flex-direction: column; }
.panel-map .world { flex: 1; margin: auto 0; }
.panel-note { font-size: 13px; color: var(--muted); }
.admin .world path { fill: #ebe8e2; stroke: var(--surface); stroke-width: 0.6; }
.admin .world path:hover { fill: #dedad3; }
.admin .world path.has { fill: #f8d3cf; }
.admin .world path.has:hover { fill: #f3bdb7; }
.pin-dot { fill: var(--red); stroke: var(--surface); stroke-width: 2.5; }
.pin-halo { fill: var(--red); opacity: 0.14; }
.pin circle { transform-box: fill-box; transform-origin: center; transition: transform 0.15s var(--ease-out, ease); }
.pin:hover circle, .pin:focus-visible circle { transform: scale(1.3); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { stroke: var(--ink); }

/* Barras horizontales: los nombres de país se leen enteros */
.bars { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bars a { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) 36px; align-items: center; gap: 12px; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; }
.bars a:hover { background: #faf9f7; }
.bar-label { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; }
.bar { display: block; height: 100%; min-width: 4px; background: var(--red); border-radius: 0 4px 4px 0; }
.bar-value { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Por revisar: una tarjeta por bandeja */
.dash-section { margin: 32px 0 16px; }
.dash-section > h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.todo-card { display: flex; flex-direction: column; padding: 20px 22px; }
.todo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.status { padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 20px; color: var(--green); background: var(--green-soft); border-radius: 999px; white-space: nowrap; }
.status-on { color: var(--red-dark); background: var(--red-soft); }
.todo-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.todo-line { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.todo-meta { margin: 6px 0 0; font-size: 13px; color: #9d9b96; }
.todo-link { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--red); }
.todo-link .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.todo-link:hover .icon { transform: translateX(2px); }

/* Lo más buscado (tarjeta rosa) y últimos accesos */
.tip { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(120deg, #fdeceb 0%, var(--surface) 75%); border-color: #f5d6d2; }
.tip h2 { margin: 11px 0 0; }
.tip p { margin: 6px 0 0; font-size: 14px; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.terms a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; font-size: 14px; font-weight: 500; background: var(--surface); border: 1px solid #f1d3cf; border-radius: 999px; transition: border-color 0.15s; }
.terms a:hover { border-color: var(--red); }
.terms span { min-width: 22px; padding: 0 6px; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; color: var(--red-dark); background: var(--red-soft); border-radius: 999px; }
.admin .logins li { gap: 12px; }
.admin .logins li > span:not(.avatar) { flex: 1; }
.avatar-sm { width: 32px; height: 32px; font-size: 11px; background: #3a3a3e; }

@media (min-width: 1100px) {
  .dash-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .admin .side-label, .side-card { display: none; }
  .admin .sidebar { gap: 8px; width: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .main-col { min-height: 0; }
  .topbar { height: 60px; padding: 0 16px; }
  .kbd, .topbar .account-name, .topbar .account > summary > .icon { display: none; }
  .topbar .account > summary { padding: 4px; }
  .admin .content { padding: 4px 16px 48px; }
  .admin h1 { font-size: 24px; }
}

@media (max-width: 560px) {
  .panel { padding: 18px 16px; }
  .kpi-label { flex-direction: column; gap: 6px; font-size: 13px; }
  .kpi-value { font-size: 26px; }
}

/* =========================================================
   Comparador (/comparar): dos productos lado a lado
   ========================================================= */
.cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 20px; padding: 20px; }
.cmp-pick label { margin-top: 0; }
.cmp-swap { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--muted); }
.cmp-swap .icon { width: 18px; height: 18px; }
.cmp-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--red); background: var(--red-soft); border-radius: 12px; }
.tile .icon { width: 20px; height: 20px; }

.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 4px; font-size: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-ui { position: relative; flex: none; width: 36px; height: 20px; background: #d6d3cc; border-radius: 999px; transition: background 0.15s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch input:checked + .switch-ui { background: var(--red); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--red); outline-offset: 2px; }
/* «Solo diferencias»: oculta filas, listas y secciones iguales */
.cmp:has(#only-diff:checked) .same { display: none; }

/* Nombres fijos arriba al hacer scroll, alineados con las columnas de las secciones */
.cmp-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: minmax(140px, 22%) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 14px 25px; background: var(--canvas); }
.cmp-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cmp-name:hover { text-decoration: underline; }
.cmp-prod .badges { margin-top: 8px; }
.cmp-group { padding: 4px 24px 8px; }
.cmp-group + .cmp-group { margin-top: 12px; }
.cmp-group h2 { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-size: 17px; }
.cmp-group h2 .icon { width: 19px; height: 19px; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: minmax(140px, 22%) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.cmp-label { position: relative; font-size: 13px; font-weight: 500; color: var(--muted); }
/* Las filas que difieren llevan un punto: solo dice «aquí hay diferencia», no cuál es mejor */
.cmp-row:not(.same):not(.cmp-list-head) > .cmp-label::before { content: ""; position: absolute; top: 6px; left: -14px; width: 6px; height: 6px; background: #5a43a6; border-radius: 50%; }
.cmp-val { min-width: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.cmp-text { white-space: pre-wrap; }
.cmp-val.empty { color: #aaa8a2; }
.cmp-val .badge { margin-bottom: 4px; }
.clamp { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.cmp-val:has(.more[open]) .clamp { display: block; -webkit-line-clamp: unset; }
.more summary { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--red); list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.cmp-list-head { grid-template-columns: 1fr; padding-bottom: 4px; }
.cmp-list-head .cmp-label { color: var(--ink); }
.cmp-sub { padding: 6px 0; border-top: 1px dashed var(--line); }
.cmp-sub .cmp-label { padding-left: 12px; font-weight: 400; color: var(--ink); }
.cmp-sub .cmp-val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Sobre los datos (/datos) */
.data-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.data-stats > .box { margin: 0; }
.data-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.data-stat span { font-size: 13px; color: var(--muted); }
.data-stat strong { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.data-stat .data-date { font-size: 20px; }
.data-block h2 { margin-bottom: 20px; font-size: 18px; }
.data-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px 48px; }
.data-legend h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.data-legend dl { display: grid; gap: 10px; margin: 0; }
.data-legend dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.data-legend dd { margin: 0; font-size: 14px; line-height: 1.5; }
.data-nodata { font-size: 13px; color: #aaa8a2; }
.data-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.data-steps .step-num { display: block; margin-bottom: 12px; font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--red); }
.data-steps h3 { margin: 0 0 6px; font-size: 16px; }
.data-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.data-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.data-cta h2 { margin: 0; font-size: 18px; }

/* Panel: lo más comparado */
.pairs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pairs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.pairs li:first-child { padding-top: 0; border-top: 0; }
.pairs a { font-weight: 500; }
.pairs a:hover { text-decoration: underline; }
.vs { margin: 0 6px; font-size: 12px; color: #9d9b96; }
.pair-n { flex: none; min-width: 26px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; color: var(--red-dark); background: var(--red-soft); border-radius: 999px; }
@media (min-width: 1100px) {
  .dash-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cmp-pick { grid-template-columns: 1fr; }
  .cmp-swap { justify-self: center; transform: rotate(90deg); }
  .cmp-head { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 17px; }
  .cmp-head > span:first-child { display: none; }
  .cmp-name { font-size: 15px; }
  .cmp-group { padding: 2px 16px 6px; }
  .cmp-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .cmp-label { grid-column: 1 / -1; padding-left: 12px; }
  .cmp-row:not(.same):not(.cmp-list-head) > .cmp-label::before { left: 0; }
  .cmp-sub .cmp-label { padding-left: 12px; }
  .data-legend dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Iniciar sesión: página suelta en blanco, solo logo (izquierda) e idioma (derecha) */
.bare { background: var(--surface); }
.bare-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 16px; }
.bare-header .brand { font-size: 19px; }
.bare-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 15vh; }
.auth { width: 100%; max-width: 360px; }
.auth h1 { margin: 0 0 32px; font-size: clamp(28px, 7vw, 36px); line-height: 1.1; text-align: center; }
.auth label { margin: 18px 0 8px 18px; font-size: 14px; color: var(--muted); }
.auth form > label:first-of-type { margin-top: 0; }
.auth input { height: 48px; padding: 0 18px; font-size: 16px; border-radius: 999px; }
.auth .btn-block { height: 48px; margin-top: 24px; font-size: 16px; }
.auth .flash { margin-bottom: 20px; text-align: center; border-radius: 16px; }
.auth-alt { margin: 28px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.auth-alt .link { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  .bare-header { height: 76px; padding: 0 32px; }
}

/* Campos de formulario: ver/ocultar contraseña, ayuda, error y válido (solicitar acceso y login) */
.field + .field { margin-top: 16px; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 999px; transform: translateY(-50%); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--hover); }
.pw-toggle .icon { width: 18px; height: 18px; }
.pw-toggle .icon + .icon, .pw-toggle[aria-pressed="true"] .icon:first-child { display: none; }
.pw-toggle[aria-pressed="true"] .icon + .icon { display: block; }
.field-hint, .field-error { margin: 6px 0 0; font-size: 13px; line-height: 1.4; }
.field-hint { color: var(--muted); }
.field-error { color: var(--red-dark); }
.field-error:not([hidden]) ~ .field-hint, .field-hint:has(~ .field-error:not([hidden])) { display: none; }
input[aria-invalid="true"] { border-color: var(--red); }
input.is-valid:not(:focus) { border-color: #9fcfae; }
.secure { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--green); background: var(--green-soft); border-radius: 12px; }
.secure .icon { width: 16px; height: 16px; margin-top: 1px; }
.secure strong { font-weight: 600; }
.auth .pw-toggle { right: 8px; }

/* Catálogo: vista de mapa (un marcador por país) y, debajo, los productos de cada país */
.map-box { padding: 16px; }
.map-view .world path.has { fill: #f8d3cf; }
.map-view .world path.has:hover { fill: #f3bdb7; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; gap: 12px; margin-top: 12px; }
.place { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: 16px; }
.place:target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.place h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 15px; }
.place-n { min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; color: var(--red-dark); background: var(--red-soft); border-radius: 999px; }
.place-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.place ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.place li a { font-weight: 500; }
.place li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* RUTFeed: aviso de «próximamente» (usuarios y admin) */
.feed-soon { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 48px auto; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.feed-soon h1 { margin: 0; }
.feed-soon p { margin: 0; color: var(--muted); line-height: 1.6; }
.feed-ico { display: grid; place-items: center; width: 48px; height: 48px; color: var(--red); background: var(--red-soft); border-radius: 14px; }
.feed-ico .icon { width: 24px; height: 24px; }
.feed-badge { padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 20px; color: #1d6b38; background: #e2f1e5; border-radius: 999px; }
