:root {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: rgb(11, 133, 247);
  --surface-strong: #111827; 
  --primary: #31aca5;
  --primary-strong: #3b82f6;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.18), transparent 28%),
    linear-gradient(180deg, #d5d9db 0%, #2ed7ee 100%);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.7rem 1.5rem;
  backdrop-filter: blur(18px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 0.85rem;
}

.brand-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.16);
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.brand-tagline {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-center {
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.header-center a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.55rem 0.4rem;
  border-radius: 0.7rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.header-center a:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #ffffff;
}

.header-right {
  justify-content: flex-end;
}

.login-button {
  border: 1px solid #22c55e;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  padding: 0.88rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.24);
  border-color: #4ade80;
}

.hero-section {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  border: 1px solid rgba(13, 253, 113, 0.12);
  background: rgba(17, 64, 134, 0.72);
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.18);
  border-radius: 2rem;
  padding: 3.2rem 2.2rem;
}

.hero-content h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.hero-description {
  margin: 0 0 1rem;
  color: #e2e8f0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description--accent {
  margin-bottom: 2rem;
  color: #f8fafc;
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.28);
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }
  .header-center {
    justify-content: space-around;
  }
  .header-right {
    margin-top: 0.75rem;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.75rem 0.9rem;
  }
  .header-left {
    gap: 0.5rem;
  }
  .brand-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-tagline {
    font-size: 0.8rem;
    margin-top: 0.05rem;
  }
  .brand-name,
  .brand-tagline {
    text-align: center;
  }
  .header-center {
    gap: 0.65rem;
  }
  .header-center a {
    padding: 0.45rem 0.3rem;
    font-size: 0.92rem;
  }
  .header-right {
    margin-top: 0.5rem;
  }
  .login-button {
    padding: 0.6rem 0.95rem;
    font-size: 0.9rem;
  }
  .hero-content {
    padding: 2.2rem 1.6rem;
  }
}

.info-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 3.5rem 2rem 4rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.6rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.how-title {
  margin-bottom: 1.15rem;
  font-size: 1.8rem;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.8;
}

.info-card ul {
  margin: 0;
  padding-left: 0;
}

.two-column-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.role-block {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.role-block--propietario {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.42), rgba(16, 185, 129, 0.18));
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.2);
}

.role-block--propietario .role-link {
  color: #f0fdf4;
}

.role-block--hallador {
  background: rgba(29, 78, 216, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
}

.role-link {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.role-link:hover {
  text-decoration: underline;
}

.role-summary {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.process-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
}

.process-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.process-modal-content {
  position: relative;
  max-width: 760px;
  margin: 5vh auto;
  padding: 1.75rem 1.75rem 1.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #f8fafc;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(96, 165, 250, 0.24);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

#processModalTitle {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #f8fafc;
}

.process-modal-content::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: 1.2rem 1.2rem 0 0;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.process-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  border: none;
  background: rgba(148, 163, 184, 0.16);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.55rem;
  cursor: pointer;
  color: #e2e8f0;
}

.process-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.process-step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.process-step-item::before {
  content: attr(data-step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.process-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.process-step-label {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  color: #93c5fd;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.process-step-text {
  line-height: 1.7;
  font-size: 0.98rem;
  color: #dbeafe;
}

.process-steps {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #60a5fa;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail {
  margin-top: 1rem;
  color: #c7d2fe;
  font-weight: 600;
}

@media (max-width: 960px) {
  .info-section {
    grid-template-columns: 1fr 1fr;
  }

  .two-column-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .info-section {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 3rem;
  margin-top: -1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.86);
}

.footer-brand,
.footer-note {
  color: var(--text);
}

.footer-label {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-text,
.footer-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.logo {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.16);
  overflow: hidden;
}

button {
  border: none;
  border-radius: 9999px;
  background: rgb(11, 133, 247);
  color: white;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

#bt1 {
  background: #2563eb;
}

#bt1:hover {
  background: #1d4ed8;
}

#bt2 {
  background: #16a34a;
}

#bt2:hover {
  background: #15803d;
}

