:root {
  --text-color: #474747;
  --bg-color: #dfdfdf;
  --bg-alt-color: #afafaf;

  /* Premium Theme Variables */
  --p-primary: #2563eb;
  --p-primary-dark: #1d4ed8;
  --p-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --p-surface: rgba(255, 255, 255, 0.05);
  --p-text: #f8fafc;
  --p-text-muted: #94a3b8;
  --p-border: rgba(255, 255, 255, 0.1);
}

.premium-bg {
  background: var(--p-bg-gradient);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: var(--p-text); /* Force text color in premium areas */
}

.premium-bg::before,
.premium-bg::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

.premium-bg::before {
  background: var(--p-primary);
  top: -200px;
  right: -200px;
  animation: float-premium 25s infinite alternate;
}

.premium-bg::after {
  background: #7c3aed;
  bottom: -200px;
  left: -200px;
  animation: float-premium 30s infinite alternate-reverse;
}

@keyframes float-premium {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 150px);
  }
}

.glass-card {
  background: var(--p-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
button {
  color: inherit;
}
button, [role="button"] {
  cursor: pointer;
}
code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 1em;
}
img,
svg {
  display: block;
}
img,
video {
  max-width: 100%;
  height: auto;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
}
.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.my-6 {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.my-4 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-8 {
  padding-bottom: 2rem;
  padding-top: 2rem;
}
.bg-\[\#86efac\] {
  background-color: #86efac;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.py-6 {
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.py-1 {
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}
.border-gray-500 {
  border-color: #6b7280;
}
.bg-white {
  background-color: #fff;
}
.flex {
  display: flex;
}
.gap-8 {
  grid-gap: 2rem;
  gap: 2rem;
}
.font-bold {
  font-weight: 700;
}
.max-w-screen-md {
  max-width: 768px;
}
/* Strikethrough for finalized interactive orders */
.orden-clickable.finalizada .descripcion span {
  text-decoration: line-through;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.border-2 {
  border-width: 2px;
}
.rounded {
  border-radius: 0.25rem;
}
.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.linea .matricula,
.dashboard-item .matricula {
  label {
    display: none;
  }
  font-weight: bold;
  margin-right: 0.4rem;
  font-size: 1.4rem;
  background-color: white;
  position: relative;
  padding-left: 1.2rem;
  border: 1px solid var(--text-color);
  border-radius: 4px;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1.2rem;
    background-color: #025ae9;
  }

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 0.6rem;
    height: 0.6rem;
    border: 2px dotted #e8ba4e;
    border-radius: 50%;
  }
}

.scrollable-content {
  overflow: auto;
  z-index: 1;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  column-count: 2;
  column-gap: 0.5rem;

  &::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
}

.pizarra {
  margin: 0.5rem 0.5rem 0;
  width: calc(100vw - 1rem);
  height: calc(100vh - 1rem);
  position: relative;
  overflow-x: hidden;
}

.pizarra-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.75rem;
}

.pizarra-header .board-title {
  font-size: 1.2rem;
  color: var(--text-color);
  text-transform: uppercase;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
}

.pizarra-header .time-travel-bar {
  flex: 1;
}

.pizarra-header .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.time-travel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.time-travel-bar button {
  background: transparent;
  border: 1px solid rgba(71, 71, 71, 0.3);
  border-radius: 4px;
  padding: 0.05rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  cursor: pointer;
  color: var(--text-color);
}

.time-travel-bar button:hover {
  background: rgba(71, 71, 71, 0.1);
}

.time-travel-bar button.hoy-btn {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.time-travel-bar input[type="date"] {
  font-size: 0.78rem;
  border: 1px solid rgba(71, 71, 71, 0.3);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  color: var(--text-color);
  background: transparent;
  font-family: inherit;
}

.semana {
  column-span: all;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;

  &::before,
  &::after {
    content: "";
    flex: 1;
    height: 0.3rem;
    background: red;
  }

  span {
    font-size: 1rem;
    color: red;
    font-weight: bold;
    padding: 0 0.5rem;
    white-space: nowrap;
    background-color: white;
  }
}

.linea {
  break-inside: avoid;
  background-color: var(--bg-color);
  margin: 0 0.2rem 0.5rem 0;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  z-index: 2;
  position: relative;
  color: var(--text-color);

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.15rem;

  div span {
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
  }

  &.doble .grupo {
    position: relative;
    display: flex;
  }

  &.doble .modalidad {
    position: relative;
  }

  &.doble .externos {
    bottom: auto;
    top: 0.5rem;
  }

  &.cortesia {
    padding-left: 3rem;
  }

  &.cortesia:before {
    content: "CORTESÍA";
    position: absolute;
    top: 0;
    left: 0;

    background-color: #6b0a74;
    width: 2.2rem;
    height: 100%;
    border-radius: 0 8px 8px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
  }

  &.industrial {
    padding-left: 2.2rem;
  }

  &.industrial:before {
    content: "INDUST.";
    position: absolute;
    top: 0;
    left: 0;

    background-color: #740a0f;
    width: 2.2rem;
    height: 100%;
    border-radius: 0 8px 8px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
  }

  .grupo {
    display: flex;
    gap: 0.4rem;
  }

  .hora {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;
  }

  .entrega {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;
  }

  .empresa {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;

    text-decoration: underline;
  }

  .marca-modelo {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;

    span {
      padding: 0;
    }
  }

  .numero {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;
  }

  .descripcion {
    label {
      display: none;
    }
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1.4rem;
    font-weight: normal;
    span {
      text-transform: none;
    }
  }

  .modalidad {
    position: absolute;
    top: 0.4rem;
    right: 0rem;

    label {
      display: none;
    }

    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1rem;
  }

  .externos {
    label {
      display: none;
    }
    font-weight: bold;
    font-size: 1rem;

    position: absolute;
    bottom: 0.4rem;
    right: 0.5rem;

    display: flex;
    gap: 0.5rem;
  }
}

.premium-bg .editar-linea {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--p-surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--p-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--p-text);

  h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--p-primary);
    border-bottom: 2px solid var(--p-primary);
    padding-bottom: 0.5rem;
  }

  .inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
  }

  label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--p-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block !important;
  }

  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="time"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--p-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    width: 100%;
    outline: none;

    &:focus {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--p-primary);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    }
  }

  .matricula input {
    background: white !important;
    color: #0f172a !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-color: #94a3b8;
  }

  .naranja {
    border-color: #f5b041 !important;
    color: #f5b041 !important;
  }

  .fechas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .info {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--p-text-muted);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.4;
    max-width: 400px;

    strong {
      color: var(--p-primary);
    }
  }

  .cortesia,
  .industrial {
    margin-top: 0;

    label {
      display: flex !important;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
      color: white;
      text-transform: none;
      font-size: 1rem;
      letter-spacing: normal;
    }

    input[type="checkbox"] {
      appearance: none;
      width: 1.25rem;
      height: 1.25rem;
      border: 2px solid var(--p-border);
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      background: rgba(255, 255, 255, 0.05);

      margin: 0;

      &:checked {
        background: var(--p-primary);
        border-color: var(--p-primary);

        &::after {
          content: "✓";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          color: white;
          font-size: 0.9rem;
        }
      }
    }
  }

  .modalidad {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;

    input {
      display: none;
    }

    label {
      padding: 0.4rem 0.8rem;
      border-radius: 8px;
      border: 1px solid var(--p-border);
      cursor: pointer;
      width: 100%;
      text-align: center;

      background: rgba(255, 255, 255, 0.05);
      color: var(--p-text-muted);
      font-size: 0.9rem;
      margin-top: 0 !important; /* Resetting the global margin-top */
      margin-bottom: 0 !important;
    }

    label:has(*:checked) {
      background: var(--p-primary);
      color: white;
      border-color: var(--p-primary);
      box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    }

    label.amarillo {
      border-color: rgba(245, 158, 11, 0.5);
      color: #f59e0b;
    }

    label.verde {
      border-color: rgba(16, 185, 129, 0.5);
      color: #10b981;
    }

    label.amarillo:has(*:checked) {
      background: #f59e0b !important;
      border-color: #f59e0b !important;
      color: #000 !important;
      box-shadow: 0 0 15px rgba(245, 158, 11, 0.4) !important;
    }

    label.verde:has(*:checked) {
      background: #10b981 !important;
      border-color: #10b981 !important;
      color: #000 !important;
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
    }

    /* Insurance logic */
    &:has(#modalidad-chapa-seguro-1:checked) #chapa-seguro-1,
    &:has(#modalidad-chapa-seguro-2:checked) #chapa-seguro-2,
    &:has(#modalidad-mecanica-seguro-1:checked) #mecanica-seguro-1,
    &:has(#modalidad-mecanica-seguro-2:checked) #mecanica-seguro-2 {
      display: block !important;
      margin-top: 0.5rem;
    }
  }

  #orden-chapa-1, #orden-mecanica-1, #orden-chapa-2, #orden-mecanica-2 {
    margin-top: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--p-border);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    transition: transform 0.2s;

    &:hover {
      background: rgba(255, 255, 255, 0.05);
    }
  }
}

