:root {
  --primary-color: #FF6700; /* A orange shade similar to the PDF */
  --primary-color-hover: #FDA29B;
  --sidebar-bg: #FF6700; /* Darker purple for sidebar */
  --sidebar-text-color: #E5E7EB;
  --sidebar-text-color-hover: #FFFFFF;
  --sidebar-active-bg: #FF6700;
  --content-bg: #FFFFFF;
  --text-color-dark: #1F2937;
  --text-color-medium: #6B7280;
  --text-color-light: #9CA3AF;
  --border-color: #D1D5DB;
  --input-bg: #FFFFFF;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--content-bg);
  margin: 0;
  color: var(--text-color-dark);
}

.main-layout {
  display: block;
  min-height: 100vh;
}

.main-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar-header .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-align: left;
  margin: 0 0 24px 0;
}

.sidebar-header .search-bar input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color-hover);
  color: var(--white);
  box-sizing: border-box;
}

.sidebar-header .search-bar input::placeholder {
  color: var(--sidebar-text-color);
}

.sidebar-header .input-with-icon {
  position: relative;
}

.sidebar-header .input-with-icon img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Allows clicking through the icon */
}

.sidebar-header .input-with-icon input {
  padding-left: 40px; /* Add space for the icon */
}

.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border-radius: 6px;
  color: var(--sidebar-text-color);
  text-decoration: none;
  font-weight: 500;
  gap: 12px;
}

.sidebar-nav li a:hover {
  background-color: var(--primary-color);
  color: var(--sidebar-text-color-hover);
}

.sidebar-nav li.active a {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.sidebar-footer {
  padding-top: 16px;
}

.sidebar-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.sidebar-footer li a {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-radius: 6px;
  color: var(--sidebar-text-color);
  text-decoration: none;
  font-weight: 500;
  gap: 12px;
}

.sidebar-footer li a:hover {
  background-color: var(--primary-color);
  color: var(--sidebar-text-color-hover);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding-top: 16px;
  border-top: 1px solid var(--primary-color);
}

.sidebar-footer .user-info .user-avatar {
  border-radius: 50%;
}

.sidebar-footer .user-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sidebar-footer .user-name {
  font-weight: 600;
  color: var(--white);
}

.sidebar-footer .user-email {
  font-size: 14px;
  color: var(--text-color-light);
}

/* Content Area Styles */
.content-area {
  margin-left: 260px;
  padding: 32px 48px;
  box-sizing: border-box;
}

.page-header {
  margin-bottom: 24px;
}

.page-header .back-link {
  color: var(--text-color-medium);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-header .back-link:hover {
  color: var(--text-color-dark);
}

.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color-dark);
}

.page-header p {
  font-size: 16px;
  color: var(--text-color-medium);
  margin: 4px 0 0 0;
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.tabs nav {
  display: flex;
  gap: 24px;
}

.tabs .tab-link {
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
  color: var(--text-color-medium);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: -1px; /* Overlap the container's border */
}

.tabs .tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Forms */
.form-section {
  max-width: 800px;
}

.form-group.horizontal-group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 3px 3px 0 rgba(16, 24, 40, 0.05);
}

#mis-detalles .form-section > .form-group.horizontal-group:last-of-type {
  border-bottom: none;
}

.form-group.horizontal-group label {
  flex: 0 0 240px;
  font-weight: 600;
}

.form-group.horizontal-group .input-wrapper {
  flex-grow: 1;
}

.form-group.horizontal-group .multi-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  background-color: var(--input-bg);
  color: var(--text-color-dark);
  font-size: 16px;
  box-shadow: 0 3px 3px 0 rgba(16, 24, 40, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-hover);
}

.form-group .input-with-icon {
  position: relative;
}

.form-group .input-with-icon img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .help-text {
  font-size: 14px;
  color: var(--text-color-medium);
  margin-top: 8px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  white-space: nowrap;
  gap: 12px;
  flex-wrap: nowrap
}

.verify-form {
  margin-top: 24px;
}

.form-error {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.select-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group.has-error input {
  border: 1px solid var(--primary-color);
  background-color: #fff0f0;
  padding-right: 2.5rem; /* espacio para el ícono */
  border-radius: 8px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding-right: 2.5rem; /* espacio para el ícono */
}

.error-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.error-message {
  color: var(--primary-color);
  font-size: 0.9em;
  margin-top: 4px;
}

.code-inputs {
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
}

.info-block {
  margin-top: 16px;
  font-size: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.forgot-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none
}

.register-link {
  color: var(--primary-color);
  font-weight: 600;
}

.resend-link {
  color: var(--primary-color);
  font-weight: 600;
}

.back-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color-medium);
  font-weight: 500;
  margin-top: 8px;
}

.m-top-6 {
  margin-top: 6px;
}

.m-top-16 {
  margin-top: 16px
}

.m-top-24 {
  margin-top: 24px;
}

.m-top-32 {
  margin-top: 32px;
}

.m-r-8 {
  margin-right: 8px;
}

.m-b-32 {
  margin-bottom: 32px;
}

.m-b-24 {
  margin-bottom: 24px;
}

.m-b-16 {
  margin-bottom: 16px;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.p-x-12 {
  padding-left: 12px;
  padding-right: 12px;
}

.no-bg {
  background: transparent;
}

.fw-600 {
  font-weight: 600;
}

.text-small {
  font-size: 14px;
}

.text-medium {
  color: var(--text-color-medium);
}

.center-text {
  text-align: center;
}

.full-width {
  display: block;
  width: 80%;
  margin-left: 12px;
}

.icon-left {
  vertical-align: middle;
  margin-right: 8px;
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

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

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

.btn-secondary {
  background-color: var(--white);
  color: var(--text-color-dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #FFFFFF; /* light gray */
}

.btn-select {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  height: 32px;
  text-decoration: none;
  margin-top: 6px;
}

.btn-100 {
  width: 100%;
}

.btn-block {
  display: block;
}

/* Profile Specific */
.profile-photo-section {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.profile-photo-section .current-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo-section .upload-area {
  flex-grow: 1;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary-color);
}

.upload-area .upload-icon {
  width: 40px;
  height: 40px;
  background-color: #E5E7EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

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

.upload-area .upload-hint {
  font-size: 12px;
  color: var(--text-color-medium);
  margin-top: 4px;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-color-medium);
  margin-top: 4px;
}

/* Auth Layout Styles */
.auth-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--content-bg);
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  box-sizing: border-box;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .icon {
  display: inline-block;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  margin-bottom: 16px;
}

.auth-header .icon i {
  font-size: 24px;
  color: var(--primary-color);
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.auth-header p {
  color: var(--text-color-medium);
  margin: 0;
  font-size: 15px;
}

.auth-header .icon img,
.auth-header > img[alt="Correo"] {
  width: 45px !important;
  height: 45px !important;
}

/* Botón naranja: altura compacta, centrado vertical */
.auth-container a.btn.btn-primary,
.auth-container .btn.btn-primary.btn-100 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important; /* mismo alto que “Restablecer contraseña” */
  padding: 0 20px !important; /* quita padding vertical extra */
  line-height: 1 !important; /* evita que crezca por la tipografía */
  font-weight: 700;
}

/* Separación bajo el header como en la vista guía */
.auth-container .auth-header {
  margin-bottom: 24px !important;
}


.auth-container form {
  display: flex;
  flex-direction: column;
}

.auth-container .form-group {
  margin-bottom: 16px;
}

.auth-container .form-group label {
  font-weight: 500;
}

.auth-container .form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-container .form-options .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-container .form-options a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-container .btn-google {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.auth-container .auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
}

.auth-container .auth-footer p {
  margin: 0 0 16px 0;
  color: var(--text-color-medium);
}

.auth-container .auth-footer a {
  font-weight: 600;
  text-decoration: none;
}

/* Profile View Page */
.profile-view-page {
  position: relative;
}

.profile-banner {
  height: 160px;
  background: var(--primary-color);
  border-radius: 0;
  /* Use negative margins to extend to the edges of the content-area padding */
  margin: -32px -48px -64px -48px;
  width: calc(100% + 96px);
}

.profile-view-page .profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 32px 0 0;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
  border-bottom: none;
}

.profile-view-page .profile-avatar img {
  border-radius: 50%;
  width: 160px;
  height: 160px;
}

.profile-view-page .profile-info h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 80px 0 4px 0;
}

.profile-view-page .profile-info p {
  color: var(--text-color-medium);
  margin: 0;
  font-size: 16px;
}