@media (hover: none) {
  button:hover {
    transform: none;
  }
}

/* Layout helpers for dashboard sidebar collapse */
.dashboard-layout.expanded-main {
  grid-template-columns: 0 1fr !important;
}

.sidebar-izquierda.collapsed {
  display: none !important;
}

/* Estilos movidos desde areadecliente2.php */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  gap: 0;
}

.sidebar {
  background: rgba(15, 23, 42, 0.94);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 11000;
}

.sidebar .welcome-box {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.16);
  border-radius: 1rem;
  color: #fff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand .brand-name {
  margin: 0;
  font-weight: 800;
  color: #fff;
}

.sidebar-brand .brand-tagline {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

.sidebar-welcome-action {
  padding: 0.6rem 0 1rem 0;
}

.sidebar-welcome-action .btn-nuevo-dispositivo {
  width: 100%;
  justify-content: center;
}

.menu-toggle-button {
  display: none;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10800;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-nav a,
.sidebar-nav button {
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  position: relative;
}

.sidebar-nav button {
  padding-right: 2.4rem;
}

.sidebar-nav button::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: #94a3b8;
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-nav button.active::after {
  transform: translateY(-50%) rotate(180deg);
  color: #60a5fa;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background: rgba(96, 165, 250, 0.14);
}

.sidebar-panel {
  display: none;
  background: rgba(96, 165, 250, 0.08);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: #fff;
}

.sidebar-panel.active {
  display: block;
}

.sidebar-panel .profile-field {
  margin: 0.75rem 0;
  color: rgba(226, 232, 240, 0.85);
}

.sidebar-panel .profile-field strong {
  color: #fff;
}

.sidebar-panel .form-recovery {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.sidebar-panel .form-recovery input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
}

.sidebar-panel .form-recovery input::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.sidebar-panel .form-recovery select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  min-height: 3rem;
  line-height: 1.5;
}

.sidebar-panel .form-recovery select option {
  color: #0f172a;
  background: #f8fafc;
}

#modal-nuevo-dispositivo select {
  width: 100%;
  padding: 1rem 1rem;
  min-height: 3.2rem;
  line-height: 1.6;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
}

#modal-nuevo-dispositivo select option {
  color: #0f172a;
  background: #f8fafc;
}

.sidebar-panel .form-recovery button {
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}

.sidebar-panel .save-feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #bef264;
}

.sidebar-panel .save-feedback.error {
  color: #f87171;
}

.sidebar-devices {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar-section-title {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #fff;
}

.sidebar-device-group {
  margin-bottom: 0.75rem;
}

.sidebar-device-group-title {
  margin: 0 0 0.35rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
}

.sidebar-device-item {
  margin: 0 0 0.35rem 0;
  color: #e2e8f0;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-device-status {
  color: #94a3b8;
  font-size: 0.82rem;
}

.sidebar-device-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.sidebar-contact {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.sidebar-contact p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.sidebar-contact a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
}

.sidebar-contact a:hover {
  text-decoration: underline;
}

.sidebar-contact a.btn-cerrar-sesion {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5e0;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}

.sidebar-contact a.btn-cerrar-sesion:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  text-decoration: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

.dashboard-layout,
.navbar-superior,
.dashboard-main,
main,
.brand-container,
.navbar-top,
.navbar-bottom {
  margin: 0;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: rgba(15, 23, 42, 0.78);
  padding-top: 0;
}

.cliente-main-shell {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.welcome-panel {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.18);
}

.welcome-title {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.welcome-text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.welcome-alert-card {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(248, 113, 113, 0.26);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem 0;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.16);
}

.welcome-alert-title {
  margin: 0 0 0.35rem 0;
  color: #fca5a5;
  font-weight: 800;
  line-height: 1.45;
}

.welcome-alert-subtitle {
  margin: 0 0 0.8rem 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-device-list {
  display: grid;
  gap: 0.6rem;
}

.alert-device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.75);
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
}