.ordenes {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;

  .grupo {
    flex: 1;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s;

    button {
      position: absolute;
      top: -1rem;
      right: -0.5rem;
      background: #ef4444;
      color: white;
      border: none;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
      z-index: 20;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

      &:hover {
        background: #dc2626;
        transform: scale(1.1);
      }
    }

    &:has(input:not(:placeholder-shown)),
    &:has(.numero input:not(:placeholder-shown)),
    &:has(select:not([value=""])) {
      opacity: 1;
    }
  }
}

.amarillo {
  background-color: #fffbcc;
  color: #7a6e00;
}

.verde {
  background-color: #d4f8e8;
  color: #006644;
}

.azul {
  background-color: #dceeff;
  color: #003366;
}

.naranja {
  background-color: #ffe5cc;
  color: #7a3e00;
}

.rosa {
  background-color: #ffd6f0;
  color: #660033;
}

.morado {
  background-color: #6b0a74;
  color: #e8dee9;
}

.garantia {
  background-color: #ede9fe;
  color: #5b21b6;
}

.desmontar {
  background-color: #ffedd5;
  color: #9a3412;
}

.rojo {
  background-color: #740a0f;
  color: #e9dee0;
}

/* dashboard.css */

/* Contenedor principal */
.lineas-container {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}
.dashboard {
  padding: 2rem;
  font-family: system-ui, sans-serif;
  color: #333;
  /*min-height: 100vh;*/

  .botonera {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;

    a {
      padding: 0.25rem 0.5rem;
      background-color: #707274;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      font-size: 0.75rem;

      &:hover {
        background-color: #0141b3;
      }
    }
  }
}

