:root {
  --primary: #9D1F2E;
}

body {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: 1fr;
}

.accordeonsSection {
  position: relative;
}

.separateAccordeon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

/*.imgAccordeon {
  // width: 8rem;
  height: 8rem;
}*/
.thirdColumn {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 3/6;
  grid-template-rows: repeat(2, minmax(0, 40px));
}

.detailsContainer {
  display: flex;
  gap: 1rem;
  grid-column: 1/3;
}

.blocked {
  display: flex;
  justify-content: space-between;
}

.descriptionBox {
  padding: 1rem;
  border-radius: 15px;
  background-color: #EEEEEE;
  flex-grow: 1;

}

.descriptionBox p {
  font-size: 13px;
  white-space: pre-line;
}

.detailBox {
  padding: 1rem;
  border-radius: 4px;
  background-color: #EEEEEE;
  flex-grow: 1;
  overflow-y: scroll;
  max-height: 400px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;

}

/* width */
.detailBox::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.detailBox::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

/* Handle */
.detailBox::-webkit-scrollbar-thumb {
  max-height: 5px;
  background: #a0362e;
  border-radius: 5px;
}

/* .detailBox::-webkit-scrollbar-thumb {
  height: 5px;
  background: red;
} */

/* Handle on hover */
.detailBox::-webkit-scrollbar-thumb:hover {
  background-color: rgb(127 29 29);
}

.detailBox p {
  font-size: 13px;
}

.btnDetails {
  height: 2.5rem !important;
  background-color: #EEEEEE;
}

.summary {
  position: relative;
  padding: 2rem;
}

.desplegable {
  height: 10rem;
}

/*.blockedContent {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  border: 1px solid #c4c4c4;
  padding: .5rem 1rem;
  border-radius: 7px;
}*/
.blockedContent {
  display: inline-flex;
  gap: .375rem;         /* antes .75rem */
  align-items: center;
  border: 1px solid #c4c4c4;
  padding: .25rem .5rem;/* antes .5rem 1rem */
  border-radius: 6px;   /* antes 7px */
  font-size: .875rem;   /* opcional: reduce texto */
  line-height: 1.2;     /* opcional: compacta altura */
}
.blockedContent:hover {
  background-color: #eeeeee;
}

/*.lock {
  width: 20px;
  height: 20px;
}*/
.lock {
  width: 16px;          /* antes 20px */
  height: 16px;
}


/* Modal */

.modal {
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 15px;
}

.modal .flex {
  display: flex;
  gap: 1rem;
}

.modal input {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9em;
}

.modal p {
  font-size: 0.9rem;
  color: #777;
  margin: 0.4rem 0 0.2rem;
}

button {
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  background-color: black;
  color: white;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
}

.btn-open {
  position: absolute;
  bottom: 150px;
}

.btn-close {
  padding: 0.1rem 0.3rem;
  background: #9D1F2E;
  border-radius: 7px;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 21;
}

.overlayForgotPassword {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 31;
}

.overlayRegister {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 31;
}

.modal {
  z-index: 22;
}

.disabled {
  filter: grayscale(100%);
}

.btnsModal {}

.modalTitle {
  color: #9D1F2E;
  font-weight: 700;
  font-size: 1.2rem;
}

.topBox {
  margin-bottom: .5rem;
}

.modalLink {
  color: #9D1F2E;
  font-weight: 200;
  margin-left: 10px;
  font-size: 14px;
}

.documentsLink {
  display: flex;
  align-items: center;
  padding-top: 1rem;
}

.headerModal {
  width: 100%;
  background-color: #9D1F2E;
  margin: 1rem 0;
  border-radius: 5px;
  padding: 0 .8rem;
}

.headerModalTitle {
  color: white;
  font-size: 1.2rem;
  padding-top: 5px;
}

.modalBox {
  padding: 0 1.3rem 1.3rem 1.3rem;
}

