/* ============================================================
   CVC Viagens — Intranet Interna
   Stylesheet Principal — Redesign v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  /* Brand */
  --cvc-orange:       #FF5A00;
  --cvc-orange-dark:  #D94B00;
  --cvc-orange-light: #FF7A30;
  --cvc-orange-pale:  #FFF3ED;
  --cvc-blue:         #003087;
  --cvc-blue-dark:    #001A52;
  --cvc-blue-mid:     #0044BB;
  --cvc-blue-pale:    #EEF3FF;

  /* Neutral */
  --cvc-bg:           #F4F6FB;
  --cvc-gray:         #F0F2F8;
  --cvc-gray-mid:     #DDE1EF;
  --cvc-gray-line:    #E8EAF3;
  --cvc-text:         #1A1D2E;
  --cvc-text-light:   #6B728E;
  --cvc-white:        #FFFFFF;

  /* Semantic */
  --cvc-green:        #0EA864;
  --cvc-red:          #E53935;
  --cvc-yellow:       #F59E0B;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,32,100,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,32,100,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,32,100,0.16), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-orange: 0 8px 24px rgba(255,90,0,0.30);

  /* Design tokens */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  5px;
  --transition: all 0.20s cubic-bezier(0.4,0,0.2,1);

  /* Sidebar */
  --sidebar-w:  256px;
  --sidebar-bg: #001A52;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--cvc-bg);
  color: var(--cvc-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'DM Sans', sans-serif;
  font-weight: 700;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--cvc-blue-dark);
  position: relative;
  overflow: hidden;
}

/* Diagonal geometric split */
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, var(--cvc-blue-dark) 0%, #002070 45%, var(--cvc-blue) 100%);
  z-index: 0;
}

/* Decorative arc — top right */
.login-page::after {
  content: '';
  position: absolute;
  top: -120px;
  right: 380px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,0,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  z-index: 1;
}

/* Decorative bottom-left blob */
.login-left::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.login-brand {
  text-align: center;
  color: var(--cvc-white);
  margin-bottom: 52px;
}

.login-brand .logo-circle {
  width: 100px;
  height: 100px;
  background: #FEE600;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  padding: 8px;
  box-shadow: 0 8px 28px rgba(254,230,0,0.35);
  position: relative;
  overflow: hidden;
}

.login-brand .logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand h1 {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.login-brand p {
  font-size: 15px;
  opacity: 0.65;
  font-weight: 400;
}

.login-features {
  list-style: none;
  width: 100%;
  max-width: 340px;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.login-features li .feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-right {
  width: 460px;
  background: var(--cvc-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255,255,255,0.06);
}

/* top accent line */
.login-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
}

.login-form-wrap {
  width: 100%;
}

.login-form-wrap h2 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--cvc-blue-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-form-wrap .subtitle {
  font-size: 14px;
  color: var(--cvc-text-light);
  margin-bottom: 36px;
  font-weight: 400;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cvc-text);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cvc-gray-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--cvc-text);
  background: var(--cvc-gray);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--cvc-orange);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.10);
}

.form-group input.error {
  border-color: var(--cvc-red);
}

.form-group .input-hint {
  font-size: 11px;
  color: var(--cvc-text-light);
  margin-top: 5px;
}

.form-group .input-error {
  font-size: 11px;
  color: var(--cvc-red);
  margin-top: 5px;
  display: none;
}

.form-row-link {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
  margin-bottom: 22px;
}

.form-row-link a {
  font-size: 13px;
  color: var(--cvc-orange);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.form-row-link a:hover {
  text-decoration: underline;
  color: var(--cvc-orange-dark);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-primary:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary:hover {
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--cvc-gray);
  color: var(--cvc-text);
  border: 1.5px solid var(--cvc-gray-mid);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--cvc-orange);
  color: var(--cvc-orange);
}

.btn-outline {
  padding: 9px 18px;
  background: transparent;
  color: var(--cvc-orange);
  border: 1.5px solid var(--cvc-orange);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--cvc-orange);
  color: white;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--cvc-text-light);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cvc-gray-line);
}

.form-alt-link {
  text-align: center;
  font-size: 13px;
  color: var(--cvc-text-light);
  margin-top: 20px;
}

.form-alt-link a {
  color: var(--cvc-orange);
  font-weight: 600;
  cursor: pointer;
}

.form-alt-link a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  font-weight: 500;
}

.alert.success {
  background: #ECFDF5;
  color: #065f46;
  border: 1px solid #A7F3D0;
}

.alert.error {
  background: #FEF2F2;
  color: #991b1b;
  border: 1px solid #FECACA;
}

.alert.info {
  background: var(--cvc-blue-pale);
  color: #1e40af;
  border: 1px solid #BFDBFE;
}

/* ============================================================
   LAYOUT PRINCIPAL (SIDEBAR + CONTENT)
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

/* subtle vertical accent stripe */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent 100%);
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-logo .logo-badge {
  width: 40px;
  height: 40px;
  background: #FEE600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(254,230,0,0.30);
}

.sidebar-logo .logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-logo .logo-text h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.sidebar-logo .logo-text span {
  font-size: 10.5px;
  color: rgba(255,255,255,0.40);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-section-title {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.28);
  padding: 16px 20px 6px;
  font-family: 'DM Sans', sans-serif;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
}

.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}

.nav-item.active {
  background: rgba(255,90,0,0.18);
  color: white;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--cvc-orange);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--cvc-orange);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.nav-item.external .nav-ext {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.35;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
}

.btn-logout {
  width: 100%;
  padding: 9px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-logout:hover {
  background: rgba(229,57,53,0.16);
  color: #FCA5A5;
  border-color: rgba(229,57,53,0.24);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--cvc-bg);
}

/* Subtle dot-grid background texture */
.main-content::before {
  content: '';
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(0,48,135,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  background: var(--cvc-white);
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cvc-gray-line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-left h2 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
  letter-spacing: -0.2px;
}

.topbar-left p {
  font-size: 12.5px;
  color: var(--cvc-text-light);
  line-height: 1;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--cvc-gray);
  border-radius: 20px;
  font-size: 12px;
  color: var(--cvc-text-light);
  border: 1px solid var(--cvc-gray-mid);
}

.topbar-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--cvc-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(14,168,100,0.20);
}

.page-body {
  padding: 28px 32px;
  flex: 1;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */

.card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--cvc-gray-line);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--cvc-gray-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
}

.card-body {
  padding: 22px;
}

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--cvc-gray-line);
  border-top: 3px solid var(--cvc-orange);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cvc-orange);
  opacity: 0.04;
  transform: translate(30px, -30px);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card.blue  { border-top-color: var(--cvc-blue); }
.stat-card.blue::after  { background: var(--cvc-blue); }
.stat-card.green { border-top-color: var(--cvc-green); }
.stat-card.green::after { background: var(--cvc-green); }
.stat-card.yellow{ border-top-color: var(--cvc-yellow); }
.stat-card.yellow::after{ background: var(--cvc-yellow); }

.stat-icon {
  font-size: 26px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cvc-orange-pale);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-card.blue  .stat-icon { background: var(--cvc-blue-pale); }
.stat-card.green .stat-icon { background: #ECFDF5; }
.stat-card.yellow .stat-icon{ background: #FFFBEB; }

.stat-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--cvc-blue-dark);
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-info p {
  font-size: 12px;
  color: var(--cvc-text-light);
  margin-top: 4px;
}

/* ============================================================
   QUICK NAV CARDS (Dashboard)
   ============================================================ */

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.quick-nav-card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--cvc-gray-line);
  position: relative;
  overflow: hidden;
}

.quick-nav-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cvc-orange);
  opacity: 0.04;
  transform: translate(20px, 20px);
  transition: var(--transition);
}

.quick-nav-card:hover {
  border-color: var(--cvc-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quick-nav-card:hover::before {
  opacity: 0.08;
  transform: translate(10px, 10px);
}

.quick-nav-card .card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 4px 12px rgba(255,90,0,0.25);
}

.quick-nav-card.blue .card-icon {
  background: linear-gradient(135deg, var(--cvc-blue) 0%, var(--cvc-blue-mid) 100%);
  box-shadow: 0 4px 12px rgba(0,48,135,0.25);
}

.quick-nav-card.green .card-icon {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}

.quick-nav-card.purple .card-icon {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}

.quick-nav-card.teal .card-icon {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

.quick-nav-card.indigo .card-icon {
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
  box-shadow: 0 4px 12px rgba(67,56,202,0.25);
}

.quick-nav-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.quick-nav-card p {
  font-size: 12px;
  color: var(--cvc-text-light);
  line-height: 1.5;
}

.quick-nav-card .ext-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--cvc-gray);
  color: var(--cvc-text-light);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid var(--cvc-gray-mid);
}

