/* Layout
   -------------------------------- */

.layout-grid {
  width: 960px;
}

.layout-grid td {
  vertical-align: top;
}

.layout-grid td.left-nav {
  width: 140px;
}

.layout-grid td.normal {
  border-left: 1px solid #eee;
  padding: 20px 24px;
  font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
}

.layout-grid td.demos {
  background: url("/images/demos_bg.jpg") no-repeat;
  height: 337px;
  overflow: hidden;
}

/* Normal
   -------------------------------- */

.normal h3,
.normal h4 {
  margin: 0;
  font-weight: normal;
}

.normal h3 {
  padding: 0 0 9px;
  font-size: 1.8em;
}

.normal h4 {
  padding-bottom: 21px;
  border-bottom: 1px dashed #999;
  font-size: 1.2em;
  font-weight: bold;
}

.normal p {
  font-size: 1.2em;
}

/* Demos */

.demos-nav,
.demos-nav dt,
.demos-nav dd,
.demos-nav ul,
.demos-nav li {
  margin: 0;
  padding: 0;
}

.demos-nav {
  float: left;
  width: 170px;
  font-size: 1.3em;
}

.demos-nav dt,
.demos-nav h4 {
  margin: 0;
  padding: 0;
  font: normal 1.1em "Trebuchet MS", "Helvetica", "Arial", "Verdana",
    "sans-serif";
  color: #e87b10;
}

.demos-nav dt,
.demos-nav h4 {
  margin-top: 1.5em;
  margin-bottom: 0;
  padding-left: 8px;
  padding-bottom: 5px;
  line-height: 1.2em;
  border-bottom: 1px solid #f4f4f4;
}

.demos-nav dd a,
.demos-nav li a {
  border-bottom: 1px solid #f4f4f4;
  display: block;
  padding: 4px 3px 4px 8px;
  font-size: 90%;
  text-decoration: none;
  color: #555;
  margin: 2px 0;
  height: 13px;
}

.demos-nav dd a:hover,
.demos-nav dd a:focus,
.demos-nav dd a:hover,
.demos-nav dd a:focus {
  background: #f3f3f3;
  color: #000;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
.demos-nav dd a.selected {
  background: #555;
  color: #ffffff;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

/* new styles for demo pages, added by Filament 12.29.08
eventually we should convert the font sizes to ems -- using px for now to minimize style conflicts
*/

.normal h3.demo-header {
  font-size: 32px;
  padding: 0 0 5px;
  border-bottom: 1px solid #eee;
  text-transform: capitalize;
}
.normal h4.demo-subheader {
  font-size: 10px;
  text-transform: uppercase;
  color: #999;
  padding: 8px 0 3px;
  border: 0;
  margin: 0;
}
.normal a:link,
.normal a:visited {
  color: #1b75bb;
  text-decoration: none;
}
.normal a:hover,
.normal a:active {
  color: #0b559b;
}

#demo-config {
  padding: 20px 0 0;
}

#demo-frame {
  float: left;
  width: 540px;
  height: 380px;
  border: 1px solid #ddd;
  overflow: auto;
  position: relative;
}
#demo-frame h3,
#demo-frame h4 {
  padding: 0;
  font-weight: bold;
  font-size: 1em;
}

#demo-config-menu {
  float: right;
  width: 180px;
}
#demo-config-menu h4 {
  font-size: 13px;
  color: #666;
  font-weight: normal;
  border: 0;
  padding-left: 18px;
}

#demo-config-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#demo-config-menu li {
  font-size: 12px;
  padding: 0 0 0 10px;
  margin: 3px 0;
  zoom: 1;
}

#demo-config-menu li a:link,
#demo-config-menu li a:visited {
  display: block;
  padding: 1px 8px 4px;
  border-bottom: 1px dotted #b3b3b3;
}
* html #demo-config-menu li a:link,
* html #demo-config-menu li a:visited {
  padding: 1px 8px 2px;
}
#demo-config-menu li a:hover,
#demo-config-menu li a:active {
  background-color: #f6f6f6;
}

#demo-config-menu li.demo-config-on {
  background: url(images/demo-config-on-tile.gif) repeat-x left center;
}

#demo-config-menu li.demo-config-on a:link,
#demo-config-menu li.demo-config-on a:visited,
#demo-config-menu li.demo-config-on a:hover,
#demo-config-menu li.demo-config-on a:active {
  background: url(images/demo-config-on.gif) no-repeat left;
  padding-left: 18px;
  color: #fff;
  border: 0;
  margin-left: -10px;
  margin-top: 0px;
  margin-bottom: 0px;
}

#demo-source,
#demo-notes {
  clear: both;
  padding: 20px 0 0;
  font-size: 1.3em;
}

#demo-notes {
  width: 520px;
  color: #333;
  font-size: 1em;
}
#demo-notes p code,
.demo-description p code {
  padding: 0;
  font-weight: bold;
}
#demo-source pre,
#demo-source code {
  padding: 0;
}
code,
pre {
  padding: 8px 0 8px 20px;
  font-size: 1.2em;
  line-height: 130%;
}

#demo-source a:link,
#demo-source a:visited,
#demo-source a:hover,
#demo-source a:active {
  font-size: 12px;
  padding-left: 13px;
  background-position: left center;
  background-repeat: no-repeat;
}

#demo-source a.source-open:link,
#demo-source a.source-open:visited,
#demo-source a.source-open:hover,
#demo-source a.source-open:active {
  background-image: url(images/demo-spindown-open.gif);
}

