/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.xrm-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a2e; background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1F60AB;
  --primary-dark: #174A86;
  --primary-light: #E8F1FA;
  --accent: #ED6B12;
  --accent-dark: #B94F0D;
  --green: #22C55E;
  --green-light: #E8F5E9;
  --blue: #1F60AB;
  --blue-light: #E8F1FA;
  --cyan: #4C9BDA;
  --red: #EF4444;
  --yellow: #ED6B12;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.16);
  --radius: 16px;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all .3s;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary-dark); }
.navbar-logo .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 900; }
.navbar-links { display: flex; gap: 32px; list-style: none; }
.navbar-links a { font-size: .9rem; font-weight: 500; color: var(--gray-600); transition: color .2s; }
.navbar-links a:hover { color: var(--primary); }
.navbar-cta { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: .9rem; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,115,0,.35); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, #f8f6ff 0%, #fff 40%, #fff5ec 100%);
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(81,43,212,.06) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,115,0,.05) 0%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); font-size: .8rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--gray-900); }
.hero p { font-size: 1.15rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,115,0,.35); }
.btn-secondary { background: #fff; color: var(--primary); padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 2px solid var(--primary-light); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }

/* ===== PHONE MOCKUP ===== */
.phone-showcase { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
  width: 280px; height: 580px; border-radius: 36px;
  background: #111; padding: 12px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), inset 0 0 0 2px #333;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: #fff; position: relative;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 28px; background: #111; border-radius: 0 0 16px 16px; z-index: 10;
}
.phone-notch::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; background: #333; border-radius: 2px;
}

