/* ================================
   Fuentes corporativas
================================ */
@font-face {
  font-family: 'SohoStandard';
  src: url('/soho-standard.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SohoGothicPro';
  src: url('/soho-gothic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


/* ================================
   Variables globales (root)
================================ */
:root {
  /* Colores primarios */
  --color-primary: #1F57A3;
  --color-primary-dark: #143d72;
  --color-secondary: #1276CE;

  /* Grises */
  --color-bg: #f2f4f8;
  --color-bg-alt: #f7f9fb;
  --color-border: #ddd;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #ffffff;

  /* Acciones / Estados */
  --color-hover: #dadcdf;
  --color-shadow: rgba(0, 0, 0, 0.08);

  /* Tipografía */
  --font-heading: 'SohoStandard', sans-serif;
  --font-body: 'SohoGothicPro', Arial, sans-serif;

  /* Tamaños */
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-sm: 12px;

  /* Espaciados */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 40px;

  /* Bordes y radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Sombras */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0px 2px 10px rgba(0, 0, 0, 0.15);
}

/* ================================
   Base
================================ */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  /* corta cualquier cosa que se salga */
}

body {
  background-color: var(--color-bg) !important;
  font-family: var(--font-body) !important;
  font-size: var(--font-size-base) !important;
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading) !important;
}

body a {
  color: var(--color-secondary);
  border-radius: 1px;
  text-decoration: none !important;
  transition: color .15s ease-in-out,
    background-color .15s ease-in-out,
    border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
}

body a:hover {
  text-decoration: none;
}


body .navbar-dark .navbar-nav>li>a:hover,
body .navbar-dark .navbar-nav>li.dropdown>a:hover {
  background-color: var(--color-hover);
  text-decoration: none !important;
}



/* ================================
   Botones
================================ */
.btn-aen {
  display: inline-block;
  border-style: solid;
  border-width: .0625rem;
  border-radius: 0;
  font-size: var(--font-size-base);
  padding: 12px 26px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
}

.btn-aen.btn-aen-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transition-duration: .4s;
  position: relative;
}

.btn-aen.btn-aen-secondary {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transition-duration: .4s;
  position: relative;
}


/* ================================
   Layout
================================ */

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  max-width: 1170px;
  /* límite en desktop */
  width: 100%;
  /* 👈 ocupa todo el ancho en mobile */
  box-sizing: border-box;
}


.layout-2-column {
  display: flex;
  margin-top: var(--spacing-lg);
}

.header-menu-mobile {
  display: none;
}

.notification-banner {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #2d2d2b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 9999;
  padding: 0 48px;
}

.bell-notification {
  position: absolute;
  top: -2px;
  right: -8px;
  background: #0078d4;
  color: white;
  font-size: 1rem;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

body .breadcrumb {
  font-size: 0.7rem;
  color: #1276CE;
  padding: 0;
}

body .breadcrumb>li a {
  font-size: 0.7rem;
  color: #1276CE;
}


body .breadcrumb>.active {
  color: #1276CE;
}


.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
  margin-bottom: 20px;
  padding: 4px;
}


.sidebar {
  width: 220px;
  background: var(--color-bg);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  min-height: calc(100vh - 100px);
  margin-top: var(--spacing-lg);
  display: block;
  flex: 0 0 220px;
  background-image: url('/pixel.png');
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: auto;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
}

.sidebar ul li a {
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  width: 100%;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  background-color: var(--color-hover);
  text-decoration: none !important;
}


.icon-box {
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.icon-box i {
  color: #1F57A3;
  font-size: 18px;
}

.main-content {
  flex-grow: 1;
  padding: var(--spacing-lg);
  min-width: 0;
}

.main-content-inner {
  padding: 0 var(--spacing-lg);
}



/* Card base */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* Grid contenedor */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Anchos posibles */
.card-full {
  flex: 1 1 100%;
}

.card-half {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
}

.card-third {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 0;
}


.card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eaeaea;
  transition: background 0.2s ease-in-out;
}

.card-item:last-child {
  border-bottom: none;
}

.card-item:hover {
  background: #f7f9fb;
}

