/* Landing Page Styles */

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  background: var(--hero-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

/* Difuminado en la parte inferior del hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-lg);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

/* Form Section */
.form-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: var(--spacing-2xl) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--form-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Difuminado en la parte superior del form section */
.form-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Glassmorphism Form Container */
.form-container {
  width: 100%;
  max-width: 700px;
  background: linear-gradient(
    var(--gradient-angle),
    var(--gradient-color1),
    var(--gradient-color2)
  );
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.7s;
}

.form-container:hover::before {
  left: 100%;
}

.form-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Logo dentro del formulario */
.form-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.form-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  display: block;
  margin: 0 auto;
}

/* Datos Personales Section */
.personal-info-section {
  background: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: var(--spacing-lg);
}

.personal-info-section .form-group {
  margin-bottom: var(--spacing-md);
}

.personal-info-section .form-group:last-child {
  margin-bottom: 0;
}

.personal-info-section .form-label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: var(--spacing-xs);
}

.personal-info-section .form-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  background: white;
}

.personal-info-section .form-input:focus {
  outline: none;
  border-color: var(--button-bg);
}

.personal-info-section .required {
  color: #dc3545;
}

/* Radio Group para Genero */
.radio-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.radio-option:hover {
  border-color: var(--button-bg);
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--button-bg);
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: var(--button-bg);
  font-weight: 600;
}

.radio-label {
  font-size: var(--font-size-base);
  color: var(--primary-text);
}

/* Checkbox Group para Seleccion Multiple */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.checkbox-option:hover {
  border-color: var(--button-bg);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--button-bg);
}

.checkbox-option label {
  font-size: var(--font-size-base);
  color: var(--primary-text);
  cursor: pointer;
}

/* Input "Otro" visible */
.other-input-container {
  margin-top: var(--spacing-sm);
  padding-left: 0;
}

.other-input-container.hidden {
  display: none;
}

.other-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--button-bg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  background: white;
}

#dynamic-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Question Styles */
.question-container {
  background: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: var(--spacing-md);
}

/* Other option input */
.other-input-container {
  margin-top: var(--spacing-sm);
  padding-left: 28px;
}

.other-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: white;
  font-size: var(--font-size-base);
}

/* Payment Proof Section */
.payment-section {
  background: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: var(--spacing-lg);
}

.payment-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: var(--spacing-md);
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  display: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--secondary-text);
}

.file-upload-label:hover {
  border-color: var(--button-bg);
  background: rgba(255, 255, 255, 0.95);
}

.file-upload-label.has-file {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.file-preview {
  margin-top: var(--spacing-md);
  display: none;
}

.file-preview.show {
  display: block;
}

.preview-image {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

/* Submit Button */
.submit-section {
  margin-top: var(--spacing-xl);
  text-align: center;
}

.submit-btn {
  min-width: 200px;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

/* Team Assignment Result Modal */
.team-result {
  text-align: center;
  padding: var(--spacing-lg);
}

.team-result-icon {
  font-size: 80px;
  margin-bottom: var(--spacing-lg);
}

.team-result-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--primary-text);
}

.team-result-team {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--button-bg);
  padding: var(--spacing-md);
  background: rgba(31, 71, 136, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.team-result-message {
  font-size: var(--font-size-lg);
  color: var(--secondary-text);
  line-height: 1.6;
}

/* Dice 3D Animation Container */
.dice-container {
  width: 200px;
  height: 250px;
  margin: var(--spacing-xl) auto;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dice {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.dice:hover {
  transform: scale(1.05);
}

.dice:active {
  transform: scale(0.95);
}

.dice-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.2);
  backface-visibility: visible;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.dice-face.front  { transform: translateZ(100px); }
.dice-face.back   { transform: rotateY(180deg) translateZ(100px); }
.dice-face.right  { transform: rotateY(90deg) translateZ(100px); }
.dice-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.dice-face.top    { transform: rotateX(90deg) translateZ(100px); }
.dice-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Instruccion para lanzar */
.dice-instruction {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--primary-text);
  animation: pulse 1.5s ease-in-out infinite;
  text-align: center;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-xl);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .form-container {
    padding: var(--spacing-lg);
  }

  .form-title {
    font-size: var(--font-size-lg);
  }

  .dice-container {
    width: 150px;
    height: 200px;
  }

  .dice {
    width: 150px;
    height: 150px;
  }

  .dice-face {
    width: 150px;
    height: 150px;
    font-size: var(--font-size-base);
  }

  .dice-face.front  { transform: translateZ(75px); }
  .dice-face.back   { transform: rotateY(180deg) translateZ(75px); }
  .dice-face.right  { transform: rotateY(90deg) translateZ(75px); }
  .dice-face.left   { transform: rotateY(-90deg) translateZ(75px); }
  .dice-face.top    { transform: rotateX(90deg) translateZ(75px); }
  .dice-face.bottom { transform: rotateX(-90deg) translateZ(75px); }

  .dice-instruction {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .question-container,
  .payment-section {
    padding: var(--spacing-md);
  }
}

/* ========================================
   PAPER AIRPLANE ANIMATION
   ======================================== */

/* Overlay oscuro durante la animación */
.paper-airplane-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  pointer-events: none;
  transition: background 0.5s ease;
}

.paper-airplane-overlay.active {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: all;
}

/* Contenedor del avión */
.paper-airplane-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.paper-airplane-container.active {
  opacity: 1;
}

/* El formulario que se transforma */
.form-container.folding {
  animation: foldForm 0.8s ease-in-out forwards;
  transform-origin: center center;
}

@keyframes foldForm {
  0% {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    opacity: 1;
  }
  30% {
    transform: perspective(1000px) rotateX(-10deg) scale(0.95);
  }
  60% {
    transform: perspective(1000px) rotateX(20deg) scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: perspective(1000px) rotateX(90deg) scale(0.1);
    opacity: 0;
  }
}

/* Avión de papel SVG */
.paper-airplane {
  width: 120px;
  height: 120px;
  position: relative;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.paper-airplane svg {
  width: 100%;
  height: 100%;
  fill: white;
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 1;
}

/* Animación de aparición del avión */
.paper-airplane-container.forming .paper-airplane {
  animation: formPlane 0.6s ease-out forwards;
}

@keyframes formPlane {
  0% {
    transform: scale(0.3) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-45deg);
    opacity: 1;
  }
}

/* Animación de vuelo del avión */
.paper-airplane-container.flying .paper-airplane {
  animation: flyAway 1.5s ease-in forwards;
}

@keyframes flyAway {
  0% {
    transform: scale(1) rotate(-45deg) translate(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(1.1) rotate(-50deg) translate(-30px, 20px);
  }
  40% {
    transform: scale(1) rotate(-40deg) translate(50px, -50px);
  }
  100% {
    transform: scale(0.3) rotate(-45deg) translate(2000px, -1500px);
    opacity: 0;
  }
}

/* Estela del avión */
.airplane-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  transform-origin: left center;
  opacity: 0;
  border-radius: 2px;
}

.paper-airplane-container.flying .airplane-trail {
  animation: showTrail 1.5s ease-in forwards;
}

@keyframes showTrail {
  0% {
    opacity: 0;
    width: 0;
    transform: rotate(135deg) translateX(0);
  }
  20% {
    opacity: 0.8;
    width: 100px;
  }
  50% {
    opacity: 0.6;
    width: 200px;
  }
  100% {
    opacity: 0;
    width: 400px;
    transform: rotate(135deg) translateX(-100px);
  }
}

/* Partículas de papel */
.paper-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.paper-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  opacity: 0;
  border-radius: 2px;
}

.paper-airplane-container.forming .paper-particle {
  animation: particleBurst 0.8s ease-out forwards;
}

