/* Estilos para el componente de upload de imágenes */

.image-upload-container {
  margin: 15px 0;
}

.upload-area {
  border: 2px dashed var(--primary-pink);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, rgba(248, 180, 217, 0.05), rgba(248, 180, 217, 0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-area:hover {
  border-color: var(--dark-pink);
  background: linear-gradient(135deg, rgba(248, 180, 217, 0.1), rgba(248, 180, 217, 0.15));
  transform: translateY(-2px);
}

.upload-area.drag-over {
  border-color: var(--dark-pink);
  background: linear-gradient(135deg, rgba(248, 180, 217, 0.2), rgba(248, 180, 217, 0.25));
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.upload-text strong {
  color: var(--elegant-black);
  font-size: 1.1rem;
}

.upload-text span {
  color: #666;
  font-size: 0.9rem;
}

.upload-hint {
  color: #999;
  font-size: 0.85rem;
  margin-top: 5px;
}

.upload-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--primary-pink);
  background: #f9f9f9;
}

.upload-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

.preview-actions {
  padding: 10px;
  text-align: center;
  background: white;
}

.btn-remove-preview {
  padding: 8px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-remove-preview:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.upload-progress {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-pink), var(--dark-pink));
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-animation 1.5s infinite;
}

@keyframes progress-animation {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

.progress-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .upload-area {
    padding: 30px 15px;
  }

  .upload-icon {
    font-size: 2.5rem;
  }

  .upload-text strong {
    font-size: 1rem;
  }

  .upload-preview img {
    max-height: 200px;
  }
}

/* Tabs para elegir método de foto */
.tab-btn {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid var(--soft-pink);
  background: white;
  color: var(--elegant-black);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.tab-btn:hover {
  background: var(--soft-pink);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: white;
  border-color: var(--primary-pink);
}


/* Tutorial de subida de imágenes */
.tutorial-box {
  background: white;
  border: 2px solid var(--soft-pink);
  border-radius: 12px;
  padding: 20px;
}

.tutorial-step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}

.tutorial-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  color: var(--elegant-black);
  margin-bottom: 5px;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-content small {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
}

.step-content a {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 600;
}

.step-content a:hover {
  text-decoration: underline;
}

.warning-box {
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
  }
}

/* Responsive para tutorial */
@media (max-width: 768px) {
  .tutorial-step {
    gap: 10px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .step-content strong {
    font-size: 0.95rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }
}


/* Links del tutorial */
.tutorial-link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(248, 180, 217, 0.3);
}

.tutorial-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 180, 217, 0.5);
}

/* Info box (reemplazo de warning box) */
.info-box {
  animation: infoPulse 3s ease-in-out infinite;
}

@keyframes infoPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(33, 150, 243, 0);
  }
}