/* =========================================================
   DRIVE DEVBLK · EXPLORADOR PRINCIPAL
   Dark · Futurista · Cyberpunk
   ========================================================= */

.drive-page {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 100%;
  min-width: 0;
}

.drive-page__ambient {
  position: absolute;
  z-index: -1;

  border-radius: 50%;

  pointer-events: none;
}

.drive-page__ambient--primary {
  top: -160px;
  right: -60px;

  width: 460px;
  height: 360px;

  background:
    radial-gradient(
      circle,
      rgba(0, 229, 255, 0.075),
      transparent 70%
    );
}

.drive-page__ambient--secondary {
  top: 38%;
  left: -160px;

  width: 320px;
  height: 320px;

  background:
    radial-gradient(
      circle,
      rgba(109, 141, 255, 0.045),
      transparent 70%
    );
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.drive-command {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-width: 0;
  padding: 20px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(16, 21, 29, 0.98),
      rgba(7, 10, 14, 0.99)
    );
}

.drive-command::before {
  position: absolute;
  top: -1px;
  left: 27px;

  width: 88px;
  height: 1px;

  content: "";

  background: var(--accent);
}

.drive-command::after {
  position: absolute;
  top: -115px;
  right: 210px;

  width: 240px;
  height: 240px;

  border: 1px solid rgba(0, 229, 255, 0.055);
  border-radius: 50%;

  content: "";
}

.drive-command__identity {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
}

.drive-command__icon {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  min-width: 54px;
  height: 54px;

  border: 1px solid var(--accent-border);
  border-radius: 13px;

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-command__icon::before {
  position: absolute;
  inset: 5px;

  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 9px;

  content: "";
}

.drive-command__icon > span {
  position: absolute;
  right: -3px;
  bottom: -3px;

  width: 10px;
  height: 10px;

  border: 2px solid #080b10;
  border-radius: 50%;

  background: var(--success);

  animation:
    drive-pulse
    2s
    ease-in-out
    infinite;
}

.drive-command__icon svg {
  width: 23px;
  height: 23px;

  stroke-width: 1.8;
}

.drive-command__copy {
  min-width: 0;
}

.drive-command__eyebrow {
  display: block;

  margin-bottom: 4px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.drive-command__copy h2 {
  margin: 0;

  color: var(--text);

  font-size: 25px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.drive-command__copy p {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 12px;
  line-height: 1.5;
}

.drive-command__actions {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.drive-command__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 34px;
  padding: 0 10px;

  border: 1px solid var(--success-border);
  border-radius: var(--radius-xs);

  color: var(--success);

  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;

  background: var(--success-soft);
}

.drive-command__status > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: currentColor;

  animation:
    drive-pulse
    2s
    ease-in-out
    infinite;
}

/* =========================================================
   TARJETAS DE RESUMEN
   ========================================================= */

.drive-summary {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.drive-summary-card {
  position: relative;

  display: grid;
  grid-template-columns:
    auto
    auto
    minmax(0, 1fr);
  align-items: center;
  gap: 13px;

  min-width: 0;
  min-height: 110px;
  padding: 17px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(16, 21, 29, 0.98),
      rgba(7, 10, 14, 0.99)
    );

  transition:
    border-color var(--transition),
    transform var(--transition),
    background-color var(--transition);
}

.drive-summary-card::before {
  position: absolute;
  top: -58px;
  right: -58px;

  width: 145px;
  height: 145px;

  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;

  content: "";
}

.drive-summary-card:hover {
  border-color: var(--accent-border);

  background:
    linear-gradient(
      145deg,
      rgba(0, 229, 255, 0.045),
      rgba(7, 10, 14, 0.99)
    );

  transform: translateY(-3px);
}

.drive-summary-card__index {
  align-self: start;

  color: #46525f;

  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.drive-summary-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  min-width: 45px;
  height: 45px;

  border: 1px solid var(--warning-border);
  border-radius: 10px;

  color: var(--warning);

  background: var(--warning-soft);
}

.drive-summary-card__icon--files {
  border-color: var(--accent-border);

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-summary-card__icon--storage {
  border-color: var(--info-border);

  color: var(--info);

  background: var(--info-soft);
}

.drive-summary-card__icon svg {
  width: 20px;
  height: 20px;

  stroke-width: 1.8;
}

.drive-summary-card__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-summary-card__copy > span {
  color: var(--text-muted);

  font-size: 11px;
  font-weight: 650;
}

.drive-summary-card__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 24px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-summary-card__copy small {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drive-summary-card__line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;

  transform: scaleX(0);
  transform-origin: left;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      transparent
    );

  transition:
    transform var(--transition-slow);
}

.drive-summary-card:hover .drive-summary-card__line {
  transform: scaleX(1);
}

/* =========================================================
   NAVEGACIÓN Y BREADCRUMB
   ========================================================= */

.drive-navigation {
  position: relative;

  min-width: 0;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(14, 19, 26, 0.98),
      rgba(7, 10, 14, 0.99)
    );
}

.drive-navigation::before {
  position: absolute;
  top: -1px;
  left: 28px;

  width: 80px;
  height: 1px;

  content: "";

  background: var(--accent);
}

.drive-navigation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 15px 17px;

  border-bottom: 1px solid var(--line);
}