#demo-source a.source-closed:link,
#demo-source a.source-closed:visited,
#demo-source a.source-closed:hover,
#demo-source a.source-closed:active {
  background-image: url(images/demo-spindown-closed.gif);
}

div.demo {
  padding: 12px;
  font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
}

div.demo h3.docs {
  clear: left;
  font-size: 12px;
  font-weight: normal;
  padding: 0 0 1em;
  margin: 0;
}

div.demo-description {
  clear: both;
  padding: 12px;
  font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";
  font-size: 1.3em;
  line-height: 1.4em;
}

.ui-draggable,
.ui-droppable {
  background-position: top left;
}

.left-nav .demos-nav {
  padding-right: 10px;
}

#demo-link {
  font-size: 11px;
  padding-top: 6px;
  clear: both;
  overflow: hidden;
}
#demo-link a span.ui-icon {
  float: left;
  margin-right: 3px;
}

/* Component containers
----------------------------------*/
#widget-docs .ui-widget {
  font-family: Trebuchet MS, Verdana, Arial, sans-serif;
  font-size: 1em;
}
#widget-docs .ui-widget input,
#widget-docs .ui-widget select,
#widget-docs .ui-widget textarea,
#widget-docs .ui-widget button {
  font-family: Trebuchet MS, Verdana, Arial, sans-serif;
  font-size: 1em;
}
#widget-docs .ui-widget-header {
  border: 1px solid #ffffff;
  background: #464646 url(images/464646_40x100_textures_01_flat_100.png) 50% 50%
    repeat-x;
  color: #ffffff;
  font-weight: bold;
}
#widget-docs .ui-widget-header a {
  color: #ffffff;
}
#widget-docs .ui-widget-content {
  border: 1px solid #ffffff;
  background: #ffffff url(images/ffffff_40x100_textures_01_flat_75.png) 50% 50%
    repeat-x;
  color: #222222;
}
#widget-docs .ui-widget-content a {
  color: #222222;
}

/* Interaction states
----------------------------------*/
#widget-docs .ui-state-default,
#widget-docs .ui-widget-content #widget-docs .ui-state-default {
  border: 1px solid #666666;
  background: #555555
    url(images/555555_40x100_textures_03_highlight_soft_75.png) 50% 50% repeat-x;
  font-weight: normal;
  color: #ffffff;
  outline: none;
}
#widget-docs .ui-state-default a {
  color: #ffffff;
  text-decoration: none;
  outline: none;
}
#widget-docs .ui-state-hover,
#widget-docs .ui-widget-content #widget-docs .ui-state-hover,
#widget-docs .ui-state-focus,
#widget-docs .ui-widget-content #widget-docs .ui-state-focus {
  border: 1px solid #666666;
  background: #444444
    url(images/444444_40x100_textures_03_highlight_soft_60.png) 50% 50% repeat-x;
  font-weight: normal;
  color: #ffffff;
  outline: none;
}
#widget-docs .ui-state-hover a {
  color: #ffffff;
  text-decoration: none;
  outline: none;
}
#widget-docs .ui-state-active,
#widget-docs .ui-widget-content #widget-docs .ui-state-active {
  border: 1px solid #666666;
  background: #ffffff url(images/ffffff_40x100_textures_01_flat_65.png) 50% 50%
    repeat-x;
  font-weight: normal;
  color: #f6921e;
  outline: none;
}
#widget-docs .ui-state-active a {
  color: #f6921e;
  outline: none;
  text-decoration: none;
}

/* Interaction Cues
----------------------------------*/
#widget-docs .ui-state-highlight,
#widget-docs .ui-widget-content #widget-docs .ui-state-highlight {
  border: 1px solid #fcefa1;
  background: #fbf9ee url(images/fbf9ee_40x100_textures_02_glass_55.png) 50% 50%
    repeat-x;
  color: #363636;
}
#widget-docs .ui-state-error,
#widget-docs .ui-widget-content #widget-docs .ui-state-error {
  border: 1px solid #cd0a0a;
  background: #fef1ec url(images/fef1ec_40x100_textures_05_inset_soft_95.png)
    50% bottom repeat-x;
  color: #cd0a0a;
}
#widget-docs .ui-state-error-text,
#widget-docs .ui-widget-content #widget-docs .ui-state-error-text {
  color: #cd0a0a;
}
#widget-docs .ui-state-disabled,
#widget-docs .ui-widget-content #widget-docs .ui-state-disabled {
  opacity: 0.35;
  filter: Alpha(Opacity=35);
  background-image: none;
}
#widget-docs .ui-priority-primary,
#widget-docs .ui-widget-content #widget-docs .ui-priority-primary {
  font-weight: bold;
}
#widget-docs .ui-priority-secondary,
#widget-docs .ui-widget-content #widget-docs .ui-priority-secondary {
  opacity: 0.7;
  filter: Alpha(Opacity=70);
  font-weight: normal;
}

/* Icons
----------------------------------*/