/* Títulos */
.dashboard h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dashboard h2 {
  font-size: 1.2rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 4px;
}

/* Contenedores de secciones */
.lineas-activas,
.lineas-finalizadas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;
}

/* DashboardItem */
.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 6px;
  padding: 10px 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  text-decoration: none;
}

.dashboard-item:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
}

/* Info de la línea */
.dashboard-item .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ⬅ evita que los hijos se estiren */
  gap: 0.2rem;
}

.dashboard-item .marca-modelo {
  font-weight: 600;
}

.dashboard-item .matricula {
  padding: 0.25rem 0.5rem 0.25rem 2.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;

  &::after {
    top: 50%;
  }
}

/* Órdenes */
.dashboard-item .ordenes {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  text-align: center;
}

.dashboard-item .ordenes span {
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.dashboard-item .chapa {
  background-color: #ff6b6b; /* rojo/alarma */
}

.dashboard-item .mecanica {
  background-color: #4caf50; /* verde */
}

.dashboard-item .ninguna {
  background-color: #ccc;
  color: #333;
}

/* Diferencia visual para finalizadas */
.lineas-finalizadas .dashboard-item {
  opacity: 0.6;
  background-color: #eee;
}

/* styles/home.css */
/* styles/global.css */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;
}

.p-btn-primary {
  background: var(--p-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.p-btn-primary:hover {
  background: var(--p-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.p-btn-success {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.p-btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.p-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--p-border);
}

.p-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Landing Page Professional Styles */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);
}

.landing-page {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* Header */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-navbar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem !important; /* Slightly more compact navbar */
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100%;
}

.main-navbar .nav-link {
  text-decoration: none;
  color: var(--p-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-navbar .nav-link:hover {
  color: white;
}

.main-navbar .nav-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Dashboard Premium Overrides - ULTRA COMPACT */
.premium-bg .dashboard {
  padding: 1.5rem 1rem 1rem !important; /* Even less padding */
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.premium-bg .dashboard h2 {
  color: var(--p-text);
  border-bottom: 1px solid var(--p-border) !important;
  margin-bottom: 0.4rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

.premium-bg .dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--p-surface) !important;
  backdrop-filter: blur(6px);
  border: 1px solid var(--p-border) !important;
  border-radius: 6px !important;
  padding: 4px 12px !important; /* Very thin */
  margin-bottom: 0.2rem !important;
  color: var(--p-text) !important;
  text-decoration: none;
}

.premium-bg .dashboard-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(2px) !important;
}

.premium-bg .dashboard-item .marca-modelo {
  font-size: 0.95rem;
  font-weight: 600;
}

.premium-bg .dashboard-item .info .matricula {
  background: #ffffff !important; /* White background as requested */
  color: #1e293b !important; /* Dark text */
  padding: 0.2rem 0.3rem 0.25rem 2.5rem !important;
  font-weight: 800 !important;
  border-radius: 3px;
  border: 1px solid #94a3b8;
  font-size: 0.8rem;
}

.premium-bg .semana {
  margin: 1rem 0 !important;

  &::before,
  &::after {
    background: var(--p-primary) !important;
    height: 2px !important;
  }

  span {
    font-size: 1rem;
    color: var(--p-primary) !important;
    background-color: transparent !important;
    font-weight: 800;
    letter-spacing: 0.05em;
  }
}

/* Ensure boards stay default and clean */
.pizarra .semana {
  margin: 0.8rem 0 0.4rem !important;
}

/* Prevent global margin collisions */
nav + * {
  margin-top: 3rem !important;
}

.nav-btn {
  background-color: var(--bg-white);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;

  border: 1px solid var(--border-color);
}

.nav-btn:hover {
  background-color: var(--bg-light);
  border-color: var(--secondary-color);
}

.nav-btn.primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.nav-btn.primary:hover {
  background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
    url("/hero.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-lg:hover {
  transform: translateY(-2px);
}

/* Old .hero-image removed as it is now background */

/* Features Grid */
.features-section {
  padding: 5rem 2rem;
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: #dbeafe;
  color: var(--primary-color);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 5rem 2rem;
  background-color: #f8fafc;
}

.screenshots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-wrapper {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  margin-bottom: 1.5rem;
}

.screenshot-wrapper:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.15),
    0 10px 10px -5px rgb(0 0 0 / 0.08);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.screenshot-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 350px;
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 2rem;
  background-color: #f8fafc;
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.benefit-row.reverse {
  flex-direction: row-reverse;
}

.benefit-content {
  flex: 1;
}

.benefit-image {
  flex: 1;
  background: white;
  height: 300px;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.benefit-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefit-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.check-icon {
  color: var(--primary-color);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-white:hover {
  transform: scale(1.05);
}

/* Contact/Footer */
.footer-section {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .benefit-row, .benefit-row.reverse {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

.nueva-linea,
.btn-limpiar {
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  line-height: 1;
  opacity: 1;
  text-decoration: none;
  font-size: 0.75rem;
  font-family: Tahoma, sans-serif;
}

.btn-limpiar {
  background-color: rgb(175, 36, 21);
}

.nueva-linea {
  background-color: rgb(11, 136, 48);
}

/* Beta Form Styles */
.beta-form-col {
  grid-column: span 2;
}

.beta-form {
  margin-top: 1.5rem;
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #cbd5e1;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.beta-submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;

  margin-top: 0.5rem;
  width: 100%;
}

.beta-submit-btn:hover:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.beta-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.form-message.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .beta-form-col {
    grid-column: span 1;
  }
}

/* Privacy Policy Page Styles */
.privacy-page {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.privacy-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background-color: white;
}

.privacy-header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.privacy-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.privacy-content .last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.privacy-content section {
  margin-bottom: 3rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.privacy-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.privacy-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem;
  text-align: center;
}

.privacy-footer .footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.privacy-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.privacy-footer a:hover {
  color: white;
}

/* Modal de Asignaci�n de Operarios */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--p-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  color: var(--p-text);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--p-border);
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--p-primary);
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--p-border);
  color: var(--p-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-operario,
.select-orden {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  color: var(--p-text);
  font-size: 1rem;
  cursor: pointer;

  outline: none;
}

.select-operario option,
.select-orden option {
  background: #1e293b;
  color: white;
}

.select-operario:hover,
.select-orden:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--p-primary);
}

.select-operario:focus,
.select-orden:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--p-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.select-operario:disabled,
.select-orden:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.loading-indicator {
  text-align: center;
  padding: 1rem;
  color: var(--p-primary);
  font-size: 0.9rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.modal-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--p-text-muted);
}