.drive-navigation__eyebrow {
  display: block;

  margin-bottom: 3px;

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.drive-navigation__header h3 {
  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.drive-navigation__connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--success);

  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drive-navigation__connection > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: currentColor;
}

.drive-navigation__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  min-width: 0;
  padding: 13px 15px;

  background: rgba(255, 255, 255, 0.012);
}

.drive-breadcrumb {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 5px;

  min-width: 0;
  min-height: 42px;

  overflow-x: auto;

  scrollbar-width: none;
}

.drive-breadcrumb::-webkit-scrollbar {
  display: none;
}

.drive-breadcrumb__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;

  min-height: 34px;
  max-width: 220px;
  padding: 0 9px;

  border: 1px solid transparent;
  border-radius: 7px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 650;

  background: transparent;

  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.drive-breadcrumb__item:hover {
  border-color: var(--line-strong);

  color: var(--text);

  background: var(--surface-soft);
}

.drive-breadcrumb__item.is-drop-target {
  border-color: var(--accent);

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-breadcrumb__item svg {
  width: 15px;
  min-width: 15px;
  height: 15px;
}

.drive-breadcrumb__item span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-breadcrumb__separator {
  width: 14px;
  min-width: 14px;
  height: 14px;

  color: #3e4955;
}

.drive-order {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
}

.drive-order > span {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drive-order__control {
  display: flex;
  align-items: center;

  width: 196px;
  height: 42px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);

  background: #090d12;

  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.drive-order__control:hover {
  border-color: #465260;
}

.drive-order__control:focus-within {
  border-color: var(--accent-border);

  background: #091118;
}

.drive-order__control > svg {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-left: 11px;

  color: var(--text-soft);
}

.drive-order__control select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 32px 0 9px;

  border: 0;
  outline: 0;

  color: var(--text);

  font-size: 10px;

  background: transparent;
}

.drive-order__control option {
  color: var(--text);

  background: #0b0f15;
}

/* =========================================================
   PROGRESO DE CARGA
   ========================================================= */

.drive-upload-progress {
  position: relative;

  padding: 16px;

  overflow: hidden;

  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(0, 229, 255, 0.065),
      rgba(7, 10, 14, 0.99)
    );

  animation:
    drive-progress-in
    220ms
    ease
    both;
}

.drive-upload-progress::before {
  position: absolute;
  top: -1px;
  left: 24px;

  width: 92px;
  height: 1px;

  content: "";

  background: var(--accent);
}

.drive-upload-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drive-upload-progress__identity {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.drive-upload-progress__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 39px;
  min-width: 39px;
  height: 39px;

  border: 1px solid var(--accent-border);
  border-radius: 9px;

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-upload-progress__icon svg {
  width: 18px;
  height: 18px;
}

.drive-upload-progress__identity > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-upload-progress__identity strong {
  color: var(--text);

  font-size: 11px;
}

.drive-upload-progress__identity span {
  color: var(--text-muted);

  font-size: 9px;
}

.drive-upload-progress__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.drive-upload-progress__status strong {
  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 18px;
}

.drive-upload-progress__status span {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drive-upload-progress__track {
  position: relative;

  width: 100%;
  height: 7px;
  margin-top: 14px;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-pill);

  background: #06090d;
}

.drive-upload-progress__bar {
  display: block;

  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--accent-active),
      var(--accent)
    );

  transition:
    width 180ms ease;
}

.drive-upload-progress.is-uploading
.drive-upload-progress__bar,
.drive-upload-progress.is-processing
.drive-upload-progress__bar {
  background:
    linear-gradient(
      90deg,
      var(--accent-active),
      var(--accent),
      var(--accent-active)
    );

  background-size: 200% 100%;

  animation:
    drive-progress-flow
    1.4s
    linear
    infinite;
}

.drive-upload-progress.is-completed {
  border-color: var(--success-border);

  background:
    linear-gradient(
      145deg,
      rgba(69, 245, 167, 0.06),
      rgba(7, 10, 14, 0.99)
    );
}

.drive-upload-progress.is-completed
.drive-upload-progress__bar {
  background: var(--success);
}

.drive-upload-progress.has-error {
  border-color: var(--danger-border);

  background:
    linear-gradient(
      145deg,
      rgba(255, 82, 99, 0.06),
      rgba(7, 10, 14, 0.99)
    );
}

.drive-upload-progress.has-error
.drive-upload-progress__bar {
  background: var(--danger);
}

