/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 30px;
  height: 30px;
}

.app-brand-logo.demo svg {
  width: 1.7rem;
  height: 1.7rem;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.45px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 10px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
  display: block !important;
}

.demo-inline-spacing>* {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }

  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.swal2-html-container {
  overflow: hidden !important;
}

.email-compose-form .form-control:disabled,
.email-compose-form .form-select:disabled {
  background-color: var(--bs-gray-25) !important;
}

.email-compose-form .light-style .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: var(--bs-gray-25) !important;
}

.palote {
  border-left-width: 5px;
  border-left-style: solid;
  padding-left: 1rem;
  color: #ff6c17ff;
  font-size: 1.1rem;
  font-weight: 600;
}

.palote span {
  color: #434344;
  font-size: 1.1rem;
  font-weight: 600;
}

.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-img {
  width: 100%;
  height: 200px;
  /* ajusta la altura del placeholder */
}

@keyframes loading {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}


#CONTAINER_FORMULARIO {
  margin: 0px;
  padding: 0px;
}

#DIV_HEADER,
#DIV_CORREO,
#preguntas-container,
#DIV_BOTON {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}


#preguntas-container table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
}

#preguntas-container table tr {
  border-bottom: 1px solid rgb(221, 221, 221);
}

#preguntas-container table tr td {
  padding: 20px 15px;
}

#preguntas-container table tr td:first-child {
  width: 50%;
  vertical-align: top;
  font-weight: 600;
  border-right: 1px solid white;
  border-bottom: 0px !important;
}

#preguntas-container table tr td:nth-child(1) {
  width: 50%;
  vertical-align: top;
  font-weight: 600;
  border-right: 1px solid white;
  border-bottom: 0px !important;
}

#preguntas-container table tr td:nth-child(2) {
  width: 50%;
  border-bottom: 0px !important;
}

#preguntas-container table .TIPO_V td:nth-child(2) .TIPO_DIV_V {
  display: flex;
  width: 100%;
  gap: 1rem;
}

#preguntas-container table .TIPO_R td:nth-child(2) .TIPO_DIV_R {
  display: flex;
  width: 100%;
  gap: 1rem;
}





@media (max-width: 576px) {

  #DIV_HEADER,
  #DIV_CORREO,
  #preguntas-container,
  #DIV_BOTON {
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  #preguntas-container {
    overflow-x: auto;
  }

  #preguntas-container table {
    width: 100%;
    table-layout: fixed;
  }

  #preguntas-container table tr td{
    display: block;
    width: 100%!important;
  }
}


.spinner-contact-page {
  position: fixed;
  margin: auto;
  top: 48%;
  left: 48%;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 9px solid;
  border-color: #dbdcef;
  border-right-color: #474bff;
  animation: spinner-d3wgkg 1s infinite linear;
}

@keyframes spinner-d3wgkg {
  to {
    transform: rotate(1turn);
  }
}

 .spinner-container-imagen {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

 .spinner-container-imagen  .spinner-image {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Spinner */
 .spinner-container-imagen  .spinner {
  position: absolute;
  bottom: 10px; /* lo bajas un poco debajo de la imagen */
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 10px;
}

 .spinner-container-imagen  .spinner > div {
  background-color: rgb(237, 106, 35);
  height: 100%;
  width: 6px;
  display: inline-block;
  margin: 0 1px;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

 .spinner-container-imagen .spinner .rect2 { animation-delay: -1.1s; }
 .spinner-container-imagen .spinner .rect3 { animation-delay: -1.0s; }
 .spinner-container-imagen .spinner .rect4 { animation-delay: -0.9s; }
 .spinner-container-imagen .spinner .rect5 { animation-delay: -0.8s; }

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }  
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
  }  
  20% { 
    transform: scaleY(1.0);
  }
}

.spinner-container-imagen {
  display: flex;
  flex-direction: column; /* Imagen arriba, spinner abajo */
  align-items: center;    /* Centrado horizontal */
  justify-content: center;/* Centrado vertical */
  height: 250px;          /* Ocupa toda la pantalla */
}

.spinner-container-imagen img {
  max-width: 300px; /* Ajusta tamaño si lo necesitas */
  margin-bottom: 20px; /* Espacio entre imagen y spinner */
}

.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:disabled, .btn.disabled, fieldset:disabled .btn{
  border: none !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 38px;
  max-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}
.select2-selection__rendered {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

#previewContainer {
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.justify {
  text-align: justify !important;
}

.alert-info-preview{
  background-color: #e7f3fe;
  color: #31708f;
  border: 1px solid #bce8f1;
  border-radius: 4px;
  padding: 10px 15px;
}
