/* SelectOR · web de descarga. Colores de la propia aplicación (Theme.cs). */
:root {
  --bg: #222426;
  --bg-2: #1b1d1f;
  --surface: #2d3033;
  --surface-2: #3a3e42;
  --border: #484d52;
  --text: #f0f2f3;
  --subtle: #aab0b5;
  --accent: #4caf50;
  --accent-hi: #66c56a;
  --accent-dk: #2e7d32;
  --warn: #f0a020;
  --warn-bg: #3a2e17;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); }
a:hover { color: #8fe093; }
code, kbd { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
kbd { background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; padding: 0 6px; border-radius: 5px; font-family: var(--font); white-space: nowrap; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; justify-content: center; }
.small { font-size: .88rem; color: var(--subtle); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: #fff; text-decoration: none; font-weight: 700;
       padding: 11px 20px; border-radius: 10px; border: 0; box-shadow: 0 6px 18px rgba(76, 175, 80, .28); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px rgba(76, 175, 80, .38); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { font-size: 1.08rem; padding: 14px 26px; }
.btn-sm { padding: 7px 14px; font-size: .95rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--text); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* ---------- cabecera ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(27, 29, 31, .88); backdrop-filter: blur(10px); border-bottom: 1px solid #2f3336; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--subtle); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a.lang { border: 1px solid var(--border); border-radius: 8px; padding: 3px 9px; font-size: .85rem; letter-spacing: .04em; }
.nav a.lang:hover { border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* ---------- portada ---------- */
.hero { position: relative; padding: 64px 0 40px; background:
        radial-gradient(1000px 500px at 85% -10%, rgba(76, 175, 80, .18), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(46, 125, 50, .15), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-hi); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.02em; }
.hero h1 span { color: var(--accent-hi); }
.lead { font-size: 1.1rem; color: #d3d8dc; }
.meta { color: var(--subtle); font-size: .9rem; }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transform: perspective(1400px) rotateY(-4deg); }

/* ---------- aviso ---------- */
.alert { display: flex; gap: 14px; align-items: flex-start; background: var(--warn-bg); border: 1px solid rgba(240, 160, 32, .55); border-radius: var(--radius); padding: 16px 18px; margin: 8px 0 0; color: #f3e6cf; }
.alert strong { color: #ffd28a; }
.alert-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--warn); color: #221a0a; display: grid; place-items: center; font-weight: 900; }
.alert-strong { margin-bottom: 22px; }
.steps-inline { margin: 8px 0 10px 18px; padding: 0; }
.steps-inline li { margin: 4px 0; }

/* ---------- secciones ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid #2a2d30; }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head p:not(.eyebrow) { color: var(--subtle); }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid #3b3f43; border-radius: var(--radius); padding: 22px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: rgba(76, 175, 80, .6); }
.card p { color: var(--subtle); margin: 0; }
.card-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(76, 175, 80, .14); display: grid; place-items: center; margin-bottom: 14px; }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.split + .split { margin-top: 64px; }
.split.reverse > figure { order: 2; }
.split.top { align-items: start; }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: zoom-in; }
.shot figcaption { color: var(--subtle); font-size: .88rem; margin-top: 8px; text-align: center; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: #d3d8dc; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: rgba(76, 175, 80, .18)
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366c56a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.g-item { padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 16 / 10; }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- requisitos ---------- */
.req { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.req th, .req td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #3b3f43; vertical-align: top; }
.req th { width: 130px; color: var(--accent-hi); font-weight: 700; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }

/* ---------- pasos ---------- */
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: paso; background: var(--surface); border: 1px solid #3b3f43; border-radius: var(--radius); padding: 22px 18px; position: relative; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--subtle); margin: 0; font-size: .95rem; }

/* ---------- roles ---------- */
.roles { grid-template-columns: repeat(3, 1fr); }
.role { background: var(--surface); border: 1px solid #3b3f43; border-radius: var(--radius); padding: 22px; }
.role p { color: var(--subtle); margin: 12px 0 0; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; color: #fff; }
.pill-m { background: #3b82c4; } .pill-g { background: #d98a1f; } .pill-ge { background: var(--accent-dk); }
.note { color: var(--subtle); margin: 24px 0 6px; font-size: .95rem; }
.note-list { color: var(--subtle); margin: 0; padding-left: 20px; font-size: .95rem; }
.note-list li { margin: 3px 0; }

/* ---------- novedades y preguntas ---------- */
.changes { padding-left: 20px; margin: 0 0 16px; }
.changes li { margin: 8px 0; color: #d3d8dc; }
.older, .faq details { background: var(--surface); border: 1px solid #3b3f43; border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
.older h3 { margin-top: 14px; color: var(--accent-hi); }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.3rem; color: var(--accent-hi); transition: transform .2s; }
details[open] > summary::after { transform: rotate(45deg); }
details p { color: var(--subtle); margin: 10px 0 0; }
details ul { color: var(--subtle); margin: 6px 0 0; padding-left: 20px; }

/* ---------- descarga ---------- */
.download { background: radial-gradient(700px 360px at 50% 0%, rgba(76, 175, 80, .2), transparent 70%); }
.dl-icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--shadow); }
.hash { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; background: var(--surface); border: 1px solid #3b3f43; border-radius: 12px; padding: 12px 16px; margin: 22px auto 10px; max-width: 760px; }
.hash span { color: var(--subtle); font-size: .88rem; }
.hash code { background: none; padding: 0; font-size: .82rem; }
.copy { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; cursor: pointer; font: 600 .85rem var(--font); }
.copy:hover { border-color: var(--accent); }

/* ---------- pie ---------- */
.footer { background: var(--bg-2); border-top: 1px solid #2a2d30; padding: 36px 0; text-align: center; }
.footer-in img { margin: 0 auto 14px; height: 34px; width: auto; }
.footer p { color: var(--subtle); margin: 4px 0; }

/* ---------- visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 12, .92); display: grid; place-items: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--subtle); margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(76, 175, 80, .5); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- adaptable ---------- */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { transform: none; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid #2f3336; padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid #2a2d30; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav a.lang { align-self: flex-start; margin-top: 10px; padding: 6px 12px; border-bottom: 1px solid var(--border); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .roles { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse > figure { order: 0; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .btn-lg { width: 100%; justify-content: center; }
  .req th { width: 96px; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- contacto ---------- */
.contact { background: var(--surface); border: 1px solid #3b3f43; border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact .opt { color: var(--subtle); font-weight: 400; }
.contact input[type=text], .contact input[type=email], .contact textarea { width: 100%; font: 1rem var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.contact textarea { resize: vertical; min-height: 140px; }
.contact input:focus, .contact textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 175, 80, .25); }
.contact .c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact .c-ver { max-width: 260px; }
.c-type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-type legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.c-type label { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; }
.c-type label:has(input:checked) { border-color: var(--accent); background: rgba(76, 175, 80, .15); }
.c-type input { accent-color: var(--accent); margin: 0; }
.c-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.c-foot .small { margin: 0; }
.c-status { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.c-status.ok { background: #1d3325; border: 1px solid #3d7a50; color: #9fe0a8; }
.c-status.err { background: #3a1f1f; border: 1px solid #b84a45; color: #ff9d97; }
.contact button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .contact .c-row { grid-template-columns: 1fr; } .contact .c-ver { max-width: none; } }