.closeBox {
  background-image: url("/img/headerModal.png");
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-size: cover;
  background-repeat: no-repeat;
  padding: .2rem .4rem .2rem;
  color: white;
  display: flex;
  flex-direction: row-reverse;
  background-position: top right;
}

.modalImageContainer {
  display: none;
}

@media (min-width:768px) {
  .modalImageContainer {
    display: block;
  }

  .modal {
    width: 700px;
  }

  .btnsModal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Modal login */

.modalLogin {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 90%;
  min-height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 15px;
  z-index: 22;
}

.modalForgotPassword {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 90%;
  min-height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 15px;
  z-index: 32;
}

.modalRegister {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 90%;
  min-height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 15px;
  z-index: 32;
}

@media (min-width: 768px) {
  .modalLogin {
    width: 450px;
  }

  .modalForgotPassword {
    width: 450px;
  }

  .modalRegister {
    width: 650px;
  }
}

/* loader */

.spinner {
  border: 6px solid rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: #9D1F2E;
  position: absolute;
  left: 50%;
  top: 40%;
  animation: spin 1s ease infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.header {
  background-image: url("/img/headerModal.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top right;
}


/* Estilos adicionales para la tabla de fondos */
.funds-table-container {
  max-height: 85vh;
  overflow-y: auto;
}

.funds-table thead th {
  position: sticky;
  /* Hacer que el encabezado quede fijo */
  top: 0;
  /* Posición fija en la parte superior */
  background-color: #9D1F2E;
  /* primaryRed */
  z-index: 2;
  /* Asegurar que el thead esté por encima del tbody */
}

.funds-table tbody tr:nth-child(4n),
/* Segunda fila del grupo */
.funds-table tbody tr:nth-child(4n-1) {
  /* Primera fila del grupo */
  background-color: #f5f4f3;
  /* Color para el grupo 1 */
}

.funds-table tbody tr:nth-child(4n-2),
/* Segunda fila del siguiente grupo */
.funds-table tbody tr:nth-child(4n-3) {
  /* Primera fila del siguiente grupo */
  background-color: #fcfaf8;
  /* Color para el grupo 2 */
}


/* Estilo del track del scrollbar */
.funds-table-container::-webkit-scrollbar {
  width: 0px;
  /* para que no se vea el scroll */
}

.funds-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 7px;
}

/* Estilo del "pulgar" del scrollbar */
.funds-table-container::-webkit-scrollbar-thumb {
  background: #9D1F2E;
  border-radius: 5px;
}

/* Hover del "pulgar" */
.funds-table-container::-webkit-scrollbar-thumb:hover {
  background-color: #7f1d1d;
}



/* Estilos para checkboxes */

.check-container {
  display: block;
  position: relative;
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.check-container>p {
  padding-left: 30px;
  font-size: 0.8rem;
  color: #555;
}

/* Hide the browser's default checkbox */
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border-radius: 5px;
  border: 1px solid black;
}

/* On mouse-over, add a grey background color */
.check-container:hover input~.checkmark {
  background-color: white;
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked~.checkmark {
  background-color: white;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.check-container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.check-container .checkmark:after {
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* overlay exclusiva para documentos */
.overlayDoc {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  z-index: 24; /* > que otras overlays */
}
#docModal { z-index: 25; } /* por encima de .overlayDoc */


/* ↓ frame exacto (sin espacio fantasma) */
.imgFrame{
  display:inline-block;
  vertical-align: top;
  line-height: 0;
  padding:4px;                /* los 3px */
  border:2px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  background:#F3F4F6;
  margin-bottom:0;            /* por si acaso */
}

/* ↓ la imagen no deja gap */
.imgAccordeon{
  max-height:154px;
  display:block;
  height:auto !important;
  width:auto;
  object-fit:contain;
  background:#fff;
  border-radius:10px;
}

/* ↓ elimina margen por defecto del párrafo al lado (evita empujar el alto) */
.descriptionBox p{ margin:0; }

/* ↓ por si persiste: asegura que no quede altura fija al cargar */
.desplegable{ height:auto !important; }