/* states and images */
#demo-frame-wrapper .ui-icon,
#widget-docs .ui-icon {
  width: 16px;
  height: 16px;
  background-image: url(images/222222_256x240_icons_icons.png);
}
#widget-docs .ui-widget-content .ui-icon {
  background-image: url(images/222222_256x240_icons_icons.png);
}
#widget-docs .ui-widget-header .ui-icon {
  background-image: url(images/222222_256x240_icons_icons.png);
}
#widget-docs .ui-state-default .ui-icon {
  background-image: url(images/888888_256x240_icons_icons.png);
}
#widget-docs .ui-state-hover .ui-icon,
#widget-docs .ui-state-focus .ui-icon {
  background-image: url(images/454545_256x240_icons_icons.png);
}
#widget-docs .ui-state-active .ui-icon {
  background-image: url(images/454545_256x240_icons_icons.png);
}
#widget-docs .ui-state-highlight .ui-icon {
  background-image: url(images/2e83ff_256x240_icons_icons.png);
}
#widget-docs .ui-state-error .ui-icon,
#widget-docs .ui-state-error-text .ui-icon {
  background-image: url(images/cd0a0a_256x240_icons_icons.png);
}

/* Misc visuals
----------------------------------*/

/* Corner radius */
#widget-docs .ui-corner-tl {
  -moz-border-radius-topleft: 4px;
  -webkit-border-top-left-radius: 4px;
}
#widget-docs .ui-corner-tr {
  -moz-border-radius-topright: 4px;
  -webkit-border-top-right-radius: 4px;
}
#widget-docs .ui-corner-bl {
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
}
#widget-docs .ui-corner-br {
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
}
#widget-docs .ui-corner-top {
  -moz-border-radius-topleft: 4px;
  -webkit-border-top-left-radius: 4px;
  -moz-border-radius-topright: 4px;
  -webkit-border-top-right-radius: 4px;
}
#widget-docs .ui-corner-bottom {
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
}
#widget-docs .ui-corner-right {
  -moz-border-radius-topright: 4px;
  -webkit-border-top-right-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
}
#widget-docs .ui-corner-left {
  -moz-border-radius-topleft: 4px;
  -webkit-border-top-left-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
}
#widget-docs .ui-corner-all {
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
}

/* Overlays */
#widget-docs .ui-widget-overlay {
  background: #aaaaaa url(images/aaaaaa_40x100_textures_01_flat_0.png) 50% 50%
    repeat-x;
  opacity: 0.3;
  filter: Alpha(Opacity=30);
}
#widget-docs .ui-widget-shadow {
  margin: -8px 0 0 -8px;
  padding: 8px;
  background: #aaaaaa url(images/aaaaaa_40x100_textures_01_flat_0.png) 50% 50%
    repeat-x;
  opacity: 0.3;
  filter: Alpha(Opacity=30);
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
}

/*
----------------------------------*/

#widget-docs {
  margin: 20px 0 0;
  border: none;
}

#widget-docs h2,
#widget-docs h3,
#widget-docs h4,
#widget-docs p,
#widget-docs ul,
#widget-docs code {
  margin: 0;
  padding: 0;
}
#widget-docs code {
  display: block;
  color: #444;
  font-size: 0.9em;
  margin: 0 0 1em;
}
#widget-docs code strong {
  color: #000;
}
#widget-docs p {
  margin: 0 3em 1.2em 0;
}
#widget-docs p.intro {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}
#widget-docs ul {
  list-style-type: none;
}

#widget-docs h2 {
  font-size: 16px;
  margin: 1.2em 0 0.5em;
}
#widget-docs h3 {
  font-size: 14px;
  color: #e6820e;
  margin: 1.5em 0 0.5em;
}
.normal #widget-docs h4 {
  font-size: 12px;
  color: #000;
  border: 0;
  margin: 0 0 0.5em;
}

#docs-overview-main {
  width: 400px;
}
#docs-overview-sidebar {
  float: right;
  width: 200px;
}
#docs-overview-sidebar a span {
  color: #666;
}
#widget-docs #docs-overview-main p {
  margin-right: 0;
}
#widget-docs #docs-overview-sidebar h4 {
  padding-left: 0;
}

.docs-list-header {
  float: left;
  width: 100%;
  margin: 10px 0 0;
  border-bottom: 1px solid #eee;
}
#widget-docs .docs-list-header h2 {
  float: left;
  margin: 0;
}
#widget-docs .docs-list-header p {
  float: right;
  margin: 5px 0;
  font-size: 11px;
}

.docs-list {
  float: left;
  width: 100%;
  padding: 0 0 10px;
}
.docs-list .param-header {
  float: left;
  clear: left;
  width: 100%;
  padding: 8px 0;
  border-top: 1px solid #eee;
}
#widget-docs .param-header h3,
#widget-docs .param-header p {
  margin: 0;
  float: left;
}
#widget-docs .param-header h3 {
  width: 50%;
}
#widget-docs .param-header h3 span {
  background: url(images/demo-spindown-closed.gif) no-repeat left;
  padding-left: 13px;
}
#widget-docs .param-open .param-header h3 span {
  background: url(images/demo-spindown-open.gif) no-repeat left;
}
#widget-docs .param-header p {
  width: 24%;
}
#widget-docs .param-header p.param-type span {
  background: url(images/icon-docs-info.gif) no-repeat left;
  cursor: pointer;
  border-bottom: 1px dashed #ccc;
  padding-left: 15px;
}

.param-details {
  padding-left: 13px;
}
.param-args {
  margin: 0 0 1.5em;
  border-top: 1px dotted #ccc;
}
.param-args td {
  padding: 3px 30px 3px 5px;
  border-bottom: 1px dotted #ccc;
}

/* overrides for ui-tab styles */
#widget-docs ul.ui-tabs-nav {
  padding: 0 0 0 8px;
}
#widget-docs .ui-tabs-nav li {
  margin: 5px 5px 0 0;
}