/* ============================================================
   MAPA DA MINA
   ============================================================ */

.mapa-controls {
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--cvc-gray-line);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--cvc-text-light);
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--cvc-gray-mid);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: var(--cvc-gray);
  color: var(--cvc-text);
}

.search-input-wrap input:focus {
  border-color: var(--cvc-orange);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.10);
}

.filter-select {
  padding: 10px 12px;
  border: 1.5px solid var(--cvc-gray-mid);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--cvc-text);
  outline: none;
  cursor: pointer;
  background: var(--cvc-gray);
  transition: var(--transition);
  min-width: 160px;
}

.filter-select:focus {
  border-color: var(--cvc-orange);
  background: white;
}

.result-count {
  font-size: 13px;
  color: var(--cvc-text-light);
  white-space: nowrap;
}

.result-count strong {
  color: var(--cvc-orange);
  font-weight: 700;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--cvc-gray-line);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--cvc-orange);
}

.product-header {
  background: linear-gradient(135deg, var(--cvc-blue-dark) 0%, var(--cvc-blue) 60%, var(--cvc-blue-mid) 100%);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.product-header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.product-dest {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.product-orig {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.product-avail-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

.product-avail-badge.many {
  background: rgba(14,168,100,0.22);
  color: #6EE7B7;
  border: 1px solid rgba(14,168,100,0.3);
}

.product-avail-badge.one {
  background: rgba(245,158,11,0.22);
  color: #FCD34D;
  border: 1px solid rgba(245,158,11,0.3);
}

.product-body {
  padding: 16px 20px;
  flex: 1;
}

.product-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cvc-text-light);
  margin-bottom: 8px;
}

.product-info-row .pinfo-icon { font-size: 14px; }

.product-info-row strong {
  color: var(--cvc-text);
  font-weight: 600;
}

.product-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cvc-gray-line);
}

.product-price .price-label {
  font-size: 10.5px;
  color: var(--cvc-text-light);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.product-price .price-value {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--cvc-orange);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.product-price .price-per {
  font-size: 12px;
  color: var(--cvc-text-light);
  font-weight: 400;
}

.product-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--cvc-gray-line);
  display: flex;
  gap: 8px;
}

.btn-ver-oferta {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ver-oferta:hover {
  box-shadow: 0 4px 12px rgba(255,90,0,0.30);
  transform: translateY(-1px);
}

/* ============================================================
   FORNECEDORES
   ============================================================ */

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.supplier-card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--cvc-gray-line);
  border-left: 4px solid var(--cvc-blue);
}

.supplier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.supplier-card.hotel      { border-left-color: var(--cvc-orange); }
.supplier-card.aereo      { border-left-color: #6366F1; }
.supplier-card.transporte { border-left-color: var(--cvc-green); }
.supplier-card.seguro     { border-left-color: var(--cvc-yellow); }
.supplier-card.receptivo  { border-left-color: #EC4899; }

.supplier-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
  margin-bottom: 4px;
}

.supplier-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--cvc-orange);
  margin-bottom: 14px;
}

.supplier-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cvc-text);
  margin-bottom: 7px;
}

.supplier-contact-row .sc-icon {
  font-size: 14px;
  color: var(--cvc-text-light);
  width: 18px;
  text-align: center;
}

.supplier-contact-row a {
  color: var(--cvc-orange);
}

.supplier-contact-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   MARKETING
   ============================================================ */

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.marketing-card {
  background: var(--cvc-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--cvc-gray-line);
}

.marketing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.marketing-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.marketing-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--cvc-blue) 0%, var(--cvc-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.marketing-info {
  padding: 16px;
}

.marketing-title {
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
  margin-bottom: 4px;
}

.marketing-meta {
  font-size: 12px;
  color: var(--cvc-text-light);
  margin-bottom: 12px;
}

.marketing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.marketing-tag {
  padding: 3px 8px;
  background: var(--cvc-gray);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--cvc-text-light);
  font-weight: 500;
  border: 1px solid var(--cvc-gray-line);
}

.marketing-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-sm.orange {
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  color: white;
}

