/* :root {
  --satin-linen: #ece8df;
  --cape-cod: #495555;
  --sanguine-brown: #863a36;
  --hillary: #ab9c87;
  --muddy-waters: #b2875a;
  --nepal: #8eaec2;
  --soft-amber: #cac0ac;
  --tiara: #bdcdca;
  --martini: #b3a3a7;
} */



/*:root {
  --satin-linen: #ebebeb;
  --cape-cod: #565656;
  --sanguine-brown: #313150;
  --hillary: #a8a8a8;
  --muddy-waters: #74716c;
  --nepal: #791b49;
  --soft-amber: #b1bdca;
  --tiara: #dfdfdf;
  --martini: #c9bfc0;
}*/

:root {
  --satin-linen: #f3f3f3;
  --cape-cod: #495555;
  --sanguine-brown: #863a36;
  --hillary: #c79f75;
  --muddy-waters: #b2875a;
  --nepal: #813130;
  --soft-amber: #245b4e;
  --tiara: #bdcdca;
  --martini: #b3a3a7;
}


.sanguineBrown {
  color: var(--sanguine-brown);
}

.satinLinen {
  background-color: var(--satin-linen);
}

.muddyWatersBk {
  background-color: var(--muddy-waters);
  border-color: var(--muddy-waters);
}

.muddyWatersBk:hover {
  background-color: var(--hillary);
  border-color: var(--hillary);
}

.typography {
  font-family: movIntegrada;
}