.alert-device-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.alert-device-id {
  word-break: break-word;
}

.alert-device-model {
  font-size: 0.9rem;
  color: #cbd5e1;
  word-break: break-word;
}

.alert-device-action {
  color: #60a5fa;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.register-device-action {
  margin: 0 0 1.5rem 0;
}

.register-device-action .btn-nuevo-dispositivo {
  display: inline-flex;
}

.empty-state-card {
  text-align: center;
  padding: 3rem 1.25rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

.empty-state-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.empty-state-text {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.navbar-superior {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1.2rem;
  box-sizing: border-box;
  gap: 0.25rem;
  position: static;
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.navbar-bottom {
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 0.35rem;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-top-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: auto;
  min-width: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

.navbar-superior-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar-superior .btn-toggle-sidebar {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
}

.navbar-superior .brand-container {
  padding-left: 0;
  display: flex;
  align-items: center;
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-toggle-sidebar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  margin: 0;
}

.btn-cerrar-sesion {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-cerrar-sesion:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.header-secondary-actions {
  width: 100%;
  padding: 0 1.8rem 1rem;
}

.dashboard-header .menu-toggle-button {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .dashboard-header,
  .navbar-superior {
    width: 100%;
    margin-left: 0;
    left: 0;
  }

  .header-logo {
    width: 44px;
    height: 44px;
  }

  .header-brand p.brand-name {
    font-size: 1.15rem;
  }

  .header-secondary-actions {
    padding: 0 1rem 1rem;
  }
}

.device-list-container {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.device-card-wrapper {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  transition: transform 0.15s ease;
}

.device-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.5);
}

.device-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.device-badge {
  font-size: 0.75rem;
  background: #2ecc71;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
  font-weight: 700;
}

.timeline-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.timeline-toggle-label {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline-toggle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(96, 165, 250, 0.16);
  color: #60a5fa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.timeline-toggle-btn:hover {
  background: rgba(96, 165, 250, 0.25);
  transform: translateY(-1px);
}

.device-compact {
  display: none;
  width: 100%;
}

.device-compact .info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.device-full-content {
  display: block;
}

.mobile-collapse-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.06);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-recuperar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-recuperar:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-recuperar:disabled {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: not-allowed;
}

.btn-detalles {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-evidencia {
  background: #6b7280;
  color: #f8fafc;
  border: 1px solid #4b5563;
  padding: 0.63rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-evidencia:hover {
  background: #4b5563;
}

.btn-nuevo-dispositivo {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nuevo-dispositivo:hover {
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.tuki-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1.5rem;
  cursor: pointer;
}

.tuki-modal {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
  position: relative;
  cursor: default;
}

.evidencia-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.evidencia-indicator.valid {
  background: #34d399;
  border-color: rgba(52, 211, 153, 0.2);
}

.evidencia-indicator.invalid {
  background: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}

.modal-step-content {
  display: none;
}

.modal-step-content.active {
  display: block;
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

#btn-modal-next:disabled {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
  cursor: not-allowed;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

#btn-modal-next:disabled:hover {
  background: rgba(148, 163, 184, 0.2);
}

#btn-modal-prev,
#btn-modal-next {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

#btn-modal-prev:hover:not(:disabled),
#btn-modal-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.modal-indicator {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.danger-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1rem;
  border-radius: 0.75rem;
  margin: 1rem 0;
  color: #fca5a5;
}

.trust-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1.2rem;
  border-radius: 0.85rem;
  margin: 1.5rem 0;
  color: #fde047;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-container input {
  margin-top: 0.2rem;
  transform: scale(1.15);
  cursor: pointer;
}

.form-recovery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.6rem;
}

.form-recovery label {
  width: 100%;
  text-align: left;
  color: #cbd5e1;
  font-weight: 600;
}

.form-recovery input {
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.form-recovery button {
  display: block;
  margin: 0.25rem auto 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

#btn-aceptar-inicio {
  background: #1e293b;
  color: #64748b;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: not-allowed;
  width: 100%;
  transition: all 0.3s ease;
}

#btn-aceptar-inicio.enabled {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.copy-group {
  display: grid;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 1rem;
  padding: 1rem;
  margin: 1.25rem 0;
  justify-items: center;
}

.copy-textarea {
  width: 100%;
  min-height: 160px;
  resize: none;
  border: none;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 1rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.copy-textarea::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.copy-textarea[readonly] {
  opacity: 1;
}

.btn-copiar {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: none;
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: fit-content;
  justify-self: center;
}

.btn-copiar:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.btn-copiar:active {
  transform: translateY(0);
}

.btn-copiar:focus {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.timeline-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 3rem auto;
  max-width: 760px;
  width: calc(100% - 2rem);
  padding: 0 1rem;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 3%;
  right: 3%;
  height: 4px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 27px;
  left: 3%;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #2ecc71, #3498db);
  z-index: 1;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1e293b;
  border: 4px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  transition: all 0.5s ease;
}

.step-label {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
}

.step.completed .step-circle {
  border-color: #2ecc71;
  background-color: #2ecc71;
  color: white;
  transform: scale(1.05);
}

.step.active .step-circle {
  border-color: #3498db;
  background-color: #0f172a;
  color: #3498db;
  box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.25);
}

.step.active .step-label {
  color: #3498db;
  font-weight: 700;
}

.payment-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: center;
}

.btn-pago {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.btn-pago.enabled {
  background: linear-gradient(135deg, #ff9f43, #ff6b6b);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 159, 67, 0.3);
}

.modolost-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 1rem;
  background: #0b1120;
}

.modolost-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.modolost-carousel-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.modolost-carousel-nav.prev {
  left: -1.5rem;
}

.modolost-carousel-nav.next {
  right: -1.5rem;
}

.modolost-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modolost-slide.active {
  opacity: 1;
  position: relative;
}

.modolost-slide-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(30, 64, 175, 0.95);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.modolost-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

.modolost-caption {
  background: linear-gradient(180deg, rgba(14, 36, 72, 0.96), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.35);
  text-align: center;
}

.modolost-caption-text {
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.98rem;
  color: #dbeafe;
  max-width: 740px;
}

.copy-group {
  display: grid;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(8, 14, 32, 0.98), rgba(10, 18, 38, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  margin: 1.25rem 0;
  justify-items: center;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.copy-textarea {
  width: 100%;
  min-height: 160px;
  resize: none;
  border: 1px solid rgba(100, 116, 139, 0.35);
  outline: none;
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  padding: 1rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.copy-textarea::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.copy-textarea[readonly] {
  opacity: 1;
}

.btn-copiar {
  background: linear-gradient(135deg, #0ea5e9, #60a5fa);
  border: none;
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: fit-content;
  justify-self: center;
}

.btn-copiar:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, #0284c7, #7dd3fc);
}

.btn-copiar:active {
  transform: translateY(0);
}

.btn-copiar:focus {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.alert-pop-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  z-index: 12050;
  padding: 1rem;
}

.alert-pop-card {
  width: min(560px, 100%);
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.25rem;
  border: 1px solid rgba(234, 179, 8, 0.32);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.alert-pop-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
}

.alert-pop-text {
  margin: 0.4rem 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert-pop-button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: none;
  background: #fbbf24;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.alert-pop-button:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.device-card-focus {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35);
  border-color: #fbbf24;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .dashboard-layout {
    display: block;
    grid-template-columns: none;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    max-width: 340px;
    transform: translateX(-120%);
    z-index: 10900;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.35);
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.28s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-sidebar-overlay {
    display: block;
  }

  .menu-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .btn-toggle-sidebar {
    display: inline-flex;
  }

  .dashboard-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1.5rem 1rem 2rem;
  }

  .cliente-main-shell {
    padding: 1rem 0.75rem 1.5rem;
  }

  .welcome-panel,
  .welcome-alert-card,
  .empty-state-card {
    padding: 1rem;
    border-radius: 0.95rem;
  }

  .welcome-title {
    font-size: 1.2rem;
  }

  .welcome-text,
  .welcome-alert-subtitle,
  .empty-state-text {
    font-size: 0.92rem;
  }

  .alert-device-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .alert-device-action {
    align-self: flex-end;
  }

  .register-device-action {
    margin-bottom: 1.25rem;
  }

  .register-device-action .btn-nuevo-dispositivo {
    width: 100%;
    justify-content: center;
  }

  .dashboard-header {
    position: static;
    z-index: auto;
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem 1rem;
    align-items: flex-start;
  }

  .dashboard-header > div {
    width: 100%;
  }

  .dashboard-header p {
    margin: 0;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-secondary-actions {
    padding: 0 1rem 1rem;
  }

  .device-card-wrapper {
    padding: 1.5rem;
  }

  .device-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .device-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.06);
  }

  .device-full-content {
    display: block;
  }

  .device-card-wrapper.mobile-collapsed .device-full-content {
    display: none !important;
  }

  .device-actions {
    flex-direction: column;
    width: 100%;
  }

  .device-actions button {
    width: 100%;
  }

  .info-section {
    padding: 1rem 0 0;
  }

  .timeline-card {
    padding: 1.5rem 1.25rem;
  }

  .tuki-modal {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-width: 100%;
  }

  .tuki-modal-overlay {
    padding: 1rem;
  }

  .modolost-slide img {
    height: 240px;
  }

  .stepper {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;
    gap: 2rem;
  }

  .stepper::before,
  .stepper-progress {
    left: 42px;
    top: 0;
    width: 4px;
    height: 100%;
  }

  .step {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
  }

  .step-label {
    margin-top: 0;
    margin-left: 1.5rem;
    text-align: left;
  }
}

/* Toggle button for sidebar */
.btn-toggle-sidebar {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.08);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
}

/* Ensure workspace header adapts horizontally */
.workspace-header {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.workspace-header > div {
  min-width: 0;
}

@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 0 1fr;
  }
  .sidebar-izquierda {
    display: none;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-buttons button {
  min-width: 170px;
}

.form-container {
  flex: 1;
  min-height: calc(100vh - 6rem);
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem 4rem;
}

/* Ocultar header al hacer scroll hacia abajo en móviles */
@media (max-width: 860px) {
  .site-header,
  .workspace-header,
  .dashboard-header,
  .navbar-superior {
    transition: transform 0.25s ease-in-out;
    will-change: transform;
  }
  .site-header.header-hidden,
  .workspace-header.header-hidden,
  .dashboard-header.header-hidden,
  .navbar-superior.header-hidden {
    transform: translateY(-110%);
  }
}

.form-layout {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.form-panel {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-panel h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}

.panel-text {
  margin: 1rem 0 1.75rem;
  color: #475569;
  line-height: 1.8;
}

.panel-list {
  display: grid;
  gap: 1rem;
}

.panel-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.panel-step {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: white;
  font-weight: 800;
}

.panel-item-title {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.panel-item-text {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
}

.panel-note {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 0.95rem;
  line-height: 1.75;
}

.form-wrapper {
  width: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)), url('fondo.jfif');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
  padding: 2.3rem;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-overline {
  margin: 0 0 0.75rem;
  color: #60a5fa;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.form-wrapper h2 {
  margin: 0;
  margin-bottom: 0.65rem;
  font-size: clamp(1.9rem, 2.5vw, 2.4rem);
}

.form-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.7;
}

.formulario {
  display: grid;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 3rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-size: 0.98rem;
}

.form-group input::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.form-group select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.65) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.65) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) center, calc(100% - 0.5rem) center;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-actions {
  display: grid;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 1rem;
}