.modal-info strong {
  color: var(--p-primary);
}

.modal-save-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--p-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-save-btn:hover:not(:disabled) {
  background: var(--p-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.modal-save-btn:active:not(:disabled) {
  transform: translateY(0);
}

.modal-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.operario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.prioridad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--p-primary);
  border-radius: 50%;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.orden-clickable {
  cursor: pointer;

  padding: 0.5rem;
  border-radius: 8px;
}

.orden-clickable:hover {
  background: rgba(115, 113, 113, 0.20);
  /*transform: translateX(4px);*/
}

/* Operario info in linea */
.operario-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Orden Finalizada */
.orden-finalizada {
  opacity: 0.6;
}

.orden-finalizada .descripcion,
.orden-finalizada .modalidad,
.orden-finalizada .numero,
.orden-finalizada .operario-badge {
  text-decoration: line-through;
}

/* Linea Mostrar Button */
.linea-mostrar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--p-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
  opacity: 0.5;
  filter: grayscale(1);
}

.linea-mostrar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.linea-mostrar-btn.is-visible {
  opacity: 1;
  filter: none;
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--p-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.linea-mostrar-btn.is-visible:hover {
  background: rgba(37, 99, 235, 0.2);
}

/* Light Modal Theme */
.modal-overlay.light {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content.light {
  background: white;
  color: #1e293b;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  padding: 2.25rem;
}

.modal-content.light .modal-header {
  border-bottom-color: #f1f5f9;
}

.modal-content.light .modal-header h3 {
  color: #0f172a;
  font-weight: 800;
}

.modal-content.light .modal-close {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.modal-content.light .modal-close:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #ef4444;
}

.modal-content.light .form-group label {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.modal-content.light .select-operario,
.modal-content.light .select-orden {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
  font-weight: 500;
}

.modal-content.light .select-operario option,
.modal-content.light .select-orden option {
  background: white;
  color: #1e293b;
}

.modal-content.light .select-operario:focus,
.modal-content.light .select-orden:focus {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modal-content.light .modal-info {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.modal-content.light .modal-info strong {
  color: #1e293b;
}

.modal-content.light .modal-save-btn {
  background: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.modal-content.light .modal-save-btn:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.modal-content.light .error-message {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
