/* Portada LupaWeb: una columna, lista de herramientas como fichas enlazadas.
   Petróleo profundo como acento, neutros con sesgo verdoso. */
:root {
  --bg: #F3F5F5; --surface: #FFFFFF; --ink: #142224; --muted: #586A6C; --line: #D6DEDF;
  --accent: #1F4E5F; --accent-soft: #E1ECEF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1718; --surface: #172224; --ink: #E6EEEF; --muted: #9AACAE; --line: #2A3A3C;
    --accent: #8CC4D6; --accent-soft: #1E3439; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1718; --surface: #172224; --ink: #E6EEEF; --muted: #9AACAE; --line: #2A3A3C;
  --accent: #8CC4D6; --accent-soft: #1E3439; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 860px; margin-inline: auto; padding-inline: 16px; }
h1, h2 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }

.hero { padding-block: 2.6rem 1.8rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; }
.hero p { margin-top: .7rem; color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

h2 { font-size: 1.25rem; }
.tools { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .8rem; }
.tool {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.tool:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-icon { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tool-icon svg { width: 1.8rem; height: 1.8rem; }
.tool-body { display: grid; gap: .15rem; min-width: 0; }
.tool-tag { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tool-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.tool-desc { color: var(--muted); font-size: .95rem; }
.tool-go { font-size: 1.4rem; color: var(--accent); }
.soon { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

.foot { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.3rem; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; gap: 1rem; }
.foot a { color: var(--muted); }
/* Páginas legales */
.legal { max-width: 760px; padding-block: 2.2rem 1rem; }
.legal h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.legal .updated { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal p, .legal ul, .legal dl, .legal .table-wrap { margin-top: .7rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal .data { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.legal .data dt { color: var(--muted); font-weight: 600; }
.legal .data dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 539px) { .legal .data { grid-template-columns: 1fr; } .legal .data dd { margin-bottom: .4rem; } }

@media (prefers-reduced-motion: reduce) { .tool { transition: none; } }