.form-actions p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

.btnregistrar,
.btncancelar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btnregistrar {
  background: linear-gradient(135deg, #22c55e 0%, #2563eb 100%);
  color: #fff;
  border: none;
}

.btnregistrar:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(34, 105, 189, 0.2);
}

.btncancelar {
  display: inline-flex;
  text-decoration: none;
  background: #334155;
  color: #ffffff;
  border: none;
}

.btncancelar:hover {
  transform: translateY(-1px);
  background: #475569;
}

@media (max-width: 980px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-panel {
    order: 2;
  }
}

@media (max-width: 780px) {
  .form-container {
    padding: 2rem 1rem 3rem;
  }
  .form-wrapper {
    padding: 1.8rem;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 54, 0.64);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 2rem;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  background: linear-gradient(180deg, #f9fcff 0%, #edf4ff 100%);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.9rem 1.9rem 1.6rem;
  box-shadow: 0 30px 90px rgba(13, 49, 114, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #12315f;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #0f4c9d 0%, #5aa5ff 100%);
}

.modal h2 {
  margin: 0 0 1rem;
  padding-top: 0.25rem;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #0f172a;
}

.modal p,
.modal label {
  color: #334155;
}

.modal form {
  display: grid;
  gap: 1rem;
}

.modal .login-panel {
  display: grid;
  gap: 1rem;
}

.modal .login-panel p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
}

.modal .login-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #cbd5e1;
}