@media (min-width: 300px) and (max-width: 767.99px) {
  .logoInsurgente {
    display: none;
  }

  .shortInsurgente {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .pcTablet {
    display: none;
  }

  .headMobile {
    margin-top: 1.5rem !important;
  }

  .mobileSpace {
    margin-top: 1rem;
  }

  .navbar .navbar-menu-wrapper .navbar-nav .nav-item.dropdown .dropdown-menu.navbar-dropdown {
    position: absolute;
    font-size: 0.9rem;
    margin-top: 0;
    right: 0;
    left: auto;
    padding: 0;
  }

  .searchWidth {
    width: 80% !important;
  }

  .content-wrapper {
    padding: 0 !important;
  }

  .pad0 {
    padding: 0;
  }

  .form-group {
    margin-bottom: 0;
  }

  .widthInputResp {
    width: 100% !important;
  }

  .qrStyle {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (min-width: 768px) and (max-width: 1030.99px) {
  .logoInsurgente {
    display: none;
  }

  .shortInsurgente {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .pcTablet {
    display: none;
  }

  .headMobile {
    margin-top: 1.5rem !important;
  }

  .mobileSpace {
    margin-top: 1rem;
  }

  .navbar .navbar-menu-wrapper .navbar-nav .nav-item.dropdown .dropdown-menu.navbar-dropdown {
    position: absolute;
    font-size: 0.9rem;
    margin-top: 0;
    right: 0;
    left: auto;
    padding: 0;
  }

  .searchWidth {
    width: 50% !important;
  }

  .form-group {
    margin-bottom: 0;
  }

  .widthInputResp {
    width: 100% !important;
  }

  .qrStyle {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
  }
}

/* Medium devices (tablets, less than 992px)*/
@media (min-width: 1031px) and (max-width: 1199.99px) {
  .mobile {
    display: none;
  }

  .qrStyle {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
  }
}

/* Large devices (desktops, less than 1200px)*/
@media (min-width: 1200px) {
  .mobile {
    display: none;
  }

  .qrStyle {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .paginationView {
    display: none;
  }

  .titleAl {
    text-align: center;
    font-size: 25px;
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .paginationMobile {
    display: none;
  }
}


.searchButton {
  width: 80px;
  height: 40px;
  font-weight: bold;
  border-radius: 10px;
}


/* BASIC */
body {
  font-family: sans-serif;
  height: 100vh;
}

a {
  color: #92badd;
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
}

h2 {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin: 40px 8px 10px 8px;
  color: #cccccc;
}



/* STRUCTURE */

.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 5%;
  margin-top: 1rem;
}

#formContent {
  -webkit-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
  background: var(--soft-amber);
  ;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  position: relative;
  padding: 0px;
  -webkit-box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
}

#formFooter {
  background-color: white;
  border-top: 1px solid #dce8f1;
  padding: 25px;
  text-align: center;
  -webkit-border-radius: 0 0 10px 10px;
  border-radius: 0 0 10px 10px;
}



/* TABS */

h2.inactive {
  color: #cccccc;
}

h2.active {
  color: #0d0d0d;
  border-bottom: 2px solid #9f4743;
}



/* FORM TYPOGRAPHY*/
input[type=button],
input[type=submit],
input[type=reset] {
  background-color: var(--sanguine-brown);
  border: none;
  color: white;
  padding: 15px 80px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  font-size: 13px;
  -webkit-border-radius: 5px 5px 5px 5px;
  border-radius: 5px 5px 5px 5px;
  margin: 5px 20px 40px 20px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

select,
select.form-control,
input[type=text],
input[type=password],
input[type=tel],
input[type=email],
input[type=date] {
  background-color: white;
  border: none;
  color: #0d0d0d;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 5px;
  width: 85%;
  border: .5px solid grey;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-border-radius: 5px 5px 5px 5px;
  border-radius: 5px 5px 5px 5px;
}

.inputSelectImage {
  background-color: white;
  border: none;
  color: #0d0d0d;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 5px;
  width: 85%;
  border: 2px solid white;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-border-radius: 5px 5px 5px 5px;
  border-radius: 5px 5px 5px 5px;
}

input[type=text]:focus {
  background-color: #fff;
  border-bottom: 2px solid #9f4743;
}

input[type=text]:placeholder {
  color: #cccccc;
}



/* ANIMATIONS */

/* Simple CSS3 Fade-in-down Animation */
.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

/* Simple CSS3 Fade-in Animation */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  opacity: 0;
  -webkit-animation: fadeIn ease-in 1;
  -moz-animation: fadeIn ease-in 1;
  animation: fadeIn ease-in 1;

  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  animation-fill-mode: forwards;

  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
  animation-duration: 1s;
}

.fadeIn.first {
  -webkit-animation-delay: 0.4s;
  -moz-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.fadeIn.second {
  -webkit-animation-delay: 0.6s;
  -moz-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

.fadeIn.third {
  -webkit-animation-delay: 0.8s;
  -moz-animation-delay: 0.8s;
  animation-delay: 0.8s;
}

.fadeIn.fourth {
  -webkit-animation-delay: 1s;
  -moz-animation-delay: 1s;
  animation-delay: 1s;
}

/* Simple CSS3 Fade-in Animation */
.underlineHover:after {
  display: block;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background-color: var(--sanguine-brown);
  ;
  content: "";
  transition: width 0.2s;
}

.underlineHover:hover {
  color: #0d0d0d;
}

.underlineHover:hover:after {
  width: 100%;
}

/* Simple CSS3 Fade-in Animation */
.underlineHoverW:after {
  display: block;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background-color: white;
  content: "";
  transition: width 0.2s;
}

.underlineHoverW:hover {
  color: #0d0d0d;
}

.underlineHoverW:hover:after {
  width: 100%;
}


/* OTHERS */

*:focus {
  outline: none;
}

#icon {
  width: 60%;
}


body {
  margin: 0;
  padding: 0;
}

a.navbar-brand {
  float: left;
  height: 50px;
  padding: 15px 15px;
  font-size: 18px;
  line-height: 20px;
  text-decoration: none;
  font-family: movIntegrada;
  font-weight: 700;

}

nav.main-navigation {
  position: relative;
}

nav.main-navigation ul.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  text-align: right;
}

.nav-list li.nav-list-item {
  display: inline-block;
  line-height: 40px;
  margin-left: 30px;
  margin-top: 15px;
}

a.nav-link {
  text-decoration: none;
  font-size: 18px;
  font-family: movIntegrada;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: var(--cape-cod);
}

.dropdown-menu {
  background: var(--soft-amber) !important;
  z-index: 9999;
  position: absolute;
}


.dropdown-menu a {
  color: white;
  cursor: pointer;
}



@keyframes FadeIn {
  0% {
    opacity: 0;
    -webkit-transition-duration: 0.8s;
    transition-duration: 0.8s;
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
  }


  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    pointer-events: auto;
    transition: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

.nav-list li {
  animation: FadeIn 1s cubic-bezier(0.65, 0.05, 0.36, 1);
  animation-fill-mode: both;
}

.nav-list li:nth-child(1) {
  animation-delay: .3s;
}

.nav-list li:nth-child(2) {
  animation-delay: .6s;
}

.nav-list li:nth-child(3) {
  animation-delay: .9s;
}

.nav-list li:nth-child(4) {
  animation-delay: 1.2s;
}

.nav-list li:nth-child(5) {
  animation-delay: 1.5s;
}

/* Animation */

@keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0)
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}

@-webkit-keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0)
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: both
}

