.experience-rail { border-top: 1px solid var(--line); }
.hero:before { content: ''; position: absolute; inset: 0; background: url('/media/hero-street-poster.webp') center/cover; filter: grayscale(1) brightness(.68); }
.hero-video { opacity: 0; transition: opacity .5s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); align-items: end; gap: clamp(35px, 6vw, 100px); padding-top: clamp(175px, 21vh, 245px); }
.hero-main { min-width: 0; }
.hero h1 { font-size: clamp(78px, 8.1vw, 126px); line-height: .8; margin: 28px 0 30px; }
.hero h1 em { color: #c94f4f; white-space: nowrap; }
.hero-main > p { max-width: 530px; }
.hero-compass { position: relative; border-left: 2px solid #c94f4f; padding: 4px 0 5px 26px; margin-bottom: 10px; color: #f6f0eb; }
.hero-compass:before { content: ''; position: absolute; inset: -16px -22px -18px 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 12, .75), rgba(8, 9, 12, .18)); }
.compass-top, .hero-compass small { display: block; font: 700 12px var(--font-display); letter-spacing: .16em; color: #d9cdca; }
.compass-cross { position: relative; width: 64px; height: 64px; margin: 23px 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; transform: rotate(45deg); }
.compass-cross:before, .compass-cross:after { content: ''; position: absolute; background: #c94f4f; }
.compass-cross:before { width: 1px; height: 80px; left: 31px; top: -9px; }
.compass-cross:after { height: 1px; width: 80px; left: -9px; top: 31px; }
.compass-cross i { position: absolute; width: 6px; height: 6px; background: #f6f0eb; border-radius: 50%; left: 28px; top: 28px; }
.compass-links { display: grid; border-top: 1px solid rgba(255,255,255,.25); margin-bottom: 20px; }
.compass-links a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); font: 700 17px var(--font-display); letter-spacing: .06em; transition: color .2s, padding-left .2s; }
.compass-links a:hover { color: #c94f4f; padding-left: 6px; }
.compass-links b { color: #c94f4f; font-size: 12px; }
.compass-links span { margin-left: auto; }
.experience-rail article { display: grid; grid-template-columns: 200px 1fr 1fr; align-items: center; gap: 35px; padding: 30px 12px; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.experience-rail article:hover { padding-left: 28px; background: #1b1b20; }
.experience-rail article > span { color: var(--accent); font: 700 14px var(--font-display); letter-spacing: .14em; }
.experience-rail h3 { font-size: clamp(28px, 3.3vw, 45px); line-height: .95; margin: 0; }
.experience-rail p { max-width: 340px; margin: 0; line-height: 1.65; color: var(--muted); }
.rule-search-label { display: block; margin: 0 0 7px; color: var(--accent); font: 700 12px var(--font-display); letter-spacing: .12em; }
#rules-index input, #rules-index select { width: 100%; margin: 0 0 18px; padding: 12px; background: #17181d; color: var(--text); border: 1px solid var(--line); }
.rule-index-links { display: grid; gap: 0; margin-bottom: 16px; }
.rule-index-links a { display: flex; justify-content: space-between; }
.rule-category { scroll-margin-top: 28px; margin-bottom: 65px; }
.rule-category-head { border-top: 2px solid var(--accent); padding: 18px 0 15px; }
.rule-category-head span { color: var(--accent); font: 700 12px var(--font-display); letter-spacing: .12em; }
.rule-category-head h2 { font-size: clamp(44px, 5vw, 70px); margin: 10px 0; }
.rule-card { position: relative; scroll-margin-top: 28px; }
.rule-card h3 { font-size: clamp(29px, 3vw, 40px); margin: 0 0 15px; }
.rule-card p { color: #d0caca; line-height: 1.8; white-space: normal; }
.rule-anchor { position: absolute; right: 0; top: 0; color: var(--accent); font-size: 22px; }
.profile-line { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 15px 0; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.profile-line span { color: var(--muted); font-size: 12px; }
.applicant-status h3, .staff-workflow h3 { font-size: 30px; margin-top: 35px; }
.public-reason { border-left: 3px solid var(--accent); padding: 18px 20px; background: #272024; margin: 25px 0; }
.public-reason strong { color: var(--accent); font: 700 13px var(--font-display); letter-spacing: .12em; }
.app-events { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.app-events li { display: flex; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.app-events span { color: var(--muted); min-width: 160px; }
.wizard-shell { border: 1px solid var(--line); background: #16171c; padding: clamp(18px, 4vw, 46px); }
.wizard-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--accent); font: 700 15px var(--font-display); letter-spacing: .12em; }
.wizard-head strong { font-size: 25px; }
.wizard-progress { height: 3px; background: #444047; margin: 18px 0 42px; }
.wizard-progress i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.wizard-main { min-height: 400px; }
.wizard-copy h2 { font-size: clamp(50px, 7vw, 90px); line-height: .88; margin: 25px 0; }
.wizard-copy p { max-width: 650px; color: var(--muted); line-height: 1.65; }
.wizard-rule-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 25px 0; }
.wizard-rule-links a { background: #202126; padding: 17px 20px; display: flex; justify-content: space-between; font: 700 24px var(--font-display); }
.wizard-rule-links a span { color: var(--accent); }
.wizard-rule-links a:hover { background: #292a30; }
.accept-rules { display: flex; gap: 12px; align-items: start; line-height: 1.5; cursor: pointer; }
.accept-rules input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 30px; }
#wizard-save-status { color: var(--muted); display: block; margin-top: 13px; }
.wizard-shell .form-field b { color: var(--accent); }
.wizard-shell .form-field select { width: 100%; background: #0d0e12; border: 1px solid var(--line); color: var(--text); padding: 14px; }
.review-summary article { border-top: 1px solid var(--line); padding: 18px 0; }
.review-summary article > span { color: var(--accent); font: 700 14px var(--font-display); }
.review-summary article p { white-space: pre-wrap; margin: 10px 0 0; overflow-wrap: anywhere; }
.admin-role { display: flex; align-items: center; gap: 15px; color: var(--muted); margin-bottom: 18px; }
#page-admin { padding-top: 128px; }
#page-admin .page-top { padding-bottom: 30px; margin-bottom: 38px; }
#page-admin .page-top h1 { font-size: clamp(58px, 7vw, 100px); }
.admin-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.admin-intro h2 { font-size: clamp(42px, 5vw, 68px); line-height: .9; margin: 18px 0; }
.admin-intro p { color: var(--muted); max-width: 600px; line-height: 1.6; }
.admin-intro > span { color: var(--accent); white-space: nowrap; font: 700 14px var(--font-display); }
.cms-columns { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; }
.cms-columns h3 { font-size: 32px; }
.cms-entry { border-top: 1px solid var(--line); }
.cms-entry:last-child { border-bottom: 1px solid var(--line); }
.cms-entry summary { cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; font: 700 23px/1.1 var(--font-display); }
.cms-entry summary span { color: var(--accent); font-size: 14px; white-space: nowrap; }
.cms-entry form { background: #1c1d22; padding: 18px; display: grid; gap: 14px; margin-bottom: 18px; }
.cms-entry label, #portal-settings label, #permission-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cms-entry input, .cms-entry select, .cms-entry textarea, #portal-settings input, #portal-settings textarea, #permission-form input, #permission-form select, #staff-note, #decision-reason, #reviewer-id, #note-visibility { width: 100%; background: #101115; border: 1px solid #48434a; color: var(--text); padding: 11px; font: 400 15px var(--font-body); }
.cms-entry textarea { resize: vertical; min-height: 120px; }
.cms-entry .btn { width: fit-content; }
.cms-preview { background: #121317; padding: 15px; color: #e2dede; line-height: 1.7; }
.cms-preview:empty { display: none; }
.history-list > div { border-top: 1px solid var(--line); padding: 12px 0; }
.history-list button { color: var(--accent); background: none; border: 0; font-weight: 700; margin-left: 10px; }
.history-list details { margin-top: 10px; }
.history-list p { white-space: pre-wrap; }
.question-manager { max-width: 900px; }
.check-line { display: flex !important; align-items: center; gap: 10px !important; }
.check-line input { width: 18px !important; height: 18px; accent-color: var(--accent); }
#portal-settings, #permission-form { display: grid; gap: 20px; max-width: 650px; margin-top: 27px; }
#portal-settings label, #permission-form label { font-size: 15px; }
#portal-settings .btn, #permission-form .btn { width: fit-content; }
.permission-list { border-top: 1px solid var(--line); margin: 22px 0; }
.permission-list > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.permission-list span { color: var(--muted); }
.form-detail { margin-top: 30px; scroll-margin-top: 30px; }
.detail-title { display: flex; justify-content: space-between; gap: 30px; }
.detail-title a { color: var(--accent); white-space: nowrap; }
.answer-list { margin: 25px 0; border-top: 1px solid var(--line); }
.answer-list article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.answer-list strong { color: var(--accent); }
.answer-list p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0; }
.event-list article { border-left: 3px solid #5c535b; background: #202126; margin: 8px 0; padding: 12px 16px; }
.event-list .event-public { border-left-color: var(--accent); }
.event-list span { color: var(--muted); font-size: 12px; }
.event-list p { margin: 7px 0 0; white-space: pre-wrap; }
.staff-workflow { border-top: 1px solid var(--line); margin-top: 35px; }
.staff-workflow .form-controls { margin-top: 14px; }
.staff-workflow .form-controls .btn { font-size: 13px; }
.inner-page { min-height: calc(100vh - 80px); }
.inner-page .page-top { position: relative; padding-bottom: clamp(42px, 6vw, 82px); border-bottom: 1px solid #4a4043; }
.inner-page .page-top:after { content: 'RLS  /  ACCESO Y COMUNIDAD'; position: absolute; right: 0; bottom: 22px; color: #c94f4f; font: 700 12px var(--font-display); letter-spacing: .16em; }
.inner-page .page-top h1 { max-width: 850px; line-height: .83; }
.inner-page .page-top p { max-width: 550px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.empty-state { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px); border: 1px solid #4a4043; background: #171619; color: #d7d0cd; font-size: 17px; line-height: 1.7; }
.empty-state:before { content: 'RLS'; display: block; color: #c94f4f; margin-bottom: 20px; font: 900 52px/.9 var(--font-display); letter-spacing: -.05em; }
.empty-state:after { content: ''; position: absolute; right: -100px; bottom: -185px; width: 350px; height: 350px; border: 1px solid rgba(201,79,79,.35); border-radius: 50%; box-shadow: 0 0 0 48px rgba(201,79,79,.04), 0 0 0 96px rgba(201,79,79,.025); pointer-events: none; }
.empty-state a { color: #e77b75; text-decoration: underline; text-underline-offset: 4px; }
.rules-layout { padding-top: 56px; }
.rule-index-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 18px var(--font-display); }
.rule-index-links a:hover, .rule-anchor:hover { color: #fff; }
.rules-content { min-height: 260px; }
.rule-card { padding: 26px 0 32px; border-bottom: 1px solid #403b3d; }
.rule-card h3 { max-width: 730px; }
.rule-card p { max-width: 790px; }
#page-solicitud #application-root { max-width: 1100px; margin: 55px auto 0; }
.application-panel { border: 1px solid #4a4043; box-shadow: 18px 18px 0 #1d1518; }
.application-panel h2 { font-size: clamp(46px, 6vw, 84px); }
.applicant-gate { position: relative; min-height: 490px; padding: clamp(28px, 5vw, 66px); background: radial-gradient(circle at 100% 0%, #532b30, transparent 35%), #17181d; }
.applicant-gate h2 { margin: 35px 0 20px; }
.applicant-gate > p { max-width: 680px; font-size: 17px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.profile-logout { display: block; margin: 20px 0 0; padding: 5px 0; color: #bdb5b4; background: none; border: 0; border-bottom: 1px solid #5e5556; font: 700 13px var(--font-display); letter-spacing: .12em; }
.profile-logout:hover { color: #c94f4f; }
.profile-line { padding: 16px 0; border-top: 2px solid #c94f4f; align-items: center; }
.profile-line strong { font: 800 27px var(--font-display); }
.profile-line .profile-logout { margin: 0; }
.status-hero { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 25px; gap: 20px; }
.status-hero h2 { margin: 22px 0 10px; color: #f4eee8; }
.status-symbol { display: grid; place-items: center; flex: none; width: 110px; height: 110px; border: 1px solid #c94f4f; border-radius: 50%; color: #c94f4f; font: 700 80px/.8 var(--font-display); }
.personal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 65px); }
.personal-columns h3, .personal-history h3 { color: #c94f4f; font: 800 30px var(--font-display); }
.personal-answers details { border-top: 1px solid var(--line); padding: 12px 0; }
.personal-answers summary { cursor: pointer; font-weight: 700; }
.personal-answers p { white-space: pre-wrap; overflow-wrap: anywhere; }
.personal-history { margin-top: 50px; }
.personal-history > div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wizard-shell { position: relative; overflow: hidden; box-shadow: 16px 16px 0 #24191d; }
.wizard-shell:before { content: 'RLS'; position: absolute; right: 36px; top: 72px; z-index: 0; color: rgba(201,79,79,.06); font: 900 240px/.8 var(--font-display); pointer-events: none; }
.wizard-main, .wizard-actions { position: relative; }
.wizard-copy { max-width: 760px; }
.wizard-copy h2 { color: #f2eee9; }
.wizard-head strong { color: #fff; font-variant-numeric: tabular-nums; }
.wizard-progress { height: 5px; }
.form-grid { max-width: 780px; }
.form-field { border-top: 1px solid var(--line); padding-top: 18px; }
.form-field span { font-size: 17px; }
.form-field textarea, .form-field input, .wizard-shell .form-field select { border: 1px solid #5d5257; background: #0d0e12; }
.form-field textarea:focus, .form-field input:focus, .wizard-shell .form-field select:focus { outline: 2px solid #c94f4f; outline-offset: 2px; }
.review-summary { max-width: 760px; }
.review-summary article { display: grid; grid-template-columns: 250px 1fr; gap: 25px; }
.review-summary article > span { font-size: 13px; }
.review-summary article p { margin: 0; }
#page-admin { width: min(1480px, calc(100% - 88px)); }
#page-admin .page-top { padding-bottom: 25px; }
#page-admin .page-top h1 { margin-bottom: 15px; }
#admin-root { padding-top: 28px; }
.admin-role { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.admin-tabs { display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; border-bottom: 1px solid #6c4549; margin-bottom: 36px; scrollbar-width: thin; }
.admin-tabs button { flex: none; border: 0; border-bottom: 3px solid transparent; background: none; padding: 17px 22px; color: #b7aaac; font: 700 15px var(--font-display); letter-spacing: .1em; }
.admin-tabs button:hover { color: #fff; }
.admin-tabs button.active { background: #c94f4f; color: #fff; border-bottom-color: #f7d7d2; }
.admin-list { gap: 0; border-top: 1px solid var(--line); }
.admin-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 50px; border: 1px solid #594044; background: #594044; }
.admin-overview > div { min-height: 142px; padding: 22px 27px; background: #1b181c; display: flex; flex-direction: column; justify-content: space-between; }
.admin-overview span { color: #c7b3b4; font: 700 13px var(--font-display); letter-spacing: .14em; }
.admin-overview strong { color: #f4efea; font: 900 58px/.85 var(--font-display); }
.admin-overview > div:first-child strong { color: #c94f4f; }
.admin-section-head { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 25px; }
.admin-section-head h2 { font-size: clamp(40px, 5vw, 70px); line-height: .88; margin: 17px 0 0; }
.admin-section-head p { max-width: 360px; color: var(--muted); line-height: 1.6; }
.admin-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 23px 18px; align-items: center; transition: background .18s, padding-left .18s; }
.admin-item:hover { background: #221c20; padding-left: 25px; }
.admin-item strong { font: 800 24px var(--font-display); }
.admin-item span { font-size: 13px; }
.admin-panel { border: 1px solid #42393d; }
.admin-intro { border-top: 2px solid #c94f4f; padding: 31px 0; }
.cms-columns { gap: clamp(30px, 5vw, 76px); }
.cms-entry summary { align-items: center; }
.cms-entry summary:hover { color: #e5817b; }
.cms-entry form { border-left: 2px solid #c94f4f; }
.cms-preview { border: 1px dashed #6d565b; }
.cms-preview h3, .rule-card h3 { font-size: clamp(27px, 3vw, 40px); }
.cms-preview ul, .rule-card ul { padding-left: 22px; line-height: 1.8; color: #d0caca; }
.cms-preview li::marker, .rule-card li::marker { color: #c94f4f; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -8px; }
.editor-toolbar button { border: 1px solid #665258; background: #2a2227; color: #f0e8e6; padding: 9px 12px; font: 700 13px var(--font-display); letter-spacing: .05em; }
.editor-toolbar button:hover { background: #c94f4f; border-color: #c94f4f; }
.question-manager { border-top: 1px solid var(--line); }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.answer-list article { min-width: 0; }
.answer-list p { line-height: 1.65; }
.event-list { display: grid; gap: 8px; }
.event-list article { margin: 0; }
.staff-workflow { padding-top: 22px; }
.staff-workflow h3 { color: #c94f4f; }
.audit-list { border-top: 1px solid var(--line); margin-top: 25px; }
.audit-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.audit-item strong { font: 700 20px var(--font-display); }
.audit-meta { color: var(--muted); font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.audit-item pre { white-space: pre-wrap; overflow-wrap: anywhere; color: #cfc6c6; }
@media (max-width: 1000px) { .hero-content { display: block; } .hero-compass { display: none; } .experience-rail article { grid-template-columns: 140px 1fr 1fr; gap: 20px; } .cms-columns { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  #page-admin { width: min(100% - 36px, 1480px); }
  .inner-page .page-top:after { display: none; }
  .inner-page .page-top { padding-bottom: 35px; }
  .inner-page .page-top h1 { font-size: clamp(60px, 15vw, 80px); }
  #page-solicitud #application-root { margin-top: 28px; }
  .application-panel { box-shadow: none; }
  .applicant-gate { min-height: 0; }
  .applicant-gate h2 { font-size: 53px; }
  .gate-actions { align-items: stretch; flex-direction: column; }
  .status-symbol { width: 65px; height: 65px; font-size: 48px; }
  .personal-columns, .answer-list { grid-template-columns: 1fr; }
  .wizard-shell { box-shadow: none; }
  .wizard-shell:before { font-size: 140px; top: 100px; }
  .review-summary article { grid-template-columns: 1fr; gap: 4px; }
  .admin-role { align-items: flex-start; flex-direction: column; }
  .admin-overview { grid-template-columns: repeat(2, 1fr); margin-bottom: 35px; }
  .admin-overview > div { min-height: 105px; padding: 17px; }
  .admin-overview strong { font-size: 44px; }
  .admin-section-head { display: block; }
  .admin-tabs { margin-right: -18px; }
  .admin-tabs button { padding: 14px 16px; font-size: 13px; }
  .admin-panel { padding: 22px; }
  .cms-entry summary { font-size: 20px; }
  .hero-content { padding-top: clamp(175px, 24svh, 230px); }
  .hero h1 { font-size: clamp(61px, 15.1vw, 85px); line-height: .85; margin: 27px 0; }
  .hero-main > p { max-width: 340px; }
  #page-admin { padding-top: 115px; }
  #page-admin .page-top h1 { font-size: 68px; }
  .experience-rail article { grid-template-columns: 1fr; gap: 13px; padding: 24px 0; }
  .experience-rail article:hover { padding-left: 0; }
  .rules-layout { grid-template-columns: 1fr; gap: 25px; }
  .rules-layout aside { position: static; }
  .rule-index-links { max-height: 170px; overflow: auto; }
  .app-events li, .permission-list > div, .admin-intro { flex-direction: column; }
  .wizard-actions { align-items: stretch; }
  .wizard-actions .btn { gap: 10px; padding: 12px; font-size: 13px; }
  .detail-title { flex-direction: column; }
}