.drive-upload-progress.is-cancelled {
  border-color: var(--warning-border);
}

.drive-upload-progress.is-cancelled
.drive-upload-progress__bar {
  background: var(--warning);
}

.drive-upload-progress__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 10px;

  color: var(--text-soft);
}

.drive-upload-progress__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 8px;
}

.drive-upload-progress__footer svg {
  width: 13px;
  height: 13px;
}

.drive-upload-progress__footer strong {
  font-weight: 600;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.drive-panel {
  position: relative;

  min-width: 0;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(14, 19, 26, 0.98),
      rgba(7, 10, 14, 0.99)
    );
}

.drive-panel::before {
  position: absolute;
  top: -1px;
  left: 28px;
  z-index: 2;

  width: 82px;
  height: 1px;

  content: "";

  background: var(--accent);
}

.drive-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 16px 17px;

  border-bottom: 1px solid var(--line);
}

.drive-panel__eyebrow {
  display: block;

  margin-bottom: 3px;

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.drive-panel__header h3 {
  color: var(--text);

  font-size: 15px;
  font-weight: 700;
}

.drive-panel__legend {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drive-panel__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drive-panel__legend svg {
  width: 13px;
  height: 13px;
}

.drive-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 15px;

  border-top: 1px solid var(--line-strong);

  background: rgba(255, 255, 255, 0.012);
}

.drive-panel__footer-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--text-muted);
}

.drive-panel__footer-info > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--accent);
}

.drive-panel__footer-info strong {
  font-size: 9px;
  font-weight: 600;
}

.drive-panel__footer-code {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* =========================================================
   TABLA
   ========================================================= */

.drive-table-wrap {
  width: 100%;
  min-width: 0;

  overflow-x: auto;
}

.drive-table-head,
.drive-item {
  display: grid;
  grid-template-columns:
    minmax(310px, 1fr)
    126px
    100px
    168px
    150px
    252px;
  align-items: center;

  min-width: 1130px;
}

.drive-table-head {
  min-height: 45px;
  padding: 0 14px;

  border-bottom: 1px solid var(--line-strong);

  color: #65717e;

  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.018);
}

.drive-table-head span:last-child {
  text-align: right;
}

.drive-item {
  position: relative;

  min-height: 76px;
  padding: 0 14px;

  border-bottom: 1px solid var(--line);

  background: rgba(7, 10, 14, 0.78);

  transition:
    opacity var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.drive-item:last-child {
  border-bottom: 0;
}

.drive-item:hover {
  background: rgba(0, 229, 255, 0.027);
}

.drive-item.is-dragging {
  opacity: 0.42;

  transform: scale(0.992);
}

.drive-item__main {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
  padding: 0;

  color: inherit;

  text-align: left;

  background: transparent;
}

.drive-item__main.is-drop-target,
.drive-drop-target.is-drop-target {
  border-color: var(--accent) !important;

  color: var(--accent);

  background: var(--accent-soft) !important;
}

.drive-item__drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  min-width: 19px;
  height: 34px;

  color: #3c4752;

  cursor: grab;

  transition:
    color var(--transition);
}

.drive-item:hover .drive-item__drag-handle {
  color: var(--text-soft);
}

.drive-item__drag-handle:active {
  cursor: grabbing;
}

.drive-item__drag-handle svg {
  width: 15px;
  height: 15px;
}

