@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;700&family=Rokkitt:ital,wght@0,400;0,700;1,400;1,700&display=swap");

.card-header {
  padding: 0.5rem 1rem !important;
}

body {
  font-family: "Lexend", sans-serif !important;
}

.body-bg {
  background-image: url('../images/bg-web-b-01.jpg');
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Versión para móviles */
@media (max-width: 768px) {
  .body-bg {
    background-size: cover;
  }
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rokkitt", serif !important;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
  z-index: 1500;
}

/*CARD TOOGLE STYLES*/

.card-toggle {
  transition: transform 0.3s ease;
}

.card-toggle:hover {
  transform: scale(1.1);
}

#main .navHome {
  display: inline-flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  width: 100%;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0px 5%;
  z-index: 1;
}

#main {
  width: 100%;
  height: 100vh;
  position: relative;
}

#main video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#main .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(75, 0, 62, 0.5);
  /* Color #4B003E con 50% de transparencia */
  z-index: 1;
  /* Capa de superposición debajo del texto */
}

#main .main-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  z-index: 2;
  /* Asegura que el texto esté por encima de la capa de superposición */
}

.img-brand-nav {
  max-height: 25px;
}

.bg-primary {
  background-color: #511642 !important;
}

.text-primary {
  color: #511642 !important;
}

.btn-primary {
  background-color: #511642 !important;
  border-color: #511642 !important;
}

.card-title {
  color: #8b3a77 !important;
}

.folder-card {
  transition: background-color 0.3s, box-shadow 0.3s;
  color: #511642;
}

.folder-card:hover {
  background-color: rgba(139, 58, 119, 0.25);
  color: #fff;
  cursor: pointer;
}

.img-top-logo {
  max-height: 45px;
}

/* Añadir estos estilos al final del CSS existente */
.edit-title-container {
  max-width: 90%;
}

.edit-title-container input:not([readonly]) {
  background-color: #fff;
  border-color: #ced4da;
}

.edit-title-container input[readonly] {
  background-color: transparent;
  border-color: transparent;
  font-weight: 500;
  font-size: 1.1rem;
  color: #212529;
}

.file-title-link {
  cursor: pointer;
}

.file-title-link:hover {
  text-decoration: underline !important;
}

/* Estilos para la previsualización de distintos tipos de archivos */
.file-preview {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.file-preview iframe {
  width: 100%;
  height: 100%;
}

/* Añadir estos estilos adicionales para mejorar la previsualización */
.max-preview-height {
  max-height: 70vh;
  object-fit: contain;
}

.file-preview {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  min-height: 300px;
  max-height: 70vh;
  overflow: hidden;
}

.file-preview iframe,
.file-preview video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Estilos para iconos de tipos de archivo */
.file-type-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.file-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.debug-display {
  border: 1px dashed var(--bs-warning, #ffc107) !important;
  white-space: pre-wrap;
  /* Mantiene los saltos de línea */
  word-wrap: break-word;
  /* Permite el ajuste de línea */
  font-size: .875em;
  color: #444 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__delay-1s {
  animation-delay: 0.5s;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}