.paper-particle:nth-child(1) { animation-delay: 0s; }
.paper-particle:nth-child(2) { animation-delay: 0.05s; }
.paper-particle:nth-child(3) { animation-delay: 0.1s; }
.paper-particle:nth-child(4) { animation-delay: 0.15s; }
.paper-particle:nth-child(5) { animation-delay: 0.2s; }
.paper-particle:nth-child(6) { animation-delay: 0.25s; }
.paper-particle:nth-child(7) { animation-delay: 0.3s; }
.paper-particle:nth-child(8) { animation-delay: 0.35s; }

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
    opacity: 0;
  }
}

.paper-particle:nth-child(1) { --tx: -80px; --ty: -60px; }
.paper-particle:nth-child(2) { --tx: 80px; --ty: -70px; }
.paper-particle:nth-child(3) { --tx: -90px; --ty: 50px; }
.paper-particle:nth-child(4) { --tx: 70px; --ty: 80px; }
.paper-particle:nth-child(5) { --tx: -50px; --ty: -90px; }
.paper-particle:nth-child(6) { --tx: 90px; --ty: 30px; }
.paper-particle:nth-child(7) { --tx: -70px; --ty: 70px; }
.paper-particle:nth-child(8) { --tx: 40px; --ty: -80px; }

/* Texto de "Enviando..." */
.sending-text {
  position: fixed;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 10000;
  text-align: center;
}