.profile-view-page .profile-actions {
  margin-left: auto;
}

.profile-body-layout {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}

.profile-contact-details {
  flex: 0 0 240px;
}

.profile-contact-details .detail-group:not(:last-child) {
  margin-bottom: 24px;
}

.profile-main-column {
  flex-grow: 1;
}

.profile-medical-details {
  margin-bottom: 32px;
}

.profile-medical-details .detail-group:not(:last-child) {
  margin-bottom: 24px;
}

.detail-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color-medium);
  margin: 0 0 8px 0;
}

.detail-group p {
  font-size: 16px;
  margin: 0;
}

.profile-main-actions {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background-color: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.card .update-info {
  color: var(--text-color-medium);
  font-size: 14px;
  margin: 0 0 24px 0;
}

.card .card-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0;
}

.card .card-link:hover {
  text-decoration: underline;
}

.form-group.horizontal-group .label-wrapper {
  flex: 0 0 200px; /* Adjust width as needed */
  margin-top: 10px; /* Align with input */
}

.form-group.horizontal-group .label-wrapper label {
  font-weight: 500;
}

.password-requirements {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-color-medium);
}

.requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.requirement img {
  width: 16px;
  height: 16px;
}

/* Footer del auth: link de “volver” */
.auth-container .auth-footer a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #475467;
}

.auth-container .auth-footer a.back-link:visited {
  color: #475467;
}

.auth-container .auth-footer a.back-link:hover {
  color: var(--text-color-dark);
}

/* tamaño/alineación del ícono inline */
.auth-container .auth-footer a.back-link .btn-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

/* Versión “mail” para acercarla al mock */
.auth-container.auth-mail {
  max-width: 520px; /* un poco más ancho como el diseño */
  padding: 32px 32px 28px;
}

.auth-container.auth-mail .auth-header {
  margin-bottom: 24px;
}

/* icono circular más limpio */
.icon-mail {
  padding: 12px;
  background-color: #EEF2FF; /* más claro */
  border-radius: 999px;
  margin-bottom: 16px;
}

/* título/desc como el mock */
.auth-container.auth-mail .auth-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.auth-container.auth-mail .auth-header p {
  font-size: 15px;
  color: var(--text-color-medium);
}

/* botón ocupa todo el ancho ya con .btn-100 */
.auth-container.auth-mail .btn.btn-primary {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* línea de “¿No recibiste…?” */
.auth-container.auth-mail .helper-text {
  margin: 0 0 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-color-medium);
}

/* back link como en el mock (gris, sin subrayado) */
.auth-container .auth-footer {
  margin-top: 32px;
}

.auth-container .auth-footer .back-link {
  color: #475467;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-container .auth-footer .back-link:hover {
  color: var(--text-color-dark);
}

/* Botón naranja: que respete padding interno */
.auth-container .btn-100 {
  width: 100%;
  box-sizing: border-box; /* que cuente padding */
}

.helper-text {
  font-size: 13px; /* más pequeño */
  color: var(--text-color-medium);
  white-space: nowrap; /* evita salto de línea */
  margin: 32px 0 0;
  text-align: center;
}

.helper-text .resend-link {
  font-size: 13px; /* mismo tamaño para el enlace */
  font-weight: 600;
}

/* Bloque del reenvío: pequeño y centrado */
.resend-block p {
  font-size: 13px;
  color: var(--text-color-medium);
  text-align: center;
  margin: 8px 0;
}

.resend-block .resend-link {
  font-size: 13px;
  font-weight: 600;
}

/* Bloque de "volver a iniciar sesión" */
.back-block {
  text-align: center;
  margin-top: 12px;
}

.back-block .back-link {
  color: var(--text-color-medium); /* gris, no morado */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-block .back-link:hover {
  color: var(--text-color-dark);
}

/* ===========================================================
   Catálogo • Estilos scoped (no colisionan con el resto)
   Prefijo: cat-
   =========================================================== */

:root {
  /* usamos tus tokens existentes */
  --cat-radius: 16px;
  --cat-shadow: 0 4px 20px rgba(10, 10, 10, .06);
  --cat-line: var(--border-color);
  --cat-bg: #F6F7FB;
}

.cat-page .cat-hero {
  height: 210px; /* como la captura */
  background: var(--primary-color); /* por ahora naranja plano */
  border-radius: 16px;
  margin-bottom: 32px;
  background-size: cover;
  background-position: center;
}

/* ===== Filter bar (derecha) ===== */
.cat-page .cat-filterbar {
  display: flex;
  justify-content: flex-start; /* alineado a la izq */
  align-items: flex-end;
  gap: 12px;
  margin: 8px 0 12px;
  flex-wrap: wrap; /* que salte de línea si no cabe */
}

.cat-page .cat-field {
  display: flex;
  flex-direction: column; /* etiqueta arriba, select abajo */
  gap: 6px;
  min-width: 180px; /* ancho cómodo del select */
}

.cat-page .cat-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color-medium);
}

/* Select estilizado */
.cat-page .cat-select-wrap {
  position: relative;
}

.cat-page .cat-select-wrap select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #fff;
  color: #111;
  padding: 0 36px 0 12px; /* espacio para flecha */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: default;
}

/* Flecha ▼ del select (sin asset extra) */
.cat-page .cat-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-medium);
  font-size: 14px;
  pointer-events: none;
}

/* Botón limpiar al final */
.cat-page .cat-btn-clean {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  white-space: nowrap;
  margin-left: 154px;
}

/* Responsive: que los filtros se apilen y pasen a izquierda si no hay ancho */
@media (max-width: 1100px) {
  .cat-page .cat-filterbar {
    justify-content: flex-start;
  }
}


.cat-page .cat-title {
  color: #101828;
  font-size: 30px;
  font-family: Inter;
  font-weight: 600;
  line-height: 38px;
  word-wrap: break-word;
}

.cat-page .cat-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.cat-page .cat-search-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color-medium);
}

.cat-page .cat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--cat-line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 22px;
}

.cat-page .cat-search input {
  border: none;
  outline: none;
  width: 100%;
  color: var(--text-color-medium);
  background: transparent;
}

.cat-page .cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Lupita más oscura en el buscador */
.cat-page .cat-search img {
  filter: brightness(0) saturate(50%); /* la lleva a negro */
  opacity: .65; /* un pelín más marcada */
}

.cat-page .cat-select {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-color-medium);
}

.cat-page .cat-btn {
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: Inter;
  cursor: default;
}

.cat-page .cat-btn-ghost {
  background: #fff;
  border-color: var(--cat-line);
  color: var(--text-color-medium);
}

.cat-page .cat-btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.cat-page .cat-btn-outline {
  background: #fff;
  border-color: var(--cat-line);
  color: #111;
}

.cat-page .cat-btn-add {
  width: auto;
  height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cat-page .cat-btn-add img {
  width: 18px;
  height: 18px;
  display: block;
}

.cat-page .cat-cta .cat-btn {
  width: auto;
}

/* Layout columnas (sidebar + grid) */
.cat-page .cat-layout {
  display: grid;
  grid-template-columns:280px 1fr;
  gap: 20px;
}

/* Sidebar (no usar .sidebar global!) */
.cat-page .cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-page .cat-side-title {
  color: #F581A4;
  font-size: 14px;
  font-family: Inter;
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-page .cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #667085;
  font-size: 16px;
  font-family: Inter;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-page .cat-list li {
  padding: 8px 10px;
  border-radius: 10px;
  color: #667085;
  font-size: 16px;
  font-family: Inter;
  font-weight: 600;
}

.cat-page .cat-list li.active,
.cat-page .cat-list li:hover {
  background: #f3f4f6;
}

/* Rango (placeholder visual) */
.cat-page .cat-range .scale {
  position: relative;
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  margin: 8px 0 6px;
}

.cat-page .cat-range .track {
  position: absolute;
  left: 15%;
  right: 20%;
  top: 0;
  bottom: 0;
  background: #ffedd5;
  border-radius: 999px;
}

.cat-page .cat-range .thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
}

.cat-page .cat-range .labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-color-medium);
  font-size: 12px;
}

/* Grid de productos */
.cat-page .cat-grid-wrap {
  min-width: 0;
}

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

