/* ============================================================
   MiFlota — styles.css
   Índice:
   1. Fuentes y variables
   2. Reset
   3. Utilidades y layout base
   4. Header / nav
   5. Hero + tool card
   6. Formularios
   7. Dashboard (indicadores)
   8. Historial
   9. Tabs / vehículo
   10. Ad slots
   11. Contenido SEO / artículos / FAQ
   12. Footer
   13. Componentes varios (badges, botones, modal, toast)
   14. Responsive breakpoints
   15. Accesibilidad / reduced motion
   ============================================================ */

/* 1. Fuentes y variables ------------------------------------ */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #dde2e8;
  --text: #171b21;
  --text-muted: #5b6472;
  --accent: #2456e8;
  --accent-ink: #12235f;
  --accent-soft: #e8edfd;
  /* Relleno de botones primarios: en modo claro es el mismo --accent, pero en
     modo oscuro --accent se aclara (para servir de texto/ícono legible sobre
     fondos oscuros) y ya no da suficiente contraste con texto blanco encima,
     así que el botón usa este tono aparte, fijo y probado (5.9:1 con blanco). */
  --btn-primary-bg: var(--accent);

  /* Colores de estado: oscurecidos respecto a la versión anterior para que el
     texto/ícono cumpla contraste AA (4.5:1) sobre su fondo "-soft" claro. */
  --ok: #166534;
  --ok-soft: #e6f6ec;
  --warn: #92400e;
  --warn-soft: #fdf1e0;
  --danger: #b91c1c;
  --danger-soft: #fbe6e6;
  --neutral: #4b5563;
  --neutral-soft: #eceef1;

  --display: "Manrope", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --gutter: 1.25rem;
  --maxw: 1120px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1e222a;
    --border: #2b303a;
    --text: #eef1f5;
    --text-muted: #a3abb8;
    --accent: #6c8dff;
    --accent-ink: #dbe4ff;
    --accent-soft: #1b2340;
    /* En modo oscuro los fondos "-soft" son oscuros, así que el texto de estado
       necesita ser claro (no el mismo tono oscuro que se usa en modo claro). */
    --ok: #4ade80;
    --ok-soft: #10281a;
    --warn: #fbbf24;
    --warn-soft: #2c2007;
    --danger: #f87171;
    --danger-soft: #2c1414;
    --neutral: #9ca3af;
    --neutral-soft: #23262d;
    --btn-primary-bg: #2456e8;
  }
}

/* 2. Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
ul, ol { padding-left: 1.2em; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
input, select, textarea {
  font: inherit; color: inherit; width: 100%;
  padding: 0.65rem 0.8rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* 3. Utilidades / layout -------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.only-mobile { display: block; }
.only-desktop { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.section { padding-block: 2.5rem; }
.section-narrow { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-muted); }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field-row { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }

/* 4. Header / nav ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; font-weight: 600; }
/* :not(.btn) es la corrección clave: antes ".main-nav a" (clase+etiqueta) le ganaba
   en especificidad a ".btn-primary" (una sola clase) y dejaba el botón "Abrir mi
   panel" con texto gris apagado sobre fondo azul — casi ilegible. */
.main-nav a:not(.btn) { color: var(--text-muted); }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"]:not(.btn) { color: var(--text); }
.main-nav .btn { font-weight: 700; }

/* 5. Hero + tool card ----------------------------------------- */
.hero { padding-block: 2.4rem 1.2rem; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.hero p.lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 0.5rem; max-width: 46ch; }

.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem;
  box-shadow: 0 1px 2px rgba(20, 24, 33, 0.04), 0 10px 30px -18px rgba(20, 24, 33, 0.18);
}
.privacy-badge {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.88rem; color: var(--text-muted);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; margin-top: 1rem;
}
.privacy-badge svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }

/* 6. Formularios ------------------------------------------------ */
.form-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 400; }
fieldset { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 0.9rem; }
legend { font-family: var(--display); font-weight: 800; padding-inline: 0.3rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out), box-shadow .15s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--btn-primary-bg); color: #fff; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--btn-primary-bg) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-primary-bg) 85%, black); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger-soft), var(--danger) 18%); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
/* Sin esto, un <svg> de ícono sin width/height propios (como los de ICONS en
   main.js) puede caer al tamaño por defecto del navegador (~300x150px) en
   vez de ajustarse al texto del botón — más notorio en .btn-block, donde el
   botón ocupa todo el ancho disponible. */
.btn svg { width: 18px; height: 18px; flex: none; }

/* 7. Dashboard ---------------------------------------------- */
.status-banner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.1rem;
  font-weight: 700; border: 1px solid var(--border);
}
.status-banner[data-status="ok"] { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.status-banner[data-status="proximo"] { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }
.status-banner[data-status="vencido"] { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.status-banner[data-status="sin-datos"] { background: var(--neutral-soft); color: var(--neutral); }
.status-banner svg { width: 22px; height: 22px; flex: none; }

.dash-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.dash-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem;
}
.dash-card .dash-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.dash-card .dash-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dash-card .dash-icon svg { width: 19px; height: 19px; }
.dash-title { font-family: var(--display); font-weight: 800; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 800;
  padding: 0.28rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.02em;
}
.chip[data-status="ok"] { background: var(--ok-soft); color: var(--ok); }
.chip[data-status="proximo"] { background: var(--warn-soft); color: var(--warn); }
.chip[data-status="vencido"] { background: var(--danger-soft); color: var(--danger); }
.chip[data-status="sin-datos"] { background: var(--neutral-soft); color: var(--neutral); }
.dash-card[data-status="ok"] .dash-icon { background: var(--ok-soft); color: var(--ok); }
.dash-card[data-status="proximo"] .dash-icon { background: var(--warn-soft); color: var(--warn); }
.dash-card[data-status="vencido"] .dash-icon { background: var(--danger-soft); color: var(--danger); }
.dash-card[data-status="sin-datos"] .dash-icon { background: var(--neutral-soft); color: var(--neutral); }
.dash-meta { font-size: 0.88rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.15rem; }
.dash-meta b { color: var(--text); font-weight: 700; }
.dash-card .btn { align-self: flex-start; margin-top: 0.2rem; }

/* 7b. Identidad del vehículo (foto/ícono + patente + marca/modelo + apodo) */
.vehicle-identity { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.vehicle-identity-compact { margin-bottom: 0; flex: 1; min-width: 0; }
.vehicle-photo { flex: none; }
.vehicle-photo-img { border-radius: var(--radius-sm); object-fit: cover; }
.vehicle-photo-icon {
  display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-muted);
}
.vehicle-photo-icon svg { width: 55%; height: 55%; }
.vehicle-identity-text { min-width: 0; }
.vehicle-patente {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.04em;
  font-size: 1.05rem; line-height: 1.2;
}
.vehicle-identity-compact .vehicle-patente { font-size: 0.95rem; }
.vehicle-marca-modelo { color: var(--text-muted); font-size: 0.92rem; line-height: 1.3; }
.vehicle-identity:not(.vehicle-identity-compact) .vehicle-marca-modelo:first-child { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.vehicle-apodo { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* Selector de foto en el formulario de vehículo */
.photo-picker { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; grid-column: 1 / -1; }
.photo-picker .field-hint { flex-basis: 100%; margin-top: 0; }
.photo-preview { flex: none; border-radius: var(--radius-sm); overflow: hidden; }
.photo-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.km-quick {
  display: flex; align-items: center; gap: 0.6rem; background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin-top: 1rem; flex-wrap: wrap;
}
.km-quick input { max-width: 150px; }

/* 8. Historial ------------------------------------------------- */
.hist-list { display: flex; flex-direction: column; gap: 0.6rem; }
.hist-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.hist-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.hist-icon svg { width: 18px; height: 18px; color: var(--accent); }
.hist-body { flex: 1; min-width: 0; }
.hist-title { font-weight: 700; }
.hist-sub { font-size: 0.85rem; color: var(--text-muted); }
.hist-cost { font-weight: 800; white-space: nowrap; }
.hist-actions { display: flex; gap: 0.3rem; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  color: var(--text-muted); transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--text-muted); }
.empty-state svg { width: 46px; height: 46px; margin-inline: auto; margin-bottom: 0.7rem; color: var(--border); }

/* 9. Tabs / selector de vehículo -------------------------------- */
.tabs { display: flex; gap: 0.3rem; background: var(--surface-2); padding: 0.3rem; border-radius: 999px; margin-bottom: 1.2rem; }
.tabs button {
  flex: 1; padding: 0.55rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  color: var(--text-muted); transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.view { display: none; }
.view.is-active { display: block; animation: fadeIn 0.25s var(--ease-soft); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.vehicle-select-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.vehicle-select-row select { max-width: 260px; }

/* 10. Ad slots -------------------------------------------------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); margin-block: 1.6rem;
}
.ad-slot.ad-leaderboard { min-height: 100px; }
.ad-slot.ad-sidebar { min-height: 250px; }

/* 11. Contenido SEO / artículos / FAQ --------------------------- */
.article { padding-block: 2rem 3rem; }
.article header.article-head { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); margin-bottom: 1.4rem; }
.article .eyebrow { color: var(--accent); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0.4rem; }
.article .updated { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.prose { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { font-size: 1.3rem; margin-top: 0.6rem; }
.prose h3 { font-size: 1.08rem; }
.prose ul { display: flex; flex-direction: column; gap: 0.45rem; }
.prose li { padding-left: 0.2rem; }
.cta-box {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cta-box p { font-weight: 700; margin: 0; }
.cta-box .btn { flex: none; }

.related-tools { display: grid; gap: 0.8rem; grid-template-columns: 1fr; margin-top: 1rem; }
.related-tools a {
  display: block; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 700; transition: border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.related-tools a:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-tools span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }

.faq-list details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; margin-bottom: 0.6rem;
}
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 800; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 0.6rem; color: var(--text-muted); }

.how-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-block: 1.6rem; }
.how-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.how-step .num {
  width: 30px; height: 30px; border-radius: 999px; background: var(--btn-primary-bg); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.6rem;
}

.articles-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.article-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; transition: border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.article-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.article-card p { color: var(--text-muted); font-size: 0.9rem; }

/* 12. Footer ------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; margin-top: 3rem; color: var(--text-muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* 13. Componentes varios --------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 16, 0.5); display: none;
  align-items: flex-end; justify-content: center; z-index: 100; padding: 0;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.3rem 1.3rem 1.6rem;
  animation: slideUp 0.22s var(--ease-out);
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head h2 { font-size: 1.15rem; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); }

.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 8px);
  background: var(--text); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.category-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.category-picker button {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 0.6rem; background: var(--surface-2); border-radius: var(--radius-sm);
  font-weight: 700; text-align: center; transition: background .15s var(--ease-out), transform .15s var(--ease-out);
}
.category-picker button:hover { background: var(--accent-soft); transform: translateY(-1px); }
.category-picker svg { width: 26px; height: 26px; color: var(--accent); }

.wide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; }

/* 14. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: var(--radius-lg); }
}
@media (min-width: 960px) {
  .only-mobile { display: none; }
  .only-desktop { display: block; }
  .layout-with-rail { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
  .layout-with-rail .rail { position: sticky; top: 84px; }
}
@media (min-width: 1280px) {
  .hero h1 { font-size: 2.7rem; }
}

/* 15. Accesibilidad / reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* JS off: el data-state del tool-card sin JS no debe ocultar contenido */
.js-only { display: none; }
.is-ready .js-only { display: initial; }
.no-js-note { background: var(--warn-soft); color: var(--warn); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.is-ready .no-js-note { display: none; }