.sending-text.active {
  animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Responsive para la animación */
@media (max-width: 768px) {
  .paper-airplane {
    width: 80px;
    height: 80px;
  }

  .sending-text {
    font-size: var(--font-size-lg);
    bottom: 25%;
  }
}

/* ========================================
   TOP SECRET ENVELOPE ANIMATION
   ======================================== */

.envelope-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.envelope-container.show {
  opacity: 1;
  visibility: visible;
}

/* Instrucción */
.envelope-instruction {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  animation: pulseInstruction 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.envelope-instruction.hidden {
  opacity: 0;
  pointer-events: none;
}

.instruction-icon {
  font-size: 1.5rem;
  animation: bounceIcon 1s ease-in-out infinite;
}

@keyframes pulseInstruction {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.02); }
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Wrapper del sobre */
.envelope-wrapper {
  perspective: 1000px;
}

/* Sobre principal */
.envelope {
  position: relative;
  width: 320px;
  height: 220px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.envelope:hover {
  transform: scale(1.03);
}

.envelope.shake {
  animation: envelopeShake 0.3s ease;
}

@keyframes envelopeShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

/* Parte trasera del sobre */
.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #c9a86c 0%, #a67c4e 100%);
  border-radius: 8px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* Parte frontal del sobre */
.envelope-front {
  position: absolute;
  width: 100%;
  height: 70%;
  bottom: 0;
  background: linear-gradient(180deg, #d4b896 0%, #c9a86c 50%, #b8956a 100%);
  border-radius: 0 0 8px 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sello de seguridad */
.envelope-seal {
  position: absolute;
  top: -25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #c0392b, #96281b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.seal-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Estampa TOP SECRET */
.envelope-stamp {
  background: linear-gradient(145deg, #c0392b, #96281b);
  color: white;
  padding: 8px 25px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  border: 3px solid #8b1a1a;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Impact', 'Arial Black', sans-serif;
}

/* Líneas decorativas del sobre */
.envelope-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 60%;
}

.envelope-lines .line {
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 1px;
}

.envelope-lines .line:nth-child(2) {
  width: 80%;
  margin-left: auto;
}

.envelope-lines .line:nth-child(3) {
  width: 60%;
}

/* Solapa del sobre */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #d4b896 0%, #c9a86c 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 0.6s ease;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.envelope-flap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope-flap.open {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Carta dentro del sobre */
.envelope-letter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  z-index: 4;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.envelope-letter.reveal {
  height: 320px;
  top: -80px;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-2deg);
}

/* Contenido de la carta */
.letter-content {
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffef9 0%, #f5f0e6 100%);
  border: 2px solid #e8e0d0;
}

.letter-header {
  text-align: right;
  margin-bottom: 15px;
}

.letter-stamp {
  display: inline-block;
  background: linear-gradient(145deg, #27ae60, #1e8449);
  color: white;
  padding: 5px 15px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.letter-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.letter-label {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}

.letter-team {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0;
  padding: 15px 25px;
  background: linear-gradient(145deg, #3498db, #2980b9);
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
  animation: teamReveal 0.5s ease 0.8s both;
}

@keyframes teamReveal {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.letter-footer {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.letter-seal {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #c0392b 0%, #96281b 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.letter-seal::after {
  content: '★';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffd700;
  font-size: 1.5rem;
}

/* Contenedor de partículas */
.envelope-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Partículas de confeti */
.confetti-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 1.5s ease-out var(--delay) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .envelope {
    width: 260px;
    height: 180px;
  }

  .envelope-letter {
    width: 230px;
  }

  .envelope-letter.reveal {
    height: 280px;
    top: -70px;
  }

  .letter-team {
    font-size: 1.5rem;
    padding: 12px 20px;
  }

  .envelope-stamp {
    font-size: 1.1rem;
    padding: 6px 18px;
  }

  .envelope-instruction {
    font-size: 0.9rem;
    padding: 12px 20px;
    bottom: 10%;
  }
}

/* ========================================
   SUBPREGUNTAS Y PRECIOS
   ======================================== */

/* Precio en la pregunta */
.question-price-display {
  font-size: var(--font-size-sm);
  color: #e65100;
  font-weight: 600;
}

/* Precio en opciones */
.option-price-display {
  color: #e65100;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-left: 4px;
}

/* Wrapper para opciones con subpreguntas */
.radio-option-wrapper,
.checkbox-option-wrapper {
  margin-bottom: var(--spacing-sm);
}

/* Contenedor de subopciones/extras */
.suboptions-container {
  margin-top: var(--spacing-md);
  margin-left: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255, 243, 224, 0.7);
  border-radius: var(--radius-sm);
  border-left: 3px solid #e65100;
}

.suboptions-container.hidden {
  display: none;
}

/* Título de subopciones */
.suboptions-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #e65100;
  margin: 0 0 var(--spacing-sm) 0;
}

/* Grupo de subopciones */
.suboptions-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Item de subopción */
.suboption-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.suboption-item:hover {
  background: rgba(255, 255, 255, 1);
}

.suboption-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e65100;
}

.suboption-item label {
  flex: 1;
  cursor: pointer;
  font-size: var(--font-size-sm);
}

/* Sección de precio total */
.price-total-section {
  background: rgba(255, 255, 255, 0.85);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border: 2px solid #e65100;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.15);
}

.price-total-box {
  text-align: center;
}

.price-total-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
}

.price-total-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

.price-total-label {
  font-size: var(--font-size-lg);
  color: var(--secondary-text);
}

.price-total-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #e65100;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Animación de actualización de precio */
@keyframes priceUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: #4caf50; }
  100% { transform: scale(1); }
}

.price-total-value.updating {
  animation: priceUpdate 0.3s ease;
}

/* ==========================================
   SELECTOR DE CANTIDAD DE PERSONAS
   ========================================== */
.person-count-section {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.person-count-header {
  margin-bottom: var(--spacing-lg);
}

.person-count-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: white;
  margin: 0 0 var(--spacing-xs) 0;
}

.person-count-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.person-count-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

.person-count-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-count-btn.minus {
  background: #ffebee;
  color: #c62828;
}

.person-count-btn.minus:hover:not(:disabled) {
  background: #ffcdd2;
  transform: scale(1.1);
}

.person-count-btn.plus {
  background: #e8f5e9;
  color: #2e7d32;
}

.person-count-btn.plus:hover:not(:disabled) {
  background: #c8e6c9;
  transform: scale(1.1);
}

.person-count-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.person-count-value {
  font-size: 48px;
  font-weight: 700;
  color: white;
  min-width: 80px;
}

/* ==========================================
   ACORDEÓN DE PERSONAS
   ========================================== */
.person-accordion {
  margin-bottom: var(--spacing-md);
  border: 2px solid rgba(31, 71, 136, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.person-accordion.expanded {
  border-color: var(--button-bg);
}

.person-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(31, 71, 136, 0.08) 0%, rgba(31, 71, 136, 0.12) 100%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.person-accordion-header:hover {
  background: linear-gradient(135deg, rgba(31, 71, 136, 0.12) 0%, rgba(31, 71, 136, 0.18) 100%);
}

.person-accordion.expanded .person-accordion-header {
  background: linear-gradient(135deg, var(--button-bg) 0%, #153468 100%);
  color: white;
}

.person-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.person-number {
  width: 36px;
  height: 36px;
  background: var(--button-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.person-accordion.expanded .person-number {
  background: white;
  color: var(--button-bg);
}

.person-info {
  display: flex;
  flex-direction: column;
}

.person-label {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.person-name-preview {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.person-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.person-price-preview {
  font-weight: 600;
  color: #e65100;
  font-size: var(--font-size-base);
}

.person-accordion.expanded .person-price-preview {
  color: #ffcc80;
}

.person-toggle-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.person-accordion.expanded .person-toggle-icon {
  transform: rotate(180deg);
}

.person-accordion-body {
  padding: var(--spacing-lg);
  display: none;
}

.person-accordion.expanded .person-accordion-body {
  display: block;
}

/* Campos de datos personales dentro del acordeón */
.person-data-section {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.person-questions-section {
  /* Contenedor de preguntas dinámicas por persona */
}

/* ==========================================
   RESUMEN TOTAL GRUPAL
   ========================================== */
.group-total-section {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #e65100;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.group-total-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #e65100;
  margin: 0 0 var(--spacing-md) 0;
}

.group-total-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.person-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
}

.person-total-label {
  font-weight: 500;
  color: var(--primary-text);
}

.person-total-value {
  font-weight: 600;
  color: #e65100;
}

.group-total-divider {
  border: none;
  border-top: 2px dashed #e65100;
  margin: var(--spacing-md) 0;
}

.group-total-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: #e65100;
  border-radius: var(--radius-md);
  color: white;
}

.group-total-final-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.group-total-final-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

/* ==========================================
   TÓMBOLA - Animación estilo bombo de lotería
   ========================================== */
.tombola-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.tombola-overlay.show {
  opacity: 1;
  visibility: visible;
}

.tombola-container {
  text-align: center;
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 90%;
}

.tombola-title {
  color: white;
  font-size: var(--font-size-2xl);
  margin: 0 0 var(--spacing-sm) 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.tombola-title.hidden {
  display: none;
}

.tombola-person {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-lg) 0;
}

.tombola-person.hidden {
  display: none;
}

/* ========== TÓMBOLA ESTILO BOMBO ========== */
.lottery-tombola {
  position: relative;
  width: 280px;
  height: 320px;
  margin: 0 auto var(--spacing-xl);
  perspective: 1000px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.lottery-tombola.visible {
  opacity: 1;
  transform: scale(1);
}

.lottery-tombola.hidden {
  display: none;
}

.lottery-tombola.ball-exit {
  opacity: 0.3;
}

/* Marco/Soporte superior */
.tombola-frame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 40px;
  z-index: 10;
}

.frame-arm {
  position: absolute;
  width: 8px;
  height: 80px;
  background: linear-gradient(90deg, #4a6fa5, #6b8fc7, #4a6fa5);
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.frame-arm.left {
  left: 20px;
  transform: rotate(-15deg);
  transform-origin: top center;
}

.frame-arm.right {
  right: 20px;
  transform: rotate(15deg);
  transform-origin: top center;
}

.frame-top {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 20px;
  background: linear-gradient(180deg, #5a7fb5, #4a6fa5);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(90, 127, 181, 0.5);
}

/* Bombo/Jaula - contenedor principal */
.tombola-drum {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
}

/* Jaula con barras */
.drum-cage {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  border-radius: 50%;
  border: 6px solid #3a5a8a;
  background: radial-gradient(circle, rgba(20, 30, 50, 0.7) 0%, rgba(10, 15, 30, 0.9) 100%);
  box-shadow:
    0 0 30px rgba(74, 111, 165, 0.4),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.cage-bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #5a7fb5, #3a5a8a, #5a7fb5);
  transform-origin: center center;
  border-radius: 2px;
  opacity: 0.6;
}

/* Bolitas dentro del bombo */
.drum-balls {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  overflow: hidden;
}

.lottery-ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, white, var(--ball-color) 40%, var(--ball-dark));
  box-shadow:
    inset -3px -3px 8px rgba(0, 0, 0, 0.4),
    inset 3px 3px 8px rgba(255, 255, 255, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.5);
  animation: ballBounce 1.5s ease-in-out infinite;
  animation-delay: var(--bounce-delay);
  z-index: 5;
}

@keyframes ballBounce {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, -15px);
  }
  50% {
    transform: translate(-8px, 5px);
  }
  75% {
    transform: translate(5px, -10px);
  }
}

/* Eje central del bombo */
.drum-axis {
  position: absolute;
  top: 50%;
  left: -15px;
  right: -15px;
  height: 12px;
  background: linear-gradient(180deg, #6b8fc7, #4a6fa5, #3a5a8a);
  transform: translateY(-50%);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 15;
}

/* Soporte/Base */
.tombola-stand {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.stand-body {
  width: 60px;
  height: 80px;
  background: linear-gradient(90deg, #3a5a8a, #4a6fa5, #5a7fb5, #4a6fa5, #3a5a8a);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  margin: 0 auto;
}

.stand-base {
  width: 120px;
  height: 20px;
  background: linear-gradient(180deg, #4a6fa5, #3a5a8a);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Tubo de salida */
.exit-tube {
  position: absolute;
  right: 15px;
  top: 140px;
  width: 40px;
  height: 60px;
  background: linear-gradient(90deg, #3a5a8a, #4a6fa5);
  border-radius: 0 20px 20px 0;
  z-index: 20;
}

.tube-opening {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 35px;
  background: radial-gradient(ellipse, #0a0a1a 60%, #1a1a3a 100%);
  border-radius: 50%;
  border: 3px solid #5a7fb5;
}

/* Animación de giro del bombo */
.tombola-drum.spinning {
  animation: drumRotate 0.3s linear infinite;
}

.tombola-drum.spinning .lottery-ball {
  animation: ballChaos 0.15s linear infinite;
}

.tombola-drum.spinning .drum-cage {
  box-shadow:
    0 0 50px rgba(74, 111, 165, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.tombola-drum.slowing {
  animation: drumSlowRotate 1.5s ease-out forwards;
}

.tombola-drum.slowing .lottery-ball {
  animation: ballSettle 1.5s ease-out forwards;
}

@keyframes drumRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes drumSlowRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(720deg); }
}

@keyframes ballChaos {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20px, 15px) scale(0.9); }
  50% { transform: translate(15px, -20px) scale(1.1); }
  75% { transform: translate(-10px, -15px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ballSettle {
  0% { transform: translate(var(--ball-x), var(--ball-y)) scale(1); }
  50% { transform: translate(calc(var(--ball-x) * 0.5), calc(var(--ball-y) + 20px)) scale(1); }
  100% { transform: translate(0, 30px) scale(1); }
}

/* Bolita ganadora que sale */
.winner-ball-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.winner-ball-container.hidden {
  display: none;
}

.winner-ball {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    inset -8px -8px 25px rgba(0, 0, 0, 0.4),
    inset 8px 8px 25px rgba(255, 255, 255, 0.3),
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: scale(0) translateY(-50px);
}

.winner-ball-container.animate .winner-ball {
  animation: winnerBallAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes winnerBallAppear {
  0% {
    opacity: 0;
    transform: scale(0) translateY(-100px) rotate(-180deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) translateY(20px) rotate(0deg);
  }
  70% {
    transform: scale(0.9) translateY(-10px) rotate(10deg);
  }
  85% {
    transform: scale(1.1) translateY(5px) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

/* Display del equipo */
.tombola-team-display {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.2), rgba(58, 90, 138, 0.3));
  border: 2px solid rgba(107, 143, 199, 0.4);
  border-radius: var(--radius-lg);
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
}

.tombola-team-display.hidden {
  display: none;
}

.tombola-team-display.show {
  transform: scale(1);
  opacity: 1;
}

.team-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-sm) 0;
}

.team-name {
  color: #f39c12;
  font-size: var(--font-size-2xl);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(243, 156, 18, 0.6);
  animation: teamGlow 2s ease-in-out infinite alternate;
}

@keyframes teamGlow {
  from { text-shadow: 0 0 20px rgba(243, 156, 18, 0.4); }
  to { text-shadow: 0 0 40px rgba(243, 156, 18, 0.8), 0 0 60px rgba(243, 156, 18, 0.4); }
}

/* Botón siguiente persona */
.tombola-next-btn {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, #4a6fa5, #3a5a8a);
  color: white;
  border: 2px solid #6b8fc7;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(74, 111, 165, 0.4);
}

.tombola-next-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 111, 165, 0.6);
  background: linear-gradient(135deg, #5a7fb5, #4a6fa5);
}

.tombola-next-btn.hidden {
  display: none;
}

/* Mensaje final */
.tombola-final {
  transform: scale(0);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tombola-final.hidden {
  display: none;
}

.tombola-final.show {
  transform: scale(1);
  opacity: 1;
}

.final-icon {
  font-size: 80px;
  margin-bottom: var(--spacing-md);
  animation: celebrateBounce 1s ease infinite;
}

@keyframes celebrateBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.final-title {
  color: white;
  font-size: var(--font-size-2xl);
  margin: 0 0 var(--spacing-md) 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.final-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-base);
  margin: 0 0 var(--spacing-xl) 0;
  line-height: 1.8;
}

.final-subtitle strong {
  color: #f39c12;
}

.tombola-close-btn {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border: none;
}

.tombola-close-btn:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Responsive para tómbola */
@media (max-width: 480px) {
  .lottery-tombola {
    width: 220px;
    height: 260px;
  }

  .tombola-drum {
    width: 160px;
    height: 160px;
    top: 50px;
  }

  .frame-arm {
    height: 65px;
  }

  .tombola-frame {
    width: 180px;
  }

  .stand-body {
    width: 50px;
    height: 65px;
  }

  .stand-base {
    width: 100px;
    height: 16px;
  }

  .exit-tube {
    width: 30px;
    height: 45px;
    top: 110px;
    right: 10px;
  }

  .winner-ball-container {
    width: 90px;
    height: 90px;
  }

  .tombola-title {
    font-size: var(--font-size-xl);
  }

  .team-name {
    font-size: var(--font-size-xl);
  }
}

/* Responsive para subopciones y personas */
@media (max-width: 768px) {
  .suboptions-container {
    margin-left: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .price-total-content {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .price-total-value {
    font-size: var(--font-size-xl);
  }

  .person-count-section {
    padding: var(--spacing-lg);
  }

  .person-count-value {
    font-size: 36px;
  }

  .person-count-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .person-accordion-header {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .person-accordion-body {
    padding: var(--spacing-md);
  }

  .group-total-final {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}