@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/static/Montserrat-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.header {
  text-align: center;
  margin-bottom: 1rem;
}

.title {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

.highlight {
  color: #a2cc7e;
}

.subtitle {
  color: white;
  font-size: 4rem;
  font-weight: bolder;
  text-wrap: none;
  max-width: 700px;
}

.wheel-container {
  position: relative;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  font-weight: 300;
}

.wheel-container.spinning {
  /* animation: wheel-pulse 3s ease-in-out infinite; */
}

.wheel-container.spinning-wheel {
  /* animation: spin-glow 2s ease-in-out infinite; */
}

.wheel-wrapper {
  position: relative;
  width: 65rem;
  height: 65rem;
}

.wheel-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0px solid rgba(255, 255, 255, 0.3);
  transition: all 1s ease;
}

.wheel-border.spinning {
    border: 0;
}

.wheel-svg {
  transform-origin: center;
  transition: all 1s ease-out;
  filter: none;
}

.wheel-svg.spinning {
  transition: all 12s cubic-bezier(0.23, 1, 0.32, 1);
  filter: blur(0.2px);
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14rem;
  height: 14rem;
  background-color: #115e59;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px solid white;
}

.center-text {
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
}

.pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
}

.pointer-triangle {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 12px solid white;
}

.spin-button {
  background-color:  #a6cc81 ;
  color: white;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
}

.spin-button:hover:not(:disabled) {
  background-color: #f59e0b;
  transform: scale(1.05);
  box-shadow: 0 0 1rem rgba(251, 191, 36, 0.5);
}

.spin-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: scale(0.95);
  animation: pulse 1s infinite;
}

.button-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #115e59;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color:  #043c3c; /* o el color de fondo que necesites */
  text-align: center;
}

.logo-container {
  width: 3rem;
  height: 3rem;
  background-color: #115e59;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-symbol {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.university-info {
  color: white;
}

.university-text {
  font-weight: bold;
  font-size: 1.125rem;
}

.university-name {
  font-weight: bold;
  font-size: 1.25rem;
}

.university-number {
  background-color: white;
  color: #115e59;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 40px;
  max-width: 45rem;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 4rem;
  border-bottom: 0px solid #e5e7eb;
  position: relative;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

.close-button {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.close-button:hover {
  background-color: #f3f4f6;
}

.modal-body {
  padding: 1.5rem;
}

.question-counter {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.question-card {
  border: 0px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.question-content {
  padding: 3.5rem;
}

.question-text {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #043c3c;
  text-align: center;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-button {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 2rem;
}

.option-button:hover {
  border-color: #d1d5db;
}

.option-button.selected {
  border-color: #14b8a6;
  background-color: #f0fdfa;
}

.modal-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.nav-button {
  padding: 1rem 4rem;
  border-radius: 30px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 2rem;
}

.nav-button:hover:not(:disabled) {
  background-color: #f9fafb;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next-button {
  color: white;
  border: none;
}

.progress-bar {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: all 0.3s ease;
  width: 0%;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin-glow {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) brightness(1);
    transform: scale(1);
  }
  25% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) brightness(1.1);
    transform: scale(1.02);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) brightness(1.15);
    transform: scale(1.03);
  }
  75% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) brightness(1.1);
    transform: scale(1.02);
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) brightness(1);
    transform: scale(1);
  }
}

@keyframes wheel-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .wheel-wrapper {
    width: 18rem;
    height: 18rem;
  }

  .modal-content {
    margin: 1rem;
    max-height: 90vh;
  }
}

/* QR Section Styles */
.qr-section {
  text-align: center;
  padding: 2rem 0;
  background-color: #046c5c;
  border-radius: 30px;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-title {
  font-size: 7rem;
  font-weight: bold;
  margin: 0;
  color: #115e59;
}

.qr-image-container {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
}

.qr-image {
  width: 450px;
  height: 450px;
  display: block;
}

.qr-description {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  max-width: 300px;
}

.final-button {
  background-color: #115e59;
  color: white;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.final-button:hover {
  background-color: #0d9488;
  transform: translateY(-1px);
}

.question-section {
  display: block;
}

.question-section.hidden {
  display: none;
}