#widget-docs .ui-tabs-nav li a:link,
#widget-docs .ui-tabs-nav li a:visited,
#widget-docs .ui-tabs-nav li a:hover,
#widget-docs .ui-tabs-nav li a:active {
  font-size: 14px;
  padding: 4px 1.2em 3px;
  color: #fff;
}

#widget-docs .ui-tabs-nav li.ui-tabs-selected a:link,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:visited,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:hover,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:active {
  color: #e6820e;
}

#widget-docs .ui-tabs-panel {
  padding: 20px 9px;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
}

#widget-docs .ui-widget-content a:link,
#widget-docs .ui-widget-content a:visited {
  color: #1b75bb;
  text-decoration: none;
}
#widget-docs .ui-widget-content a:hover,
#widget-docs .ui-widget-content a:active {
  color: #0b559b;
}

.ui-dialog .ui-state-error {
  padding: 0.3em;
}
.validateTips {
  border: 1px solid transparent;
  padding: 0.3em;
}

/* Ubuntu 24 OCR Integration CSS - Clean & Modern */
/* PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.apil-icon-over {
  display: flex;
  align-items: center;
  width: 40px;
  align-self: center; /* O sin especificar nada */
  align-items: center;
  justify-content: center;
 
 
}


.dots2 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  color: #dbdbdb;
  opacity: 0.4;
  animation: fadeInOut 1.9s infinite ease-in-out;
}
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}
.dot2 {
  opacity: 0;
  margin-top: 12px;
  margin-left: 4px;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: claude-pulse 1.4s ease-in-out infinite both;
}

.dot2:nth-child(2) {
  animation-delay: 0.2s;
}
.dot2:nth-child(3) {
  animation-delay: 0.4s;
}
.dot2:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #0099cc);
  border-radius: 2px;
  width: 0%;
  animation: loading 2.5s ease-out forwards;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  animation: float 8s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 0.5s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 1.5s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 2.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-10vh) rotate(180deg);
  }
}

@media (max-width: 768px) {
  .spinner {
    width: 60px;
    height: 60px;
  }
  .loading-text {
    font-size: 1.2rem;
  }
  .progress-container {
    width: 250px;
  }
  .main-content h1 {
    font-size: 2rem;
  }
}
/* CARDS PARA CADA PREGUNTA */

.pregunta-card button {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  background: transparent;
  border: none;
  font-weight: 500;
  color: var(--ubuntu-gray-800);
}

.ai-avatar {
  width: 380px;
  height: 50px;
  margin-top: 15px;
  border-radius: 6px;
  background: url(https://mbvc.com.mx/public/img/dashboard/apilpromt03.gif)
    no-repeat;
  background-size: 30px 30px;
  background-position: left 11px center;
  display: flex;
  padding: 1.2rem;

  align-items: center;

  justify-content: flex-start; /* CAMBIAR de center a flex-start */
  font-size: 16px;
}

.user-question {
  background: #e3fdeb;
  margin-top: 15px;
  margin-left: auto;
  min-width: 700px !important;
  width: auto;
  color: #000 !important;
  padding: 1.2rem;
  border-left: 4px solid #21f379;
  border-radius: 6px;
}
.ai-thinking-sequence {
  margin: 1rem 0;
}
.ai-message.ai-thinking {
  background: transparent;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thinking-dots {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Agregar esto */
  gap: 1rem;
}

.dots {
  display: flex;
  gap: 0.25rem;
}
.dots span {
  width: 6px;
  height: 6px;
  background: #2196f3;
  border-radius: 50%;
  display: inline-block;
  animation: claude-pulse 1.4s ease-in-out infinite both;
}
.dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.dots span:nth-child(3) {
  animation-delay: 0s;
}
@keyframes claude-pulse {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

:root {
  --ubuntu-orange: #e95420;
  --ubuntu-gray-100: #f6f6f6;
  --ubuntu-gray-200: #e1e5e9;
  --ubuntu-gray-300: #cdcdcd;
  --ubuntu-gray-700: #3d3d3d;
  --ubuntu-gray-800: #2e2e2e;
  --ubuntu-gray-900: #0e1419;
  --ubuntu-blue: #06c;
  --ubuntu-green: #0e8420;
  --ubuntu-red: #c7162b;
  --ubuntu-white: #ffffff;
}
.form-select {
  background-image: linear-gradient(45deg, transparent 50%, #333 50%),
    linear-gradient(135deg, #333 50%, transparent 50%) !important;
  background-position: calc(100% - 15px) calc(1em + 2px),
    calc(100% - 10px) calc(1em + 2px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}
/* Adjuntar Archivo - Ubuntu Blue (keep) */
.btn-transparent-ubuntu {
  background: transparent !important;
  border: none !important;
  color: rgb(77, 77, 77) !important;
  border-radius: 8px !important;
}
/* Adjuntar Archivo - Ubuntu Blue (keep) */
.btn-cyan-ubuntu {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
  transition: all 0.3s ease !important;
}
/* Adjuntar Archivo - Ubuntu Blue (keep) */
.btn-gray-ubuntu {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
  transition: all 0.3s ease !important;
}

/* Usar Cámara - Ubuntu Orange (más contraste) */
.btn-camera-ubuntu {
  background: linear-gradient(135deg, #209fe9 0%, #1c86c4 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(233, 84, 32, 0.3) !important;
  transition: all 0.3s ease !important;
}
/* Usar Cámara - Ubuntu Orange (más contraste) */
.btn-close-ubuntu {
  background: linear-gradient(135deg, #e95420 0%, #c7401a 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(233, 84, 32, 0.3) !important;
  transition: all 0.3s ease !important;
}

/* Captura Manual - Ubuntu Purple */
.btn-manual-ubuntu {
  background: linear-gradient(135deg, #5a6c7d 0%, #495460 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(90, 108, 125, 0.3) !important;
  transition: all 0.3s ease !important;
}

/* HOVERS - porque me regañaste jajaja */
.btn-cyan-ubuntu:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4) !important;
}
.btn-gray-ubuntu:hover {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4) !important;
}

.btn-camera-ubuntu:hover {
  background: linear-gradient(135deg, #209fe9 0%, #1c86c4 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4) !important;
}

.btn-close-ubuntu:hover {
  background: linear-gradient(135deg, #d4471f 0%, #b23518 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(233, 84, 32, 0.4) !important;
}

.btn-manual-ubuntu:hover {
  background: linear-gradient(135deg, #4a5a6b 0%, #3e4851 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(90, 108, 125, 0.4) !important;
}
/* Hidden utility class */
.ocr-hidden {
  display: none !important;
}

/* Ubuntu Zones */

/* Ubuntu Loading State */
#g1-loading-state {
  text-align: center;
  padding: 2rem;
}

.ubuntu-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ubuntu-gray-200);
  border-top: 3px solid var(--ubuntu-orange);
  border-radius: 50%;
  animation: ubuntuSpin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes ubuntuSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#g1-loading-state h5 {
  color: var(--ubuntu-gray-800);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

#g1-loading-state p {
  color: var(--ubuntu-gray-700);
  margin-bottom: 0.25rem;
}

#g1-loading-state small {
  color: var(--ubuntu-gray-700);
}

/* Ubuntu Header Info */
/* INFILTRACIÓN ESPECÍFICA - CABO CON COORDENADAS PRECISAS */

.info-header img {
  max-width: 100px;
  border-radius: 4px;
}

/* Ubuntu Tabs */
/* REPLACE ESTAS 3 REGLAS EXACTAS: */

/* Ubuntu Zones */
.ubuntu-zone,
#file-upload-zone,
#camera-capture-zone,
#image-preview-zone,
#ocr-processing-status,
#ocr-results-zone {
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 2px dashed var(--ubuntu-gray-300);
  background: var(--ubuntu-gray-100);
  transition: all 0.2s ease;
}

.ubuntu-zone:hover,
#file-upload-zone:hover {
  border-color: var(--ubuntu-orange);
  background: var(--ubuntu-white);
  cursor: pointer;
}

#camera-capture-zone {
  border-color: var(--ubuntu-green);
  background: var(--ubuntu-gray-100);
  border-style: solid;
}

#image-preview-zone {
  border-color: var(--ubuntu-orange);
  background: var(--ubuntu-gray-100);
  border-style: solid;
}

#ocr-processing-status {
  border-color: var(--ubuntu-blue);
  background: var(--ubuntu-gray-100);
  border-style: solid;
}

