@font-face {
  font-family: 'Roboto';
  src: url("./Roboto/Roboto-Regular.ttf") format('truetype');
  font-style: normal;
  font-weight: 400;
}

:root {
  --white: #fff;
  --black: #000;
  --navbar: #f36b39;

  --success: #0a7020;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #0d6efd;

  --primary-color: #f36b39;
  --primary-hover: #f0845d;

  --backgroup: #f1f1f1;
  --backgroup-form: #ffffff;

  --borde-input: #cdc6c6;

  --border-color: #cbd5e1;
  --help-text-color: #f0845d;
  --card-bg: #ffffff;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto";
  text-decoration: none;
  outline: none;
}

/*precarga*/

#precargar {
  height: 100vh;
  width: 100vw;
  right: 0px;
  left: 0px;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#precargar-img {
  width: 8rem;
  height: 8rem;
  animation: imagen 1s linear infinite;
  /* border-radius: 50%; */
}

@keyframes imagen {
  0% {
    opacity: 1;
  }

  25% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.5;
  }

  75% {
    opacity: 0.75;
  }

  100% {
    opacity: 1;
  }
}

/*fin precarga*/

/*body*/
.body {
  opacity: 0.5;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 60px 1fr 60px;
  grid-template-areas:
    "navbar"
    "main"
    "footer";
  background-color: var(--backgroup);
}

.inicio-smartlink {
  padding: 20px 0px;
  display: grid;
  justify-content: end;
}

.inicio-smartlink a {
  color: var(--primary-color);
}

.inicio-smartlink a:hover {
  color: var(--primary-hover);
}

.grid {
  display: grid;
}

.grid-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.justify-center {
  justify-content: center;
}

.tabla {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  place-content: center;
  place-items: center;
  overflow-x: auto;

}

.tabla-div {
  width: 100%;
  overflow-x: auto;
}

td.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

table {
  margin: auto;
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

tr {
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.border {
  border: 1px solid var(--black);
}

th,
td {
  /* border: 1px solid #ddd; */
  padding: 12px;
  font-size: 14px;
  min-width: 3rem;
  word-wrap: break-word;
}

tr:nth-child(even) {
  background-color: #ebedf5;
}

tr.green:hover {
  background-color: var(--hover-tabla-inactivo) !important;
  transition: all 0.5s ease;
}

tr.green {
  background-color: var(--green) !important;
  transition: all 0.5s ease;
}

tr:hover {
  background-color: var(--hover-tabla);
  color: var(--black);
  transition: all 0.5s ease;
}


.head-buscar th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: var(--navbar) !important;
  color: var(--white) !important;
}

.tabla .caption {
  font-size: 16px;
  padding: 10px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tabla .caption select {
  padding: 5px;
}

.tabla .caption .paginador {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.tabla .caption .paginador .npaginas {
  padding-top: 5px;
}

.body.expande .tabla {
  max-width: 100vw;
  transition: max-width 0.5s ease;
}

/*fin body*/

nav {
  top: 0px;
  position: sticky;
  grid-area: navbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  background-color: var(--navbar);
  box-shadow: 0px 0px 10px var(--box-shadow);
  z-index: 1;
}

#logo {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#login {
  width: 100%;
  padding: 0px 25px 0px 25px;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}

#login a i {
  pointer-events: none;
}

#login a {
  color: var(--white);
  font-weight: bold;
}

.login-inicio-item {
  position: absolute;
  top: 60px;
  right: 0px;
  height: 0rem;
  padding: 0 0 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  width: 14.6rem;
  background-color: var(--navbar);
  overflow: auto;
  visibility: hidden;
  transition: all 0.5s ease-out;
}

.login-inicio-item.click {
  height: calc(100vh - 70vh);
  /* overflow: auto; */
  padding: 1rem;
  visibility: visible;
}

.login-inicio-item .item-sesion {
  padding: 10px;
}


.login-inicio-item a {
  color: var(--white);
  width: 100%;
  padding: 10px;
  font-weight: bold;
  border-radius: 10px;
}