.modal .login-form button[type="submit"] {
  margin-top: 0.4rem;
}

.modal .login-note {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
}

.modal .login-note a {
  color: #93c5fd;
  text-decoration: none;
}

.modal .login-note a:hover {
  text-decoration: underline;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  box-shadow: none;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.7);
}

.modal form button[type="submit"] {
  background: linear-gradient(135deg, #22c55e 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.3rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal form button[type="submit"]:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #16a34a 100%);
  transform: translateY(-1px);
}

.modal.modal--bg-image {
  background: transparent url('fondo.jfif') center/cover no-repeat !important;
  color: #ffffff;
}

.modal.modal--bg-image .formulario input,
.modal.modal--bg-image .formulario select,
.modal.modal--bg-image .formulario textarea {
  background: rgba(255,255,255,0.92);
  color: #0b1220;
  border: 1px solid rgba(0,0,0,0.08);
}

.modal.modal--bg-image h1,
.modal.modal--bg-image h2,
.modal.modal--bg-image h3,
.modal.modal--bg-image h4,
.modal.modal--bg-image h5,
.modal.modal--bg-image h6,
.modal.modal--bg-image .form-wrapper h2,
.modal.modal--bg-image .form-subtitle,
.modal.modal--bg-image .formulario label,
.modal.modal--bg-image .formulario p {
  color: #0b1220;
}

.modal.modal--bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  z-index: 0;
}