#ocr-results-zone {
  border-color: var(--ubuntu-green);
  background: var(--ubuntu-gray-100);
  border-left: 4px solid var(--ubuntu-green);
}

/* Calculation Display Ubuntu */
#calculation-display,
.calc-display {
  background: var(--ubuntu-gray-100);
  border-radius: 6px;
  padding: 0.5rem;
  margin: 0rem 0;
  border-left: 4px solid var(--ubuntu-orange);
}

.calc-display h6 {
  color: var(--ubuntu-gray-800);
  margin-bottom: 0.75rem;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
}

.calc-formula,
#ocr-extracted-data {
  font-family: "Ubuntu Mono", monospace;
  background: var(--ubuntu-white);
  padding: 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--ubuntu-gray-200);
  color: var(--ubuntu-gray-900);
  font-size: 0.875rem;
}

#masa-result,
.calc-result {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ubuntu-orange);
}

/* Camera Controls */
#camera-video {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--ubuntu-gray-900);
  width: 100%;
  max-height: 300px;
}
#camera-video-g2 {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--ubuntu-gray-900);
  width: 100%;
  max-height: 300px;
}
#camera-video-g3 {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--ubuntu-gray-900);
  width: 100%;
  max-height: 300px;
}
#camera-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Image Preview */
#preview-image {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--ubuntu-gray-200);
}