.login-inicio-item a:hover {
  background-color: var(--primary-hover);
}

.navbar-item {
  display: flex;
  gap: 0px 20px;
}

.navbar-item>a:hover {
  color: var(--color-texto-hover) !important;
}

#logo img {
  width: 4rem;
  height: 4rem;
  margin-top: 2rem;
  /* border-radius: 50%; */
  transition: transform 0.5s ease;
}

/*fin nav*/

/*menu contenido*/
main {
  grid-area: main;
  padding: 0px 20px 0px 20px;
}

.form-content.login-inicio {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 142px);
}

.form-login #logo-login {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-login #logo-login img {

  height: 8rem;
  /* border-radius: 50%; */
}

.form-element.border {
  width: 30rem;
  border: none;
  border-radius: 5px;
  padding: 25px 0 25px 0;
  background-color: var(--backgroup-form);
}

.form-element {
  width: 100%;
  border-radius: 5px;
}

.titulo-form {
  text-align: center;
  font-weight: bold;
  font-size: 28px;
  padding: 20px 0 20px 0;
}

.form-login .campos-form {
  width: 100%;
}

.campos-form .campo-dato {
  height: 40px;
  width: 100%;
  position: relative;
}

.campos-form .campo-dato input,
.campos-form .campo-dato textarea,
.campos-form .campo-dato select {
  height: 100%;
  width: 100%;
  font-size: 17px;
  background-color: var(--backgroup);
  padding: 0px 30px 0px 10px;
  border-radius: 5px;
  border: 1px solid var(--borde-input);
}

.campos-form.content-m .campo-dato.start.auto .btn-form {
  padding: 0px;
}

/* .campos-form.content-m .campo-dato.start.auto .btn-form button {
  width: 100%;
} */

.campos-form .campo-dato select {
  padding: 0px 40px 0px 10px;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(248, 132, 0, 0.26);
}

.campos-form .campo-dato i {
  font-size: 24px;
  font-weight: bold;
  color: var(--black);
}

.campos-form .campo-dato .show {
  position: absolute;
  bottom: 5px;
  right: 10px;
}

.campos-form .campo-dato .icon-user {
  position: absolute;
  bottom: 5px;
  right: 10px;
}


textarea {
  padding: 10px 30px 20px 10px !important;
  height: 100px !important;
  width: 100% !important;
  resize: none;
  outline: none;
}

.form-content.login-inicio .btn-form {
  text-align: center;
  padding: 5px;
  margin: 10px;
}

.btn-editar {
  background-color: var(--color-editar);
  border: 1px solid var(--color-editar);
  color: var(--black) !important;
}

/* .btn-editar:hover {
  background-color: var(--color-editar-hover);
  color: var(--white) !important;
} */

/*fin form-login*/

/*inicio*/


