* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #00669c 0%, #004d7a 50%, #003d62 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Animaciones personalizadas para Tailwind */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceGentle {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}


#orange-circle,
#blue-circle,
#green-circle,
#white-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border-width: 0;
  border-radius: 50%;
  transform: scale(0);
  transform-origin: center;
}


#orange-circle {
  background-color: #FE9A0C;
  z-index: 1;
  animation: 1s expand-circle;
  animation-fill-mode: forwards;
}


#green-circle {
  background-color: #009B00;
  z-index: 2;
  animation: 1s expand-circle;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}


#blue-circle {
  background-color: #00669c;
  z-index: 3;
  animation: 1s expand-circle;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}


#white-circle {
  background-color: white;
  z-index: 4;
  animation: 1s expand-circle;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}



#logo {
  position: absolute;
  width: 150px;
  height: 150px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  animation: .5s showLogo;
  animation-delay: 1.8s;
  animation-fill-mode: forwards;
}

#animation_div {
  animation: hidden 1s ease-in-out 3s forwards;
  background-color: white;
  z-index: 2;
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  height: 400px;
  width: 100% !important;
}


#container-prices, .show-animation {
  animation: show 1s ease-in-out forwards;
}



@keyframes hidden {
  from {
      opacity: 1;
  }

  to {
      opacity: 0;
  }
}

