/* ============================================================
   KIKOTO - Agency Management Platform
   style.css - Complete Stylesheet
   ============================================================ */

/* === CSS Variables === */
:root {
  --primary: #288cfc;
  --primary-dark: #1474d4;
  --primary-light: #5aa9fd;
  --primary-50: #eef6ff;
  --primary-100: #cce5ff;

  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #ced4da;
  --gray-400: #909293;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #16191d;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 5px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --transition: all 0.18s ease;
  --sidebar-width: 244px;
  --header-height: 64px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(20px) scale(0.96); }
}

.section-page { animation: fadeInUp 0.22s ease; }

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

#page-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-left {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 48px;
  position: relative;
}

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

.login-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 36px;
  font-weight: 500;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-900);
  transition: var(--transition);
  outline: none;
}
.form-input:hover { border-color: var(--primary-light); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); background: #fafcff; }
.form-input::placeholder { color: var(--gray-300); font-style: italic; }
.form-input.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-input.is-valid  { border-color: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,0.08); }
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909293' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
  cursor: pointer;
}
select.form-input:hover {
  border-color: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23288cfc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23288cfc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.error-msg {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.error-msg.visible { display: block; animation: fadeInUp 0.15s ease; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  box-shadow: 0 1px 2px rgba(37,99,235,0.25), 0 4px 12px rgba(37,99,235,0.15);
  letter-spacing: 0.01em;
}
.btn-primary:hover  { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(37,99,235,0.35), 0 8px 20px rgba(37,99,235,0.22); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(37,99,235,0.2); }
.btn-primary:focus-visible { outline: 3px solid rgba(37,99,235,0.45); outline-offset: 2px; }
.btn-primary:disabled, .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-900); }
.btn-secondary:focus-visible { outline: 3px solid rgba(107,114,128,0.35); outline-offset: 2px; }
.btn-secondary:disabled, .btn-secondary[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-ghost { background: transparent; color: var(--gray-500); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:focus-visible { outline: 3px solid rgba(107,114,128,0.3); outline-offset: 2px; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.btn-danger:focus-visible { outline: 3px solid rgba(239,68,68,0.4); outline-offset: 2px; }
.btn-danger:disabled, .btn-danger[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.btn-success:focus-visible { outline: 3px solid rgba(16,185,129,0.4); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-outline:focus-visible { outline: 3px solid rgba(37,99,235,0.3); outline-offset: 2px; }
.btn-outline:disabled, .btn-outline[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-sm { padding: 6px 11px; font-size: 0.8125rem; font-weight: 500; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

.lang-selector {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.lang-selector:hover { border-color: var(--gray-300); background: var(--gray-50); }

/* Login Right Panel */
.login-right {
  background: linear-gradient(145deg, #0d5fc4 0%, #1a78e8 45%, #288cfc 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.brand-logo {
  position: relative;
  z-index: 1;
}

/* Logo combinado: icono + nombre siempre juntos */
.logo-combo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text-main {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #4b5563;
  line-height: 1;
}

.logo-text-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-top: 3px;
}

/* Imagen de nombre del logo */
.logo-nombre {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Panel derecho del login — icono e imagen de nombre en blanco */
.login-right-logo .logo-icon   { filter: brightness(0) invert(1); }
.login-right-logo .logo-nombre { filter: brightness(0) invert(1); }

.login-right .logo-combo {
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.login-right .logo-icon   { height: 64px; }
.login-right .logo-nombre { height: 58px; }

/* Sidebar — imagen de nombre en blanco */
.sidebar-logo .logo-nombre { filter: brightness(0) invert(1); height: 36px; }

/* Página de activación de contraseña */
.reg-logo .logo-combo { gap: 9px; }
.reg-logo .logo-icon  { height: 46px; }
.reg-logo .logo-nombre { height: 42px; }

.dash-illus {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ======================================================
   DASHBOARD LAYOUT
====================================================== */

#page-dashboard { min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #1058be;
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.28s ease;
  box-shadow: 4px 0 20px rgba(30,58,138,0.18);
}

.sidebar-logo {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: var(--transition);
}
.sidebar-logo-btn {
  cursor: pointer;
}
.sidebar-logo:hover { background: rgba(255,255,255,0.07); }
.sidebar-logo .logo-icon { height: 30px; filter: brightness(0) invert(1); }
.sidebar-logo .logo-name { height: 18px; }
.sidebar-logo .logo-text-main { color: white !important; }
.sidebar-logo .logo-text-sub  { color: rgba(255,255,255,0.55) !important; }

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.nav-label {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.38);
  padding: 14px 10px 5px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1px;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-item.active { background: white; color: var(--primary); font-weight: 700; }
.nav-item.active .nav-ico { color: var(--primary); }

.nav-ico {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.nav-item:hover .nav-ico { color: white; }

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

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
}
.user-card:hover { background: rgba(255,255,255,0.08); }

.user-ava {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; color: white;
  flex-shrink: 0;
}

.user-name { font-size: 0.875rem; font-weight: 600; color: white; }
.user-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* Header */
.main-header {
  position: fixed;
  top: 0; left: var(--sidebar-width); right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-title { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); }
.header-right { display: flex; align-items: center; gap: 10px; }

.header-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}
.header-icon-btn:hover { background: var(--gray-100); color: var(--gray-700); }

.btn-logout {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--gray-100); color: var(--gray-700);
  border: none; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-logout:hover { background: var(--danger-light); color: var(--danger); }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: transparent; border: none; cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--gray-500); transition: var(--transition);
}
.menu-toggle:hover { background: var(--gray-100); color: var(--gray-700); }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
  min-height: 100vh;
}

.content-area { padding: 28px; max-width: 1220px; }

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ======================================================
   CARDS
====================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

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

.card-title { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); }
.card-desc { font-size: 0.8125rem; color: var(--gray-500); margin-top: 2px; margin-bottom: 20px; }
.card-desc-sm { font-size: 0.8125rem; color: var(--gray-500); margin-top: 2px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.stat-card-link { cursor: pointer; }
.stat-card-link:hover { border-color: var(--primary); box-shadow: var(--shadow-md), 0 0 0 2px var(--primary-100); transform: translateY(-1px); }

.stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon.blue { background: var(--primary-50); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.amber { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-label { font-size: 0.8125rem; color: var(--gray-500); font-weight: 500; margin-bottom: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; }
.stat-change { font-size: 0.8125rem; margin-top: 5px; display: flex; align-items: center; gap: 3px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Section header */
.sec-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.sec-title { font-size: 1.375rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.025em; }
.sec-desc { font-size: 0.875rem; color: var(--gray-500); margin-top: 3px; }

/* "Nueva reserva" nav item — stands out */
.nav-item-reservar {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-bottom: 4px;
  font-weight: 700;
}
.nav-item-reservar:hover { background: white !important; color: var(--primary) !important; }
.nav-item-reservar.active { background: white; color: var(--primary); }

/* Home bottom row: activities + CTA */
.home-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  align-items: start;
}
.home-activity-card { }
.home-reserve-card {
  border: 2px solid var(--primary-100);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(37,99,235,0.06);
}

/* ======================================================
   BOOKING STEP INDICATOR (in reserve card)
====================================================== */

.booking-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  margin-bottom: 18px;
}

.bstep {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}

.bstep-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bstep-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.bstep-active .bstep-num  { background: var(--primary); color: white; }
.bstep-active .bstep-label { color: var(--primary); }
.bstep-pending .bstep-num  { background: var(--gray-200); color: var(--gray-400); }
.bstep-pending .bstep-label { color: var(--gray-400); }
.bstep-done .bstep-num     { background: var(--success); color: white; }
.bstep-done .bstep-label   { color: var(--success); }

.bstep-arrow {
  color: var(--gray-300);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
}

/* ======================================================
   TRIP SUMMARY BANNER (shown in booking phase)
====================================================== */

.trip-summary-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: white;
  border: 1.5px solid var(--primary-100);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.trip-summary-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.trip-summary-info {
  min-width: 0;
}

.trip-summary-route {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-summary-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 1px;
}

/* Inline step indicator in banner */
.booking-steps-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bsi {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.bsi-active  { background: var(--primary); color: white; }
.bsi-done    { background: #d1fae5; color: #065f46; }
.bsi-pending { background: var(--gray-100); color: var(--gray-400); }

.bsi-sep {
  color: var(--gray-300);
  font-size: 1rem;
}

/* ======================================================
   TABLES
====================================================== */

.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

table { width: 100%; border-collapse: collapse; background: var(--white); }

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
tbody td { padding: 13px 16px; font-size: 0.875rem; color: var(--gray-700); vertical-align: middle; }

.tbl-actions { display: flex; align-items: center; gap: 5px; }

/* ======================================================
   BADGES
====================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; flex-shrink: 0;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger  { background: var(--danger-light);  color: #991b1b; }
.badge-gray    { background: var(--gray-100);       color: var(--gray-600); }
.badge-blue    { background: var(--primary-100);    color: #1058be; }
.badge-active  { background: var(--primary-100);    color: var(--primary-dark); }

/* ======================================================
   DATE / DATETIME INPUTS — custom styling
====================================================== */

input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  color-scheme: light;
  position: relative;
  cursor: pointer;
}

/* Custom calendar/clock icon via webkit pseudo-element */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease;
  border-radius: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: var(--primary-50);
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

/* Field parts colors (webkit/blink) */
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text {
  color: var(--gray-300);
  padding: 0 1px;
}

input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field {
  border-radius: 3px;
  padding: 1px 3px;
  color: var(--gray-900);
  transition: background 0.12s, color 0.12s;
}

input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus {
  background: var(--primary);
  color: white;
  outline: none;
}

/* Placeholder state (when empty) */
input[type="date"]:not(:valid)::-webkit-datetime-edit-day-field,
input[type="date"]:not(:valid)::-webkit-datetime-edit-month-field,
input[type="date"]:not(:valid)::-webkit-datetime-edit-year-field {
  color: var(--gray-400);
}

/* ======================================================
   FORMS
====================================================== */

.form-grid   { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.form-full   { grid-column: 1 / -1; }

.form-sec-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gray-400); margin-bottom: 10px; display: block;
}

.input-group { display: flex; }
.input-group .form-input:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: none; }
.input-group .form-input:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group select.form-input { flex-shrink: 0; }

.input-addon {
  display: flex; align-items: center;
  padding: 10px 11px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.8125rem; color: var(--gray-500); font-weight: 600;
  white-space: nowrap;
}

.input-with-addon { border-radius: 0 var(--radius) var(--radius) 0 !important; }

/* Right-side addon (unit label after input) */
.input-addon-right {
  display: flex; align-items: center;
  padding: 10px 11px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8125rem; color: var(--gray-500); font-weight: 600;
  white-space: nowrap;
}

/* ======================================================
   SEGMENT CONTROL
====================================================== */

.seg-ctrl {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 3px; gap: 2px;
}

.seg-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-500);
  background: transparent; border: none; cursor: pointer;
  transition: var(--transition); user-select: none;
}
.seg-btn:hover { color: var(--gray-800); background: rgba(0,0,0,0.04); }
.seg-btn.active { background: var(--white); color: var(--gray-900); box-shadow: var(--shadow); font-weight: 600; }

/* ======================================================
   CHIPS
====================================================== */

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-600); background: var(--white);
  cursor: pointer; transition: var(--transition); user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }

/* ======================================================
   FILE UPLOAD
====================================================== */

.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 24px; text-align: center;
  cursor: pointer; transition: var(--transition);
  background: var(--gray-50);
}
.upload-area:hover, .upload-area.over { border-color: var(--primary); background: var(--primary-50); }

.upload-ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--gray-400); }
.upload-txt { font-size: 0.9375rem; font-weight: 500; color: var(--gray-700); margin-bottom: 3px; }
.upload-hint { font-size: 0.8125rem; color: var(--gray-400); }
.upload-hl { color: var(--primary); font-weight: 600; }