.modal.modal--bg-image .form-wrapper,
.modal.modal--bg-image .formulario,
.modal.modal--bg-image .modal-close,
.modal.modal--bg-image .form-actions {
  position: relative;
  z-index: 1;
}

.modal.modal--login {
  background: transparent url('fondo.jfif') center/cover no-repeat !important;
  color: #0b1220;
}

.modal.modal--login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  z-index: 0;
}

.modal.modal--login .login-panel,
.modal.modal--login .login-form,
.modal.modal--login .modal-close,
.modal.modal--login .form-wrapper,
.modal.modal--login .formulario,
.modal.modal--login .form-actions {
  position: relative;
  z-index: 1;
}

.modal.modal--login .login-panel h2,
.modal.modal--login .login-panel p,
.modal.modal--login .login-form label,
.modal.modal--login .login-note,
.modal.modal--login .login-note a,
.modal.modal--login .modal-close,
.modal.modal--login .formulario h1,
.modal.modal--login .formulario h2,
.modal.modal--login .formulario .form-subtitle,
.modal.modal--login .formulario label,
.modal.modal--login .formulario p {
  color: #0b1220;
}

.modal.modal--login .formulario input,
.modal.modal--login .formulario select,
.modal.modal--login .formulario textarea {
  background: rgba(255,255,255,0.96);
  color: #0b1220;
  border: 1px solid rgba(0,0,0,0.08);
}