@keyframes show {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

@keyframes showLogo {
  from {
      opacity: 0;
      width: 150px;
      height: 150px;
  }

  to {
      opacity: 1;
      width: 200px;
      height: 200px;
  }
}


@keyframes expand-circle {
  0% {
      transform: scale(0);
      border-radius: 50%;
  }

  80% {
      transform: scale(0.8);
      border-radius: 50%;
  }

  100% {
      transform: scale(1);
      border-radius: 0;
  }
}


/* Optimizaciones para tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  #logo {
    width: 140px;
    height: 140px;
  }
  
  @keyframes showLogo {
    from {
      opacity: 0;
      width: 140px;
      height: 140px;
      transform: translate(-50%, -50%) scale(0.8);
    }
    to {
      opacity: 1;
      width: 160px;
      height: 160px;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* Optimizaciones para móviles */
@media screen and (max-width: 768px) {
  @keyframes expand-circle {
      0% {
          transform: scale(0);
          border-radius: 50%;
      }

      80% {
          transform: scale(0.8);
          border-radius: 50%;
      }

      100% {
          transform: scale(1);
          border-radius: 0;
      }
  }
  
  /* Mejoras de usabilidad para móviles */
  .scanDiv {
    min-height: 56px; /* Tamaño mínimo recomendado para touch */
    touch-action: manipulation;
  }
  
  /* Asegurar que el logo se mantenga centrado en móviles */
  #logo {
    width: 130px;
    height: 130px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Animación del logo optimizada para móviles */
  @keyframes showLogo {
    from {
      opacity: 0;
      width: 130px;
      height: 130px;
      transform: translate(-50%, -50%) scale(0.8);
    }
    to {
      opacity: 1;
      width: 150px;
      height: 150px;
      transform: translate(-50%, -50%) scale(1);
    }
  }
  
  /* Optimización de scroll en móviles */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mejoras de rendimiento - solo para elementos que no tienen animaciones */
  .scanDiv, button, .card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Estilos adicionales para mejor experiencia móvil */
@media screen and (max-width: 480px) {
  .card {
    margin: 0.5rem;
    border-radius: 1.5rem;
  }
  
  /* Ajustes de texto para pantallas pequeñas */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 0.875rem;
  }
  
  /* Botones más grandes para touch */
  button {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  
  /* Ajustes específicos para el logo en móviles */
  #logo {
    width: 120px;
    height: 120px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Asegurar que la animación del logo funcione correctamente */
  @keyframes showLogo {
    from {
      opacity: 0;
      width: 120px;
      height: 120px;
      transform: translate(-50%, -50%) scale(0.8);
    }
    to {
      opacity: 1;
      width: 140px;
      height: 140px;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* Animaciones suaves para interacciones */
.scanDiv:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.scanDiv:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Colores corporativos personalizados */
:root {
  --corporate-blue: #00669c;
  --corporate-orange: #FE9A0C;
  --corporate-green: #009B00;
  --corporate-blue-light: rgba(0, 102, 156, 0.1);
  --corporate-orange-light: rgba(254, 154, 12, 0.1);
  --corporate-green-light: rgba(0, 155, 0, 0.1);
}

/* Optimizaciones de rendimiento */
* {
  will-change: auto;
}

#animation_div * {
  will-change: transform, opacity;
}

/* Clases de utilidad para los colores corporativos */
.text-corporate-blue { color: var(--corporate-blue); }
.text-corporate-orange { color: var(--corporate-orange); }
.text-corporate-green { color: var(--corporate-green); }

.bg-corporate-blue { background-color: var(--corporate-blue); }
.bg-corporate-orange { background-color: var(--corporate-orange); }
.bg-corporate-green { background-color: var(--corporate-green); }

.bg-corporate-blue-light { background-color: var(--corporate-blue-light); }
.bg-corporate-orange-light { background-color: var(--corporate-orange-light); }
.bg-corporate-green-light { background-color: var(--corporate-green-light); }

/* Estilos para reemplazar Tailwind CSS */
.hidden { display: none !important; }

/* Layout y contenedores */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* Espaciado */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

/* Colores de fondo */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); }

/* Colores de texto */
.text-white { color: white; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }

/* Tamaños de texto */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Peso de fuente */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Bordes y esquinas redondeadas */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Sombras */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Transiciones y transformaciones */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:text-gray-200:hover { color: #e5e7eb; }
.active\:scale-95:active { transform: scale(0.95); }

/* Animaciones */
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.animate-bounce-gentle { animation: bounceGentle 2s infinite; }
.animate-pulse-soft { animation: pulseSoft 2s infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Botones */
button {
  border: none;
  cursor: pointer;
  outline: none;
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Flexbox específico */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Tamaños específicos */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.min-h-\[300px\] { min-height: 300px; }

/* Bordes */
.border-t { border-top-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

/* Opacidad */
.opacity-10 { opacity: 0.1; }
.opacity-5 { opacity: 0.05; }
.opacity-80 { opacity: 0.8; }

/* Posicionamiento específico */
.-translate-y-16 { transform: translateY(-4rem); }
.translate-x-16 { transform: translateX(4rem); }
.translate-y-12 { transform: translateY(3rem); }
.-translate-x-12 { transform: translateX(-3rem); }

/* Clases específicas para el modal */
#overlay-modal {
  background-color: rgba(0, 0, 0, 0.75);
}

#modal-scan {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

/* Estilos para el botón de escaneo */
.scanDiv {
  width: 100%;
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #00669c 0%, #004d7a 100%);
  border: none;
  cursor: pointer;
  outline: none;
}

.scanDiv:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.scanDiv:active {
  transform: scale(0.95);
}

/* Estilos para el contenedor principal */
#container-prices {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.6s ease-out;
}

/* Estilos para la card principal */
.main-card {
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

/* Header de la card */
.card-header {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00669c 0%, #004d7a 50%, #003d62 100%);
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background-color: white;
  opacity: 0.1;
  border-radius: 50%;
  transform: translateY(-4rem) translateX(4rem);
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  background-color: white;
  opacity: 0.05;
  border-radius: 50%;
  transform: translateY(3rem) translateX(-3rem);
}

.card-header-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.card-header img {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background-color: white;
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-header .subtitle {
  color: #dbeafe;
  font-size: 0.875rem;
}

.card-header .date {
  color: #bfdbfe;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Contenido de la card */
.card-content {
  padding: 1.5rem;
}

.instructions {
  text-align: center;
  margin-bottom: 2rem;
}

.instructions-icon {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  animation: bounceGentle 2s infinite;
}

.instructions h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.instructions p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

.instructions .highlight {
  font-weight: 600;
  color: #2563eb;
}

/* Estado del escáner */
.scanner-status {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-color: #009B00;
}

/* Footer informativo */
.info-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.info-footer p {
  color: white;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Animaciones adicionales */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}