.drive-item__icon {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px;
  height: 44px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  color: var(--text-muted);

  background: var(--surface-soft);

  transition:
    transform var(--transition),
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.drive-item__main:hover .drive-item__icon {
  transform: translateY(-2px);
}

.drive-item__icon::after {
  position: absolute;
  right: -2px;
  bottom: -2px;

  width: 8px;
  height: 8px;

  border: 2px solid #080c11;
  border-radius: 50%;

  content: "";

  background: var(--accent);
}

.drive-item__icon svg {
  width: 20px;
  height: 20px;

  stroke-width: 1.8;
}

.drive-item__icon--carpeta {
  border-color: var(--warning-border);

  color: var(--warning);

  background: var(--warning-soft);
}

.drive-item__icon--carpeta::after {
  background: var(--warning);
}

.drive-item__icon--pdf {
  border-color: var(--danger-border);

  color: var(--danger);

  background: var(--danger-soft);
}

.drive-item__icon--pdf::after {
  background: var(--danger);
}

.drive-item__icon--imagen,
.drive-item__icon--image {
  border-color: var(--success-border);

  color: var(--success);

  background: var(--success-soft);
}

.drive-item__icon--imagen::after,
.drive-item__icon--image::after {
  background: var(--success);
}

.drive-item__icon--video {
  border-color: var(--info-border);

  color: var(--info);

  background: var(--info-soft);
}

.drive-item__icon--video::after {
  background: var(--info);
}

.drive-item__icon--texto,
.drive-item__icon--documento,
.drive-item__icon--planilla {
  border-color: var(--accent-border);

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-item__icon--texto::after,
.drive-item__icon--documento::after,
.drive-item__icon--planilla::after {
  background: var(--accent);
}

.drive-item__icon--comprimido {
  border-color: var(--warning-border);

  color: var(--warning);

  background: var(--warning-soft);
}

.drive-item__name {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-item__name strong {
  overflow: hidden;

  color: var(--text);

  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-item__name small {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drive-item__visibility,
.drive-item__size,
.drive-item__date,
.drive-item__user {
  color: var(--text-muted);

  font-size: 10px;
}

.drive-item__size {
  font-family: var(--font-mono);
  font-size: 9px;
}

.drive-item__user {
  overflow: hidden;

  padding-right: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-item__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.drive-item__actions .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;

  border-radius: 8px;
}

.drive-item__actions .icon-button:hover:not(:disabled) {
  border-color: var(--accent-border);

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-item__delete {
  color: var(--danger);
}

.drive-item__delete:hover:not(:disabled) {
  border-color: var(--danger-border) !important;

  color: var(--danger) !important;

  background: var(--danger-soft) !important;
}

/* =========================================================
   MINIATURAS
   ========================================================= */

.drive-item__preview {
  position: relative;

  display: inline-flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;

  width: 62px;
  min-width: 62px;
  height: 50px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background:
    linear-gradient(
      145deg,
      var(--surface-soft),
      var(--surface)
    );

  transition:
    border-color var(--transition),
    transform var(--transition);
}

.drive-item__main:hover .drive-item__preview {
  border-color: var(--accent-border);

  transform: translateY(-2px);
}

.drive-item__preview-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border: 0;

  opacity: 0;

  transform: scale(1.08);

  transition:
    opacity 220ms ease,
    transform 300ms ease;
}

.drive-item__preview.is-loaded
.drive-item__preview-image {
  opacity: 1;

  transform: scale(1);
}

.drive-item__main:hover
.drive-item__preview-image {
  transform: scale(1.06);
}

.drive-item__preview-loading {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-soft);

  background:
    linear-gradient(
      145deg,
      var(--surface-soft),
      var(--surface)
    );
}

.drive-item__preview-loading svg {
  width: 20px;
  height: 20px;
}

.drive-item__preview.is-loading
.drive-item__preview-loading svg {
  animation:
    drive-preview-pulse
    1s
    ease-in-out
    infinite;
}

.drive-item__preview.is-loaded
.drive-item__preview-loading {
  display: none;
}

.drive-item__preview.has-error {
  border-color: var(--danger-border);

  background: var(--danger-soft);
}

.drive-item__preview.has-error
.drive-item__preview-loading {
  display: flex;

  color: var(--danger);

  background: var(--danger-soft);
}

.drive-item__preview.has-error
.drive-item__preview-loading::after {
  position: absolute;

  width: 25px;
  height: 1px;

  content: "";

  background: currentColor;

  transform: rotate(-45deg);
}

/* =========================================================
   VISIBILIDAD
   ========================================================= */

.drive-visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 27px;
  padding: 0 8px;

  border: 1px solid var(--line-strong);
  border-radius: 6px;

  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  background: var(--surface-soft);
}

.drive-visibility-badge svg {
  width: 13px;
  height: 13px;
}

.drive-visibility-badge--all {
  border-color: var(--success-border);

  color: var(--success);

  background: var(--success-soft);
}

.drive-visibility-badge--private {
  border-color: var(--danger-border);

  color: var(--danger);

  background: var(--danger-soft);
}

.drive-visibility-badge--shared {
  border-color: var(--info-border);

  color: var(--info);

  background: var(--info-soft);
}

/* =========================================================
   ESTADOS VACÍO Y CARGA
   ========================================================= */

.drive-loading,
.drive-empty {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 400px;
  padding: 32px;

  text-align: center;
}

.drive-loading {
  gap: 13px;

  color: var(--text-muted);
}

.drive-loading > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.drive-loading strong {
  color: var(--text);

  font-size: 11px;
}

.drive-loading span {
  font-size: 9px;
}

.drive-spinner {
  display: inline-block;

  width: 24px;
  height: 24px;

  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;

  animation:
    drive-spin
    0.7s
    linear
    infinite;
}

.drive-spinner--small {
  width: 16px;
  height: 16px;

  border-width: 2px;
}

.drive-empty {
  flex-direction: column;
}

.drive-empty__icon {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  border: 1px solid var(--accent-border);
  border-radius: 16px;

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-empty__icon > span {
  position: absolute;
  right: -3px;
  bottom: -3px;

  width: 10px;
  height: 10px;

  border: 2px solid #080c11;
  border-radius: 50%;

  background: var(--success);
}

.drive-empty__icon svg {
  width: 30px;
  height: 30px;
}

.drive-empty__code {
  margin-top: 18px;

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.drive-empty h2 {
  margin-top: 8px;

  color: var(--text);

  font-size: 21px;
  letter-spacing: -0.03em;
}

.drive-empty p {
  max-width: 430px;
  margin-top: 7px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.55;
}

.drive-empty__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 19px;
}

/* =========================================================
   DROP ZONE
   ========================================================= */

.drive-drop-zone {
  position: fixed;
  inset: 0;
  z-index: 1600;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  background: rgba(2, 5, 8, 0.91);

  backdrop-filter: blur(8px);

  transition:
    visibility var(--transition),
    opacity var(--transition);
}

.drive-drop-zone.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drive-drop-zone__grid {
  position: absolute;
  inset: 0;

  opacity: 0.25;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(0, 229, 255, 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 229, 255, 0.09) 1px,
      transparent 1px
    );

  background-size:
    38px
    38px;
}

.drive-drop-zone__content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(560px, 100%);
  padding: 54px 32px;

  border: 1px dashed var(--accent);
  border-radius: var(--radius-xl);

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(0, 229, 255, 0.08),
      rgba(7, 10, 14, 0.96)
    );

  transform: scale(0.96);

  transition:
    transform var(--transition-slow);
}

.drive-drop-zone.is-visible
.drive-drop-zone__content {
  transform: scale(1);
}

.drive-drop-zone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 74px;
  height: 74px;

  border: 1px solid var(--accent-border);
  border-radius: 18px;

  color: var(--accent);

  background: var(--accent-soft);

  animation:
    drive-drop-float
    2s
    ease-in-out
    infinite;
}