/* ======================================================
   INVOICE CARDS
====================================================== */

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

.inv-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.inv-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }

.inv-num { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 4px; }
.inv-amount { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.025em; }
.inv-meta { font-size: 0.8125rem; color: var(--gray-500); margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }

/* ======================================================
   TOGGLE SWITCH
====================================================== */

.toggle-sw { position: relative; display: inline-block; width: 38px; height: 21px; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-sl {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-300); transition: 0.2s; border-radius: 21px;
}
.toggle-sl::before {
  position: absolute; content: '';
  height: 15px; width: 15px; left: 3px; bottom: 3px;
  background: white; transition: 0.2s; border-radius: 50%; box-shadow: var(--shadow-sm);
}
input:checked + .toggle-sl { background: var(--success); }
input:checked + .toggle-sl::before { transform: translateX(17px); }

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

#toast-root {
  position: fixed; top: 18px; right: 18px;
  z-index: 1000; display: flex; flex-direction: column; gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  min-width: 270px; max-width: 340px;
  animation: toastIn 0.25s ease;
  pointer-events: all;
}
.toast.removing { animation: toastOut 0.2s ease forwards; }

.toast-ico { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 0.875rem; font-weight: 700; color: var(--gray-900); }
.toast-msg   { font-size: 0.8125rem; color: var(--gray-500); margin-top: 1px; }