/* Progress Bar Ubuntu */
.ubuntu-progress {
  height: 4px;
  background: var(--ubuntu-gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.ubuntu-progress-bar {
  height: 100%;
  background: var(--ubuntu-orange);
  border-radius: 2px;
  animation: progressMove 2s ease-in-out infinite;
}

@keyframes progressMove {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#bs-example-modal-xlg .tab-pane.show.active {
  animation: slideInDown 0.2s ease;
}

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

.ocr-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Status indicators */
.status-success {
  color: var(--ubuntu-green);
  font-weight: 500;
}

.status-warning {
  color: var(--ubuntu-orange);
  font-weight: 500;
}

.status-error {
  color: var(--ubuntu-red);
  font-weight: 500;
}

/* Loading states */
.loading-overlay {
  position: relative;
}

.loading-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ui-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }

  .ui-dialog .ui-dialog-content {
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    padding: 0 !important;
    overflow: auto !important;
    border: none !important;
  }

  .ui-dialog .ui-dialog-titlebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }
  .modal-dialog,
  .modal-dialog[style] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .modal-content {
    height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* TU MODAL ESPECÍFICO */
  .dialogP .modal-dialog {
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
  }
  #bs-example-modal-xlg .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100vh !important;
  }

  .flex-container-logo,
  .info-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  #bs-example-modal-xlg .btn,
  .ubuntu-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #camera-video {
    height: 200px;
  }

  #camera-controls {
    flex-direction: column;
    align-items: stretch;
  }

  #bs-example-modal-xlg .modal-body {
    padding: 1rem;
  }

  .ubuntu-zone {
    padding: 1rem;
    margin: 1rem 0;
  }
  .estadisticas-kpis-grid {
    display: block !important;
    grid-template-columns: none !important;
  }

  .estadisticas-kpis-grid .kpi-card {
    margin-bottom: 15px !important;
    width: 100% !important;
  }

  .charts-grid {
    display: block !important;
    grid-template-columns: none !important;
  }

  .chart-container {
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .lists-grid {
    display: block !important;
    grid-template-columns: none !important;
  }

  .list-container {
    margin-bottom: 20px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  #bs-example-modal-xlg .modal-body {
    padding: 0.75rem;
  }

  #camera-video {
    height: 180px;
  }

  #bs-example-modal-xlg .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Ubuntu Console Signature */
.ubuntu-console {
  font-family: "Ubuntu Mono", monospace;
  background: var(--ubuntu-gray-900);
  color: var(--ubuntu-orange);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Additional utility classes */
.ubuntu-text-orange {
  color: var(--ubuntu-orange);
}

.ubuntu-text-gray {
  color: var(--ubuntu-gray-700);
}

.ubuntu-bg-light {
  background: var(--ubuntu-gray-100);
}

.ubuntu-border {
  border: 1px solid var(--ubuntu-gray-300);
}
.tabla-espaciada tbody tr {
  height: 35px !important;
}
.tabla-espaciada tbody td {
  padding: 8px !important;
}
/* ESPECÍFICO para la tabla de proyección de consumo */
#proyeccion_consumo_table_wrapper div.dataTables_filter input {
  margin-top: 0px !important;
  width: 200px !important; /* ← CAMBIAR: width fijo en lugar de 100% */
  margin-left: 10px !important; /* ← CAMBIAR: positivo para separar del texto */
  border: 1px solid #ccc !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
}

#proyeccion_consumo_table_wrapper div.dataTables_filter {
  text-align: right !important;
  margin-bottom: 10px !important;
  float: right !important; /* ← AGREGAR: forzar a la derecha */
}

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/*////////////////////////////////////////////APIL CSS INFO////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.mbvc-modal-wrapper {
  max-width: 100%;
  margin: 0;
  background: transparent;
  border-radius: 0;
}

.mbvc-config-top {
  padding: 15px;
}

.mbvc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mbvc-config-icon {
  width: 20px;
  height: 20px;
}

.mbvc-bread-link {
  text-decoration: none;
  transition: opacity 0.3s;
}

.mbvc-bread-link:hover,
.mbvc-bread-link.mbvc-current {
  opacity: 1;
}

.mbvc-nav-arrow {
  font-size: 11px;
  opacity: 0.7;
}

.mbvc-config-body {
  padding: 0;
}

.mbvc-accordion-container {
  display: flex;
  flex-direction: column;
}

.mbvc-panel-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mbvc-panel-toggle {
  display: none;
}

.mbvc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mbvc-panel-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mbvc-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mbvc-title-block strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.mbvc-sub-title {
  font-size: 12px;
  opacity: 0.7;
}

.mbvc-toggle-arrow {
  transition: transform 0.3s;
  font-size: 12px;
}

.mbvc-panel-toggle:checked + .mbvc-panel-header .mbvc-toggle-arrow {
  transform: rotate(180deg);
}

.mbvc-panel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mbvc-panel-toggle:checked + .mbvc-panel-header + .mbvc-panel-content {
  max-height: 800px;
  padding: 20px;
}

/* Premium Info */
.mbvc-premium-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-flow: wrap;
}

.mbvc-brand-logo {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.mbvc-info-block p {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 14px;
}

.mbvc-external-link {
  text-decoration: none;
  opacity: 0.9;
}

.mbvc-external-link:hover {
  text-decoration: underline;
}

/* Profile Card */
.mbvc-user-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 18px;
}

.mbvc-avatar-box img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mbvc-user-info h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.mbvc-company-text {
  font-weight: 500;
  margin: 0 0 6px 0;
  font-size: 14px;
  opacity: 0.9;
}

.mbvc-contact-data {
  font-size: 13px;
  margin: 0;
  opacity: 0.8;
}

.mbvc-contact-data i {
  width: 14px;
  margin-right: 6px;
}

.mbvc-btn-edit {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
}

.mbvc-btn-edit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.mbvc-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}

/* Billing Section */
.mbvc-billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.mbvc-billing-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}

.mbvc-btn-billing {
  background: rgba(40, 167, 69, 0.8);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 13px;
}

.mbvc-btn-billing:hover {
  background: rgba(40, 167, 69, 1);
}

/* Map Container */
.mbvc-map-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 8px;
}

