/* Entrega 88 (parte 4): página pública de desarrolladores. Usa las variables del sitio (tema claro y oscuro). */
.dev-page { background: var(--surface); }
.dev-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.dev-base { display: inline-flex; flex-wrap: wrap; align-items: center; max-width: 100%; gap: .3rem .6rem; margin-top: 1.2rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .92rem; }
.dev-base code { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.dev-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.dev-index { position: sticky; top: 96px; display: grid; gap: .15rem; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.dev-index strong { margin-bottom: .35rem; color: var(--ink); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.dev-index a { padding: .38rem .55rem; border-radius: 9px; color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; }
.dev-index a:hover, .dev-index a:focus-visible { background: rgba(245, 124, 22, .12); color: var(--orange); }
.dev-content { display: grid; gap: 1.2rem; min-width: 0; }
.dev-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); scroll-margin-top: 96px; }
.dev-card > header { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dev-card > header span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(245, 124, 22, .12); color: var(--orange); }
.dev-card h2 { margin: 0; color: var(--ink); font-size: 1.12rem; }
.dev-body { display: grid; gap: .9rem; padding: 1.1rem; min-width: 0; }
.dev-body p, .dev-body li { margin: 0; color: var(--muted); line-height: 1.6; }
.dev-body p strong, .dev-body li strong { color: var(--ink); }
.dev-body h3 { margin: .5rem 0 0; color: var(--ink); font-size: 1rem; }
.dev-body ol, .dev-body ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.2rem; }
.dev-body a { color: var(--orange); font-weight: 700; }
.dev-body code, .dev-index code { padding: .1rem .35rem; border-radius: 6px; background: var(--surface-2); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.dev-code { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; border-radius: 14px; background: #0b2942; color: #e6f0fa; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55; white-space: pre; tab-size: 2; }
.dev-code code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.dev-code-title { display: block; margin-bottom: -.5rem; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dev-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.dev-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dev-table th, .dev-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; vertical-align: top; }
.dev-table th { background: var(--surface-2); color: var(--ink); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.dev-table tr:last-child td { border-bottom: 0; }
.dev-table td:first-child { color: var(--ink); white-space: nowrap; }
.dev-method { display: inline-block; min-width: 3.4rem; padding: .16rem .45rem; border-radius: 7px; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; font-weight: 800; text-align: center; }
.dev-method.get { background: #0f9f8d; } .dev-method.post { background: #2563eb; } .dev-method.put { background: #b45309; }
.dev-endpoint { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dev-endpoint > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem .9rem; cursor: pointer; list-style: none; }
.dev-endpoint > summary::-webkit-details-marker { display: none; }
.dev-endpoint > summary::after { margin-left: auto; color: var(--muted); content: "+"; font-size: 1.2rem; font-weight: 700; }
.dev-endpoint[open] > summary::after { content: "–"; }
.dev-endpoint > summary code { background: none; padding: 0; font-size: .92rem; font-weight: 700; }
.dev-endpoint > summary small { flex: 1 1 260px; color: var(--muted); font-size: .88rem; }
.dev-endpoint-body { display: grid; gap: .8rem; padding: 0 .9rem .9rem; }
.dev-scope { padding: .12rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.dev-note { display: flex; gap: .7rem; padding: .8rem .95rem; border: 1px solid rgba(245, 124, 22, .35); border-radius: 14px; background: rgba(245, 124, 22, .08); }
.dev-note i { margin-top: .2rem; color: var(--orange); }
.dev-group-title { margin: .6rem 0 -.2rem; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 920px) {
    .dev-layout { grid-template-columns: 1fr; }
    .dev-index { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .dev-index strong { grid-column: 1 / -1; }
}