.toast-success { border-left: 3px solid var(--success); }
.toast-success .toast-ico { color: var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-error   .toast-ico { color: var(--danger); }
.toast-info    { border-left: 3px solid var(--primary); }
.toast-info    .toast-ico { color: var(--primary); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-warning .toast-ico { color: var(--warning); }

/* ======================================================
   SET PASSWORD PAGE
====================================================== */

.reg-wrap {
  width: 100%; max-width: 460px;
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); padding: 40px;
  box-shadow: var(--shadow-lg);
}
.reg-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.04em; margin-bottom: 28px; }
.reg-logo span { color: var(--gray-300); }
.reg-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.025em; margin-bottom: 6px; }
.reg-sub { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 28px; }

.steps { display: flex; align-items: center; gap: 7px; margin-bottom: 30px; }
.step {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.step.done    { background: var(--success); color: white; }
.step.current { background: var(--primary); color: white; }
.step.pending { background: var(--gray-200); color: var(--gray-500); }
.step-ln { flex: 1; height: 2px; background: var(--gray-200); border-radius: 1px; }
.step-ln.done { background: var(--success); }

.pw-strength { display: flex; gap: 4px; margin-top: 7px; }
.pw-bar { flex: 1; height: 3px; background: var(--gray-200); border-radius: 2px; transition: background 0.25s; }
.pw-bar.weak   { background: var(--danger); }
.pw-bar.fair   { background: var(--warning); }
.pw-bar.good   { background: var(--primary); }
.pw-bar.strong { background: var(--success); }

/* ======================================================
   MISC UTILITIES
====================================================== */

.divider { height: 1px; background: var(--gray-100); margin: 20px 0; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-mono { font-family: 'Courier New', monospace; }

.pill-code {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem; font-weight: 700;
  background: var(--gray-100); color: var(--gray-800);
  padding: 2px 8px; border-radius: 4px;
}

.empty-state { text-align: center; padding: 44px 20px; color: var(--gray-400); }
.empty-ico   { width: 44px; height: 44px; margin: 0 auto 10px; opacity: 0.35; }
.empty-txt   { font-size: 0.9375rem; font-weight: 600; color: var(--gray-400); }
.empty-sub   { font-size: 0.8125rem; color: var(--gray-300); margin-top: 3px; }

.success-banner {
  padding: 16px 18px; background: var(--success-light);
  border: 1px solid #a7f3d0; border-radius: var(--radius-lg);
  margin-top: 18px;
}
.success-banner-title { font-size: 0.875rem; font-weight: 700; color: #065f46; margin-bottom: 4px; }
.success-banner-sub   { font-size: 0.8125rem; color: #047857; margin-bottom: 10px; }

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

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .form-grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  #page-login { grid-template-columns: 1fr; }
  .login-right { display: none; }
  .login-left { padding: 40px 24px; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }

  .main-content { margin-left: 0; }
  .main-header  { left: 0; border-left: none; border-top: 3px solid var(--primary); }

  .menu-toggle { display: flex; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid  { grid-template-columns: 1fr; }
  .form-grid-3{ grid-template-columns: 1fr; }
  .content-area { padding: 18px 14px; }

  .inv-grid { grid-template-columns: 1fr; }
  .main-header { padding: 0 16px; }
  .home-bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .seg-ctrl { width: 100%; }
  .seg-btn  { flex: 1; }
}

/* ======================================================
   ROUTE AUTOCOMPLETE DROPDOWN
====================================================== */

.route-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--primary-100);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.route-dropdown.open { display: block; }

.route-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.1s;
}
.route-option:hover { background: var(--primary-50); color: var(--primary); }
.route-option svg   { color: var(--gray-400); flex-shrink: 0; }

/* ======================================================
   SAILING RESULTS
====================================================== */

.loading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.loading-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid var(--primary-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sailing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  gap: 16px;
}
.sailing-row:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.sailing-main { display: flex; align-items: center; gap: 16px; flex: 1; }
.sailing-info { flex: 1; }

/* Naviera logo badge */
.naviera-logo-badge {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-align: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.06);
  line-height: 1.2;
  overflow: hidden;
  padding: 4px;
}
.naviera-logo-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.sailing-naviera {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.sailing-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.sailing-time svg { color: var(--gray-400); }

/* Naviera badge in tables */
.naviera-cell {
  display: flex; align-items: center; gap: 8px;
}
.naviera-cell-badge {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0;
  flex-shrink: 0; border: 1px solid rgba(0,0,0,0.06);
  line-height: 1; text-align: center; overflow: hidden; padding: 2px;
}
.naviera-cell-badge img { width: 100%; height: 100%; object-fit: contain; }

/* ======================================================
   BOOKING WIZARD
====================================================== */

.wizard-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

.frequent-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.frequent-banner svg { color: var(--primary); flex-shrink: 0; }

/* ======================================================
   FREQUENT PASSENGER PANEL
====================================================== */

.fp-section {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
  transition: border-color 0.15s;
}

.fp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.fp-section-header svg { color: var(--primary); flex-shrink: 0; }

.fp-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.fp-card:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  transform: translateY(-1px);
}
.fp-card:active { transform: translateY(0); }

.fp-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.fp-card-info { flex: 1; min-width: 0; }

.fp-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-card-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-card-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.fp-card:hover .fp-card-action { opacity: 1; }

.fp-empty {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
  padding: 4px 0;
}

/* ======================================================
   LOCALIZADOR INPUT IN TABLE
====================================================== */

.localizador-input {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.localizador-input::placeholder {
  font-family: inherit;
  letter-spacing: normal;
  font-weight: 400;
}

/* ======================================================
   HOME CTA CARD (dashboard)
====================================================== */

.home-cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px;
  cursor: pointer;
  border: 2px solid var(--primary-100);
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 60%);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.home-cta-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(40,140,252,0.08);
  transform: translateY(-2px);
}