.drive-drop-zone__icon svg {
  width: 32px;
  height: 32px;
}

.drive-drop-zone__eyebrow {
  margin-top: 20px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.drive-drop-zone h2 {
  margin-top: 8px;

  color: var(--text);

  font-size: 28px;
  letter-spacing: -0.04em;
}

.drive-drop-zone p {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 12px;
}

/* =========================================================
   MODALES
   ========================================================= */

.drive-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.drive-modal[hidden] {
  display: none;
}

.drive-modal__backdrop {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;

  opacity: 0;

  background: rgba(2, 4, 7, 0.88);

  backdrop-filter: blur(8px);

  animation:
    drive-backdrop-in
    180ms
    ease
    forwards;
}

.drive-modal__dialog {
  position: relative;
  z-index: 1;

  width: min(660px, 100%);
  max-height: calc(100vh - 48px);

  overflow-x: hidden;
  overflow-y: auto;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);

  opacity: 0;

  background:
    linear-gradient(
      145deg,
      rgba(16, 21, 29, 0.995),
      rgba(7, 10, 14, 0.995)
    );

  transform:
    translateY(18px)
    scale(0.97);

  animation:
    drive-dialog-in
    240ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    )
    forwards;
}

.drive-modal__dialog--large {
  width: min(820px, 100%);
}

.drive-modal__dialog--small {
  width: min(510px, 100%);
}

.drive-modal__dialog::before {
  position: absolute;
  top: -1px;
  left: 30px;

  width: 80px;
  height: 1px;

  content: "";

  background: var(--accent);
}

.drive-modal--danger
.drive-modal__dialog::before {
  background: var(--danger);
}

.drive-modal__corner {
  position: absolute;
  z-index: 3;

  width: 24px;
  height: 24px;

  pointer-events: none;
}

.drive-modal__corner--top {
  top: 14px;
  right: 14px;

  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.drive-modal__corner--bottom {
  bottom: 14px;
  left: 14px;

  border-bottom: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.drive-modal--danger
.drive-modal__corner {
  border-color: var(--danger);
}

.drive-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  padding: 20px;

  border-bottom: 1px solid var(--line-strong);
}

.drive-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;

  min-width: 0;
}

.drive-modal__heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  min-width: 43px;
  height: 43px;

  border: 1px solid var(--accent-border);
  border-radius: 10px;

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-modal__heading-icon--danger {
  border-color: var(--danger-border);

  color: var(--danger);

  background: var(--danger-soft);
}

.drive-modal__heading-icon svg {
  width: 19px;
  height: 19px;

  stroke-width: 1.8;
}

.drive-modal__heading > div:last-child {
  min-width: 0;
}