.modal.modal--login .login-form input {
  background: rgba(255,255,255,0.96);
  color: #0b1220;
  border: 1px solid rgba(0,0,0,0.08);
}

.modal.modal--form2 .modal-close { color: #ffffff; }

.modal h2,
.modal .form-subtitle,
.modal label,
.modal p { color: inherit; }

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f7f7f9;
  color: #0b1220;
  box-shadow: none;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: #6b7280;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.6);
}

.modal .form-actions { display:flex; gap:0.75rem; flex-wrap:wrap; justify-content:center; }

.modal .btnregistrar {
  background: #0bb351;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}
.modal .btnregistrar:hover { background: #0b1220; }

.modal .btnbuscar {
  background: #0bb351;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}
.modal .btnbuscar:hover { background: #0b1220; }

.modal form button[type="submit"] {
  background: #0bb351;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal form button[type="submit"]:hover {
  background: #0b1220;
  transform: translateY(-1px);
}

.modal .btn-cancelar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.modal .btn-cancelar:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  color: #0f172a;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#modalContent {
  display: block;
}

.form-container .form-wrapper { padding: 0; box-shadow: none; border-radius: 6px; }
.modal .form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.modal .login-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.modal.modal--bg-image .form-wrapper,
.modal.modal--login .form-wrapper {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.modal.modal--bg-image .login-panel,
.modal.modal--login .login-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.formulario .form-actions { display:flex; gap:0.75rem; flex-wrap:wrap; justify-content:center; }
.formulario input, .formulario select, .formulario textarea { width:100%; padding:0.6rem; border-radius:8px; border:1px solid var(--border); background: rgba(255,255,255,0.85); color:#0b1220; }

.modal.modal--bg-image .formulario input,
.modal.modal--bg-image .formulario select,
.modal.modal--bg-image .formulario textarea,
.modal.modal--login .formulario input,
.modal.modal--login .formulario select,
.modal.modal--login .formulario textarea {
  background: rgba(255, 255, 255, 0.75);
  color: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.modal-open { overflow: hidden; }

.form-group ul { list-style: none; padding: 0; margin: 0.5rem 0 0 0; }
.form-group ul li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.form-group ul label { margin: 0; }

.modal input[type="checkbox"] { width: 18px; height: 18px; accent-color: #111827; }

.modal .formulario input,
.modal .formulario select,
.modal .formulario textarea {
  background: #f7f7f9;
  color: #0b1220;
  border: 1px solid #d1d5db;
}

@media (max-width: 520px) {
  .modal { padding: 1rem; }
}

@media (max-width: 600px) {
  .modal.modal--bg-image {
    background-image: url('fondo-small.jfif');
    background-size: cover;
    background-position: center;
  }
  .modal.modal--bg-image::before {
    background: rgba(255,255,255,0.08);
  }
  .modal.modal--bg-image .formulario input,
  .modal.modal--bg-image .formulario select,
  .modal.modal--bg-image .formulario textarea {
    background: rgba(255,255,255,0.96);
  }
}

.input-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.input-grupo input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.input-grupo button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  border-radius: 4px;
  cursor: pointer;
}

.input-grupo button:hover {
  background-color: #0056b3;
}

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-group-vertical .btn-cancelar {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   NUEVOS COMPONENTES UNIFICADOS: STEPPER ANIMADO DE TUKI ENCUENTRA
   ========================================================================== */
#pedido.panel-card-wide {
    grid-column: span 2;
}

.tuki-loader {
    font-size: 1rem;
    font-weight: 600;
    color: #60a5fa;
    padding: 1.5rem;
    text-align: center;
    animation: tukiLoaderPulse 1s infinite alternate;
}

@keyframes tukiLoaderPulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

#pedido .stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2.5rem 0;
}

/* Mobile-friendly modal behavior */
.modal-overlay {
  place-items: start center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  padding: 1rem 0.75rem 1rem;
}

.tuki-modal-overlay {
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  padding: 1rem 0.75rem 1rem;
}

.modal,
.tuki-modal,
.modal-content {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .modal,
  .tuki-modal,
  .modal-content {
    width: min(100%, calc(100vw - 1.5rem));
    max-width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    padding: 1rem;
  }

  .modal-overlay,
  .tuki-modal-overlay {
    padding: 0.75rem;
  }

  .modal h2,
  .tuki-modal h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .modal,
  .tuki-modal,
  .modal-content {
    max-height: calc(100vh - 1.5rem);
    padding: 0.9rem;
  }
}

#pedido .stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

#pedido .stepper-progress {
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: #2ecc71;
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#pedido .step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

#pedido .step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0f172a;
    border: 4px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    transition: all 0.4s ease;
    box-sizing: border-box;
    color: #ffffff;
}

#pedido .step-label {
    margin-top: 12px;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.6);
    text-align: center;
    font-weight: 600;
    transition: color 0.4s ease;
}

#pedido .tucan-anim {
    display: inline-block;
}

#pedido .step.completed .step-circle {
    border-color: #2ecc71;
    background-color: #2ecc71;
    color: #ffffff;
}
#pedido .step.completed .step-label { 
    color: #ffffff; 
}

