:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --panel: #15161a;
  --panel-2: #1b1d22;
  --line: #32343b;
  --text: #f5f5f3;
  --muted: #a6a8b0;
  --red: #d30d25;
  --blue: #5aa4ff;
  --green: #2bd17e;
  --gold: #e3b445;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 11%, rgba(23, 116, 255, .08), transparent 30rem),
    var(--bg);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 4px; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); padding: .8rem 1rem; color: #07080a; background: #fff; font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header, main, footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand:first-child img:first-child { animation: spin 11s linear infinite; }
.wordmark { object-fit: contain; }
.site-header nav, footer nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.site-header nav a, footer nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.site-header nav a:hover, footer nav a:hover { color: #fff; }
.site-header nav [aria-current="page"] { color: #fff; }
.nav-cta { padding: .7rem 1rem; border: 1px solid #5a5d66; border-radius: .35rem; }

.hero { min-height: 510px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: center; gap: 3rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.eyebrow { margin: 0 0 1.1rem; color: var(--muted); font-size: .77rem; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 1.4rem; font-size: clamp(3rem, 7vw, 6.9rem); line-height: .92; letter-spacing: -.065em; }
h1 em { color: var(--red); font-style: normal; }
.lead { max-width: 650px; color: #c9cbd0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.hero-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-mark img { width: min(72%, 300px); filter: drop-shadow(0 24px 60px rgba(0,0,0,.7)); animation: spin 18s linear infinite; }
.orbit { position: absolute; inset: 8%; border: 2px solid #2f3238; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 70px rgba(23,116,255,.08); }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 18%; height: 5px; top: 50%; background: var(--red); border-radius: 999px; }
.orbit::before { left: -9%; }
.orbit::after { right: -9%; }

.directory-shell { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .download h2 { margin-bottom: 0; font-size: clamp(2rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { min-width: 150px; color: var(--muted); text-align: right; }
.section-heading > p strong { display: block; color: var(--text); font-size: 2.1rem; line-height: 1; }
.filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .7fr) auto; align-items: end; gap: 1rem; padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; }
.filters label { display: grid; gap: .55rem; color: #d5d6d9; font-size: .88rem; font-weight: 750; }
.filters input, .filters select { width: 100%; min-height: 50px; padding: .75rem .9rem; color: #fff; background: #0f1013; border: 1px solid #44464d; border-radius: .35rem; }
.filters button { min-height: 50px; padding: .75rem 1.1rem; color: #fff; background: transparent; border: 1px solid #5b5e66; border-radius: .35rem; cursor: pointer; font-weight: 800; }
.filters button:hover { border-color: #fff; }
.filter-status { min-height: 1.5rem; margin: 1rem 0; color: var(--muted); }
.directory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.directory-card { min-height: 260px; display: flex; flex-direction: column; padding: 1.5rem; background: linear-gradient(145deg, #1c1d22, #121317); border: 1px solid var(--line); border-top: 3px solid var(--role-color, var(--red)); border-radius: .55rem; }
.directory-card[data-role="conductor"] { --role-color: var(--blue); }
.directory-card[data-role="especialista"] { --role-color: var(--green); }
.directory-card[data-role="proveedor"] { --role-color: var(--gold); }
.directory-card .role { color: var(--role-color); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.directory-card h3 { margin: 1.4rem 0 2rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.1; overflow-wrap: anywhere; }
.directory-card a { margin-top: auto; padding-top: 1rem; color: #fff; border-top: 1px solid #3b3d43; font-weight: 800; text-decoration: none; }
.directory-card a:hover { color: #ff5b6d; }
.empty-state { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.4rem); background: var(--panel); border: 1px dashed #4b4e56; border-radius: .6rem; }
.empty-state > span { color: #4c4f57; font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 900; line-height: 1; }
.empty-state h3 { margin-bottom: .45rem; font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.empty-state p { margin-bottom: 0; color: var(--muted); }
[hidden] { display: none !important; }

.download { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(2rem, 8vw, 7rem); align-items: end; padding: clamp(3rem, 7vw, 6rem); margin-bottom: 5rem; background: var(--panel-2); border: 1px solid #3c3f47; border-left: 5px solid var(--red); }
.download p:not(.eyebrow) { max-width: 690px; margin: 1.25rem 0 0; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.official-store { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; }
.official-store.apple { padding: 14px; }
.official-store img { display: block; width: auto; max-width: none; object-fit: contain; }
.official-store.apple img { height: 56px; }
.official-store.google img { height: 84px; }
.official-store:hover { filter: brightness(1.08); }
.official-store:focus-visible { outline-color: var(--gold); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 1.5rem; }
.footer-brand p, footer > p { margin: 0; }
footer > p { grid-column: 1 / -1; font-size: .85rem; }
footer > p a { color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand:first-child img:first-child, .hero-mark img { animation: none; }
}
@media (max-width: 850px) {
  .site-header { align-items: flex-start; gap: 1rem; padding: 1rem 0; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 5rem 0; }
  .hero-mark { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1 / -1; }
  .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .site-header .wordmark { width: 132px; height: auto; }
  .site-header nav { display: grid; justify-items: end; font-size: .88rem; }
  .nav-cta { display: none; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .filters, .directory-list { grid-template-columns: 1fr; }
  .empty-state { grid-template-columns: 1fr; }
  .download { padding: 2rem 1.25rem; }
  .official-store.apple { padding: 10px; }
  .official-store.apple img { height: 40px; }
  .official-store.google img { height: 60px; }
  .footer-brand { align-items: flex-start; flex-direction: column; }
}