.drive-modal__eyebrow {
  display: block;

  margin-bottom: 4px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.drive-modal__eyebrow--danger {
  color: var(--danger);
}

.drive-modal__header h2 {
  color: var(--text);

  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.drive-modal__header p {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 10px;
  line-height: 1.45;
}

.drive-modal__form,
.drive-modal__body {
  padding: 20px;
}

.drive-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;

  margin: 20px -20px -20px;
  padding: 15px 20px;

  border-top: 1px solid var(--line-strong);

  background: rgba(255, 255, 255, 0.012);
}

.drive-modal__footer--external {
  margin: 0;
}

/* =========================================================
   SUBIDA
   ========================================================= */

.drive-upload-source-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.drive-upload-source {
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 12px;

  min-width: 0;
  min-height: 92px;
  padding: 15px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);

  color: var(--text);

  text-align: left;

  background:
    linear-gradient(
      145deg,
      rgba(17, 23, 31, 0.94),
      rgba(8, 11, 16, 0.98)
    );

  transition:
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.drive-upload-source:hover {
  border-color: var(--accent-border);

  background:
    linear-gradient(
      145deg,
      rgba(0, 229, 255, 0.055),
      rgba(8, 11, 16, 0.98)
    );

  transform: translateY(-2px);
}

.drive-upload-source__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  min-width: 43px;
  height: 43px;

  border: 1px solid var(--accent-border);
  border-radius: 10px;

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-upload-source__icon svg {
  width: 19px;
  height: 19px;
}

.drive-upload-source__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-upload-source__copy strong {
  color: var(--text);

  font-size: 11px;
}

.drive-upload-source__copy small {
  color: var(--text-muted);

  font-size: 9px;
}

.drive-upload-source > svg {
  width: 17px;
  height: 17px;

  color: var(--text-soft);
}

.drive-upload-selection {
  margin-top: 16px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);

  overflow: hidden;

  background: rgba(255, 255, 255, 0.012);
}

.drive-upload-selection__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 13px 14px;

  border-bottom: 1px solid var(--line);
}

.drive-upload-selection__header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-upload-selection__header > div:first-child > span {
  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.drive-upload-selection__header strong {
  color: var(--text);

  font-size: 11px;
}

.drive-upload-selection__header small {
  color: var(--text-muted);

  font-size: 9px;
}

.drive-upload-selection__list {
  max-height: 250px;

  overflow-y: auto;
}

.drive-upload-file {
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 10px;

  min-height: 58px;
  padding: 9px 13px;

  border-bottom: 1px solid var(--line);
}

.drive-upload-file:last-child {
  border-bottom: 0;
}

.drive-upload-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  color: var(--accent);

  background: var(--surface-soft);
}

.drive-upload-file__icon svg {
  width: 16px;
  height: 16px;
}

.drive-upload-file__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-upload-file__copy strong,
.drive-upload-file__copy small {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-upload-file__copy strong {
  color: var(--text);

  font-size: 10px;
}

.drive-upload-file__copy small {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
}

.drive-upload-file__size {
  color: var(--text-muted);

  font-family: var(--font-mono);
  font-size: 8px;
}

.drive-upload-file--remaining {
  display: flex;
  justify-content: center;

  color: var(--text-muted);

  font-size: 9px;
}

/* =========================================================
   SECCIONES DE MODAL
   ========================================================= */

.drive-visibility-section {
  margin-top: 18px;
}

.drive-section-header {
  margin-bottom: 11px;
}

.drive-section-header span {
  display: block;

  margin-bottom: 3px;

  color: var(--accent);

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.drive-section-header h3 {
  color: var(--text);

  font-size: 13px;
}

.drive-section-header p {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 9px;
}

.drive-visibility-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.drive-visibility-option {
  position: relative;

  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 11px;

  min-height: 66px;
  padding: 11px 12px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);

  cursor: pointer;

  background: #090d12;

  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.drive-visibility-option:hover {
  border-color: #465260;
}

.drive-visibility-option:has(input:checked) {
  border-color: var(--accent-border);

  background: var(--accent-soft);
}

.drive-visibility-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.drive-visibility-option__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  min-width: 36px;
  height: 36px;

  border: 1px solid var(--line-strong);
  border-radius: 9px;

  color: var(--text-muted);

  background: var(--surface-soft);
}

.drive-visibility-option:has(input:checked)
.drive-visibility-option__indicator {
  border-color: var(--accent-border);

  color: var(--accent);

  background: var(--accent-soft);
}

.drive-visibility-option__indicator svg {
  width: 17px;
  height: 17px;
}

.drive-visibility-option__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-visibility-option__copy strong {
  color: var(--text);

  font-size: 10px;
}

.drive-visibility-option__copy small {
  color: var(--text-muted);

  font-size: 8px;
  line-height: 1.4;
}

.drive-visibility-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  min-width: 22px;
  height: 22px;

  border: 1px solid var(--line-strong);
  border-radius: 50%;

  color: transparent;

  background: #080b10;
}

.drive-visibility-option:has(input:checked)
.drive-visibility-option__check {
  border-color: var(--accent);

  color: var(--text-inverse);

  background: var(--accent);
}

.drive-visibility-option__check svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   SELECTOR DE USUARIOS
   ========================================================= */

.drive-user-picker {
  margin-top: 11px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);

  overflow: hidden;

  background: #080c11;
}