.animatedFadeInUp {
  opacity: 0
}

.fadeInUp {
  opacity: 0;
  animation-name: fadeInUp;
  -webkit-animation-name: fadeInUp;
}

.alert-secondary {
  color: white;
  background-color: var(--nepal);
  border-color: var(--nepal);
}

.noCursor {
  cursor: help !important;
}

.anuncio {
  display: none;
  position: absolute;
  background-color: var(--soft-amber);
  padding: 10px;
  border: 1px solid var(--sanguine-brown);
  border-radius: 5px;
  z-index: 100;
  color: white;
  font-family: movIntegrada;
  white-space: nowrap;
}

.table-responsive,
.table {
  overflow: visible;
}

/* Aumentar el z-index de los tooltips */
.tippy-box {
  z-index: 9999 !important;
}


.nav-link:hover+.anuncio {
  display: block;
}

.regresar {
  border-radius: 18px;
  color: white !important;
  background: var(--sanguine-brown);
  padding-top: 0;
  padding-bottom: 0;
}

.navbarColor {
  background: var(--soft-amber);
  box-shadow: none;
}

.opDesc {
  text-align: center;
  padding: .2rem;
}

.title-centered {
  position: absolute;
  left: 50%;
  display: block;
  text-align: center;
  background-color: transparent;
}

/* /////////////////////// */

/* Estilos para la tabla específica */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--satin-linen);
  border-radius: 7px;
  overflow: hidden;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  text-align: left;
  color: var(--cape-cod);
}

.responsive-table th {
  background-color: var(--nepal);
}

.responsive-table td {
  background-color: white;
}

.responsive-table .expanded-row {
  display: none;
}

.responsive-table .expanded-row ul {
  padding: 8px;
  list-style: none;
  margin: 0;
  background-color: var(--tiara);
  border-radius: 7px;
}

/* Estilos para las tarjetas */
.card-container {
  display: none;
}

.expand-btn {
  color: var(--satin-linen);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

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

.filter-btn {
  color: var(--satin-linen);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

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


.dropdownImg {
  background: none;
  border: none;
  cursor: pointer;
}

.buttonAction {
  color: var(--satin-linen);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.buttonAction:hover {
  background-color: var(--tiara);
}

@media (min-width: 200px) and (max-width: 767.99px) {
  .responsive-table {
    display: none;
  }

  .card-container {
    display: block;
    width: 100%;
  }

  .card-view {
    display: block;
    border-radius: 7px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: var(--nepal);
    color: white;
  }

  .card-view img {
    max-width: 100%;
    height: auto;
  }

  .card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
  }

  .card-content div {
    text-align: left;
  }

  .expanded-card-content {
    padding: 8px;
    list-style: none;
    margin: 0;
    background-color: var(--tiara);
    border-radius: 8px;
    color: var(--cape-cod);
  }

  .filterMobile {
    display: inline !important;
  }

  .filter-menu {
    position: absolute;
    z-index: 10;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 90%;
    /* Ajustar según necesario */
    left: 5%;
    /* Centrar el menú */
    top: 50px;
    /* Espacio desde el botón */
  }

  .responsive-bitacora {
    display: block;
  }

}

/* Media Queries */
@media (min-width: 1240px) {

  .responsive-table td:nth-child(n+8):nth-child(-n+50),
  .responsive-table th:nth-child(n+8):nth-child(-n+50) {
    display: none;
  }
}

@media (min-width: 1097px) and (max-width: 1239px) {

  .responsive-table td:nth-child(n+7):nth-child(-n+50),
  .responsive-table th:nth-child(n+7):nth-child(-n+50) {
    display: none;
  }
}

@media (min-width: 800px) and (max-width: 1096px) {

  .responsive-table td:nth-child(n+6):nth-child(-n+50),
  .responsive-table th:nth-child(n+6):nth-child(-n+50) {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 799px) {

  .responsive-table td:nth-child(n+5):nth-child(-n+50),
  .responsive-table th:nth-child(n+5):nth-child(-n+50) {
    display: none;
  }

}

@media (max-width: 600px) {

  .responsive-bitacora td:nth-child(n+5):nth-child(-n+50),
  .responsive-bitacora th:nth-child(n+5):nth-child(-n+50) {
    display: none;
  }
}

.table-responsive-wrapper {
  overflow-x: auto;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 12px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--tiara);
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: var(--cape-cod);
  border-radius: 10px;
  border: 3px solid var(--tiara);
}


.btnOptions {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-success:not(.btn-light):not(.btn-secondary):focus,
.btn-success:not(.btn-light):not(.btn-secondary):active {
  background: var(--hillary);
  background-color: var(--hillary);
  border: var(--hillary);
}


#pagination-controls,
#card-pagination-controls {
  text-align: right;
  margin-top: 20px;
}

#pagination-controls button {
  padding: 5px 10px;
  margin: 0 10px;
}

.invalid-feedback {
  display: none;
}

.is-invalid+.invalid-feedback {
  display: block;
}

@media (max-width: 699px) {

  .responsieForm {
    display: inherit !important;
    width: 100% !important;
  }
}

.filter-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 10px;
  display: none;
}

