/* Progressive enhancement: content remains available without JavaScript. */
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 5px; }
.nav :focus-visible, .hero :focus-visible { outline-color: #67e8f9; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 12px 18px; background: white; color: #0b1220; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.nav { position: fixed; z-index: 20; transition: background .25s, box-shadow .25s; }
.nav.is-scrolled { background: #0b1220; box-shadow: 0 4px 20px #0002; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #67e8f9; border-color: currentColor; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; color: white; border: 1px solid #ffffff66; border-radius: 6px; background: transparent; font: inherit; cursor: pointer; }
.btn, .project-video { transition: transform .2s, background .2s, box-shadow .2s; }
.capability, .tool-card, .project { transition: transform .25s, box-shadow .25s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #0002; }
  .capability:hover, .tool-card:hover, .project:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #0b122014; }
}
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-button { padding: 10px 18px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.filter-button[aria-pressed="true"] { background: var(--ink); color: white; }
.filter-count { color: var(--muted); margin-bottom: 24px; }
.theme-toggle, .language-toggle { min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff66; border-radius: 6px; color: white; background: transparent; font: inherit; cursor: pointer; }
.detail-preferences { display: flex; gap: 12px; }
.badge-base, .badge-base iframe { max-width: 100%; }
.catalog-controls { padding: 24px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; background: var(--paper-2); }
.catalog-controls label { display: block; font-weight: 700; margin-bottom: 12px; }
.catalog-search-row { display: flex; gap: 12px; flex-wrap: wrap; }
#project-search { flex: 1 1 250px; width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); padding: 12px; border-radius: 6px; font: inherit; color: var(--ink); background: var(--paper); }
#project-search::placeholder { color: var(--muted); opacity: 1; }
.catalog-hint { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.save-project { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.save-project[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.catalog-empty { padding: 24px; border: 1px dashed var(--line); }
#clear-filters { min-height: 44px; color: var(--blue); background: none; border: none; text-decoration: underline; font: inherit; cursor: pointer; }
.detail-page { padding-top: 120px; padding-bottom: 80px; min-height: 85vh; }
.detail-heading { margin: 40px 0; }
.detail-heading h1 { font-size: clamp(2.5rem, 6vw, 5rem); overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
.detail-layout h2 { margin: 32px 0 16px; font-size: 1.4rem; }
.detail-image { width: 100%; max-height: 600px; object-fit: contain; border-radius: 8px; background: #071827; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
html[data-theme="dark"] { color-scheme: dark; --ink: #edf2fa; --ink-2: #dce6f5; --muted: #afbdd1; --paper: #0b1220; --paper-2: #111e30; --line: #ffffff30; --blue: #8bb5ff; }
html[data-theme="dark"] :is(.capability, .tool-card, .method-step, .project, .play-card, .image-panel, footer) { background: #152338; }
html[data-theme="dark"] :is(.filter-button, .btn.light) { background: #152338; color: #edf2fa; }
html[data-theme="dark"] .filter-button[aria-pressed="true"] { background: #dbeafe; color: #0b1220; }
html[data-theme="dark"] .btn.dark { background: #dbeafe; color: #0b1220; }
html[data-theme="dark"] .btn.primary { background: #2563eb; border-color: #2563eb; }
html[data-theme="dark"] .section .eyebrow { color: #67e8f9; }
html[data-theme="dark"] :is(.chip, .quote) { background: #203650; color: #dce6f5; }
html[data-theme="dark"] footer { color: #afbdd1; }
html[data-theme="dark"] .project-video { color: #8bb5ff; }
@media (max-width: 768px) { .detail-layout { grid-template-columns: 1fr; } }
.section .eyebrow { color: #176379; }
.closing .eyebrow, .proof-band .eyebrow { color: #67e8f9; }
@media (max-width: 680px) {
  .nav-inner { position: relative; }
  .menu-toggle:not([hidden]) { display: block; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links.is-enhanced { position: absolute; top: 100%; left: -14px; right: -14px; padding: 16px 24px; background: #0b1220; border-top: 1px solid #ffffff33; box-shadow: 0 12px 20px #0002; }
  .nav-links.is-enhanced a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Aviso legal breve del pie y enlaces del pie. */
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-left: 10px; }
.footer-legal { display: block; flex-basis: 100%; margin-top: 6px; font-size: .82rem; opacity: .85; }

/* Distintivo de LinkedIn con consentimiento previo. */
.linkedin-consent { display: grid; gap: 10px; margin-top: 4px; }
.linkedin-consent[hidden] { display: none; }
.linkedin-consent p { margin: 0; color: rgba(248, 250, 252, .8); font-size: .9rem; }
.linkedin-consent a { color: #67e8f9; }
.linkedin-consent .btn { justify-self: start; }
.linkedin-badge-wrap:has(.linkedin-consent:not([hidden])) .LI-simple-link { display: inline-flex; color: #67e8f9; font-weight: 700; }
