/* Disable text selection and context menus */
* {
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

/* Disable drag and drop */
img,
video,
audio {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none !important;
}

/* Prevent context menu on all elements */
body {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
}

:root {
  --animate-duration: 500ms;
  --animate-delay: 0.5s;
  --header-height: 139.64px;
  --bottom-height: 86px;
  --vh: 100vh; /* Valor predeterminado */
  color-scheme: light;
}
input {
  outline: none;
}
body {
  height: calc(var(--vh, 1vh) * 100);
}

header {
  max-height: var(--header-height);
  overflow-y: auto;
}

#backGroundPrimary {
  height: calc(100vh - var(--header-height));
}

#container-1-wrap {
  height: calc(100vh - 80px var(--header-height) - var(--bottom-height));
}

#nameProduct {
  height: var(--header-height);
  padding: 10px 0.5rem !important;
}

.logo-company-container {
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-company-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.custom-tab {
  padding: 4px;
  border-radius: 50%;
  border: 2px rgb(139, 139, 139) solid;
  overflow: hidden;
}

.content-img {
  height: calc(100vh - 385px);
}

.imageProduct {
  height: calc(100% - 100px);
}

.text-size {
  font-size: clamp(0.8rem, 2.3vw, 1.3rem);
}

.tab {
  white-space: nowrap;
  border: 1px solid black;
  padding: 6px 10px;
  margin: 0 7px;
  cursor: pointer;
}

.tab-content {
  padding: 1rem;
  flex-direction: column;
  overflow: hidden;
}

.active {
  background-color: #000000;
  color: white;
}

.no-scrollbar {
  scrollbar-width: none;
}

.active-content {
  display: flex;
}

.image-content {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  margin: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: ease 1s;
}

.modal-tab {
  position: absolute;
  z-index: 30;
  background-color: white;
  height: calc(100vh - var(--header-height) - var(--bottom-height));
  width: 100%;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

th,
td {
  padding: 10px;
  text-align: left;
  font-size: clamp(0.6rem, 2vw, 1rem);
}

th {
  background-color: #424242;
  color: white;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #f5f5f5;
}

tr:nth-child(odd) {
  background-color: #fff;
}

form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
}

input[type="email"],
input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 14px;
}

textarea {
  height: 100px;
  resize: none;
}

textarea {
  height: 100px;
  resize: none;
}

.social-icons {
  margin-top: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  cursor: pointer;
}

.animate__animated.animate__bounceInUp {
  --animate-duration: 0.9s;
  --animate-delay: 0.1s;
}

.cell-check {
  text-align: center;
}

.keen-slider__slide {
  overflow-y: auto !important;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus .dropdown-menu {
  display: block;
}

#btnContentPrize {
  min-height: 56px;
}

#btnOpenModalPrize,
#btnOpenModalLoyaltyProgram {
  height: 100% !important;
  min-height: 56px;
}

#btnOpenModalPrize > div,
#btnOpenModalLoyaltyProgram > div {
  min-height: 56px;
  height: 100%;
}

#modalPoints {
  height: 100vh;
  height: 100dvh;
}

#modalPoints .bg-white {
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
  position: relative;
}

/* teclado visibles  */
@media screen and (max-height: 600px) {
  #modalPoints .bg-white {
    overflow-y: auto;
  }

  #modalPoints .bg-gradient-to-r.from-indigo-600 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #modalPoints input[type="email"] {
    font-size: 16px !important;
    border-radius: 8px;
  }
}

/* Specific mobile input handling */
@media screen and (max-width: 768px) {
  #modalPoints input[type="email"] {
    font-size: 16px !important;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  #modalPoints input[type="email"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: scale(1.02);
  }

  /* scroll en el modal */
  #modalContent {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === styles modal zoom ========== */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 99999;
  touch-action: none;
}

.zoom-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 380px;
  height: 65vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  touch-action: none;
}

.zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 100001;
}

.zoom-btn {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