.home-cta-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(40,140,252,0.35);
}

.home-cta-content { flex: 1; min-width: 0; }

.home-cta-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.home-cta-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.5;
}

.home-cta-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.home-cta-step {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.home-cta-sep {
  color: var(--gray-300);
  font-size: 1rem;
}

.home-cta-arrow {
  color: var(--primary);
  flex-shrink: 0;
}

/* ======================================================
   RESERVA PAGE (dedicated booking section)
====================================================== */

.reserva-search-card {
  max-width: 780px;
}

/* ======================================================
   FREQUENT PASSENGER DROPDOWN
====================================================== */

.fp-select-wrap {
  margin-top: 8px;
}

.fp-select-wrap select {
  width: 100%;
}

/* ======================================================
   VEHICLE MODE SELECTOR (radio buttons)
====================================================== */

.veh-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .veh-mode-selector { grid-template-columns: 1fr; }
}

.veh-mode-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.veh-mode-option input[type="radio"] {
  display: none;
}

.veh-mode-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-50);
}

.veh-mode-option.active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(40,140,252,0.1);
}

.veh-mode-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-500);
  transition: var(--transition);
}

.veh-mode-option.active .veh-mode-icon {
  background: var(--primary);
  color: white;
}

.veh-mode-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
}

.veh-mode-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1px;
}

