/* ===== ESTILOS PARA TRIAL PRO LIMITADO ===== */

.trial-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.trial-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.trial-banner-content {
  position: relative;
  z-index: 1;
}

.trial-banner h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.trial-banner p {
  margin: 0 0 1rem 0;
  opacity: 0.9;
  font-size: 1rem;
}

.trial-limitations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trial-limitation {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

.trial-limitation.available {
  color: #4ade80;
}

.trial-limitation.limited {
  color: #fbbf24;
}

.trial-limitation.unavailable {
  color: #ef4444;
}

.trial-limitation::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.trial-limitation.available::before {
  background: #4ade80;
}

.trial-limitation.limited::before {
  background: #fbbf24;
}

.trial-limitation.unavailable::before {
  background: #ef4444;
}

.trial-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.trial-upgrade-btn {
  background: #4ade80;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.trial-upgrade-btn:hover {
  background: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.trial-status {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== MODAL DE TRIAL ===== */

.trial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.trial-modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.trial-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.trial-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.trial-modal-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.trial-progress-bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  margin: 1rem 0;
  overflow: hidden;
}

.trial-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.trial-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.trial-stat {
  text-align: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.trial-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.trial-stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.trial-limitations-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.trial-limitations-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #374151;
}

.trial-limitations-list li::before {
  content: '⚠️';
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.trial-limitations-list li.available::before {
  content: '✅';
}

.trial-limitations-list li.limited::before {
  content: '⏳';
}

.trial-limitations-list li.unavailable::before {
  content: '❌';
}

.trial-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.trial-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.trial-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.trial-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.trial-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.trial-btn-secondary:hover {
  background: #e5e7eb;
}

.trial-countdown {
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.trial-countdown-title {
  font-weight: 600;
  color: #92400e;
  margin: 0 0 0.25rem 0;
}

.trial-countdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #78350f;
  margin: 0;
}

/* ===== DASHBOARD TRIAL STATUS ===== */

.dashboard-trial-status {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-trial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-trial-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-trial-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-trial-progress {
  margin-bottom: 1rem;
}

.dashboard-trial-progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.dashboard-trial-progress-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.dashboard-trial-days {
  font-size: 0.9rem;
  opacity: 0.9;
}

.dashboard-trial-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-trial-metric {
  text-align: center;
}

.dashboard-trial-metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.dashboard-trial-metric-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.dashboard-trial-upgrade {
  text-align: center;
}

.dashboard-trial-upgrade-btn {
  background: #4ade80;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-trial-upgrade-btn:hover {
  background: #22c55e;
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .trial-modal {
    padding: 1.5rem;
    margin: 1rem;
  }

  .trial-stats {
    grid-template-columns: 1fr;
  }

  .trial-modal-actions {
    flex-direction: column;
  }

  .trial-limitations {
    grid-template-columns: 1fr;
  }

  .dashboard-trial-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-trial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ===== API TESTER STYLES ===== */

.api-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.api-section.pro-disabled {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.api-section.pro-disabled::before {
  content: '🔒 PRO';
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  animation: pulse 2s infinite;
}

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

.api-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.api-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.api-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.api-tester {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.api-category-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.api-tab {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.api-tab:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.api-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.api-tab:hover:not(.active) {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.api-tester-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.api-endpoint-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.api-endpoint-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.api-params-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.api-endpoint-info {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.api-method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.api-method.get { background: #10b981; color: white; }
.api-method.post { background: #f59e0b; color: white; }
.api-method.put { background: #3b82f6; color: white; }
.api-method.delete { background: #ef4444; color: white; }

.api-path {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.api-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.api-params {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.api-param {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-param.required label::after {
  content: ' *';
  color: #ef4444;
}

.api-param label {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.api-param-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.api-param-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.api-param-input.json-input {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500 !important;
  margin: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.api-param-hint {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
}

.api-param-hint i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.api-execute-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.api-execute-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.api-execute-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.api-execute-btn i.fa-spinner {
  animation: spin 1s linear infinite;
}

.api-execute-btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  animation: successPulse 0.6s ease-out;
}

.api-execute-btn.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.api-result {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.api-result-header {
  background: #f9fafb;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.api-status {
  font-weight: 600;
}

.api-status.success {
  color: #10b981;
}

.api-status.error {
  color: #ef4444;
}

.api-time {
  color: #6b7280;
}

.api-response {
  padding: 1rem;
  background: #f8fafc;
  border: none;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
  width: 100%;
  resize: none;
}

.api-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.api-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #667eea;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.api-links a:hover {
  background: #667eea;
  color: white;
}

/* ===== RESPONSIVE API TESTER ===== */

@media (max-width: 768px) {
  .api-section {
    padding: 1rem;
  }

  .api-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .api-category-selector {
    justify-content: center;
  }

  .api-tab {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .api-tester-panel {
    padding: 1rem;
  }

  .api-params {
    grid-template-columns: 1fr;
  }

  .api-result-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .api-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .api-section {
    margin: 0 -0.5rem;
  }

  .api-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .api-endpoint-info {
    padding: 0.75rem;
  }

  .api-path {
    font-size: 1rem;
  }

  .api-response {
    font-size: 0.8rem;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .trial-banner {
    padding: 1rem;
  }

  .trial-modal-title {
    font-size: 1.5rem;
  }

  .dashboard-trial-metrics {
    grid-template-columns: 1fr;
  }
}