.card-item a {
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.card-item i {
  font-size: 1rem;
  color: #666;
  margin-left: 8px;
}


.card-inline {
  font-family: var(--font-heading);
  display: inline-block;
  width: auto;
  max-width: max-content;
  padding: 6px 10px;
  font-size: 0.7rem;
}

.card-inline-pedido {
  background-color: #eaf8fb;
  color: #1f57a3;

}

.card-inline-fecha {
  background-color: #f5f5f5;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.badge-status {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 600;
}



.footer-wrapper {
  background-color: #2d2d2b;
  color: #ffffff;
  padding: 20px 0;
}

/* ===== FILA 1 ===== */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 15px;
  background-color: #2d2d2b;
}

.footer-column {
  padding: 10px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-center {
  flex: 1 1 auto;
  text-align: center;
}

.footer-right {
  flex: 0 0 auto;
  text-align: right;
}

/* ===== FILA 2 ===== */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
  background-color: #2d2d2b !important;
  padding: 10px 0 !important;
  flex-direction: column;
}


.footer-logo {
  width: 120px;
  height: auto;
}


.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}


.footer-social img {
  width: 32px;
  height: 32px;
  margin-left: 10px;
}

.leftbar {
  max-width: 50%;
}


/* ==============================
    Estilos formularios
================================ */
.readOnlyField {
  pointer-events: none;
  background-color: #f0f0f0;
  color: #666;
}

.formHidden {
  display: none !important;
}

.select2 {
  min-width: 150px;
}

.step-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.container-tipo {
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ico-tipo {
  font-size: 48px;
  color: #197efe;
}

.text-tipo {
  font-size: 18px;
  color: #197efe;
}

.step-tipo {
  border-style: solid;
  border-width: 3px;
  border-radius: 9px;
  border-color: #197efe;
  margin: 6px;
}

.step {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  flex: 1;
}

.step-circle {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  background-color: #d1d8de;
  border-radius: 50%;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-line {
  position: absolute;
  top: 16px;
  height: 2px;
  background-color: #d1d8de;
  z-index: 0;
}

.step-line.right {
  left: 50%;
  right: 0;
}

.step-line.left {
  left: 0;
  right: 50%;
}

.step-line.filled {
  background: linear-gradient(90deg, #197efe, #36bddf);
}

.step-label {
  margin-top: 12px;
  font-size: 14px;
  color: #aab0b6;
}

.step.active .step-label {
  color: #1f2b56;
  font-weight: 400;
}

.step.active .step-circle {
  background: linear-gradient(90deg, #197efe, #36bddf);
}

.spinner-load {
  font-size: 48px;
  display: inline-block;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  display: inline-block;
}

.spinner-box {
  width: 48px;
  border-radius: 50%;
  border-left-color: #fff;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.button-reload {
  font-size: 48px;
  border-width: 3px;
  border-radius: 9px;
  color: #aab0b6;
  border-color: #aab0b6;
}

.formOK {
  color: darkgreen;
  background-color: lightgreen;
  font-weight: 600;
}


.formKO {
  color: darkred;
  background-color: orangered;
  border-style: solid;
  border-width: 3px;
  border-radius: 9px;
  border-color: red;
  padding: 6px;
  margin: 12px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.editor-input {
  font-size: 18px;
  border-style: solid;
  border-width: 3px;
  border-radius: 9px;
  border-color: darkslategray;
}


.result-div {
  border-style: solid;
  border-width: 3px;
  border-radius: 9px;
  border-color: green;
  padding: 6px;
  font-size: 36px;
  margin: 6px;
  min-height: 140px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.result-email-left {
  font-size: 18px;
  font-weight: 400;
  text-align: left;
}

.result-email-right {
  font-size: 18px;
  font-weight: 400;
  text-align: right;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ================================
   Responsive
================================ */

@media (max-width: 500px) {
  .card {
    max-width: 350px !important;
  }

}
@media (max-width: 1200px) {
  .leftbar {
    display: none;
  }
}

@media (max-width: 768px) {

  .header-container {
    display: none;
  }

  .step-container {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .layout-2-column {
    flex-direction: column;
  }

  .main-content {
    flex: 1 1 auto;
    width: 100%;
    padding: 10px;
  }


  .card-half,
  .card-third {
    flex: 1 1 100%;
  }

  .header-menu-mobile {
    display: block;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1 0 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-social img {
    margin: 0 8px;
  }
}