#pedido .step.active .step-circle {
    border-color: #2ecc71;
    background-color: #0f172a;
    color: #2ecc71;
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.25);
}
#pedido .step.active .step-label {
    color: #2ecc71;
    font-weight: 700;
}

/* Keyframes de Animaciones */
#pedido .step.active .anim-buscar {
    animation: tukiBuscar 2s infinite ease-in-out;
}
@keyframes tukiBuscar {
    0%, 100% { transform: scale(1) rotate(-10deg); }
    50% { transform: scale(1.18) rotate(15deg); }
}

#pedido .step.active .anim-tuki {
    animation: tukiBrinco 0.8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) alternate;
}
@keyframes tukiBrinco {
    0% { transform: translateY(0); }
    100% { transform: translateY(-9px); }
}

#pedido .step.active .anim-camino {
    animation: tukiVuelo 1.4s infinite ease-in-out;
}
@keyframes tukiVuelo {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(6px) translateY(-4px); }
}

#pedido .step.active .anim-casa {
    animation: tukiCasa 0.6s infinite alternate;
}
@keyframes tukiCasa {
    0% { transform: scale(1); }
    100% { transform: scale(1.22) rotate(4deg); }
}

#pedido .payment-section {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    text-align: center;
}

#pedido .btn-pago {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 9999px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

#pedido .btn-pago.enabled {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.25);
}

#pedido .btn-pago.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 159, 67, 0.45);
}

@media (max-width: 650px) {
    #pedido .stepper { 
        flex-direction: column; 
        align-items: flex-start; 
        padding-left: 1.5rem; 
        gap: 1.5rem;
    }
    #pedido .stepper::before { 
        left: 41px; 
        top: 0; 
        width: 4px; 
        height: 100%; 
    }
    #pedido .stepper-progress { 
        left: 41px; 
        top: 0; 
        width: 4px; 
        height: 0%; 
    }
    #pedido .step { 
        flex-direction: row; 
        width: 100%; 
        justify-content: flex-start; 
    }
    #pedido .step-label { 
        margin-top: 0; 
        margin-left: 1.2rem; 
        text-align: left; 
    }
}
/* Utilidades y micro-animaciones del flujo asíncrono */
.hidden { display: none !important; }

.tuki-modal-overlay {
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

/* Transición suave para cuando la barra de progreso avanza en cascada */
#pedido .stepper-progress {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}