.btn-sm.orange:hover {
  box-shadow: 0 3px 8px rgba(255,90,0,0.30);
}

.btn-sm.gray {
  background: var(--cvc-gray);
  color: var(--cvc-text);
  border: 1px solid var(--cvc-gray-mid);
}

.btn-sm.gray:hover {
  border-color: var(--cvc-orange);
  color: var(--cvc-orange);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  flex-wrap: wrap;
  border: 1px solid var(--cvc-gray-line);
}

.admin-tab {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--cvc-text-light);
  border: none;
  background: transparent;
}

.admin-tab:hover {
  background: var(--cvc-gray);
  color: var(--cvc-text);
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--cvc-orange) 0%, var(--cvc-orange-light) 100%);
  color: white;
  box-shadow: 0 3px 8px rgba(255,90,0,0.25);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* TABLE */
.table-wrap {
  background: var(--cvc-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--cvc-gray-line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--cvc-gray);
  padding: 12px 16px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cvc-text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--cvc-gray-mid);
}

.data-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--cvc-text);
  border-bottom: 1px solid var(--cvc-gray-line);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #FAFBFF;
}

.badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge.green  { background: #ECFDF5; color: #065F46; }
.badge.red    { background: #FEF2F2; color: #991B1B; }
.badge.yellow { background: #FFFBEB; color: #92400E; }
.badge.blue   { background: var(--cvc-blue-pale); color: #1E40AF; }
.badge.orange { background: var(--cvc-orange-pale); color: #9A3412; }
.badge.gray   { background: var(--cvc-gray); color: var(--cvc-text-light); }

.btn-action {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  margin-right: 4px;
}

.btn-action.danger  { background: #FEF2F2; color: #991B1B; }
.btn-action.danger:hover { background: #FECACA; }
.btn-action.info    { background: var(--cvc-blue-pale); color: #1E40AF; }
.btn-action.info:hover { background: #BFDBFE; }
.btn-action.success { background: #ECFDF5; color: #065F46; }
.btn-action.success:hover { background: #A7F3D0; }

/* IMPORT ZONE */
.import-zone {
  border: 2px dashed var(--cvc-gray-mid);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  transition: var(--transition);
  background: var(--cvc-white);
  cursor: pointer;
}

.import-zone:hover, .import-zone.dragover {
  border-color: var(--cvc-orange);
  background: var(--cvc-orange-pale);
}

.import-zone .import-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.import-zone h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
  margin-bottom: 8px;
}

.import-zone p {
  font-size: 14px;
  color: var(--cvc-text-light);
  margin-bottom: 20px;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,16,60,0.50);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--cvc-white);
  border-radius: var(--radius);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--cvc-gray-line);
  animation: modalIn 0.22s cubic-bezier(0.4,0,0.2,1);
}

@keyframes modalIn {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--cvc-gray-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cvc-blue-dark);
}

.modal-close {
  width: 30px;
  height: 30px;
  background: var(--cvc-gray);
  border: none;
  border-radius: var(--radius-xs);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cvc-text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--cvc-gray-mid);
  color: var(--cvc-text);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--cvc-gray-line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--cvc-text-light);
}

.empty-state .empty-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cvc-text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   TOAST
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--cvc-white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cvc-text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: slideInRight 0.28s cubic-bezier(0.4,0,0.2,1);
  border-left: 4px solid var(--cvc-orange);
  border: 1px solid var(--cvc-gray-line);
  border-left: 4px solid var(--cvc-orange);
}

.toast.success { border-left-color: var(--cvc-green); }
.toast.error   { border-left-color: var(--cvc-red); }
.toast.info    { border-left-color: var(--cvc-blue); }

@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   LOADING
   ============================================================ */

.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.85);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(3px);
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cvc-gray-mid);
  border-top-color: var(--cvc-orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   UPLOAD AREA (Marketing)
   ============================================================ */

.upload-area {
  background: var(--cvc-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid var(--cvc-gray-line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { width: 100%; padding: 40px 28px; }
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .main-content::before { left: 0; }
  .topbar { padding: 0 16px; }
  .page-body { padding: 16px; }
}

@media (max-width: 600px) {
  .products-grid   { grid-template-columns: 1fr; }
  .quick-nav-grid  { grid-template-columns: 1fr 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
}
