/* ═══════════════════════════════════════
   FONT FACES - Lovelace (títulos) & Mada (cuerpo)
   ═══════════════════════════════════════ */
@font-face {
  font-family: 'Lovelace';
  src: url('../fonts/Lovelace/Lovelace Text Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Lovelace';
  src: url('../fonts/Lovelace/Lovelace Text Bold Italic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Mada';
  src: url('../fonts/Mada/Mada-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* ═══════════════════════════════════════
   CSS VARIABLES - Brand Palette
   ═══════════════════════════════════════ */
:root {
  --ash-grey: #91A8A4;
  --dust-grey: #D7DBDB;
  --iron-grey: #494848;
  --parchment: #F5F2ED;
  --tan: #CBB39E;
  --primary: #91A8A4;
  --primary-dark: #7A9490;
  --primary-light: rgba(145,168,164,0.12);
  --accent: #CBB39E;
  --green: #5D8A6E;
  --green-light: #EFF5F1;
  --red: #B85C5C;
  --red-light: #F9EFEF;
  --yellow: #C4A24E;
  --yellow-light: #FAF6EC;
  --purple: #7C6E8A;
  --purple-light: #F3F0F6;
  --gray-bg: var(--parchment);
  --gray-border: var(--dust-grey);
  --gray-text: #7A7A7A;
  --text-primary: var(--iron-grey);
  --white: #FFFFFF;
  --sidebar-width: 240px;
  --card-radius: 12px;
  --card-shadow: 0 1px 3px rgba(73,72,72,0.08);
  --btn-radius: 8px;
  --font-heading: 'Lovelace', Georgia, serif;
  --font-body: 'Mada', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--gray-bg); overflow: hidden; height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════
   LOGIN OVERLAY
   ═══════════════════════════════════════ */
.login-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(135deg, var(--iron-grey) 0%, #3a3939 50%, var(--iron-grey) 100%); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.login-card { background: var(--white); border-radius: 16px; padding: 40px; width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--dust-grey); }
.login-logo img { width: 60px; height: auto; }
.login-logo-text { font-family: var(--font-heading); font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--iron-grey); }
.login-logo-text small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 400; color: var(--gray-text); letter-spacing: 0.3px; margin-top: 2px; }
.login-card h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 400; color: var(--iron-grey); margin-bottom: 6px; }
.login-card > p { font-size: 14px; color: var(--gray-text); margin-bottom: 24px; }
.login-form .form-group { margin-bottom: 16px; }
.login-btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 8px; }
.login-error { background: var(--red-light); color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.login-hint { margin-top: 20px; padding: 14px; background: var(--parchment); border-radius: 8px; font-size: 12px; color: var(--gray-text); line-height: 1.8; }
.login-hint strong { color: var(--iron-grey); }
.login-hint code { background: rgba(145,168,164,0.15); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--iron-grey); }

/* ═══════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════ */
.carousel-viewport { width: 100vw; height: 100vh; overflow: hidden; position: relative; }
.carousel-track { display: flex; width: 600vw; height: 100vh; transition: transform 0.5s ease; }
.carousel-slide { width: 100vw; height: 100vh; flex-shrink: 0; overflow-y: auto; }
.carousel-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1000; width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: background 0.2s, box-shadow 0.2s; }
.carousel-arrow:hover { background: var(--ash-grey); color: var(--white); box-shadow: 0 4px 12px rgba(145,168,164,0.4); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow-left { left: 16px; }
.carousel-arrow-right { right: 16px; }
.carousel-dots { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; gap: 10px; background: rgba(255,255,255,0.9); padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dust-grey); transition: all 0.3s; }
.carousel-dot.active { background: var(--ash-grey); width: 28px; border-radius: 5px; }

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.layout { display: flex; height: 100%; }
.sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); background: var(--white); border-right: 1px solid var(--gray-border); display: flex; flex-direction: column; padding: 0; height: 100vh; position: sticky; top: 0; }
.sidebar-logo { padding: 20px; display: flex; align-items: center; gap: 12px; }
.sidebar-logo img { width: 36px; height: auto; }
.sidebar-logo-text { font-family: var(--font-heading); font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--text-primary); }
.sidebar-logo-text small { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 400; color: var(--gray-text); letter-spacing: 0.5px; }
.sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--gray-text); transition: all 0.2s; cursor: pointer; }
.sidebar-nav-item:hover { background: var(--primary-light); color: var(--ash-grey); }
.sidebar-nav-item.active { background: var(--ash-grey); color: var(--white); }
.sidebar-nav-item.active svg { color: var(--white); }
.sidebar-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-spacer { flex: 1; }
.sidebar-config { padding: 8px 12px; }
.sidebar-logout:hover { background: var(--red-light) !important; color: var(--red) !important; }
.sidebar-user { padding: 16px 20px; border-top: 1px solid var(--gray-border); display: flex; align-items: center; gap: 10px; }
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-border); overflow: hidden; }
.sidebar-user-avatar img { width: 100%; height: 100%; }
.sidebar-user-info { font-size: 13px; font-weight: 600; }
.sidebar-user-info small { display: block; font-size: 11px; font-weight: 400; color: var(--gray-text); }
.role-capturista .sidebar-admin-only { display: none !important; }

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.main-content { flex: 1; background: var(--gray-bg); overflow-y: auto; display: flex; flex-direction: column; }
.top-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--white); border-bottom: 1px solid var(--gray-border); gap: 16px; position: sticky; top: 0; z-index: 10; }
.top-header-left { display: flex; align-items: center; gap: 12px; }
.top-header-left h1 { font-family: var(--font-heading); font-size: 20px; font-weight: 400; }
.version-badge { background: var(--gray-bg); color: var(--gray-text); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 9999px; border: 1px solid var(--gray-border); }
.search-bar { display: flex; align-items: center; gap: 8px; background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: 8px; padding: 8px 14px; width: 260px; }
.search-bar svg { width: 16px; height: 16px; color: var(--gray-text); }
.search-bar input { border: none; background: none; outline: none; font-size: 13px; color: var(--text-primary); width: 100%; }
.search-bar input::placeholder { color: var(--gray-text); }
.top-header-right { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-bg); transition: background 0.2s; }
.icon-btn:hover { background: var(--gray-border); }
.icon-btn svg { width: 18px; height: 18px; color: var(--gray-text); }
.header-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ash-grey); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }

/* ═══════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════ */
.dashboard-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 24px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi-card { background: var(--white); border-radius: var(--card-radius); border: 1px solid var(--gray-border); box-shadow: var(--card-shadow); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.kpi-card-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon.blue { background: var(--primary-light); color: var(--ash-grey); }
.kpi-icon.green { background: var(--green-light); color: var(--green); }
.kpi-icon.red { background: var(--red-light); color: var(--red); }
.kpi-icon.purple { background: var(--purple-light); color: var(--purple); }
.kpi-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 9999px; }
.kpi-badge.up { background: var(--green-light); color: var(--green); }
.kpi-badge.down { background: var(--red-light); color: var(--red); }
.kpi-label { font-size: 13px; color: var(--gray-text); font-weight: 500; }
.kpi-value { font-family: var(--font-heading); font-size: 36px; font-weight: 400; color: var(--text-primary); line-height: 1; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.card { background: var(--white); border-radius: var(--card-radius); border: 1px solid var(--gray-border); box-shadow: var(--card-shadow); padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-header h2 { font-family: var(--font-heading); font-size: 16px; font-weight: 400; }
.card-link { font-size: 13px; color: var(--ash-grey); font-weight: 500; }
.card-link:hover { text-decoration: underline; }
.giro-item { margin-bottom: 16px; }
.giro-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--gray-text); margin-bottom: 6px; letter-spacing: 0.3px; }
.giro-bar { height: 8px; background: var(--parchment); border-radius: 4px; overflow: hidden; }
.giro-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.giro-bar-fill.blue { background: var(--ash-grey); }
.giro-bar-fill.green { background: var(--green); }
.giro-bar-fill.yellow { background: var(--tan); }
.giro-bar-fill.gray { background: var(--dust-grey); }
.weekly-chart { display: flex; align-items: flex-end; justify-content: space-around; height: 100px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-border); }
.weekly-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.weekly-bar-fill { width: 40px; background: var(--ash-grey); border-radius: 4px 4px 0 0; opacity: 0.7; }
.weekly-bar-label { font-size: 11px; color: var(--gray-text); font-weight: 500; }
.activity-list { display: flex; flex-direction: column; gap: 16px; }
.activity-item { display: flex; gap: 12px; align-items: flex-start; }
.activity-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-icon.blue { background: var(--primary-light); color: var(--ash-grey); }
.activity-icon.green { background: var(--green-light); color: var(--green); }
.activity-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.activity-icon.red { background: var(--red-light); color: var(--red); }
.activity-info { flex: 1; }
.activity-title { font-size: 13px; font-weight: 600; }
.activity-desc { font-size: 12px; color: var(--gray-text); }
.activity-time { font-size: 11px; color: var(--dust-grey); font-weight: 500; white-space: nowrap; }