.drive-user-picker__search {
  display: flex;
  align-items: center;
  gap: 9px;

  height: 43px;
  padding: 0 12px;

  border-bottom: 1px solid var(--line);
}

.drive-user-picker__search svg {
  width: 16px;
  height: 16px;

  color: var(--text-soft);
}

.drive-user-picker__search input {
  width: 100%;
  min-width: 0;
  height: 41px;

  border: 0;
  outline: 0;

  color: var(--text);

  font-size: 10px;

  background: transparent;
}

.drive-user-picker__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 100px;

  color: var(--text-muted);

  font-size: 9px;
}

.drive-user-picker__list {
  max-height: 230px;

  overflow-y: auto;
}

.drive-user-option {
  position: relative;

  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 10px;

  min-height: 58px;
  padding: 9px 12px;

  border-bottom: 1px solid var(--line);

  cursor: pointer;

  transition:
    background-color var(--transition);
}

.drive-user-option:last-child {
  border-bottom: 0;
}

.drive-user-option:hover {
  background: rgba(0, 229, 255, 0.025);
}

.drive-user-option:has(input:checked) {
  background: var(--accent-soft);
}

.drive-user-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.drive-user-option__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  min-width: 34px;
  height: 34px;

  border: 1px solid var(--accent-border);
  border-radius: 8px;

  color: var(--accent);

  font-size: 9px;
  font-weight: 800;

  background: var(--accent-soft);
}

.drive-user-option__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-user-option__copy strong,
.drive-user-option__copy small {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-user-option__copy strong {
  color: var(--text);

  font-size: 10px;
}

.drive-user-option__copy small {
  color: var(--text-muted);

  font-size: 8px;
}

.drive-user-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 21px;
  min-width: 21px;
  height: 21px;

  border: 1px solid var(--line-strong);
  border-radius: 6px;

  color: transparent;
}

.drive-user-option:has(input:checked)
.drive-user-option__check {
  border-color: var(--accent);

  color: var(--text-inverse);

  background: var(--accent);
}

.drive-user-option__check svg {
  width: 13px;
  height: 13px;
}

.drive-user-picker__footer {
  padding: 10px 12px;

  border-top: 1px solid var(--line);

  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;

  background: rgba(255, 255, 255, 0.012);
}

.drive-user-picker__empty {
  display: grid;
  place-items: center;

  min-height: 100px;
  padding: 20px;

  color: var(--text-muted);

  font-size: 9px;
}

/* =========================================================
   MOVER
   ========================================================= */

.drive-move__search {
  display: flex;
  align-items: center;
  gap: 9px;

  height: 44px;
  padding: 0 12px;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);

  background: #090d12;
}

.drive-move__search:focus-within {
  border-color: var(--accent-border);
}

.drive-move__search svg {
  width: 16px;
  height: 16px;

  color: var(--text-soft);
}

.drive-move__search input {
  flex: 1;

  min-width: 0;
  height: 42px;

  border: 0;
  outline: 0;

  color: var(--text);

  font-size: 10px;

  background: transparent;
}

.drive-move__search > span {
  color: #46525f;

  font-family: var(--font-mono);
  font-size: 7px;
}

.drive-move__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 120px;

  color: var(--text-muted);

  font-size: 9px;
}

.drive-move__tree {
  max-height: 330px;
  margin-top: 11px;

  overflow-y: auto;

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);

  background: #080c11;
}

.drive-move__item {
  display: grid;
  grid-template-columns:
    auto
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 8px;

  width: 100%;
  min-height: 44px;
  padding: 0 11px;

  border-bottom: 1px solid var(--line);

  color: var(--text-muted);

  text-align: left;

  background: transparent;

  transition:
    color var(--transition),
    background-color var(--transition);
}

.drive-move__item:last-child {
  border-bottom: 0;
}

.drive-move__item:hover:not(:disabled) {
  color: var(--text);

  background: rgba(0, 229, 255, 0.03);
}

.drive-move__item.is-selected {
  color: var(--accent);

  background: var(--accent-soft);
}

.drive-move__item:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.drive-move__item > svg {
  width: 16px;
  height: 16px;
}

.drive-move__item > span:not(.drive-move__indent) {
  overflow: hidden;

  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-move__item small {
  color: var(--text-soft);

  font-family: var(--font-mono);
  font-size: 7px;
}

.drive-move__indent {
  width:
    calc(
      var(--folder-level, 0) *
      16px
    );
}

.drive-move__empty {
  display: grid;
  place-items: center;

  min-height: 120px;
  padding: 20px;

  color: var(--text-muted);

  font-size: 9px;
}

/* =========================================================
   BORRADO
   ========================================================= */

.drive-danger-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 17px;
  padding: 12px;

  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);

  color: var(--danger);

  background: var(--danger-soft);
}

.drive-danger-notice > svg {
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin-top: 1px;
}

.drive-danger-notice > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drive-danger-notice strong {
  font-size: 10px;
}