.mbvc-map-details {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

.mbvc-map-details i {
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .mbvc-user-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .mbvc-premium-block {
    flex-direction: inherit;
    text-align: center;
    flex-flow: wrap;
  }

  .mbvc-billing-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .mbvc-config-top {
    padding: 12px;
  }

  .mbvc-breadcrumb {
    flex-wrap: wrap;
    gap: 6px;
  }

  .mbvc-panel-header {
    padding: 15px;
  }

  .mbvc-panel-toggle:checked + .mbvc-panel-header + .mbvc-panel-content {
    padding: 5px;
  }
}
/* === EXTENSIÓN PARA TU CSS EXISTENTE === */

/* Tema Actual - Preview Grande */
.mbvc-current-theme {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.mbvc-current-theme img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Grid de Temas Disponibles */
.mbvc-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.mbvc-theme-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.mbvc-theme-thumb:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.mbvc-theme-thumb:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

/* Fondos de Escritorio - Grid Compacto */
.mbvc-backgrounds-flex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 16px 0;
}

.mbvc-background-thumb {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.mbvc-background-thumb:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sección de Selección de Tema */
.mbvc-theme-selector {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin: 16px 0;
}

.mbvc-theme-label {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
  font-weight: 500;
}

/* Mejoras para Responsive */
@media (max-width: 768px) {
  .mbvc-current-theme img {
    width: 160px;
    height: 100px;
  }

  .mbvc-themes-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px 0;
  }

  .mbvc-theme-thumb {
    height: 75px;
  }

  .mbvc-backgrounds-flex {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }

  .mbvc-background-thumb {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .mbvc-themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mbvc-backgrounds-flex {
    grid-template-columns: repeat(3, 1fr);
  }

  .mbvc-current-theme img {
    width: 140px;
    height: 85px;
  }
  .mbvc-theme-thumb {
    width: 50% !important;

    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
  }
}

#personalizacion4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-left: 5px;
  margin-top: 0;
  width: 110px;
  height: 100px;
  padding: 0.2em;
  background: rgba(0, 0, 0, 0.9) !important;
  border: none !important;
  color: #fff !important;
  z-index: 1004;
}

#personalizacion4:hover {
  background-color: rgba(0, 0, 0, 0.95) !important;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

#personalizacion4 .icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#personalizacion4 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  padding: 0;
}

/* Contenedor principal con scroll */
.mbvc-config-body {
  max-height: 70vh; /* Altura máxima del viewport */
  overflow-y: auto; /* Scroll vertical automático */
  overflow-x: hidden; /* Sin scroll horizontal */
  padding-right: 10px; /* Espacio para scrollbar */
}

/* Estilizar scrollbar para que se vea más elegante */
.mbvc-config-body::-webkit-scrollbar {
  width: 8px;
}

.mbvc-config-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.mbvc-config-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.mbvc-config-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Alternativa: Contenedor del acordeón con scroll */
.mbvc-accordion-container {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 5px;
}

/* Smooth scroll behavior */
.mbvc-config-body,
.mbvc-accordion-container {
  scroll-behavior: smooth;
}

/* Separación entre secciones para mejor UX */
.mbvc-panel-section {
  margin-bottom: 15px;
}

.mbvc-panel-section:last-child {
  margin-bottom: 0;
}
/* edit-profile.css - Estilos específicos del módulo de edición de perfil */

.mbvc-edit-profile-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mbvc-form-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #003366;
}

.mbvc-form-header h4 {
  color: #003366;
  font-weight: 600;
  margin: 0;
  font-size: 1.4rem;
}

.mbvc-profile-form {
  max-width: 600px;
  margin: 0 auto;
}

.mbvc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.mbvc-form-full-width {
  grid-column: 1 / -1;
}

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

.mbvc-form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 14px;
}

