@import url(css/font-claro.css);
@font-face {
  font-family: "AMX Medium";
  src: url("fonts/AMX-Medium.woff2") format("woff2"),
    url("fonts/AMX-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AMX";
  src: url(fonts/AMX-Regular.woff2) format("woff2"),
    url(fonts/AMX-Regular.woff) format("woff");
  font-weight: 400;
}
@font-face {
  font-family: "AMX Bold";
  src: url(fonts/AMX-Bold.woff2) format("woff2"),
    url(fonts/AMX-Bold.woff) format("woff");
  font-weight: 600;
}

:root {
  --primary-color: #da291c;
  --secondary-color: #f65041;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-color: #3c3c3c;
  --light-color: #f4f4f4;
  --light-color-secondary: #dbdbdb;
}

body {
  font-family: "AMX", "Roboto", sans-serif;
  background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "AMX Bold", "Roboto", sans-serif;
}
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-custom {
  background: linear-gradient(
    0deg,
    rgb(246 246 246 / 76%),
    rgb(245 245 245 / 60%)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 64px;
  padding: 0px;
}
.card {
  border: 0px solid;
  box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
}
.cardStats {
  background: rgba(224, 231, 246, 32%);
}
.btn-primary-custom {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
  color: #fff;
}

.card-custom {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.form-control-custom {
  border-radius: 15px;
  border: 2px solid #e5e7eb;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.link-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.link-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.copy-btn {
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.alert-custom {
  border-radius: 15px;
  border: none;
  padding: 15px 55px 15px 25px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideInDown 0.3s ease-out;
  position: fixed !important;
  z-index: 999991000;
  max-width: 99vw !important;
  right: 0;
  margin-right: 20px;
}

.alert-custom .btn-close {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.alert-custom .btn-close:hover {
  opacity: 1;
}
.menuHeader {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
}
.headerContainer {
  height: 100%;
}
.navbar-collapse {
  height: 100%;
}
.navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.headerContainer li a {
  font-family: "AMX Medium";
  padding: 20px 20px !important;
  cursor: poiner;
}
.headerContainer li.active a {
  background: linear-gradient(#b52217 0%, #da291c 100%);
  padding: 20px 20px;
}
.headerContainer li.active a {
  color: #fff;
  padding: 20px 20px;
}
.headerContainer li a:hover {
  background: linear-gradient(#b52217 0%, #da291c 100%);
  color: #fff;
}
.btnList {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  gap: 32px;
}
.btnListCont {
  text-align: center;
  line-height: 18px;
}
.btnListCont:hover {
  cursor: pointer;
}
.btnListCont p {
  margin-bottom: 0px;
}
.btnListCont i {
  font-size: 24px;
}
.contCard p {
  margin-bottom: 0;
}
.contCard a {
  color: #1a1a1a;
}
.logoutbtn {
  color: #1a1a1a;
  text-decoration: none;
  border: 2px solid #d5281b;
  border-radius: 25px;
  padding: 8px 29px;
  font-weight: 500;
  font-family: "AMX Medium";
}
.logoutbtn:hover {
  color: #fff;
  background: #d5281b;
  text-decoration: none;
  border: 2px solid #d5281b;
  border-radius: 25px;
  padding: 8px 29px;
  font-weight: 500;
  font-family: "AMX Medium";
}
@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.alert-custom.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Estilos para modal de confirmación */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header.bg-danger {
  border-radius: 15px 15px 0 0;
}

.modal-footer {
  border-radius: 0 0 15px 15px;
  border-top: 1px solid #dee2e6;
}

.modal-body .alert {
  border-radius: 10px;
  border: none;
}

.modal-body .fas.fa-trash-alt {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Estilos para alertas flotantes */
.alert.position-fixed {
  animation: slideInRight 0.3s ease-out;
}
.titlePrimary {
  position: relative;
  font-family: "AMX Bold", "Roboto", sans-serif;
}
.titlePrimary:before {
  content: "";
  position: absolute;
  background: #ffc721;
  width: 60px;
  height: 6px;
  bottom: -6px;
  border-radius: 6px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.gtm-section {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  margin-top: 24px;
  border-left: 4px solid var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    45d,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin: 0 auto 20px;
}
.loginCard {
  justify-content: center !important;
  max-width: 400px;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-primary-custom {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
  }

  .card-custom {
    margin: 10px 0;
  }

  .link-item {
    padding: 15px;
  }
  .loginCard {
    justify-content: center !important;
    max-width: 360px;
    width: 100%;
  }
}

/* Estados de secciones */
.section-hidden {
  display: none !important;
}

.section-visible {
  display: block !important;
}

/* Botones pequeños para QR */
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.25;
  border-radius: 0.375rem;
}

/* Estados de QR en la tabla */
.qr-status .badge {
  font-size: 0.7rem;
  padding: 0.35em 0.6em;
}

.qr-status .badge.bg-success {
  background: linear-gradient(45deg, var(--success-color), #059669) !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.qr-status .badge.bg-secondary {
  background: #6b7280 !important;
}

/* Botones de grupo verticales */
.btn-group-vertical .btn {
  margin-bottom: 2px;
}

.btn-group-vertical .btn:last-child {
  margin-bottom: 0;
}

/* Estilos para modales de QR */
.modal-lg .modal-content {
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-bottom: none;
  padding: 1.5rem;
}

.modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* QR Preview Container */
#qr_preview_container {
  min-height: 200px;
}

#qr_preview_placeholder {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #dee2e6 !important;
  background: #f8f9fa !important;
  transition: all 0.3s ease;
}

#qr_preview_placeholder:hover {
  border-color: var(--primary-color) !important;
  background: #fff !important;
}

/* Logo Preview */
#logo_preview_container {
  border: 2px dashed #e5e7eb;
  border-radius: 15px;
  padding: 1rem;
  background: #f9fafb;
  transition: all 0.3s ease;
}

#logo_preview_container.active {
  border-color: var(--success-color);
  background: #ecfdf5;
}

#logo_preview {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#logo_preview:hover {
  transform: scale(1.05);
}

/* Drag & Drop para logo */
.file-drop-area {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  background: #f9f9f9;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-drop-area:hover,
.file-drop-area.dragover {
  border-color: var(--primary-color);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-drop-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-area .drop-message {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

/* Configuraciones de QR */
.form-control-color {
  height: 2.5rem;
  border-radius: 10px;
}

.form-select {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
}

/* Display de QR generado */
#qr_display_container img {
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

#qr_display_container img:hover {
  transform: scale(1.02);
}

/* Botones de acción del QR */
.btn-success {
  background: linear-gradient(45deg, var(--success-color), #059669);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  background: linear-gradient(45deg, #059669, #047857);
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  color: #fff;
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  max-height: 40px;
  border-radius: 100px !important;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  max-height: 40px;
  border-radius: 100px !important;
}
.btn-outline-primary,
.btn-outline-secondary {
  max-height: 40px !important;
  padding: 8px 1.5rem !important;
  font-size: 14px !important;
  min-width: 220px;
  border-radius: 100px !important;
  text-decoration: none;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
  background: var(--primary-color) !important;
  color: white;
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.3);
  border: 2px solid var(--primary-color);
  border-radius: 100px !important;
}

.input-group > input {
  max-height: 40px !important;
  padding: 10px 20px !important;
}
/* Modal de editar enlace */
#editLinkModal .alert-warning {
  border-left: 4px solid var(--warning-color);
  background: #fefcf3;
  border-radius: 12px;
}

/* Información del enlace */
.card.bg-light {
  background: #f8f9fa !important;
  border-radius: 12px;
  border: none;
}

.card.bg-light .card-body {
  padding: 1rem 1.25rem;
}

/* Animaciones para carga */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.modal-body > .btn-close {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  margin: 15px !important;
}
input:focus {
  border: 1px solid #ddd !important;
}
.searchIcon {
  position: absolute;
  z-index: 1;
  padding: 10px;
  color: #848484;
  width: 40px;
  height: 40px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estados de botones */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.stats-card {
  transition: transform 0.2s ease-in-out;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.bg-gradient-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
}

.bg-gradient-success {
  background: linear-gradient(45deg, #28a745, #20c997);
}

.bg-gradient-warning {
  background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.bg-gradient-info {
  background: linear-gradient(45deg, #17a2b8, #6f42c1);
}

.link-card {
  border: none;
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.link-card:hover {
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
  border-left-color: #0056b3;
}

.device-progress {
  height: 8px;
  border-radius: 4px;
}

.contView {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

.contCard {
  position: relative;
  max-width: 33%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pagination {
  gap: 12px;
}
.pagination li span.page-link {
  height: 24px;
  width: 24px;
  border-radius: 50px !important;
  text-align: center;
  border: 1px solid #666 !important;
  font-size: 14px !important;
  padding: 2px;
}
.pagination li a.page-link {
  height: 24px;
  width: 24px;
  border-radius: 50px !important;
  text-align: center;
  border: 1px solid #666 !important;
  color: #666;
  font-size: 10px !important;
  padding: 5px !important;
}
.pagination li.page-item.active a {
  height: 24px;
  width: 24px;
  border-radius: 50px !important;
  text-align: center;
  border: 1px solid #666 !important;
  background-color: var(--primary-color);
  color: #fff;
}

/* Removes the default browser outline */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Removes Bootstrap's custom focus box-shadow (the blue glow) */
.form-control:focus,
.btn:focus,
a:focus {
  box-shadow: none !important;
}

.deleteBoton {
  color: #ffffff;
  height: 20px;
  width: 20px;
  border: 1px solid #666;
  padding: 6px 5px 1px 5px;
  line-height: 3px;
  border-radius: 100px;
  background: #d94e4e;
  margin-left: 5px;
}
@media (max-width: 992px) {
  .contView {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .contCard {
    position: relative;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Estilos para el modal de estadísticas */
  .modal-lg {
    max-width: 800px;
  }

  .btnListCont {
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .btnListCont:hover {
    transform: translateY(-2px);
    opacity: 0.8;
  }

  #linkStatsChart {
    height: 300px !important;
  }

  .spinner-border {
    width: 2rem;
    height: 2rem;
  }
}
/* Responsive para QR */
@media (max-width: 768px) {
  .btn-xs {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  .modal-lg .modal-dialog {
    max-width: 95%;
    margin: 1rem;
  }

  #qr_display_container img {
    max-width: 100%;
  }

  .btn-group-vertical .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .qr-status .badge {
    font-size: 0.65rem;
  }
}

@media (max-width: 576px) {
  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1rem;
  }

  .btn-xs {
    display: block;
    width: 100%;
    margin-bottom: 2px;
  }
}

/* Efectos hover para tablas */
.table tbody tr:hover {
  background-color: #f8f9fa;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Iconos mejorados */
.fas.fa-qrcode {
  color: var(--primary-color);
}

.fas.fa-eye {
  color: var(--success-color);
}

.fas.fa-sync-alt {
  color: var(--warning-color);
}

.fas.fa-edit {
  color: #6366f1;
}

.fas.fa-trash {
  color: var(--danger-color);
}