/* Card */
.cat-page .cat-card {
  background: #fff;
  border: 1px solid var(--cat-line);
  border-radius: 16px;
  box-shadow: var(--cat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cat-page .cat-category {
  color: #F581A4; /* rosado suave */
  font-weight: 700;
  font-size: 13px;
}

.cat-page .cat-thumb img {
  width: 100%;
  height: 180px;
  margin-top: 8px;
  object-fit: contain;
  display: block;
}

.cat-page .cat-thumb .noimg {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-medium);
  background: #f3f4f6;
}

.cat-page .cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.cat-page .cat-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cat-page .cat-sku {
  color: #6D7A98; /* azul grisáceo */
  font-size: 13px;
  font-weight: 700;
}

.cat-page .cat-name {
  margin: 4px 0 0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cat-page .cat-name-text {
  color: #101828;
  font-size: 17px;
  font-family: Inter;
  font-weight: 600;
  line-height: 20px;
  word-wrap: break-word;
  flex: 1 1 auto; /* ocupa el ancho disponible */
  min-width: 0; /* permite envolver sin empujar la flecha */
}

.cat-page .cat-link-arrow {
  flex: 0 0 auto; /* NO se colapsa ni salta de línea */
  line-height: 1;
  margin-top: 2px; /* pequeño ajuste visual */
}


.cat-page .cat-price {
  margin-top: auto;
}

.cat-page .cat-price .compare {
  color: var(--text-color-medium);
  text-decoration: line-through;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 600;
}

.cat-page .cat-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-page .cat-price .final {
  color: #101828;
  font-size: 24px;
  font-family: Inter;
  font-weight: 700;
  line-height: 32px;
  word-wrap: break-word
}

.cat-page .cat-thumb .noimg {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-medium);
  background: #f3f4f6;
}

.cat-page .cat-thumb {
  position: relative;
  background: #fff;
}

/* Alerts/Load more */
.cat-page .cat-alert {
  padding: 12px 14px;
  border-radius: 12px;
}

.cat-page .cat-alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.cat-page .cat-alert.info {
  background: #eff6ff;
  color: #1e3a8a;
}

.cat-page .cat-load-more {
  display: grid;
  place-items: center;
  margin: 12px 0;
}

.cat-page .is-hidden {
  display: none !important;
}

/* Catálogo: título sin subrayado */
.cat-page .cat-name a,
.cat-page .cat-name-text {
  text-decoration: none !important;
  color: #0B1B33; /* mismo color que ya usas */
  font-weight: 800; /* por si el reset global cambia el peso */
}

.cat-page .cat-name a:visited {
  color: #0B1B33;
}

.cat-page .cat-name a:hover,
.cat-page .cat-name-text:hover {
  text-decoration: none;
}


/* Responsive */
@media (max-width: 1000px) {
  .cat-page .cat-layout {
    grid-template-columns:1fr;
  }

  .cat-page .cat-toolbar {
    grid-template-columns:1fr;
  }
}

/* ===== Sidenav global (tt-sidenav) ===== */
:root {
  --sidenav-w: 80px;
  --sidenav-bg: #FFFFFF;
  --sidenav-border: var(--border-color);
  --sidenav-pill-bg: #F3F4F6;

  /* tamaños */
  --sidenav-logo-h: 28px; /* altura del logo */
  --sidenav-icon: 24px; /* tamaño de cada icono */
}

.has-sidenav .content-area {
  margin-left: var(--sidenav-w) !important;
  padding: 32px 48px;
  box-sizing: border-box;
}

.tt-sidenav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidenav-w);
  background: var(--sidenav-bg);
  border-right: 1px solid var(--sidenav-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  z-index: 100;
}

.tt-sidenav-logo img {
  height: var(--sidenav-logo-h);
  width: auto;
  display: block;
  margin: 6px 0 12px;
}

.tt-sidenav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.tt-sidenav-item {
  position: relative; /* para que el badge se posicione relativo al ícono */
  display: inline-block;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .15s ease;
}

.tt-sidenav-item img {
  width: var(--sidenav-icon);
  height: var(--sidenav-icon);
  display: block;
}

.tt-sidenav-item:hover,
.tt-sidenav-item.active {
  background: var(--sidenav-pill-bg);
}

.tt-sidenav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.tt-sidenav-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

/* --- Cart badge (circular sobre el ícono) --- */
.tt-sidenav-item {
  position: relative;
}

.tt-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF6B6B; /* rojo/naranja para destacar */
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.tt-cart-badge:empty {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --sidenav-w: 64px;
    --sidenav-logo-h: 24px;
    --sidenav-icon: 22px;
  }

  .has-sidenav .content-area {
    padding: 24px 20px;
  }

  .tt-sidenav-item {
    width: 40px;
    height: 40px;
  }
}

/* ===== Sidenav: tamaños más grandes ===== */
:root {
  --sidenav-w: 92px; /* ancho del rail */
  --sidenav-logo-h: 34px; /* alto del logo superior */
  --sidenav-icon: 32px; /* tamaño base de cada icono */
  --sidenav-icon-scale: 1;
}

.has-sidenav .content-area {
  margin-left: var(--sidenav-w) !important;
}

/* Item “pill” más grande para que el icono respire */
.tt-sidenav-item {
  width: 56px;
  height: 38px;
  border-radius: 14px;
}

/* Íconos más grandes */
.tt-sidenav-item img {
  width: var(--sidenav-icon);
  height: var(--sidenav-icon);
  transform: scale(var(--sidenav-icon-scale)); /* sube a 1.1–1.2 si el PNG tiene borde interno */
  display: block;
}

/* Logo con altura fija (evita que quede gigante) */
.tt-sidenav-logo img {
  height: var(--sidenav-logo-h);
  width: auto;
}

/* Separación vertical un poco mayor */
.tt-sidenav-menu {
  gap: 16px;
}

/* Avatar más grande */
.tt-sidenav-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --sidenav-w: 72px;
    --sidenav-logo-h: 28px;
    --sidenav-icon: 28px;
  }

  .tt-sidenav-item {
    width: 50px;
    height: 50px;
  }

  .has-sidenav .content-area {
    padding: 24px 20px;
  }
}

/* ===========================================================
   PDP (Detalle de producto) – prefijo pdp-
   =========================================================== */
.pdp {
  --pdp-line: var(--border-color);
  --pdp-gap: 28px;
}

.pdp-page-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr; /* galería | info */
  align-items: start;
  gap: var(--pdp-gap);
}

/* Galería */
.pdp-gallery {
  background: #fff;

  padding: 20px;
  display: grid;
  place-items: center;
}

.pdp-gallery img {
  width: 100%;
  max-width: 460px;
  height: 520px;
  object-fit: contain;
  display: block;
}

.pdp-noimg {
  width: 100%;
  height: 520px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: var(--text-color-medium);
  border-radius: 12px;
}

/* Columna derecha */
.pdp-info {
  padding: 4px;
}

.pdp-title {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  color: #0B1B33;
}

.pdp-price-big {
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
  margin: 8px 0 16px;
}

.pdp-breakdown {
  display: grid;
  gap: 6px;
  color: #0B1B33;
  font-weight: 600;
  margin: 8px 0 28px;
}

.pdp-breakdown strong {
  font-weight: 700;
}

/* Cantidad */
.pdp-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pdp-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--pdp-line);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

#qtyInput {
  width: 64px;
  height: 44px;
  border: 1px solid var(--pdp-line);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

/* Botón añadir */
.pdp-add {
  margin-top: 8px;
  height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.pdp-add img {
  width: 18px;
  height: 18px;
  display: block;
}

.pdp-add {
  cursor: pointer;
}

.pdp-add[disabled], .pdp-add.is-disabled {
  cursor: not-allowed;
  opacity: .6;
  pointer-events: none;
}

/* Mensajes */
.pdp-alert {
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 12px 14px;
}

/* PDP: botones +/- naranja con ícono blanco */
.pdp .pdp-qty-btn {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transition: background-color .15s ease, border-color .15s ease;
}

.pdp .pdp-qty-btn:hover {
  background: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
}

.pdp .pdp-qty-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 103, 0, .25); /* halo suave */
}


/* Responsive */
@media (max-width: 1100px) {
  .pdp-layout {
    grid-template-columns: 1fr;
  }

  .pdp-gallery img, .pdp-noimg {
    height: 360px;
  }

  .pdp-title {
    font-size: 28px;
  }
}

/* ===========================================================
   Carrito – prefijo cart-
   (Depende de variables globales:
    --primary-color, --border-color, --text-color-medium)
   =========================================================== */

/* Título */
.cart-page .cart-title {
  font-family: Inter;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  margin: 0 0 16px;
  color: #0B1B33;
}

/* -------------------- Toolbar -------------------- */
.cart-page .cart-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-page .cart-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 280px;
}

.cart-page .cart-search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text-color-medium);
}

.cart-page .cart-search input::placeholder {
  color: var(--text-color-medium);
}

.cart-page .cart-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-page .cart-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.cart-page .cart-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color-medium);
}

.cart-page .cart-select {
  position: relative;
}

.cart-page .cart-select select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 36px 0 12px;
  background: #fff;
  appearance: none;
}

.cart-page .cart-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-medium);
}

.cart-page .cart-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* quita subrayado de <a> */
}

/* Ghost como en el diseño: borde gris suave, sin subrayado */
.cart-page .cart-btn-ghost {
  background: #fff;
  color: #1F2937;
  border-color: #E5E7EB;
}

.cart-page .cart-btn-ghost:hover {
  background: #F3F4F6;
}

/* Primary naranja sólido */
.cart-page .cart-btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.cart-page .cart-btn-primary:hover {
  filter: brightness(0.95);
}

/* -------------------- Topbar y totales a la derecha -------------------- */
.cart-page .cart-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.cart-page .cart-footer--right {
  display: flex;
}

.cart-page .cart-footer--right .cart-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-page .cart-footer--right .cart-total-box {
  align-self: flex-end;
}

/* Fuerza de alineación derecha de la caja de montos en todas las vistas */
.cart-page .cart-footer--right .cart-total-box,
.orders-page .cart-footer--right .cart-total-box {
  margin-left: auto; /* empuja el bloque al borde derecho */
  text-align: right; /* alinea textos a la derecha */
}

.checkout-shipping .cart-total-box {
  margin-left: auto; /* alinea al borde derecho dentro del formulario */
  text-align: right; /* textos a la derecha como en el mock */
}

/* Alinear el monto grande a la derecha dentro de la caja de totales */
.cart-total-box .total-main {
  justify-content: flex-end; /* alinea $ y número al borde derecho */
}

/* Responsive: botones a la siguiente línea si no caben */
@media (max-width: 700px) {
  .cart-page .cart-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page .cart-ctas {
    margin-left: 0;
  }
}

/* -------------------- Tabla -------------------- */
.cart-page .cart-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.cart-page .cart-table {
  width: 100%;
  border-collapse: collapse;
  /*border-spacing: 0;*/
}

/* --- Fix visual de la primera línea y celdas --- */
.orders-page .orders-table {
  border-collapse: collapse;
}

.orders-page thead .col-order {
  display: table-cell;
}

.orders-page tbody .col-order {
  display: table-cell;
  white-space: nowrap;
}

/* alinea el contenido dentro del td */
.orders-page tbody td.col-order .orders-chk,
.orders-page tbody td.col-order .orders-number {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.orders-page tbody td.col-order .orders-chk {
  margin-right: 10px;
}

.cart-page .cart-table thead th {
  font-size: 12px;
  color: var(--text-color-medium);
  text-align: left;
  background: #F9FAFB;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  white-space: nowrap;
}

.cart-page .cart-table thead th.col-price {
  text-align: right; /* “Precio unitario” alineado como número */
}

.cart-page .cart-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  vertical-align: middle;
  background: #fff;
}

/* Col widths */
.cart-page .col-product {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
}

.cart-page .col-product .chk {
  display: flex;
  align-items: center;
}

.cart-page .col-price {
  width: 100px;
  white-space: nowrap;
  font-weight: 700;
  color: #0B1B33;
  text-align: right;
}

.cart-page .col-users {
  width: 120px;
  color: var(--text-color-medium);
}

/* (sin contenido) */
.cart-page .col-qty {
  width: 160px;
  text-align: left;
}

.cart-page .col-actions {
  width: 80px;
  text-align: center;
}

.cart-page .col-more {
  width: 56px;
  text-align: center;
}

/* Hover de filas estilo “card” */
.cart-page .cart-table tbody tr:hover td {
  background: #F9FAFB;
}

/* Checkbox + título de columna izquierda */
.cart-page .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color-medium);
}

/* Producto (thumb + texto en la misma celda) */
.cart-page .col-product {
  display: flex;
  align-items: center;
}

.cart-page .prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-color);
}

.cart-page .prod-thumb.noimg {
  display: grid;
  place-items: center;
  color: #9CA3AF;
}

.cart-page .prod-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 12px;
}

.cart-page .prod-name {
  text-decoration: none;
  color: #0B1B33;
  font-weight: 700;
  line-height: 1.2;
}

.cart-page .prod-name:hover {
  text-decoration: underline;
}

.cart-page .prod-sku {
  font-size: 12px;
  color: var(--text-color-medium);
  font-weight: 600;
}

/* Cantidad */
.cart-page .qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-page .qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: filter .15s ease, transform .02s ease;
}

.cart-page .qty-btn:hover {
  filter: brightness(0.95);
}

.cart-page .qty-btn:active {
  transform: translateY(1px);
}

.cart-page .qty-input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
  color: #0B1B33;
}

/* Botón de icono (papelera / más) */
.cart-page .icon-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-page .icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cart-page .icon-btn:hover {
  background: #F9FAFB;
}

/* Estado vacío */
.cart-page .cart-empty {
  text-align: center;
  color: var(--text-color-medium);
  padding: 24px 0;
}

/* -------------------- Footer -------------------- */
.cart-page .cart-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-page .cart-total-box {
  min-width: 260px;
}

.cart-page .total-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 30px;
  font-family: Inter;
  font-weight: 600;
  color: #0B1B33;
  margin-bottom: 8px;
}

.cart-page .currency-prefix {
  font-size: 30px;
  font-weight: 600;
  color: #0B1B33;
  margin: 0;
}

.cart-page .total-break {
  color: var(--text-color-medium);
  font-size: 16px;
  font-family: Inter;
  font-weight: 400;
  display: grid;
  gap: 4px;
}

.cart-page .total-break .strong {
  color: #0B1B33;
  font-weight: 800;
}

.cart-page .cart-ctas {
  font-family: Inter;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.cart-page .cart-ctas .cart-btn-ghost {
  min-width: 160px;
}

.cart-page .cart-ctas .cart-btn-primary {
  min-width: 160px;
}

/* -------------------- Responsivo -------------------- */
@media (max-width: 1000px) {
  .cart-page .cart-toolbar {
    grid-template-columns:1fr;
  }

  .cart-page .cart-filters {
    justify-content: flex-start;
  }

  .cart-page .col-users {
    display: none;
  }

  /* oculta la columna “usuarios” en móvil */
}

/* Accesibilidad: focus visible */
.cart-page .cart-btn:focus,
.cart-page .qty-btn:focus,
.cart-page .icon-btn:focus,
.cart-page .qty-input:focus,
.cart-page .cart-select select:focus,
.cart-page .cart-search:focus-within {
  outline: 2px solid rgba(0, 0, 0, 0);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .25); /* usa el primario en foco */
  border-color: var(--primary-color);
}


/* ===== Toolbar dentro del thead ===== */
.cart-page .cart-table thead .thead-toolbar th {
  background: #fff;
  padding: 16px; /* aire como en el mock */
  border-bottom: 1px solid var(--border-color);
}

.cart-page .toolbar-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cart-page .toolbar-left {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* buscador más corto y en línea con filtros */
.cart-page .cart-search.in-thead {
  min-width: 260px;
  width: 320px; /* tamaño como en el mock */
  padding: 10px 12px;
}

.cart-page .cart-search.in-thead input {
  color: var(--text-color-medium);
}

/* mismos estilos que ya tenías para fields/selects, adaptados a línea */
.cart-page .cart-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.cart-page .cart-select select {
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 36px 0 12px;
  background: #fff;
  appearance: none;
}

.cart-page .cart-select {
  position: relative;
}

.cart-page .cart-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-medium);
}

.cart-page .toolbar-right .cart-btn-ghost {
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
}

/* ===== Encabezado de columnas ===== */
.cart-page .cart-table thead .thead-columns th {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-color-medium);
  text-align: left;
  white-space: nowrap;
}

/* alineaciones específicas */
.cart-page .cart-table thead .thead-columns th.col-price {
  text-align: left;
}

.cart-page .cart-table thead .thead-columns th.col-qty,
.cart-page .cart-table thead .thead-columns th.col-actions,
.cart-page .cart-table thead .thead-columns th.col-more {
  text-align: left;
}

/* redondeo del contenedor superior completo */
.cart-page .cart-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

/* ===== Ajuste de columnas (sin “usuarios”) ===== */
.cart-page .col-product {
  width: auto;
}

.cart-page .col-price {
  width: 140px;
  text-align: left;
  font-weight: 700;
  color: #0B1B33;
}

.cart-page .col-qty {
  width: 160px;
}

.cart-page .col-actions {
  width: 80px;
  text-align: center;
}

.cart-page .col-more {
  width: 56px;
  text-align: center;
}

/* responsive */
@media (max-width: 1000px) {
  .cart-page .toolbar-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page .toolbar-left {
    width: 100%;
  }

  .cart-page .cart-search.in-thead {
    width: 100%;
    min-width: 0;
  }
}

/* Enlace volver (texto naranja con flecha) */
.cart-page .cart-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.cart-page .cart-back-link:hover {
  text-decoration: underline;
}

/* Alinear caja de montos con borde derecho de los CTAs */
.cart-page .cart-footer--right .cart-right,
.orders-page .cart-footer--right .cart-right {
  align-items: flex-end; /* alinea borde derecho */
}

.cart-page .cart-footer--right .cart-ctas,
.orders-page .cart-footer--right .cart-ctas {
  align-self: flex-end; /* asegura mismos bordes derechos */
}

/* ===== Toast global ===== */
.tt-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000; /* por encima del sidenav (z=100) */
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}

.tt-toast.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Variante éxito (verde) */
.tt-toast.success {
  background: #ECFDF3;
  color: #027A48;
  border: 1px solid #ABEFC6;
}

/* Variante error (rojo) */
.tt-toast.error {
  background: #FEF3F2;
  color: #B42318;
  border: 1px solid #FECDCA;
}

/* Variante info (azul) */
.tt-toast.info {
  background: #EFF8FF;
  color: #175CD3;
  border: 1px solid #B2DDFF;
}

/* ===========================
   Checkout Shipping (global)
   =========================== */

/* Título de la página */
.checkout-shipping .cart-title {
  font-size: 32px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
}

/* Layout: resumen a la izquierda; formulario debajo (pero su primera fila es 2 columnas) */
.checkout-shipping .shipping-grid {
  display: grid;
  grid-template-columns:360px 1fr; /* columna de resumen + espacio */
  grid-template-areas:
    "summary ."
    "form    form";
  column-gap: 28px;
  row-gap: 24px;
  align-items: flex-start;
}

.checkout-shipping .summary {
  grid-area: summary;
}

.checkout-shipping .shipping-form {
  grid-area: form;
}

/* ===== Resumen (columna izquierda) ===== */
.checkout-shipping .order-code {
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 40px;
  margin-top: 20px;
}

.checkout-shipping .order-code .muted {
  color: var(--text-color-medium);
  font-weight: 800;
}

.checkout-shipping .summary .total-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 30px;
  font-family: Inter;
  font-weight: 600;
  color: #0B1B33;
  margin-bottom: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.checkout-shipping .summary .total-break {
  display: grid;
  gap: 4px;
  color: var(--text-color-medium);
  font-size: 16px;
  font-family: Inter;
  font-weight: 400;
}

.checkout-shipping .summary .total-break .strong {
  color: #0B1B33;
  font-weight: 800;
}

/* ===== Formulario ===== */

/* Primera fila del formulario: 2 columnas (igual al diseño) */
.checkout-shipping .form-row {
  display: grid;
  grid-template-columns: 340px 1fr; /* izq: label/hint — der: radios */
  column-gap: 80px;
  align-items: start;
  margin-top: 12px;
}

/* Textos según Figma */
.checkout-shipping .label-xl,
.checkout-shipping .radio-item .title {
  color: var(--Gray-700, #344054);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 600; /* Semibold */
  line-height: 20px; /* 142.857% */
}

.checkout-shipping .shipping-form .hint,
.checkout-shipping .radio-item .desc {
  color: var(--Gray-600, #475467);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 400; /* Regular */
  line-height: 20px; /* 142.857% */
}

.checkout-shipping .shipping-form .field-block {
  margin: 0;
}

.checkout-shipping .shipping-form .label-xl {
  margin-bottom: 6px;
}

/* Radios: en línea (círculo + textos) */
.checkout-shipping .radio-group {
  display: grid;
  gap: 14px;
}

.checkout-shipping .radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Círculo del radio (custom) */
.checkout-shipping .radio-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  background: #fff;
  cursor: pointer;
  margin-top: 1px; /* alineación óptica con el título */
}

.checkout-shipping .radio-item input[type="radio"]:checked {
  border-color: var(--primary-color);
}

.checkout-shipping .radio-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%); /* punto centrado perfecto */
}

/* Contenedor de textos del radio */
.checkout-shipping .radio-item .text {
  display: flex;
  flex-direction: column;
}

/* Dirección + mapa (se muestra sólo si ship_mode=custom) */
.checkout-shipping .custom-addr {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.checkout-shipping .custom-addr.hidden {
  display: none;
}

.checkout-shipping .addr-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
}

.checkout-shipping .addr-input input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: #0B1B33;
}

/* Mapa */
.checkout-shipping .map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

/* Botón alineado a la derecha */
.checkout-shipping .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .checkout-shipping .shipping-grid {
    grid-template-columns:1fr;
    grid-template-areas:
      "summary"
      "form";
  }

  .checkout-shipping .form-row {
    grid-template-columns:1fr; /* label/hint encima; radios debajo */
    row-gap: 10px;
  }
}

/* ===== Modal base ===== */
.tt-modal-open {
  overflow: hidden;
}

.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.tt-modal.is-hidden {
  display: none;
}

.tt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* slate-900/45 */
  backdrop-filter: saturate(120%) blur(2px);
}

.tt-modal__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .20), 0 6px 18px rgba(0, 0, 0, .08);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: tt-modal-pop .16s ease-out;
}

/* Close (X) */
.tt-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #64748b; /* slate-500 */
  border-radius: 8px;
  cursor: pointer;
}

.tt-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* slate-50 -> slate-900 */

/* Cabecera */
.tt-modal__header {
  padding: 8px 6px 0;
}

.tt-modal__check {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #10b9811a; /* emerald-500 con 10% */
  margin-bottom: 10px;
}

.tt-modal__check svg circle {
  fill: #10b981;
}

/* aro tenue */
.tt-modal__check svg path {
  fill: #10b981;
}

/* check */

.tt-modal__title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  margin: 0 0 6px;
}

.tt-modal__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #475569; /* slate-600 */
  margin: 0;
}

/* Acciones */
.tt-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

/* Reusa tus botones globales.
   Mejora leve para el ghost y primary si lo necesitas: */
.cart-btn-ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.cart-btn-ghost:hover {
  background: #f8fafc;
}

.cart-btn-primary {
  background: #ff6a00; /* naranja aprox */
  color: #fff;
  border: 1px solid transparent;
}

.cart-btn-primary:hover {
  filter: brightness(0.98);
}

/* Animación */
@keyframes tt-modal-pop {
  0% {
    transform: translateY(4px) scale(.98);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Responsive: centrar mejor en pantallas pequeñas */
@media (max-width: 480px) {
  .tt-modal__content {
    margin: 12vh 14px 0;
    padding: 20px 16px 16px;
  }

  .tt-modal__title {
    font-size: 17px;
  }

  .tt-modal__desc {
    font-size: 13.5px;
  }
}

/* ===========================================================
   Pedidos – prefijo orders-
   =========================================================== */
.orders-page .orders-title {
  font-size: 30px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 6px;
}

.orders-page .orders-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #0B1B33;
  margin: 0 0 16px;
}

/* Filtros */
.orders-page .orders-filters {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.orders-page .orders-filters-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.orders-page .orders-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.orders-page .orders-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color-medium);
}

.orders-page .orders-input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
}

.orders-page .orders-input-with-icon input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text-color-medium);
}

.orders-page .orders-select {
  position: relative;
}

.orders-page .orders-select select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 36px 0 12px;
  background: #fff;
  appearance: none;
}

.orders-page .orders-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-medium);
}

.orders-page .orders-filters-right {
  display: flex;
  gap: 10px;
}

.orders-page .orders-btn {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0B1B33;
  cursor: pointer;
}

.orders-page .orders-btn:hover {
  background: #F3F4F6;
}

/* Tabla */
.orders-page .orders-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.orders-page .orders-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-color-medium);
  background: #F9FAFB;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.orders-page .orders-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: #0B1B33;
  background: #fff;
}

.orders-page .orders-table tbody tr:last-child td {
  border-bottom: none;
}

.orders-page .col-order {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-page .orders-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color-medium);
}

.orders-page .orders-number {
  font-weight: 700;
}

.orders-page .col-total {
  white-space: nowrap;
  font-weight: 700;
  text-align: left;
}

.orders-page .col-actions {
  white-space: nowrap;
  text-align: left;
}

.orders-page .orders-link {
  font-size: 14px;
  color: #0B1B33;
  text-decoration: none;
}

.orders-page .orders-link:hover {
  text-decoration: underline;
}

.orders-page .orders-link.is-accent {
  color: var(--primary-color);
}

.orders-page .orders-sep {
  display: inline-block;
  width: 10px;
}

/* Badges (estados) */
.orders-page .orders-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.orders-page .orders-badge.is-invoiced {
  color: #047857;
  background: #ECFDF5;
  border-color: #BBF7D0;
}

/* verde */
.orders-page .orders-badge.is-shipped {
  color: #B45309;
  background: #FFF7ED;
  border-color: #FED7AA;
}

/* naranja */
.orders-page .orders-badge.is-unbilled {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FECACA;
}

/* rojo */
.orders-page .orders-badge.is-pending-invoice {
  color: #111827;
  background: #F3F4F6;
  border-color: #E5E7EB;
}

/* gris */

/* Paginación */
.orders-page .orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
}

.orders-page .orders-page-link {
  color: #0B1B33;
  text-decoration: none;
  font-weight: 600;
}

.orders-page .orders-page-link.is-muted {
  color: #94A3B8;
}

.orders-page .orders-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-page .orders-page {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 8px;
  text-decoration: none;
  color: #0B1B33;
}

.orders-page .orders-page:hover {
  background: #F8FAFB;
}

.orders-page .orders-page.is-active {
  background: #0B1B33;
  color: #fff;
  border-color: #0B1B33;
}

.orders-page .orders-ellipsis {
  color: #94A3B8;
}

.orders-page .orders-empty {
  text-align: center;
  padding: 28px 10px;
  color: var(--text-color-medium);
}

/* Responsive */
@media (max-width: 1100px) {
  .orders-page .orders-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-page .orders-filters-left {
    width: 100%;
  }

  .orders-page .orders-search .orders-input-with-icon {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Detalle de pedido ===== */
.order-detail-page .od-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.order-detail-page .od-status-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-detail-page .od-status-desc {
  color: var(--text-color-medium);
  font-size: 14px;
}

.order-detail-page .od-status-right {
  display: flex;
  gap: 10px;
}

/* Encabezado con botones a la derecha */
.orders-page .orders-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px; /* separa del banner */
}

.orders-page .orders-actions {
  display: flex;
  gap: 10px;
}

/* Ajusta el banner para quedar debajo del header limpiamente */
.order-detail-page .od-status-banner {
  margin-top: 0;
}

.orders-page .orders-load-more {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.orders-page .orders-btn-outline {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== Modal de Campaña (cm-) ===== */
.cm-card {
  /* coincide con el tamaño “mediano” del mock */
  max-width: 420px; /* ya respeta el ancho del diseño */
  padding: 0 0 18px 0; /* el padding interno lo maneja cm-body */
  overflow: hidden; /* redondeo limpio en la imagen */
}

.cm-hero {
  position: relative;
  padding: 0 20px; /* mismo padding lateral que el card */
  margin-top: 22px;
}

.cm-hero-img {
  width: 100%;
  height: 168px; /* altura visual del mock */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #e5e7eb; /* por si no carga la imagen */
}

/* logo centrado como en la captura */
.cm-hero-logo {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
  pointer-events: none;
}

.cm-body {
  padding: 12px 20px 0;
  text-align: center;
}

.cm-title {
  margin: 14px 0 6px;
  font-weight: 800;
  font-size: 18px;
  color: #111827; /* gris oscuro, como el mock */
  line-height: 1.35;
}

.cm-title-strong {
  font-weight: 800;
}

.cm-sub {
  margin: 0;
  color: var(--text-color-medium);
  font-size: 14px;
}

.cm-date {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: 18px;
  color: #344054; /* gris 700 aprox del mock */
}

.cm-desc {
  margin: 10px auto 16px;
  color: var(--text-color-medium);
  font-size: 14px;
  max-width: 360px;
}

/* Botón naranja 100% ancho con altura del diseño */
.cm-cta {
  height: 44px;
  font-weight: 700;
  border-radius: 12px; /* bordes suaves como la tarjeta */
}

/* Overlay permite cerrar si se hace clic fuera (opcional) */
#campaignModal .tt-modal__overlay {
  cursor: pointer;
}

/* ===== Confirmar pedido (panel naranja + layout) ===== */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 340px; /* izq contenido | der totales */
  gap: 28px;
  align-items: start;
}

@media (max-width: 1000px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
}

/* === Panel naranja a todo el ancho === */
.pay-box--full {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-md);
}

.pay-box__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 18px;
}

.pay-box__section {
  margin-top: 14px;
}

.pay-box__subtitle {
  font-weight: 700;
  margin: 0 0 8px;
}

/* Cada línea del bloque (punto + texto) */
.pay-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.pay-line .dot {
  line-height: 1.6;
}

.pay-text {
  line-height: 1.45;
}

.pay-row__muted {
  opacity: .9;
}

/* “Chunk” copiable: valor + botón de copiar pegados */
.copy-chunk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Botón copiar: sin borde/caja */
.copy-btn {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.copy-btn:hover svg {
  opacity: .9;
}

.copy-btn:focus {
  outline: none;
}

/* En pantallas estrechas, que todo respire bien */
@media (max-width: 600px) {
  .pay-box--full {
    padding: 16px;
  }

  .copy-chunk {
    gap: 6px;
  }
}

.margin-pedido {
  margin-bottom: 35px;
  margin-top: 25px;
}

/* =====================================================
   PERFIL DE USUARIO (user_profile/user_profile.html)
   ===================================================== */

/* Hero naranja */
.profile-banner {
  width: 120%;
  height: 180px;
  background-color: var(--primary-color);
}

/* Encabezado */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: -70px;
  padding: 0 32px;
  position: relative;
}

/* Avatar grande */
.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #fff;
  background-color: #fff;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge de verificación (ícono azul) */
/*.profile-avatar::after {*/
/*  content: "✔";*/
/*  position: absolute;*/
/*  right: 22px;*/
/*  bottom: -2px;*/
/*  width: 26px;*/
/*  height: 26px;*/
/*  border-radius: 50%;*/
/*  background: #2563eb;*/
/*  color: white;*/
/*  font-size: 14px;*/
/*  display: grid;*/
/*  place-items: center;*/
/*  border: 2px solid #fff;*/
/*}*/

/* Nombre + estado */
.profile-info {
  flex: 1;
  margin-left: 24px;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.profile-info .text-medium {
  color: #6b7280;
  font-weight: 500;
}

/* Botones de acción */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-actions .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* Bloque principal de info */
.profile-main-actions {
  margin-top: 32px;
  padding: 0 32px;
  color: #374151;
}

/* Layout de 2 columnas */
.profile-body-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.detail-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.detail-group p,
.detail-group a {
  font-size: 0.9rem;
  color: #374151;
}

.detail-group a {
  color: var(--primary-color);
  text-decoration: none;
}

.detail-group a:hover {
  text-decoration: underline;
}

/* Sección Projects y tabs */
.main-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  padding: 0 32px;
}

.btn-select {
  display: inline-block;
  background: #f9fafb;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: 0.2s;
}

.btn-select:hover {
  background: #f3f4f6;
}

/* Card de factura pendiente */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 0 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card strong {
  font-weight: 600;
}

.card .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* Espaciados rápidos */
.m-r-8 {
  margin-right: 8px;
}

.m-b-16 {
  margin-bottom: 16px;
}

.m-b-24 {
  margin-bottom: 24px;
}

.m-top-24 {
  margin-top: 24px;
}

.m-top-32 {
  margin-top: 32px;
}

.m-0 {
  margin: 0;
}


/* ---- Botones: texto centrado vertical y horizontal ---- */
.btn,
.btn-primary,
.btn-secondary,
.btn-select {
  display: inline-flex; /* fuerza caja flexible */
  align-items: center; /* centra vertical */
  justify-content: center; /* centra horizontal */
  line-height: 1; /* evita crecer por tipografía */
}

/* ---- Contenedor de la vista de perfil para alinear todo ---- */
.profile-container {
  padding: 0 32px; /* mismo “gutter” que los botones del header */
}

/* el header ya no necesita padding propio */
.profile-header {
  padding: 0;
}

/* la card debe alinearse al mismo borde que los botones */
.profile-card { /* clase nueva en la card de “pendiente de pago” */
  margin: 0; /* quita márgenes laterales que la corrían a la derecha */
}

/* ---- Grid de datos con espaciado como el diseño ---- */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* izq | der */
  column-gap: 48px;
  row-gap: 24px;
  padding-top: 16px;
}

.profile-info-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px; /* espacio entre título y valor */
}

.profile-info-item p {
  font-size: 16px;
  color: #374151;
  margin-bottom: 30px;
}

.profile-info-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.profile-info-item a:hover {
  text-decoration: underline;
}

/* Separador fino justo debajo de "Vendedor" */
.profile-section-sep {
  border: none;
  border-top: 1px solid #e5e7eb; /* color suave */
  margin: 16px 0 24px; /* espacio arriba/abajo */
}

/* ===========================================================
   Dashboard Líder (Leader Main) – prefijo dl-
   =========================================================== */

.dl .page-wrap {
  padding-top: 0;
}

/* Header */
.dl-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}

.dl-hdr .title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
}

.dl-hdr .sub {
  margin: 0;
  color: var(--text-color-medium);
}

.dl-hdr .btn {
  height: 40px;
  padding: 0 14px;
}

/* KPI cards */
.dl-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 28px;
}

.dl-kpi {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.dl-kpi .kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #0B1B33;
  font-weight: 700;
}

.dl-kpi .kpi-menu {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6b7280;
}

.dl-kpi .kpi-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dl-kpi .kpi-big {
  font-size: 34px;
  font-weight: 800;
  color: #0B1B33;
  line-height: 1;
}

.dl-kpi .kpi-den {
  color: #6b7280;
  font-weight: 700;
}

.dl-kpi .kpi-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}

.dl-kpi .ok {
  color: #047857;
}

.dl-kpi .down {
  color: #B91C1C;
}

.dl-kpi .caret {
  font-weight: 900;
}

/* Secciones / títulos */
.dl-sec-title {
  font-size: 22px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 12px;
}

/* Toolbar de tabla */
.dl-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.dl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.dl-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color-medium);
}

.dl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 320px;
}

.dl-search input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-color-medium);
  width: 100%;
}

.dl-select {
  position: relative;
}

.dl-select select {
  width: 220px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 36px 0 12px;
  background: #fff;
  appearance: none;
}

.dl-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-medium);
}

/* Tabla */
.dl-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.dl-table thead th {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-color-medium);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.dl-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: #0B1B33;
  background: #fff;
}

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

.dl-link {
  color: var(--primary-color);
  text-decoration: none;
}

.dl-link:hover {
  text-decoration: underline;
}

/* Paginación */
.dl-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  color: #0B1B33;
}

.dl-pager .nums {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-page {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 8px;
  text-decoration: none;
  color: #0B1B33;
}

.dl-page:hover {
  background: #F8FAFB;
}

.dl-page.is-active {
  background: #0B1B33;
  color: #fff;
  border-color: #0B1B33;
}

/* Cards de gráficos */
.dl-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.dl-chart-line {
  height: 280px;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 103, 0, .18), rgba(255, 103, 0, 0) 38%);
}

.dl-chart-bars {
  height: 160px;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

/* Objetivo vs. Realidad */
.dl-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.dl-goal {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.dl-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary-color) 0 255deg, #E5E7EB 255deg); /* ~71% */
}

.dl-donut.is-55 {
  background: conic-gradient(var(--primary-color) 0 198deg, #E5E7EB 198deg);
}

/* ~55% */
.dl-donut span {
  background: #fff;
  border: 6px solid #fff;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0B1B33;
}

.dl-goal h4 {
  margin: 0 0 2px;
  font-weight: 800;
  color: #0B1B33;
}

.dl-muted {
  color: var(--text-color-medium);
  font-size: 14px;
  margin: 0 0 10px;
}

.dl-big {
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1100px) {
  .dl-kpis {
    grid-template-columns: 1fr;
  }

  .dl-goals {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Dashboard Líder – Alerta de objetivos asignados
   =========================================================== */
.dl-alert {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dl-alert-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.dl-alert-icon {
  width: 40px;
  height: 40px;
  background: #ECFDF3;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.dl-alert-text h4 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: #0B1B33;
}

.dl-alert-text p {
  margin: 4px 0 0;
  color: var(--text-color-medium);
  font-size: 14px;
}

.dl-alert-btn {
  white-space: nowrap;
  height: 40px;
  padding: 0 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .dl-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dl-alert-btn {
    width: 100%;
  }
}

/* ===========================================================
   Dashboard – Objetivos (Goals)  • Prefijo dg-
   =========================================================== */

.dg .dg-title {
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 4px;
}

.dg .dg-sub {
  margin: 0 0 22px;
  color: var(--text-color-medium);
}

.dg-sec-title {
  font-size: 22px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 14px;
}

/* Resumen */
.dg-resume {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.dg-resume-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}

.dg-resume-label {
  color: var(--text-color-medium);
  font-size: 14px;
}

.dg-resume-value {
  font-size: 32px;
  font-weight: 800;
  color: #0B1B33;
}

/* Bloques */
.dg-block {
  margin-top: 18px;
}

.dg-block-title {
  font-size: 20px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 12px;
}

/* Barra grande de progreso con meta a la derecha */
.dg-progress-line {
  margin-bottom: 12px;
}

.dg-progress-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.dg-progress-label {
  font-weight: 700;
  color: #0B1B33;
}

.dg-progress-meta {
  font-weight: 800;
  color: #0B1B33;
}

.dg-prog {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #F1F5F9;
  overflow: hidden;
}

.dg-prog-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--primary-color);
  width: 60%;
}

.dg-prog-right {
  position: absolute;
  right: 10px;
  top: -20px;
  font-size: 12px;
  color: var(--text-color-medium);
  font-weight: 700;
}

/* Tabla */
.dg-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.dg-table thead th {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-color-medium);
  text-align: left;
  font-weight: 700;
}

.dg-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  color: #0B1B33;
  background: #fff;
}

.dg-table tbody tr:hover td {
  background: #F9FAFB;
}

.dg-table tbody tr.dg-total td {
  font-weight: 700;
}

/* Mini barras en celdas */
.dg-mini-prog {
  position: relative;
  height: 6px;
  background: #EEF2F7;
  border-radius: 999px;
  overflow: hidden;
  margin-right: 44px; /* espacio para el % a la derecha */
}

.dg-mini-prog > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--primary-color);
  border-radius: 999px;
}

.dg-mini-right {
  position: relative;
  right: -455px;
  top: -12px;
  transform: translateY(-10px);
  font-size: 12px;
  color: #6B7280;
  font-weight: 700;
}

/* Acciones inferiores */
.dg-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.dg-actions .btn {
  height: 40px;
  padding: 0 18px;
}

/* Responsive */
@media (max-width: 1000px) {
  .dg-resume {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Dashboard – Mi equipo (Team)  • Prefijo dt-
   =========================================================== */

.dt .dt-title {
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 4px;
}

.dt .dt-sub {
  margin: 0 0 22px;
  color: var(--text-color-medium);
}

.dt-sec-title {
  font-size: 26px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 14px;
}

.dt-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 6px;
}

.dt-hdr .btn {
  height: 40px;
  padding: 0 14px;
}

/* Card de búsqueda */
.dt-search-card {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0 18px;
}

.dt-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color-medium);
  margin-bottom: 8px;
}

.dt-input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
}

.dt-input-with-icon input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text-color-medium);
}

/* Tabla */
.dt-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.dt-table thead th {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-color-medium);
  text-align: left;
  white-space: nowrap;
}

.dt-table tbody td {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: #fff;
  color: #0B1B33;
}

.dt-table tbody tr:hover td {
  background: #F9FAFB;
}

.dt-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.dt-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .dt-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dt-hdr .btn {
    width: 100%;
  }
}

/* ===========================================================
   Dashboard – Resumen (Summary)
   Prefijo global: ds-
   =========================================================== */

/* ---- Titulares / encabezado ---- */
.ds .ds-title {
  font-size: 28px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 4px;
}

.ds .ds-sub {
  margin: 0 0 22px;
  color: var(--text-color-medium);
}

.ds-sec-title {
  font-size: 22px;
  font-weight: 800;
  color: #0B1B33;
  margin: 0 0 14px;
}

.ds-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.ds-actions {
  display: flex;
  gap: 10px;
}

.ds-actions .btn {
  height: 40px;
  padding: 0 14px;
}

.m-top-24 {
  margin-top: 24px;
}

.m-top-16 {
  margin-top: 16px;
}

/* ---- KPI Cards ---- */
.ds-kpi-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.ds-kpi {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.ds-kpi-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds-kpi-title {
  font-weight: 700;
  color: #0B1B33;
}

.ds-kpi-sub {
  color: var(--text-color-medium);
  font-size: 13px;
}

.ds-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: #0B1B33;
  margin-top: 6px;
}

/* ---- Ring progress (porcentaje circular) ---- */
.ds-ring {
  width: 72px;
  height: 72px;
}

.ds-ring-svg {
  width: 100%;
  height: 100%;
}

.ds-ring-svg .bg {
  fill: none;
  stroke: #F1F5F9;
  stroke-width: 6;
}

.ds-ring-svg .fg {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  /* 2πr con r=19 => 119.38 aprox */
  stroke-dasharray: 119.38;
  stroke-dashoffset: calc(119.38 - (var(--pct, 0) * 1.1938));
}

.ds-ring-svg .t {
  font-size: 10.5px;
  fill: #111;
  font-weight: 800;
}

/* ---- Barra de progreso “grande” con porcentaje a la derecha ---- */
.ds-progress-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ds-progress-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-progress-label {
  font-weight: 700;
  color: #0B1B33;
}

.ds-progress-meta {
  font-weight: 800;
  color: #0B1B33;
}

.ds-prog {
  flex: 1;
  position: relative;
  height: 8px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.ds-prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary-color);
  border-radius: 999px;
}

.ds-prog-percent {
  min-width: 38px;
  text-align: right;
  font-weight: 700;
  color: #0B1B33;
}

/* ---- Tablas ---- */
.ds-table-wrap {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.ds-table thead th {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-color-medium);
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.ds-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: #fff;
  color: #0B1B33;
}

.ds-table tbody tr:hover td {
  background: #F9FAFB;
}

.ds-table tbody tr.ds-total td {
  font-weight: 700;
}

.ta-right {
  text-align: right;
}

.ds-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.ds-link:hover {
  text-decoration: underline;
}

/* ---- Mini barra dentro de celdas con porcentaje al lado ---- */
.ds-mini-prog-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-mini-prog {
  position: relative;
  height: 8px;
  width: 100px;
  background: #EEF2F7;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.ds-mini-prog span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary-color);
  border-radius: 999px;
}

.ds-mini-label {
  font-size: 13px;
  font-weight: 700;
  color: #0B1B33;
  white-space: nowrap;
}

/* ---- Paginación mock ---- */
.ds-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
}

.ds-page-link {
  color: #0B1B33;
  text-decoration: none;
  font-weight: 600;
}

.ds-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-page {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 8px;
  text-decoration: none;
  color: #0B1B33;
}

.ds-page:hover {
  background: #F8FAFB;
}

.ds-page.is-active {
  background: #0B1B33;
  color: #fff;
  border-color: #0B1B33;
}

.ds-ellipsis {
  color: #94A3B8;
}

/* ---- Gráfico de barras verticales (histograma) ---- */
.ds-bars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 10px;
  height: 160px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  align-items: end;
  margin-top: 16px;
}

.ds-bars .bar {
  width: 100%;
  background: #E5E7EB;
  border-radius: 6px;
  transition: height 0.3s ease;
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .ds-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ds-actions {
    width: 100%;
  }

  .ds-actions .btn {
    width: 100%;
  }

  .ds-kpi-cards {
    grid-template-columns: 1fr;
  }

  .ds-mini-prog {
    width: 88px;
  }

  .ds-bars {
    grid-template-columns: repeat(15, 1fr);
    height: 120px;
  }
}

/*********************************************
 * PAY BOX (panel naranja con datos bancarios)
 *********************************************/
.pay-box {
  background-color: #FF5A00;
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.2);
}

.pay-box--full {
  width: 70%;
}

.pay-box__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pay-box__section {
  margin-top: 16px;
}

.pay-box__subtitle {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}

.pay-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.pay-line .dot {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.pay-text {
  flex: 1;
}

.pay-row__muted {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Copy chunks (texto copiable + botón) */
.copy-chunk {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 6px;
}

.copy-value {
  margin-right: 6px;
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.copy-btn:hover svg {
  transform: scale(1.15);
}

/*********************************************
 * FORMULARIO DE REGISTRO DE PAGO
 *********************************************/
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-section .main-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #FF5A00;
  outline: none;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #F04438;
  background-color: #FFF6F6;
}

.form-group.has-error label {
  color: #F04438;
}

/* Botones */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary {
  background-color: #FF5A00;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #e45000;
}

.btn-secondary {
  background-color: #e5e5e5;
  color: #333;
  border: none;
}

.btn-secondary:hover {
  background-color: #d8d8d8;
}

/*********************************************
 * TOAST DE COPIADO
 *********************************************/
.tt-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 2000;
}

.tt-toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tt-toast.success {
  background: #16a34a;
}

.tt-toast.error {
  background: #dc2626;
}

/*********************************************
 * MODALES (éxito / error)
 *********************************************/
.tt-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: opacity 0.3s ease;
}

.tt-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.tt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.tt-modal__content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 460px;
  padding: 32px 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: modalPop 0.25s ease;
}

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

.tt-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

.tt-modal__header {
  margin-bottom: 16px;
}

.tt-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-top: 12px;
}

.tt-modal__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-top: 8px;
}

.tt-modal__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E6F4EA;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.tt-modal__check svg {
  fill: #16A34A;
}

.tt-modal__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Botones dentro del modal */
.cart-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cart-btn-primary {
  background-color: #FF5A00;
  color: #fff;
}

.cart-btn-primary:hover {
  background-color: #e45000;
}

.cart-btn-ghost {
  background-color: #f3f3f3;
  color: #333;
}

.cart-btn-ghost:hover {
  background-color: #e6e6e6;
}

/*********************************************
 * MODAL OPEN STATE (bloqueo scroll)
 *********************************************/
body.tt-modal-open {
  overflow: hidden;
}

/*********************************************
 * RESPONSIVE
 *********************************************/
@media (max-width: 600px) {
  .pay-box {
    padding: 16px;
  }

  .form-section {
    padding: 16px;
  }

  .tt-modal__content {
    padding: 24px 20px;
  }

  .tt-toast {
    bottom: 20px;
    right: 20px;
  }
}

/* =========================================
   ESTILOS DEL MODAL (MODALES)
   ========================================= */
.tt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado oculto */
.tt-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Fondo oscuro (Overlay) */
.tt-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Contenido del modal */
.tt-modal__content {
  position: relative;
  background-color: #ffffff;
  width: 90%;
  max-width: 500px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

/* Animación de entrada */
.tt-modal.is-hidden .tt-modal__content {
  transform: translateY(20px);
}

/* Botón cerrar (X) */
.tt-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.tt-modal__close:hover {
  background-color: #F3F4F6;
  color: #111827;
}

/* Header del modal */
.tt-modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.tt-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.tt-modal__desc {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}

/* Inputs del formulario en modal */
.tt-modal .form-group {
  margin-bottom: 16px;
}

.tt-modal label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.tt-modal input[type="number"],
.tt-modal input.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.tt-modal input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

/* Botones de acción */
.tt-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* Bloquear scroll del body cuando el modal está abierto */
body.tt-modal-open {
  overflow: hidden;
}

/* --- Gestión de Catálogo (Vendedor) --- */

/* Contenedor del botón compartir en el header */
.cat-actions-header {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .cat-actions-header {
    margin-top: 0;
    margin-left: auto; /* Empuja a la derecha en desktop */
  }
}

/* Contenedor de acciones en la tarjeta de producto */
.cat-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Botón cuadrado/redondo solo para icono */
.cat-btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* O 50% si los prefieres redondos */
  flex-shrink: 0;
}

.cat-btn-icon-only img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cat-btn-icon-only span {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: bold;
}

/* Estilo para botón de peligro (Quitar) */
.cat-btn-danger {
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.cat-btn-danger:hover {
  background-color: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

/* Ajuste para que el botón secundario (Agregar) se vea bien junto al primario */
.cat-btn-secondary.cat-btn-icon-only {
  background-color: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.cat-btn-secondary.cat-btn-icon-only:hover {
  background-color: #E5E7EB;
  color: #111827;
}