.filter-menu label {
  display: block;
  color: var(--cape-cod);
  margin: 5px;
}



.filter-menu input {
  margin: 5px;
}

.mobileFilterMenu {
  display: none;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}


.fila-par {
  background-color: var(--satin-linen) !important;
}

.fila-impar {
  background-color: white !important;
}

.table-shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}


.filter-section {
  display: flex;
  align-items: center;
  width: 80%;
}

.label {
  font-size: 18px;
  font-weight: bold;
  min-width: 200px;
}

.filter-select {
  width: 50%;
  height: 50px;
  color: grey;
  border: none;
}


.search-container {
  margin-left: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.text-inputs {
  text-align: end;
}

@media (max-width: 1200px) {
  .search-container {
    margin-left: 5%;
  }

  .filter-section {
    display: grid;
  }

  .search-container>div,
  .search-container>span,
  .search-container select,
  .search-container input {
    width: 90% !important;
  }

  .button-group {
    display: flex;
    justify-content: center;
    width: 100%
  }

  .text-inputs {
    text-align: start;
  }
}

.encabezado {
  color: white !important;
  text-align: center !important;
}

.card-menu {
  border-radius: 1rem;
}

/*********************************************************/
.check-body {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: #ffffff;
}

.check-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
}

.check-scroll-box {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.check-checkbox-group {
    text-align: left;
}

.check-checkbox-group label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.titulo-izquierda {
    text-align: left;
    display: block;
    /* Asegura que ocupe todo el ancho disponible */
    margin-left: 0;
    margin-right: 0;
}

/**************************************************************/

.centrado {
    text-align: center;
    border: 2px dotted #000000;
    padding: 8px;
}

.table td img {
    width: 300px;
    height: 175px;
    border-radius: 0%;
}

.table td iframe {
    width: 300px;
    height: 175px;
}

table,
th,
td {
    border: 0px solid;
}

textarea {
    background-color: white;
    border: #808080;
    color: #0d0d0d;
    text-align: justify;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 5px;
    width: 85%;
    border: .5px solid grey;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
}
.form-control {
    border: 1px solid #808080;
    height: calc(2.25rem + 2px);
    font-weight: normal;
    font-size: 16px;
    padding: 0.625rem 0.6875rem;
    background-color: rgb(255, 255, 255);
    border-radius: 5px 5px 5px 5px;
}

/* Eliminar márgenes del navegador y del cuerpo */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Estilos de estructura */

 /* Reseteo agresivo para evitar que el form o el body añadan espacio */
        html, body, form {
            margin: 0;
            padding: 0;
            width: 100%;
            box-sizing: border-box;
        }

        /* Aseguramos que el formulario no tenga restricciones de tamaño */
        form {
            display: block;
        }

        .tabs-container {
            width: 100%; 
            margin: 0;
            box-sizing: border-box;
            font-family: sans-serif;
            border-bottom: 1px solid #ccc !important;
        }

        .tabs-header {
            display: flex;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .tab-button {
            flex: 1;
            padding: 15px;
            cursor: pointer;
            border: 1px solid #ccc;
            background-color: #f1f1f1;
            border-bottom: 2px solid #ccc;
            transition: 0.3s;
            margin: 0;
            font-size: 1rem;
        }

        .tab-button.active {
            background-color: #245b4e;
            border-bottom: 2px solid #000;
            color:#fff;
            font-weight: bold;
        }

        .tab-content {
            display: none;
            padding: 20px;
            width: 100%;
            box-sizing: border-box;
            height: 70vh; /* Ajustado a 70vh */
        }

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

/*********************************************************************************/

        /* Contenedor Principal Adaptado */
        .app-container {
            height: 65vh;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            background-color: #f0f2f5;
        }

        /* Cambios solicitados en .chat-container */
        .chat-container {
            height: 70vh; /* Ajustado a 70vh */
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            box-sizing: border-box;
        }

        /* Área de entrada inferior */
        .input-container {
            padding: 1rem;
            background-color: #ffffff;
            border-top: 1px solid #e5e7eb;
            display: flex;
            gap: 0.75rem;
            align-items: center; 
        }

        .chat-input {
            flex: 1;
            padding: 0.75rem 1.25rem;
            border-radius: 15px;
            border: 1px solid #d1d5db;
            outline: none;
            font-size: 14px;
            font-family: inherit;
            resize: vertical; 
            min-height: 60px; 
            max-height: 400px;
            box-sizing: border-box;
            line-height: 1.4;
        }

        .chat-input:focus {
            border-color: #8b3e39;
        }

        .send-button {
            background-color: #8b3e39; /* Color acorde al mensaje enviado */
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 9999px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
            height: 34px; 
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .send-button:hover {
            background-color: #6d302c;
        }

        /* Alineación de Mensajes */
        .flex { display: flex; }
        .justify-start { justify-content: flex-start; }
        .justify-end { justify-content: flex-end; }
        .justify-center { justify-content: center; }

        /* Burbujas de Mensaje con fuente aumentada a 25px */
        .bubble {
            max-width: 70%;
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            font-size: 25px; /* Ajustado */
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            position: relative;
        }

        /* Estilo para el nombre con fuente a 21px */
        .sender-name {
            font-size: 17px; /* Ajustado */
            font-weight: bold;
            margin-bottom: 2px;
            display: block;
        }

        /* Mensaje del Contacto (Blanco) */
        .received {
            background-color: #ffffff;
            color: #1f2937;
            border: 1px solid #f3f4f6;
            border-bottom-left-radius: 0;
        }

        /* Mi Mensaje (Color café/rojizo solicitado) */
        .sent {
            background-color: #8b3e39; /* Ajustado */
            color: #ffffff;
            border-bottom-right-radius: 0;
        }

        .nada {
            background-color: #8b3e39; /* Ajustado */
            color: #ffffff;
        }

        /* Metadatos con fuente a 15px */
        .meta {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.25rem;
            margin-top: 0.25rem;
            font-size: 15px; /* Ajustado */
        }

        .meta-received { color: #9ca3af; }
        .meta-sent { color: #dbeafe; }

        /* Icono Check */
        .check-icon {
            width: 0.75rem;
            height: 0.75rem;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
        }

        /* Personalización para el scroll */
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
/****************************************************************************

        /* CSS ESENCIAL PARA EL BLOQUEO DE PANTALLA */
        #loader-overlay,#conectado {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
            display: none; /* Se activa con JS */
            justify-content: center;
            align-items: center;
            flex-direction: column;
            z-index: 9999;
            color: white;
            font-family: sans-serif;
        }

        /* Spinner con el color #8b3e39 */
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.2);
            border-left-color: #8b3e39;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

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

        /* Bloqueo de scroll */
        .overflow-hidden {
            overflow: hidden;
        }
/*****************************************************/

 /* 1. Estilos del contenedor de pantalla completa */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff; /* Color de fondo de la carga */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease; /* Efecto de desvanecimiento suave */
        }

        /* 2. Estilos para tu GIF */
        .loading-gif {
            width: 150px; /* Ajusta el tamaño según tu GIF */
            height: auto;
            margin-bottom: 15px;
        }

        /* 3. Estilo para el texto (opcional) */
        .loading-text {
            font-family: sans-serif;
            color: #333;
            font-size: 1.1rem;
        }

        /* 4. Evita el scroll mientras carga */
        body.loading {
            overflow: hidden;
        }
/*******************************/