.header {
  max-width: 1200px;
  margin: 0 auto;
  /* margin-top: 80px; */
  padding: 20px;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
}
h1 .resaltado {
  color: #6c3cfa;
}
.subtitle {
  text-align: center;
  font-size: 1.1em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}
.dark-mode .container{
  background-color: #2A3443;
}
.input-section {
  background: rgba(240, 246, 255, 0.15);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border: 2px solid #e0e6ff;
}

.prompt-container {
  position: relative;
  margin-bottom: 20px;
}

.prompt-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.dark-mode .prompt-input {
  background: #242c3a;
  color: #fff;
}

.prompt-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 12px;
  color: #666;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.setting-group {
  display: flex;
  flex-direction: column;
}

.setting-group label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.setting-group select,
.setting-group input[type="number"] {
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f0f0f0;
  transition: border-color 0.3s ease;
}

.setting-group select:focus,
.setting-group input:focus {
  outline: none;
  border-color: #6c3cfa;
}

.dark-mode select {
  background-color: #242c3a;
  color: #f8f9fa;
}

.generate-btn {
  width: 100%;
  padding: 15px;
  background: #6c3cfa;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.generate-btn .loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.examples {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.example-tag {
  background: #10B981;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.example-tag:hover {
  transform: translateY(-1px);
}

.status {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: bold;
  display: none;
}

.status.loading {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  display: block;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.status.success {
  background: #d1edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.result-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}
.dark-mode .result-card {
  background-color: #0D1B2A;
}
.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.result-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.result-card:hover .result-image {
  transform: scale(1.05);
}

.result-info {
  padding: 15px;
}
.result-prompt {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark-mode .result-prompt {
  color: #8d8d8d;
}
.result-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.download-btn {
  background: #4caf50;
  color: white;
}

.download-btn:hover {
  background: #45a049;
}

.share-btn {
  background: #2196f3;
  color: white;
}

.share-btn:hover {
  background: #1976d2;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #667eea;
}

.gallery-header {
  text-align: center;
  margin: 40px 0 20px 0;
}

.gallery-header h2 {
  margin-bottom: 10px;
}

.clear-gallery {
  background: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.clear-gallery:hover {
  background: #d32f2f;
}

@media (max-width: 768px) {
  .header {
    margin-top: 80px;
  }
  .container {
    padding: 40px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .examples {
    justify-content: center;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================================================================== */
/*                                          Pasos                                             */
/* ========================================================================================== */
.pasos {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.pasos-header {
  position: sticky;
  top: 40px;
}

.help-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.help-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.pasos-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.pasos-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.paso-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Modo oscuro */
.dark-mode .paso-card {
  background-color: #2A3443;
  border-color: #333;
  color: #f8f9fa;
}
.paso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.paso-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.paso-number {
  background: #6c3cfa;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
}

.paso-title {
  font-size: 18px;
  font-weight: 600;
}

.paso-description {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pasos {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }
  .pasos-header {
    position: relative;
    top: 0;
    text-align: center;
  }
  .help-icon {
    margin: 0 auto 20px;
  }
  .pasos-title {
    font-size: 28px;
  }
}