.mbvc-form-input {
  padding: 12px 15px;
  border: 2px solid #e3e8ec;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.mbvc-form-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.mbvc-form-input.mbvc-field-error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}

.field-error {
  margin-top: 5px;
}

.mbvc-form-info {
  background: #f8f9fa;
  border-left: 4px solid #17a2b8;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.mbvc-form-info p {
  margin: 0 0 5px 0;
  font-size: 13px;
  color: #495057;
}

.mbvc-form-info p:last-child {
  margin-bottom: 0;
}

.mbvc-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.mbvc-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mbvc-btn-primary {
  background: #003366;
  color: white;
}

.mbvc-btn-primary:hover {
  background: #004080;
  transform: translateY(-1px);
}

.mbvc-btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.mbvc-btn-secondary {
  background: #6c757d;
  color: white;
}

.mbvc-btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.mbvc-loading-profile {
  /* background: rgba(255, 255, 255, 0.95); */
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.mbvc-loading-profile .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .mbvc-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mbvc-edit-profile-form {
    padding: 20px 15px;
    margin: 0 10px;
  }

  .mbvc-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .mbvc-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animaciones de entrada */
.mbvc-edit-profile-form {
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* empresa-config.css - Estilos específicos del módulo configuración empresarial */

.mbvc-empresa-config-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mbvc-form-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #003366;
}

.mbvc-form-header h4 {
  color: #003366;
  font-weight: 600;
  margin: 0;
  font-size: 1.4rem;
}

.mbvc-empresa-form {
  max-width: 700px;
  margin: 0 auto;
}

.mbvc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

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

.mbvc-form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 14px;
}

.mbvc-form-input {
  padding: 12px 15px;
  border: 2px solid #e3e8ec;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.mbvc-form-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.mbvc-form-input.mbvc-field-error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}

.form-help {
  color: #6c757d;
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

.field-error {
  margin-top: 5px;
}

/* Sección de logo específica */
.mbvc-logo-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.mbvc-logo-section h5 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.mbvc-logo-preview {
  margin-bottom: 15px;
}

.current-logo {
  max-width: 120px;
  max-height: 80px;
  border: 2px solid #ddd;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 5px;
}

.mbvc-btn-upload {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mbvc-btn-upload:hover {
  background: #138496;
  transform: translateY(-1px);
}

.mbvc-form-info {
  background: #e8f4fd;
  border-left: 4px solid #17a2b8;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.mbvc-form-info p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbvc-form-info p:last-child {
  margin-bottom: 0;
}

.mbvc-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.mbvc-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mbvc-btn-primary {
  background: #003366;
  color: white;
}

.mbvc-btn-primary:hover {
  background: #004080;
  transform: translateY(-1px);
}

.mbvc-btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.mbvc-btn-secondary {
  background: #6c757d;
  color: white;
}

.mbvc-btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* Vista de solo lectura */
.mbvc-empresa-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mbvc-empresa-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.mbvc-logo-display {
  flex-shrink: 0;
}

.empresa-logo {
  border: 2px solid #ddd;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 5px;
}

.mbvc-empresa-info h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.empresa-rfc {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.mbvc-empresa-details {
  margin-bottom: 25px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: #2c3e50;
  min-width: 120px;
}

.holograma-badge {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mbvc-empresa-actions {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.mbvc-btn-edit {
  background: #003366;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mbvc-btn-edit:hover {
  background: #004080;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.mbvc-loading-empresa {
  background: transparent;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.mbvc-loading-empresa .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .mbvc-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mbvc-empresa-config-form,
  .mbvc-empresa-card {
    padding: 20px 15px;
    margin: 0 10px;
  }

  .mbvc-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .mbvc-btn {
    width: 100%;
    justify-content: center;
  }

  .mbvc-empresa-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail-row strong {
    min-width: auto;
  }
}

/* Animaciones de entrada */
.mbvc-empresa-config-form,
.mbvc-empresa-card {
  animation: slideInUp 0.3s ease;
}

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

/* Estados de validación */
.mbvc-form-input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.mbvc-form-input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

/* Efectos de hover para campos */
.mbvc-form-input:hover {
  border-color: #b0b8c1;
}

/* Estilos específicos para diferentes tipos de input */
input[type="tel"].mbvc-form-input {
  letter-spacing: 0.5px;
}

input[type="text"].mbvc-form-input:placeholder-shown {
  font-style: italic;
}

/* Indicadores visuales de carga */
.mbvc-btn:disabled .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.apil-container {
  margin: 0 auto 40px;
}

.apil-icon {
  width: 60px;
  height: 50px;
  margin-bottom: 30px;
  background: transparent;
  border-radius: 50%;
  align-self: center; /* O sin especificar nada */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.apil-title {
  font-size: 42px;
  font-weight: 300;
  color: #e0e0e0;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.apil-subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 60px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}
.btn {
  background: #444;
  border: 1px solid #666;
  color: #e0e0e0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn:hover {
  background: #555;
  border-color: #ff6b35;
}

.loading-state {
  display: none;
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 3px solid #333;
  border-top: 3px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.response-area {
  display: none;
  margin-top: 30px;
  padding: 25px;
  background: #404040;
  border-radius: 12px;
  border-left: 4px solid #ff6b35;
}

.response-text {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.confirm-button {
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 160, 71, 0.3);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

.styled-menu-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* Cambia de space-between a flex-start */
  gap: 20px;
  position: relative;
  flex-wrap: nowrap;
}

.styled-menu-main {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.styled-btn-main-action {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.styled-btn-main-action:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.styled-capture-options {
  display: flex;
  gap: 12px;
  animation: slideUp 0.3s ease;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.styled-menu-secondary {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

/* Responsive - Solo para móvil pequeño */
@media (max-width: 640px) {
  .apil-styled-menu {
    padding: 12px 15px;
  }
  .apil-container {
    margin: 0 auto 10px;
  }

  .styled-menu-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .styled-capture-options {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .styled-capture-option-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 15px;
  }

  .styled-menu-secondary {
    justify-content: center;
  }

  .styled-version-tag {
    position: static;
    margin-top: 10px;
  }
}

/* Tablet mantiene layout horizontal */
@media (min-width: 641px) and (max-width: 1024px) {
  .styled-menu-container {
    gap: 15px;
  }
  .apil-container {
    margin: 0 auto 10px;
  }

  .styled-capture-options {
    gap: 10px;
  }

  .styled-capture-option-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Desktop grande - más espacio */
@media (min-width: 1200px) {
  .styled-menu-container {
    gap: 25px;
  }

  .styled-capture-options {
    gap: 15px;
  }

  .styled-capture-option-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ===================================================== */
/* CSS FIX Z-INDEX DROPDOWN - METODOLOGÍA IA APIL */
/* Solo CSS - Una responsabilidad específica */
/* ===================================================== */

/* FIX PRINCIPAL: Position fixed para salir del stacking context del modal */

/* Asegurar que el parent mantenga referencia */
.styled-menu-secondary {
  position: relative !important;
}

/* Resto de estilos del dropdown (sin cambios) */
@keyframes helpDropdownAppear {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.help-dropdown-content {
  padding: 0;
}

.help-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.help-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.help-section {
  margin-bottom: 20px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-question:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .apil-help-dropdown {
    width: 300px;
  }
}

.prompt-container,
.apil-styled-menu,
.win-main-area,
.dialogP {
  overflow: visible !important;
  contain: none !important;
  transform: none !important;
  filter: none !important;
}