.drive-danger-notice span {
  color: var(--text-muted);

  font-size: 8px;
  line-height: 1.45;
}

.drive-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  min-width: 32px;
  height: 32px;

  border-radius: 7px;

  color: var(--text-soft);

  background: transparent;
}

.drive-password-toggle:hover {
  color: var(--text);

  background: var(--surface-soft);
}

.drive-password-toggle svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */

.drive-field-code {
  color: #46525f;

  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.drive-form-error {
  display: block;

  min-height: 16px;
  margin-top: 10px;

  color: var(--danger);

  font-size: 9px;
  line-height: 1.45;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

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

@keyframes drive-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

@keyframes drive-preview-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drive-drop-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes drive-backdrop-in {
  to {
    opacity: 1;
  }
}

@keyframes drive-dialog-in {
  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes drive-progress-in {
  from {
    opacity: 0;

    transform: translateY(-8px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes drive-progress-flow {
  to {
    background-position: -200% 0;
  }
}

/* =========================================================
   RESPONSIVE · 1320 PX
   ========================================================= */

@media (max-width: 1320px) {
  .drive-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-command__actions {
    width: 100%;
  }

  .drive-command__status {
    margin-right: auto;
  }
}

/* =========================================================
   RESPONSIVE · 1050 PX
   ========================================================= */

@media (max-width: 1050px) {
  .drive-summary {
    grid-template-columns: 1fr;
  }

  .drive-summary-card {
    min-height: 98px;
  }

  .drive-navigation__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .drive-order,
  .drive-order__control {
    width: 100%;
  }
}

/* =========================================================
   RESPONSIVE · 760 PX
   ========================================================= */

@media (max-width: 760px) {
  .drive-command {
    padding: 16px;
  }

  .drive-command__actions {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .drive-command__status {
    grid-column: 1 / -1;

    justify-self: start;
  }

  .drive-command__actions .button {
    width: 100%;
  }

  .drive-panel__legend {
    display: none;
  }

  .drive-panel__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-upload-source-grid {
    grid-template-columns: 1fr;
  }

  .drive-modal {
    align-items: flex-end;

    padding: 0;
  }

  .drive-modal__dialog,
  .drive-modal__dialog--large,
  .drive-modal__dialog--small {
    width: 100%;
    max-height: 94dvh;

    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius:
      20px
      20px
      0
      0;
  }

  .drive-upload-progress__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   RESPONSIVE · 560 PX
   ========================================================= */

@media (max-width: 560px) {
  .drive-page {
    gap: 14px;
  }

  .drive-command__identity {
    align-items: flex-start;
  }

  .drive-command__icon {
    width: 47px;
    min-width: 47px;
    height: 47px;
  }

  .drive-command__copy h2 {
    font-size: 21px;
  }

  .drive-command__copy p {
    font-size: 10px;
  }

  .drive-command__actions {
    grid-template-columns: 1fr;
  }

  .drive-command__status {
    grid-column: auto;
  }

  .drive-summary-card {
    padding: 14px;
  }

  .drive-summary-card__icon {
    width: 41px;
    min-width: 41px;
    height: 41px;
  }

  .drive-summary-card__copy strong {
    font-size: 21px;
  }

  .drive-navigation__header,
  .drive-panel__header {
    padding: 14px;
  }

  .drive-navigation__connection {
    display: none;
  }

  .drive-navigation__toolbar {
    padding: 11px;
  }

  .drive-modal__header,
  .drive-modal__form,
  .drive-modal__body {
    padding: 16px;
  }

  .drive-modal__footer {
    display: grid;
    grid-template-columns: 1fr;

    margin:
      18px
      -16px
      -16px;
    padding: 14px 16px;
  }

  .drive-modal__footer--external {
    margin: 0;
  }

  .drive-modal__footer .button {
    width: 100%;
  }

  .drive-modal__header h2 {
    font-size: 18px;
  }

  .drive-empty__actions {
    flex-direction: column;

    width: 100%;
  }

  .drive-empty__actions .button {
    width: min(280px, 100%);
  }

  .drive-drop-zone__content {
    padding: 40px 20px;
  }

  .drive-drop-zone h2 {
    font-size: 23px;
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .drive-command__icon > span,
  .drive-command__status > span,
  .drive-spinner,
  .drive-item__preview.is-loading
  .drive-item__preview-loading svg,
  .drive-drop-zone__icon,
  .drive-upload-progress.is-uploading
  .drive-upload-progress__bar,
  .drive-upload-progress.is-processing
  .drive-upload-progress__bar {
    animation: none;
  }

  .drive-summary-card,
  .drive-summary-card__line,
  .drive-item,
  .drive-item__icon,
  .drive-item__preview,
  .drive-item__preview-image,
  .drive-upload-source,
  .drive-drop-zone,
  .drive-drop-zone__content {
    transition: none;
  }
}