/* ======================================================
   BOOKINGS TABLE — "Nuevo" badge + row highlight
====================================================== */

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  margin-left: 5px;
  vertical-align: middle;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.bk-row-new {
  background: var(--primary-50) !important;
}
.bk-row-new td { border-bottom-color: var(--primary-100) !important; }

.bk-table-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 22px;
}

/* ======================================================
   MOBILE BOOKING CARDS (hidden on desktop)
====================================================== */

.bk-cards-mobile {
  display: none;
}

.bk-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bk-card-new {
  border-color: var(--primary-100);
  background: var(--primary-50);
}

.bk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  flex-wrap: wrap;
  gap: 8px;
}

.bk-card-new .bk-card-head {
  background: var(--primary-50);
  border-bottom-color: var(--primary-100);
}

.bk-card-route {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

.bk-card-body {
  padding: 12px 16px;
}

.bk-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

.bk-card-row:last-child { border-bottom: none; }

.bk-card-lbl {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
  flex-shrink: 0;
}

.bk-card-val {
  font-size: 0.875rem;
  color: var(--gray-800);
  font-weight: 500;
  text-align: right;
}

.bk-card-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 768px) {
  .bk-table-card { display: none; }
  .bk-cards-mobile { display: block; }
}

/* ── Wizard summary blocks ── */
.wiz-summary-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.wiz-summary-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wiz-summary-grid {
  padding: 4px 0;
}

.wiz-summary-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.wiz-summary-row:last-child {
  border-bottom: none;
}

.wiz-sum-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  min-width: 130px;
  flex-shrink: 0;
}

.wiz-sum-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