/* ═══════════════════════════════════════
   PADRON
   ═══════════════════════════════════════ */
.padron-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.padron-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.padron-title h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 400; }
.padron-title p { font-size: 13px; color: var(--gray-text); margin-top: 4px; }
.padron-actions { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--btn-radius); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: var(--ash-grey); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--white); color: var(--text-primary); border: 1px solid var(--gray-border); }
.btn-outline:hover { border-color: var(--ash-grey); color: var(--ash-grey); }
.btn svg { width: 16px; height: 16px; }
.filters-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--gray-border); background: var(--white); font-size: 13px; font-weight: 500; color: var(--text-primary); }
.filter-chip svg { width: 14px; height: 14px; color: var(--gray-text); }
.filter-link { font-size: 13px; font-weight: 500; color: var(--ash-grey); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.filter-link:hover { text-decoration: underline; }
.filter-link.muted { color: var(--gray-text); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.3px; padding: 12px 14px; border-bottom: 2px solid var(--gray-border); }
.data-table td { padding: 14px; font-size: 14px; border-bottom: 1px solid var(--gray-border); vertical-align: middle; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--parchment); }
.table-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-border); overflow: hidden; }
.table-avatar img { width: 100%; height: 100%; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-badge.active { background: var(--green-light); color: var(--green); }
.status-badge.active::before { background: var(--green); }
.status-badge.pending { background: var(--yellow-light); color: #9A7B2F; }
.status-badge.pending::before { background: var(--yellow); }
.status-badge.inactive { background: var(--red-light); color: var(--red); }
.status-badge.inactive::before { background: var(--red); }
/* Laravel-compatible status badge aliases */
.status-badge-activo, .status-badge-active { background: var(--green-light); color: var(--green); }
.status-badge-activo::before, .status-badge-active::before { background: var(--green); }
.status-badge-pendiente, .status-badge-pending { background: var(--yellow-light); color: #9A7B2F; }
.status-badge-pendiente::before, .status-badge-pending::before { background: var(--yellow); }
.status-badge-inactivo, .status-badge-inactive { background: var(--red-light); color: var(--red); }
.status-badge-inactivo::before, .status-badge-inactive::before { background: var(--red); }
.table-actions { display: flex; gap: 8px; }
.table-action-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gray-text); transition: all 0.2s; }
.table-action-btn:hover { background: var(--primary-light); color: var(--ash-grey); }
.table-action-btn.delete:hover { background: var(--red-light); color: var(--red); }
.table-action-btn svg { width: 16px; height: 16px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px; }
.table-footer-text { font-size: 13px; color: var(--gray-text); }
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--gray-text); transition: all 0.2s; }
.page-btn:hover { background: var(--primary-light); color: var(--ash-grey); }
.page-btn.active { background: var(--ash-grey); color: var(--white); }
.page-btn svg { width: 16px; height: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--white); border-radius: var(--card-radius); border: 1px solid var(--gray-border); box-shadow: var(--card-shadow); padding: 16px 20px; border-left: 4px solid; }
.stat-card.blue { border-left-color: var(--ash-grey); }
.stat-card.green { border-left-color: var(--green); }
.stat-card.yellow { border-left-color: var(--tan); }
.stat-card.purple { border-left-color: var(--purple); }
.stat-card-label { font-size: 11px; font-weight: 700; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-value { font-family: var(--font-heading); font-size: 28px; font-weight: 400; margin-top: 4px; }
.page-footer { text-align: center; padding: 20px; font-size: 12px; color: var(--gray-text); }

/* ═══════════════════════════════════════
   REGISTRO
   ═══════════════════════════════════════ */
.registro-screen { background: var(--gray-bg); min-height: 100vh; }
.registro-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--white); border-bottom: 1px solid var(--gray-border); }
.registro-header-left { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.registro-header-left svg { width: 20px; height: 20px; color: var(--ash-grey); }
.registro-close { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gray-text); transition: background 0.2s; }
.registro-close:hover { background: var(--gray-border); }
.registro-close svg { width: 20px; height: 20px; }
.registro-body { max-width: 720px; margin: 0 auto; padding: 32px 20px 40px; }
.registro-body > h1 { font-family: var(--font-heading); font-size: 26px; font-weight: 400; margin-bottom: 6px; }
.registro-body > p { font-size: 14px; color: var(--gray-text); margin-bottom: 28px; line-height: 1.5; }
.form-section { background: var(--white); border-radius: var(--card-radius); border: 1px solid var(--gray-border); box-shadow: var(--card-shadow); padding: 24px; margin-bottom: 20px; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ash-grey); margin-bottom: 20px; }
.form-section-title svg { width: 20px; height: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-border); border-radius: 8px; font-size: 14px; color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; background: var(--white); }
.form-input:focus { outline: none; border-color: var(--ash-grey); box-shadow: 0 0 0 3px rgba(145,168,164,0.15); }
.form-input::placeholder { color: #94A3B8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.photo-upload { display: flex; gap: 24px; align-items: flex-start; }
.photo-preview { width: 140px; height: 140px; background: var(--parchment); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; border: 2px dashed var(--gray-border); }
.photo-preview svg { width: 32px; height: 32px; color: #94A3B8; }
.photo-preview span { font-size: 11px; color: #94A3B8; text-align: center; }
.photo-info p { font-size: 13px; color: var(--gray-text); line-height: 1.5; margin-bottom: 16px; }
.photo-buttons { display: flex; gap: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.form-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.btn-text { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--gray-text); }
.btn-text:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════
   CREDENCIALES
   ═══════════════════════════════════════ */
.credenciales-screen { background: var(--gray-bg); min-height: 100vh; }
.credenciales-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--white); border-bottom: 1px solid var(--gray-border); }
.credenciales-header-left { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.credenciales-header-left svg { width: 20px; height: 20px; color: var(--ash-grey); }
.credenciales-body { max-width: 960px; margin: 0 auto; padding: 28px 20px; }
.credenciales-body > h1 { font-family: var(--font-heading); font-size: 24px; font-weight: 400; margin-bottom: 6px; }
.credenciales-body > p { font-size: 14px; color: var(--gray-text); margin-bottom: 24px; }
.credenciales-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.preview-section h3 { font-size: 14px; font-weight: 600; color: var(--gray-text); margin-bottom: 12px; }
.preview-tabs { display: flex; gap: 0; margin-bottom: 16px; }
.preview-tab { padding: 8px 20px; font-size: 13px; font-weight: 600; border: 1px solid var(--gray-border); background: var(--white); color: var(--gray-text); cursor: pointer; transition: all 0.2s; }
.preview-tab:first-child { border-radius: 8px 0 0 8px; }
.preview-tab:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.preview-tab.active { background: var(--ash-grey); color: var(--white); border-color: var(--ash-grey); }
.credential-front { background: linear-gradient(135deg, var(--iron-grey) 0%, #3a3939 100%); border-radius: 16px; padding: 28px; color: var(--white); position: relative; overflow: hidden; aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between; }
.credential-front::before { content: ''; position: absolute; top: -30%; right: -20%; width: 200px; height: 200px; border-radius: 50%; background: rgba(145,168,164,0.15); }
.credential-front::after { content: ''; position: absolute; bottom: -40%; left: -10%; width: 250px; height: 250px; border-radius: 50%; background: rgba(203,179,158,0.1); }
.credential-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.credential-logo { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.credential-logo svg { width: 18px; height: 18px; color: var(--white); }
.credential-org { font-family: var(--font-heading); font-size: 10px; font-weight: 400; letter-spacing: 0.5px; line-height: 1.3; }
.credential-badge { position: relative; z-index: 1; display: inline-block; background: rgba(203,179,158,0.3); color: var(--tan); font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 4px; margin-top: 6px; width: fit-content; }
.credential-center { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.credential-photo { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--white); background: rgba(255,255,255,0.2); overflow: hidden; flex-shrink: 0; }
.credential-photo img { width: 100%; height: 100%; object-fit: cover; }
.credential-name { font-family: var(--font-heading); font-size: 18px; font-weight: 400; }
.credential-detail { font-size: 11px; opacity: 0.8; margin-top: 2px; }
.credential-detail strong { font-weight: 600; }
.credential-back { background: var(--white); border-radius: 16px; border: 1px solid var(--gray-border); box-shadow: var(--card-shadow); padding: 24px; margin-top: 16px; }
.credential-back-title { font-size: 11px; color: var(--gray-text); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.5px; }
.credential-terms h4 { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.credential-terms p { font-size: 10px; color: var(--gray-text); line-height: 1.6; margin-bottom: 16px; }
.credential-qr { width: 80px; height: 80px; margin: 0 auto; display: block; }
.credential-signature { text-align: center; font-size: 10px; color: var(--gray-text); font-weight: 600; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gray-border); letter-spacing: 0.5px; }
.print-options h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 400; margin-bottom: 20px; }
.print-field { margin-bottom: 20px; }
.print-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.print-field select { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-border); border-radius: 8px; font-size: 14px; appearance: none; background: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.printer-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); font-weight: 500; margin-top: 6px; }
.printer-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.quality-toggle { display: flex; border: 1px solid var(--gray-border); border-radius: 8px; overflow: hidden; }
.quality-option { flex: 1; padding: 10px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; background: var(--white); color: var(--gray-text); border: none; cursor: pointer; transition: all 0.2s; }
.quality-option.active { background: var(--ash-grey); color: var(--white); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.toggle-row span { font-size: 13px; font-weight: 500; }
.toggle-switch { width: 44px; height: 24px; border-radius: 12px; background: var(--dust-grey); position: relative; cursor: pointer; transition: background 0.2s; }
.toggle-switch.on { background: var(--ash-grey); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.toggle-switch.on::after { transform: translateX(20px); }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ash-grey); }
.checkbox-row span { font-size: 13px; font-weight: 500; }
.btn-print { width: 100%; padding: 14px; background: var(--ash-grey); color: var(--white); border-radius: 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; margin-top: 20px; }
.btn-print:hover { background: var(--primary-dark); }
.btn-print svg { width: 18px; height: 18px; }
.print-time { text-align: center; font-size: 11px; color: var(--gray-text); font-weight: 600; margin-top: 8px; letter-spacing: 0.3px; }
.consumibles { margin-top: 24px; background: var(--white); border-radius: var(--card-radius); border: 1px solid var(--gray-border); padding: 16px; }
.consumibles-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.consumibles-label { font-size: 11px; font-weight: 700; color: var(--gray-text); letter-spacing: 0.3px; display: flex; align-items: center; gap: 6px; }
.consumibles-label svg { width: 14px; height: 14px; color: var(--green); }
.consumibles-count { font-size: 12px; color: var(--gray-text); font-weight: 500; }
.consumibles-bar { height: 8px; background: var(--parchment); border-radius: 4px; overflow: hidden; }
.consumibles-bar-fill { height: 100%; background: var(--green); border-radius: 4px; width: 74%; }
.consumibles-info { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 600; }
.consumibles-info span:first-child { color: var(--text-primary); }
.consumibles-info span:last-child { color: var(--gray-text); }

/* ═══════════════════════════════════════
   PRINT SIMULATION MODAL
   ═══════════════════════════════════════ */
.print-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(73,72,72,0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.print-modal-card { background: var(--white); border-radius: 16px; padding: 40px; text-align: center; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.print-modal-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 400; margin-bottom: 12px; color: var(--iron-grey); }
.print-modal-card p { font-size: 14px; color: var(--gray-text); margin-bottom: 20px; }
.print-progress { height: 8px; background: var(--parchment); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.print-progress-fill { height: 100%; background: var(--ash-grey); border-radius: 4px; width: 0%; transition: width 2s ease; }
.print-modal-check { width: 60px; height: 60px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.print-modal-check svg { width: 28px; height: 28px; color: var(--green); }

/* ═══════════════════════════════════════
   MOBILE (mobile.html)
   ═══════════════════════════════════════ */
body.mobile-page { background: #1a1a2e; display: flex; align-items: center; justify-content: center; overflow: hidden; height: 100vh; padding: 20px; }
.phone-frame { width: 375px; height: 812px; background: var(--white); border-radius: 40px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.4); position: relative; display: flex; flex-direction: column; border: 8px solid #2d2d3f; transform-origin: center center; }
@media (max-height: 860px) { .phone-frame { transform: scale(calc(100vh / 860px)); } }
@media (max-height: 700px) { .phone-frame { transform: scale(0.75); } }
.phone-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 8px; font-size: 12px; font-weight: 600; background: var(--white); }
.phone-status-bar .time { font-weight: 700; }
.phone-status-icons { display: flex; align-items: center; gap: 4px; }
.phone-status-icons svg { width: 14px; height: 14px; }
.mobile-header { display: flex; align-items: center; padding: 12px 20px; gap: 12px; }
.mobile-back { font-size: 20px; color: var(--text-primary); }
.mobile-header h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 700; margin-right: 24px; }
.mobile-content { flex: 1; overflow-y: auto; padding: 8px 20px 20px; display: flex; flex-direction: column; align-items: center; }
.mobile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--green); overflow: hidden; position: relative; margin-bottom: 4px; background: #e2e8f0; }
.mobile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-avatar-badge { position: absolute; bottom: 4px; right: 4px; width: 28px; height: 28px; background: var(--green); border-radius: 50%; border: 3px solid var(--white); display: flex; align-items: center; justify-content: center; }
.mobile-avatar-badge svg { width: 14px; height: 14px; color: var(--white); }
.mobile-name { font-size: 22px; font-weight: 800; margin-top: 12px; text-align: center; }
.mobile-id { font-size: 15px; color: var(--ash-grey); font-weight: 600; margin-top: 4px; }
.validation-banner { width: 100%; background: var(--green-light); border-left: 4px solid var(--green); border-radius: 8px; padding: 16px; display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.validation-icon { width: 36px; height: 36px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.validation-icon svg { width: 18px; height: 18px; color: var(--white); }
.validation-text strong { display: block; font-size: 14px; color: var(--green); font-weight: 800; }
.validation-text span { font-size: 12px; color: #3D6B4E; }
.info-card { width: 100%; background: var(--white); border-radius: 12px; border: 1px solid var(--gray-border); box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 20px; margin-top: 16px; }
.info-card h3 { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.3px; margin-bottom: 16px; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--parchment); }
.info-row:last-child { border-bottom: none; }
.info-row-left { flex: 1; }
.info-row-label { font-size: 10px; font-weight: 700; color: var(--gray-text); letter-spacing: 0.3px; text-transform: uppercase; }
.info-row-value { font-size: 14px; font-weight: 600; margin-top: 2px; }
.info-row-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--gray-text); }
.info-row-icon svg { width: 18px; height: 18px; }
.badge-green { display: inline-block; background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 8px; }
.mobile-footer-text { font-size: 10px; color: var(--gray-text); text-align: center; margin-top: 16px; letter-spacing: 0.3px; }
.btn-verify { width: 100%; padding: 16px; background: var(--green); color: var(--white); border-radius: 12px; font-size: 16px; font-weight: 700; text-align: center; margin-top: 16px; transition: background 0.2s; }
.btn-verify:hover { background: #3D6B4E; }
.mobile-link-footer { position: fixed; bottom: 60px; right: 20px; z-index: 1001; background: var(--ash-grey); color: var(--white); padding: 10px 18px; border-radius: 9999px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(145,168,164,0.4); display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.mobile-link-footer:hover { background: var(--primary-dark); }