/*card*/
.card {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.card .card-titulo {
  font-size: 22px;
  border: 1px solid var(--border-form);
  background-color: var(--navbar);
  padding: 10px 0px;
  text-align: center;
  border-radius: 0.3rem;
  color: var(--black);
}

.card .card-item {
  flex: 1 1 18rem;
  box-shadow: 0px 0px 10px rgb(201, 208, 223);
  border-radius: 0.3rem;
}

.card .card-item:nth-child(1) .contenido .item1 .total-genero {
  gap: 50px;
}

.card .card-item:nth-child(1) .contenido .item1 .total-genero .genero p:last-child {
  font-size: 28px;
}

.card .card-item:nth-child(1) {
  flex: 1 1 100%;
}

.card .card-item .contenido {
  width: 100%;
  padding: 20px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.card .card-item .contenido .item1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card .card-item .contenido .item1 .total-genero {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
  gap: 20px;
}

.card .card-item .contenido .item1 .genero {
  font-size: 16px;
}

.card .card-item .contenido .item1 .card-link button {
  font-size: 11px;
  color: var(--black);
  background-color: var(--navbar);
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

.card .card-item .contenido .item1 .card-link button:hover {
  color: var(--white);
  cursor: pointer;
}

.card .card-item .contenido .item2 .total {
  font-size: 28px;
}

/*fin card*/

/*fin inicio*/

/*footer*/
footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  border-top: 1px solid var(--color-border);
  padding: 10px 20px 10px 20px;
}

.form-content {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campo-dato .flecha {
  position: absolute;
  left: calc(100% - 40px);
  bottom: 0.2rem;
  font-size: 17px;
  pointer-events: none;
}

/*style view inscripcion*/

.space-between {
  justify-content: space-between;
}

.space-around {
  justify-content: space-around;
}

/*fin style view inscripcion*/

@media (max-width: 594px) {

  .login-inicio-item {
    width: 100% !important;
    left: 0px;
  }

  .grid-2 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .grid-3 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .grid-4 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .grid-5 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .grid-6 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .campo-dato.start.auto {
    grid-template-columns: repeat(1, auto);
  }

  .campos-form.content-m {
    padding-bottom: 2rem;
    grid-template-columns: repeat(1, auto);
  }

  .notificaciones-contenido .toast-contenido {
    width: calc(100% - 10%) !important;
  }

  .campos-form.grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  section .btnverificar {
    order: 2;
  }

  section .btningresar {
    order: 1;
  }

  .form-element.border {
    width: 100%;
  }

  .inicio-smartlink {
    grid-template-columns: auto auto !important;
  }

}

.font-1 {
  font-size: 8px !important;
}

.font-2 {
  font-size: 10px !important;
}

.font-3 {
  font-size: 12px !important;
}

.font-4 {
  font-size: 14px !important;
}

.font-5 {
  font-size: 16px !important;
}

.font-6 {
  font-size: 18px !important;
}

/*fin formulario row*/

@media (max-width: 850px) {

  .body .tabla {
    max-width: 100vw;
  }

  .notificaciones-contenido {
    margin-left: 0px !important;
  }
}

@media (max-width: 1069px) {
  .lista-informacion {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transition: background-color 0.5s ease;
}

button:disabled {
  background: #9a9eb2 !important;
}

.none-error {
  display: none;
}

.form-error.is-active {
  font-size: 12px;
  display: block;
  animation: show-mess 1s 1 normal 0s ease-out both;
  /*nombre de la animacion show-message, duracion 1s se ejecuta 1 ves, normal, sin retardo, concervando los estilos cuando termine*/
}

@keyframes show-mess {
  0% {
    visibility: hidden;
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
  
}

/*definidos*/

.display-none {
  display: none;
}

.center {
  text-align: center !important;
}

.start {
  text-align: start !important;
}

.end {
  text-align: end !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 4rem !important;
}

.mt-5 {
  margin-top: 5rem !important;
}

.mt-6 {
  margin-top: 6rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 4rem !important;
}

.mb-5 {
  margin-bottom: 5rem !important;
}

.mb-6 {
  margin-bottom: 6rem !important;
}

.btn {
  width: 100%;
  font-size: 16px;
  /* font-weight: bold; */
  /* border-radius: 5px; */
  padding: 8px;
  cursor: pointer;
  color: var(--white);
  /* border: 1px solid var(--black); */
}

.w-auto {
  width: auto !important;
}

.w-10 {
  width: 10% !important;
}

.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.p-0 {
  padding: 0px !important;
}

.p-1 {
  padding: 5px !important;
}

.p-2 {
  padding: 10px !important;
}

.p-3 {
  padding: 15px !important;
}

.p-4 {
  padding: 20px !important;
}

.btn-success {
  background-color: var(--success);
  border: 1px solid var(--success);
  border-radius: 5px;
}

.btn-success:hover {
  background-color: var(--color-success);
  color: var(--black);
}

.btn-warning {
  background-color: var(--warning);
  border: 1px solid var(--warning);
  border-radius: 5px;
  color: var(--black);
}

/* .btn-warning:hover {
  background-color: var(--color-warning-hover);
  color: var(--white);
} */

.btn-danger {
  background-color: var(--first-color-danger);
  border: 1px solid var(--first-color-danger);
  border-radius: 5px;
  color: var(--black);
}

/* .btn-danger:hover {
  background-color: var(--first-color-danger-hover);
  color: var(--white);
} */

.btn-error {
  background-color: var(--first-color-danger);
  border: 1px solid var(--first-color-danger);
}

/* .btn-error:hover {
  background-color: var(--first-color-danger-hover);
  color: var(--white);
} */

.btn-info {
  background-color: var(--info);
  border: 1px solid var(--info);
}

/* .btn-info:hover {
  background-color: var(--info-hover);
  color: var(--white);
} */

.btn-sm {
  font-size: 14px;
  border-radius: 5px;
  padding: 6px;
}

.gap-1 {
  gap: 1rem !important;
}

.gap-2 {
  gap: 2rem !important;
}

.gap-3 {
  gap: 3rem !important;
}

.gap-4 {
  gap: 4rem !important;
}

.gap-5 {
  gap: 5rem 1rem !important;
}

.gap-5y {
  gap: 5rem 1rem !important;
}

.gap-6 {
  gap: 1rem 6rem !important;
}


.btn-green {
  background-color: var(--green) !important;
  border: 1px solid var(--border-input) !important;
}

.btn-green:hover {
  background-color: var(--green) !important;
  color: var(--white);
}

button>i {
  pointer-events: none !important;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
}


input[type=file]::file-selector-button {
  background-color: #b6b4b4;
  color: #000;
  border: 1px solid var(--color-inactivo-line);
  border-radius: 5px 0px 0px 5px;
  border-right: 1px solid #a5a5a5;
  padding: 10px 15px;
  cursor: pointer;
  transition: .5s;
}

input[type=file] {
  border: 1px solid #b6b4b4;
  ;
  width: 100%;
  border-radius: 5px;
  padding: 0px !important;
}

input[type=file]::file-selector-button:hover {
  background-color: #e2e1e1;
}

.border {
  /* border: 1px solid var(--color-inactivo-line); */
  border-radius: 5px;
  border: 1px solid #a5a5a5;
}

.place-center {
  place-content: center;
  place-items: center;
}

.padding-0 {
  padding: 0px !important;
}

.input-fecha {
  height: 2rem;
  border: none;
  font-size: 17px;
  border-bottom: 2px solid var(--color-inactivo-line);
  background-color: var(--backgroup-input);
  padding: 0px 30px 0px 10px;
}

.checkbox-align-center {
  width: 100%;
  /* O un ancho fijo si lo necesitas */
  text-align: start;
  /* Alinea los elementos internos (checkbox y label) al centro */
}

/* Opcional: para centrar verticalmente */
.checkbox-align-center input[type="checkbox"],
.checkbox-align-center label {
  vertical-align: middle;
}

/* Opcional: para centrar verticalmente */
.checkbox-align-center label {
  padding-left: 20px;
}

.centrar-grid {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, 15rem) !important;
  gap: 20px;
}

.help-text {
  display: block;
  margin-top: 5px;
  color: var(--help-text-color);
  font-size: 12px;
}

/* Grupo especial para la URL del Slug */
.url-input-group {
  height: 100%;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.url-prefix {
  height: 100%;
  padding: 10px 12px;
  color: var(--black);
  background-color: var(--primary-color);
  font-size: 14px;
  user-select: none;
  white-space: nowrap;
}

.url-input-group input {
  border: none;
  border-radius: 0;
  background-color: var(--card-bg);
}

.url-input-group input:focus {
  box-shadow: none;
}

.url-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cover {
  width: 300px;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.wrapper {
  width: 100%;
  display: grid;
  place-items: center;
  justify-content: stretch;

}

.list a {
  width: 100px;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  padding: 5px;
  border-radius: 5px;
  color: var(--white);
  font-weight: bold;
}

.list a span {
  color: var(--white);
}

.backgroup {
            background: white;
            padding: 20px;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }