:root {
  --blue: #0b3b8c;
  --blue-deep: #062968;
  --orange: #ff7a00;
  --orange-soft: #fff0e2;
  --sky: #edf4ff;
  --ink: #14213d;
  --muted: #65718a;
  --line: #dce4f2;
  --paper: #fff;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(9, 44, 108, .13);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 8% 6%, #e4efff 0, transparent 25rem), linear-gradient(155deg, #f8fbff, #f2f6fc);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell { min-height: 100vh; }
.page { width: min(100%, 1040px); margin: auto; padding: 30px 24px 72px; }
.access-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.access-card {
  position: relative; width: min(100%, 450px); padding: 48px 40px 36px; overflow: hidden;
  border: 1px solid rgba(10, 59, 140, .12); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow);
}
.access-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--blue), #2874de 66%, var(--orange)); content: ""; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 260px; max-width: 62vw; height: auto; }
.eyebrow { margin: 46px 0 8px; color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 12px; }
h2 { font-size: 1.23rem; letter-spacing: -.02em; margin-bottom: 8px; }
.intro,.subtitle { color: var(--muted); line-height: 1.58; }
.field-label { display: block; margin: 28px 0 8px; font-size: .8rem; font-weight: 850; }
.code-input,.search-input,.text-input,.select-input { width: 100%; min-height: 53px; border: 1px solid #c8d4e7; border-radius: 13px; padding: 0 15px; background: #fff; color: var(--ink); font: inherit; outline: none; transition: .18s ease; }
textarea.text-input { min-height: 135px; padding: 13px 15px; line-height: 1.45; resize: vertical; text-transform: none; letter-spacing: normal; }
.code-input { letter-spacing: .11em; text-transform: uppercase; font-weight: 850; }
.code-input:focus,.search-input:focus,.text-input:focus,.select-input:focus { border-color: #4382df; box-shadow: 0 0 0 4px rgba(40,116,222,.14); }
.button { min-height: 51px; border: 0; border-radius: 13px; padding: 0 18px; background: linear-gradient(135deg,#1762c7,var(--blue)); box-shadow: 0 9px 16px rgba(11,59,140,.18); color: #fff; font: inherit; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(11,59,140,.24); }
.button.full { width: 100%; margin-top: 14px; }
.button.secondary { background: var(--sky); box-shadow: none; color: var(--blue); }
.button.danger { background: #fff0ee; box-shadow: none; color: var(--danger); }
.hint { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
.message { margin-top: 14px; color: var(--danger); font-size: .9rem; font-weight: 700; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0 30px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.link-button { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: .84rem; font-weight: 850; cursor: pointer; }
.search-area { position: relative; width: min(100%, 760px); margin: 9vh auto 0; }
.search-area::before { position: absolute; top: -60px; left: 0; color: var(--ink); font-size: clamp(1.5rem,4vw,2.05rem); font-weight: 900; letter-spacing: -.045em; content: "Tabela de Películas 3D Compatíveis"; }
.search-input { min-height: 68px; padding-left: 55px; border-color: #bfcee6; font-size: 1.03rem; box-shadow: 0 14px 34px rgba(11,59,140,.1); }
.search-icon { position: absolute; z-index: 1; top: 22px; left: 20px; color: var(--blue); font-size: 1.35rem; }
.search-examples { width: min(100%, 760px); margin: 13px auto 0; color: #77849a; font-size: .78rem; }
.suggestions { overflow: hidden; margin-top: 9px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.suggestion { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 19px; background: #fff; text-align: left; color: var(--ink); font: inherit; font-weight: 760; cursor: pointer; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover { background: var(--sky); }
.suggestion small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.result { width: min(100%,760px); margin: 30px auto 0; padding: 29px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(11,59,140,.08); }
.verified { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 15px; padding: 6px 10px; border-radius: 999px; background: #eaf8ef; color: #14713b; font-size: .73rem; font-weight: 850; }
.compat-list { display: grid; gap: 9px; margin: 21px 0; padding: 0; list-style: none; }
.compat-list li { padding: 14px 15px; border-radius: 11px; background: #f5f8fd; font-weight: 700; }
.compat-list li::before { content: "✓"; margin-right: 10px; color: var(--orange); font-weight: 950; }
.total { padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 650; }
.adaptation-section { margin-top: 26px; padding: 18px; border: 1px solid #ffd49f; border-radius: 14px; background: #fff9f0; }
.adaptation-section h3 { margin-bottom: 5px; color: #9b4b00; font-size: 1rem; }
.adaptation-note { margin-bottom: 13px; color: #8a623c; font-size: .84rem; line-height: 1.45; }
.adaptation-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adaptation-list li { display: grid; gap: 3px; padding: 11px 12px; border-radius: 9px; background: #fff; color: #613400; }
.adaptation-list small { color: #8a623c; font-size: .77rem; }
.empty { padding: 22px; color: var(--muted); text-align: center; }
.client-page { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer { width: min(100%, 760px); margin: auto auto 0; padding: 48px 0 0; border-top: 1px solid #cbd7e8; color: #53617a; }
.footer-logo { display: block; width: 128px; height: auto; margin-bottom: 17px; }
.site-footer p { max-width: 710px; margin-bottom: 18px; font-size: .85rem; line-height: 1.65; }
.site-footer p strong { color: var(--ink); }
.site-footer small { display: block; padding-top: 14px; border-top: 1px solid #dce4f2; color: #68758c; font-size: .73rem; }
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; }
.admin-nav { height: max-content; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(11,59,140,.04); }
.nav-button { display: block; width: 100%; border: 0; border-radius: 10px; padding: 12px; background: transparent; color: var(--ink); text-align: left; font: inherit; font-weight: 650; cursor: pointer; }
.nav-button.active,.nav-button:hover { background: var(--sky); color: var(--blue); font-weight: 850; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 18px 0 28px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(11,59,140,.035); }
.client-filter { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.client-filter.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 99, 203, .12); }
.dashboard-shortcut { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.dashboard-shortcut:hover { transform: translateY(-3px); border-color: #9dbce9; box-shadow: 0 12px 28px rgba(11,59,140,.12); }
.stat strong { display: block; color: var(--blue); font-size: 1.6rem; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.panel { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(11,59,140,.035); }
.model-groups { display: grid; gap: 12px; margin-top: 18px; }
.model-group { margin: 0; padding: 0; overflow: hidden; }
.model-group summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; color: var(--blue); list-style: none; }
.model-group summary::-webkit-details-marker { display: none; }
.model-group summary::after { content: "+"; color: var(--orange); font-size: 1.25rem; font-weight: 900; }
.model-group[open] summary { border-bottom: 1px solid var(--line); }
.model-group[open] summary::after { content: "−"; }
.model-group summary span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.model-group .panel-header,.model-group .compat-list { margin-right: 24px; margin-left: 24px; }
.compat-list .li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-radius: 11px; background: #f5f8fd; }
.model-row[hidden] { display: none !important; }
.pending-row[hidden] { display: none !important; }
.delete-pending { margin-left: 10px; color: #b42318; font-size: 1.05rem; }
.compat-list .li small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { display: block; margin-bottom: 7px; font-size: .79rem; font-weight: 850; }
.table { width: 100%; border-collapse: collapse; }
.table th,.table td { padding: 13px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: .87rem; }
.table th { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #eaf8ef; color: #14713b; font-size: .71rem; font-weight: 850; }
.badge-expired { background: #fee4e2; color: #b42318; }
.recycle-code { color: #14804a; font-size: 1.15rem; line-height: 1; }
.delete-client { margin-left: 10px; color: #b42318; font-size: 1rem; line-height: 1; }
.copy-code { margin-left: 8px; color: var(--blue); font-size: .73rem; }
.copy-message { margin-left: 8px; color: var(--orange); font-size: .73rem; }
.code-search { margin: 14px 0 18px; }
.table tr[hidden] { display: none !important; }
.recycle-modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(10, 25, 52, .38); }
.recycle-modal { width: min(100%, 390px); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(10, 25, 52, .28); }
.recycle-modal h2 { margin: 4px 0 8px; }
.recycle-modal .select-input { width: 100%; margin-top: 18px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 22px; }
.admin-toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: min(420px, calc(100vw - 48px)); padding: 15px 18px; border-radius: 14px; background: #123e91; color: #fff; font-weight: 750; box-shadow: 0 16px 40px rgba(10, 25, 52, .25); }
.code-box { padding: 18px; border-radius: 14px; background: var(--orange-soft); color: #923d00; font-weight: 900; letter-spacing: .1em; text-align: center; }
.hidden { display: none!important; }
@media (max-width:700px) { .page { padding: 20px 16px 44px; }.access-card { padding: 40px 25px 30px; }.topbar { padding-bottom: 22px; }.brand-logo { width: 220px; max-width: 58vw; }.search-area { margin-top: 9vh; }.search-area::before { top: -51px; }.admin-layout { grid-template-columns: 1fr; }.admin-nav { display: flex; gap: 5px; overflow: auto; }.nav-button { white-space: nowrap; }.stats { grid-template-columns: 1fr 1fr; }.form-grid { grid-template-columns: 1fr; }.table th:nth-child(3),.table td:nth-child(3) { display:none; } }
@media (max-width:390px) { .stats { grid-template-columns:1fr; }.topbar-actions { gap:8px; }.link-button { font-size:.77rem; } }