/* Phone screen contents */
.screen-login {
  background: linear-gradient(145deg, #062a56, #1f60ab);
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.screen-login .login-card {
  background: rgba(255,255,255,.95); border-radius: 16px; padding: 24px; width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.screen-login .login-logo { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 18px; }
.screen-login .login-title { text-align: center; font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.screen-login .login-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.screen-login .login-input .material-symbols-outlined { font-size: 16px; color: var(--gray-400); }
.screen-login .login-input span:last-child { font-size: 11px; color: var(--gray-400); }
.screen-login .login-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 12px; letter-spacing: .5px; margin-top: 4px; cursor: pointer; }
.screen-login .login-bio { display: flex; justify-content: center; margin-top: 14px; }
.screen-login .login-bio-btn { width: 40px; height: 40px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.screen-login .login-bio-btn .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.screen-login .login-footer { position: absolute; bottom: 0; left: 0; right: 0; background: #111; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 26px 26px; }
.screen-login .login-footer span { color: #fff; font-size: 9px; font-weight: 600; }

/* Dashboard screen */
.screen-dashboard { height: 100%; background: var(--gray-50); overflow: hidden; }
.screen-statusbar { height: 32px; background: var(--primary-dark); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.screen-statusbar span { font-size: 9px; color: #fff; font-weight: 500; }
.screen-header { background: linear-gradient(135deg, #1F60AB, #2B73BD, #5A9AD6); padding: 14px 14px 16px; }
.screen-header .greeting { font-size: 10px; color: rgba(255,255,255,.7); }
.screen-header .name { font-size: 15px; font-weight: 700; color: #fff; margin-top: 2px; }
.screen-header .company { font-size: 9px; color: rgba(255,255,255,.6); margin-top: 2px; }
.dash-content { padding: 10px; }
.dash-card { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.dash-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-card-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-card-icon .material-symbols-outlined { font-size: 15px; }
.dash-card-title { font-size: 11px; font-weight: 700; color: var(--gray-900); }
.dash-banner { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; margin-bottom: 4px; }
.dash-banner .material-symbols-outlined { font-size: 13px; }
.dash-banner span { font-size: 9px; font-weight: 500; }
.dash-timeline-item { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; position: relative; }
.dash-timeline-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 3px; flex-shrink: 0; }
.dash-timeline-line { position: absolute; left: 3.5px; top: 16px; bottom: -5px; width: 1px; background: var(--gray-200); }
.dash-timeline-text .time { font-size: 10px; font-weight: 700; color: var(--gray-900); }
.dash-timeline-text .type { font-size: 8px; color: var(--gray-400); }

/* Fichajes screen */
.screen-fichajes { height: 100%; background: var(--gray-50); overflow: hidden; }
.fichaje-employee { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.fichaje-employee-icon { width: 32px; height: 32px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.fichaje-employee-icon .material-symbols-outlined { font-size: 16px; color: var(--blue); }
.fichaje-employee-info .emp-name { font-size: 11px; font-weight: 700; }
.fichaje-employee-info .emp-company { font-size: 9px; color: var(--gray-400); }
.fichaje-buttons { display: flex; gap: 6px; padding: 0 12px; margin-bottom: 8px; }
.fichaje-btn { flex: 1; padding: 10px 0; border: none; border-radius: 10px; font-weight: 700; font-size: 10px; letter-spacing: .3px; cursor: pointer; }
.fichaje-btn.entrada { background: var(--green); color: #fff; }
.fichaje-btn.salida { background: var(--red); color: #fff; }
.fichaje-btn.fichar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }

/* CRM screen */
.screen-crm { height: 100%; background: var(--gray-50); overflow: hidden; }
.crm-header { background: var(--primary-dark); padding: 36px 14px 14px; }
.crm-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.crm-search { margin: -8px 12px 8px; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); }
.crm-search .material-symbols-outlined { font-size: 16px; color: var(--gray-400); }
.crm-search span { font-size: 11px; color: var(--gray-400); }
.crm-list { padding: 0 12px; }
.crm-group-header { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; }
.crm-group-letter { width: 20px; height: 20px; background: var(--primary); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 700; }
.crm-item { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.crm-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.crm-item-info { flex: 1; min-width: 0; }
.crm-item-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-item-sub { font-size: 9px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-item .material-symbols-outlined { font-size: 14px; color: var(--gray-400); }

/* Activities screen */
.screen-activities { height: 100%; background: var(--gray-50); overflow: hidden; }
.act-header { background: var(--primary-dark); padding: 36px 14px 10px; }
.act-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.act-calendar { background: #fff; margin: 8px; border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); }
.act-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding: 0 4px; }
.act-cal-month { font-size: 11px; font-weight: 700; }
.act-cal-nav { display: flex; gap: 4px; }
.act-cal-nav span { font-size: 14px; color: var(--gray-400); cursor: pointer; }
.act-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.act-cal-day { font-size: 7px; color: var(--gray-400); padding: 2px 0; font-weight: 600; }
.act-cal-date { font-size: 8px; padding: 3px 0; border-radius: 50%; cursor: pointer; }
.act-cal-date.today { background: var(--primary); color: #fff; font-weight: 700; }
.act-cal-date.has-event { position: relative; }
.act-cal-date.has-event::after { content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }
.act-event { display: flex; gap: 8px; padding: 6px 10px; margin: 0 8px 4px; }
.act-event-bar { width: 3px; border-radius: 2px; flex-shrink: 0; }
.act-event-info .ev-title { font-size: 9px; font-weight: 600; }
.act-event-info .ev-time { font-size: 8px; color: var(--gray-400); }

/* NFC screen */
.screen-nfc { height: 100%; background: var(--gray-50); overflow: hidden; }
.nfc-header { background: var(--primary-dark); padding: 36px 14px 14px; }
.nfc-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.nfc-status { display: flex; gap: 6px; padding: 8px 12px; }
.nfc-status-badge { flex: 1; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: 8px; font-weight: 600; }
.nfc-card { background: #fff; margin: 8px 12px; border-radius: 14px; padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.nfc-icon-big { width: 64px; height: 64px; background: var(--green-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.nfc-icon-big .material-symbols-outlined { font-size: 30px; color: var(--green); }
.nfc-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.nfc-waiting { background: var(--gray-100); border-radius: 8px; padding: 10px; font-size: 10px; color: var(--gray-400); }
.nfc-pulse { animation: nfcPulse 2s infinite; }
@keyframes nfcPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.3); } 50% { box-shadow: 0 0 0 16px rgba(34,197,94,0); } }

/* RRHH screen */
.screen-rrhh { height: 100%; background: var(--gray-50); overflow: hidden; }
.rrhh-header { background: var(--primary-dark); padding: 36px 14px 14px; }
.rrhh-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.rrhh-card { background: #fff; margin: 8px 12px; border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.rrhh-card-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rrhh-card-icon .material-symbols-outlined { font-size: 22px; }
.rrhh-card-info { flex: 1; }
.rrhh-card-title { font-size: 12px; font-weight: 700; }
.rrhh-card-sub { font-size: 9px; color: var(--gray-400); margin-top: 2px; line-height: 1.3; }
.rrhh-summary { background: #fff; margin: 8px 12px; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.rrhh-summary-title { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; margin-bottom: 10px; }
.rrhh-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rrhh-stat { text-align: center; padding: 10px 6px; border-radius: 10px; }
.rrhh-stat .num { font-size: 18px; font-weight: 800; }
.rrhh-stat .lbl { font-size: 7px; font-weight: 600; color: var(--gray-600); margin-top: 2px; }

/* Settings screen */
.screen-settings { height: 100%; background: var(--gray-50); overflow: hidden; }
.settings-header { background: var(--primary-dark); padding: 36px 14px 14px; }
.settings-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.settings-card { background: #fff; margin: 8px 12px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.settings-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.settings-item:last-child { border-bottom: none; }
.settings-item-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-item-icon .material-symbols-outlined { font-size: 16px; }
.settings-item-info { flex: 1; }
.settings-item-label { font-size: 11px; font-weight: 600; }
.settings-item-value { font-size: 9px; color: var(--gray-400); }
.toggle { width: 34px; height: 20px; background: var(--green); border-radius: 10px; position: relative; }
.toggle::after { content: ''; width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 2px; right: 2px; }

/* ===== FEATURE SECTIONS ===== */
.feature-section { padding: 100px 0; position: relative; }
.feature-section:nth-child(even) { background: var(--gray-50); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: .75rem; font-weight: 600; margin-bottom: 16px; }
.feature-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.feature-desc { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--gray-600); line-height: 1.5; }
.feature-list .check { width: 22px; height: 22px; background: var(--green-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.feature-list .check .material-symbols-outlined { font-size: 14px; color: var(--green); }

/* ===== MODULES SECTION ===== */
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.module-card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: all .3s; cursor: pointer; position: relative; overflow: hidden;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.module-card:nth-child(1)::before { background: linear-gradient(90deg, var(--green), #10B981); }
.module-card:nth-child(2)::before { background: linear-gradient(90deg, var(--primary), #2B73BD); }
.module-card:nth-child(3)::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.module-card:nth-child(4)::before { background: linear-gradient(90deg, var(--yellow), var(--accent)); }
.module-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.module-icon .material-symbols-outlined { font-size: 28px; }
.module-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.module-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.5; }

/* ===== BENEFITS ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.benefit-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.benefit-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-icon .material-symbols-outlined { font-size: 24px; }
.benefit-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.benefit-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary), #2B73BD);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-section h2 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary-dark); padding: 16px 36px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; padding: 16px 36px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 2px solid rgba(255,255,255,.3); cursor: pointer; transition: all .2s; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: #fff; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), #2B73BD); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-400); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .8rem; color: var(--gray-400); }

/* ===== FLOATING PHONES ===== */
.phones-duo { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.phone.small { width: 240px; height: 500px; }
.phone.tilted-left { transform: perspective(800px) rotateY(8deg) rotateX(2deg); }
.phone.tilted-right { transform: perspective(800px) rotateY(-8deg) rotateX(2deg); }
.phone-float { animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-float-delay { animation: phoneFloat 6s ease-in-out infinite; animation-delay: -3s; }

/* ===== BOTTOM TAB BAR IN PHONE ===== */
.phone-tabbar { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--gray-200); padding: 6px 0 14px; display: flex; justify-content: space-around; border-radius: 0 0 26px 26px; z-index: 5; }
.phone-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-tab .material-symbols-outlined { font-size: 18px; color: var(--gray-400); }
.phone-tab span:last-child { font-size: 7px; color: var(--gray-400); }
.phone-tab.active .material-symbols-outlined { color: var(--primary); }
.phone-tab.active span:last-child { color: var(--primary); font-weight: 600; }

/* ===== EXPORT SCREEN ===== */
.screen-export { height: 100%; background: var(--gray-50); overflow: hidden; }
.export-header { background: var(--primary-dark); padding: 36px 14px 14px; }
.export-header .title { font-size: 16px; font-weight: 700; color: #fff; }
.export-card { background: #fff; margin: 12px; border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.export-icon { width: 52px; height: 52px; background: var(--blue-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.export-icon .material-symbols-outlined { font-size: 26px; color: var(--blue); }
.export-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.export-pickers { display: flex; gap: 8px; margin-bottom: 16px; }
.export-picker { flex: 1; padding: 10px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 10px; font-weight: 600; text-align: center; }
.export-btn-pdf { width: 100%; padding: 12px; background: #C62828; color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.export-btn-excel { width: 100%; padding: 12px; background: #2E7D32; color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; margin-top: 8px; }

/* ===== CONTACT DETAIL SCREEN ===== */
.screen-detail { height: 100%; background: var(--gray-50); overflow: hidden; }
.detail-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 36px 14px 14px; }
.detail-avatar { width: 44px; height: 44px; background: rgba(255,255,255,.2); border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.detail-avatar .material-symbols-outlined { font-size: 24px; color: #fff; }
.detail-name { font-size: 14px; font-weight: 700; color: #fff; }
.detail-company { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; }
.detail-actions { display: flex; gap: 6px; margin-top: 10px; }
.detail-action { width: 34px; height: 34px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.detail-action .material-symbols-outlined { font-size: 16px; color: #fff; }
.detail-section { background: #fff; margin: 8px 12px; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.detail-section-title { font-size: 9px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.detail-field { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.detail-field:last-child { border-bottom: none; }
.detail-field .material-symbols-outlined { font-size: 14px; color: var(--gray-400); }
.detail-field span { font-size: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner, .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .phones-duo { flex-wrap: wrap; }
  .feature-grid.reverse { direction: ltr; }
  .phone.tilted-left, .phone.tilted-right { transform: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .feature-title { font-size: 1.6rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .phone { width: 240px; height: 500px; }
  .phone.small { width: 210px; height: 440px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all .6s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }