:root {
  --primary-color: #0ea5e9;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --code-bg: #f8f9fa;
  --border-color: #dee2e6;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.code-font {
  font-family: 'JetBrains Mono', monospace;
}

/* Header Styles */
.header {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
  z-index: 1030;
}

.header .navbar {
  background: white !important;
}

.header .navbar-nav .nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.header .navbar-nav .nav-link.active {
  font-weight: 600;
}

.header .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.header .btn-primary:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.header .navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.header .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header .navbar-nav .nav-link {
  color: var(--dark-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header .navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.header .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.header .btn-primary:hover {
  background-color: #0284c7;
  border-color: #0284c7;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.api-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
}

.btn-hero {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 10px;
}

.btn-primary-hero {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary-hero:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-outline-hero {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-hero:hover {
  background: white;
  color: #0ea5e9;
  transform: translateY(-2px);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.2rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 32px;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* API Demo */
.api-demo {
  background: var(--light-color);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
}

.code-block {
  background: var(--dark-color);
  color: #e9ecef;
  border-radius: 12px;
  padding: 25px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 10px 10px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

.code-block .method {
  color: #ff6b6b;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.code-block .url {
  color: #4ecdc4;
  position: relative;
  z-index: 2;
}

.code-block .comment {
  color: #6c757d;
  position: relative;
  z-index: 2;
}

.code-block .string {
  color: #feca57;
  position: relative;
  z-index: 2;
}

.code-block .number {
  color: #48dbfb;
  position: relative;
  z-index: 2;
}

/* Endpoints Section Container */
.endpoints-section {
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.endpoints-section::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"><defs><pattern id="grid" width="5" height="5" patternUnits="userSpaceOnUse"><path d="M 5 0 L 0 0 0 5" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Endpoints Section Title Override */
.endpoints-section .section-title h2 {
  color: white !important;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  background: none;
  position: relative;
  z-index: 2;
}

.endpoints-section .section-title p {
  color: rgba(255, 255, 255, 0.9) !important;
  position: relative;
  z-index: 2;
}

/* Endpoint Cards */
.endpoint-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.endpoint-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.1);
}

.endpoint-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.endpoint-method {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.method-get { background: #d1ecf1; color: #0c5460; }
.method-post { background: #d4edda; color: #155724; }
.method-put { background: #fff3cd; color: #856404; }
.method-delete { background: #f8d7da; color: #721c24; }

.endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--dark-color);
  margin-bottom: 15px;
  word-break: break-all;
}





/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card.featured {
  border-color: #0ea5e9;
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #0ea5e9;
  margin: 20px 0;
}

.price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.price .period {
  font-size: 1rem;
  color: var(--secondary-color);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--success-color);
  margin-right: 10px;
}

/* Stats Section */
.stats-section {
  background: #ffffff;
  color: #333;
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: var(--light-color);
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.cta-description {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
}

.footer.bg-dark {
  background: var(--dark-color) !important;
  color: white;
}

.footer.bg-dark h5,
.footer.bg-dark h6 {
  color: var(--primary-color) !important;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer.bg-dark p, 
.footer.bg-dark a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

.footer.bg-dark a:hover {
  color: white !important;
}

.footer.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer.bg-dark .text-primary {
  color: var(--primary-color) !important;
}

.footer.bg-dark .btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.footer.bg-dark .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.scroll-top:hover {
  background: #0284c7;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.scroll-top i {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 20px;
  }
  
  .header {
    padding: 10px 0;
  }
  
  .header .navbar-nav {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .header .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .header .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .header .btn-primary {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn-hero {
    padding: 12px 24px;
    font-size: 14px;
    margin: 5px;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* Panel de Clientes - Sidebar Styles */
.cliente-panel .sidebar {
  min-height: 100vh;
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  color: white;
  width: auto;
  min-width: 250px;
  max-width: 280px;
  transition: all 0.3s ease;
}

.cliente-panel .sidebar .nav-link {
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.cliente-panel .sidebar .nav-link:hover,
.cliente-panel .sidebar .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(5px);
}

.cliente-panel .sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 12px;
}

.cliente-panel .sidebar .brand-logo {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.cliente-panel .sidebar .brand-logo img {
  max-height: 50px;
  width: auto;
}

.cliente-panel .sidebar .brand-logo h6 {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-top: 15px;
}

.cliente-panel .main-content {
  background: #f8fafc;
  min-height: 100vh;
  flex: 1;
}

.cliente-panel .stat-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cliente-panel .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cliente-panel .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.cliente-panel .token-display {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.cliente-panel .token-code {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #0ea5e9;
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  word-break: break-all;
}

.cliente-panel .progress-custom {
  height: 12px;
  border-radius: 6px;
  background: #e9ecef;
}

.cliente-panel .progress-custom .progress-bar {
  border-radius: 6px;
}

/* Estilos para el nuevo diseño sin sidebar */
.cliente-panel .card {
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cliente-panel .user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cliente-panel .dropdown-toggle::after {
  margin-left: 8px;
}

.cliente-panel .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: none;
  padding: 8px 0;
}

.cliente-panel .dropdown-item {
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.cliente-panel .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.cliente-panel .dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Responsive adjustments for cliente panel */
@media (max-width: 768px) {
  .cliente-panel .sidebar {
    width: 100%;
    max-width: none;
    min-width: auto;
  }
  
  .cliente-panel .sidebar .nav-link {
    padding: 15px 20px;
    margin-bottom: 5px;
  }
  
  .cliente-panel .sidebar .nav-link:hover,
  .cliente-panel .sidebar .nav-link.active {
    transform: none;
  }
  
  .cliente-panel .col-11 {
    width: 100%;
  }
  
  .cliente-panel .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .cliente-panel .sidebar {
    padding: 15px;
  }
  
  .cliente-panel .sidebar .brand-logo {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  .cliente-panel .sidebar .nav-link {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .cliente-panel .card-body {
    padding: 1rem;
  }
  
  .cliente-panel .p-4 {
    padding: 1rem !important;
  }
}

/* Estilos para notificaciones toast */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px 16px;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid #28a745;
  min-width: 300px;
}

.toast-notification.error {
  border-left-color: #dc3545;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification i {
  font-size: 16px;
}

.toast-notification span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ===== ESTILOS PARA DOCUMENTACIÓN DE API ===== */

/* Estilos para la documentación mejorada */
.code-block {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid #4a5568;
}

.code-block .comment {
  color: #a0aec0;
  font-style: italic;
}

.code-block .string {
  color: #68d391;
}

.code-block .number {
  color: #63b3ed;
}

.code-block.small {
  font-size: 0.8rem;
  padding: 1rem;
}

.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-dark {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.table-dark th {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid #718096;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.alert {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-info {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  border-left: 4px solid #3182ce;
}

.alert-danger {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  border-left: 4px solid #e53e3e;
}

.alert-success {
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  border-left: 4px solid #38a169;
}

.alert h6 {
  color: #2d3748;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.alert ul {
  margin-bottom: 0;
}

.alert li {
  color: #4a5568;
  font-weight: 500;
}

.alert li i {
  margin-right: 0.5rem;
}

.text-primary { color: #3182ce !important; }
.text-success { color: #38a169 !important; }
.text-info { color: #3182ce !important; }
.text-warning { color: #d69e2e !important; }
.text-danger { color: #e53e3e !important; }

.bg-primary { background-color: #3182ce !important; }
.bg-success { background-color: #38a169 !important; }
.bg-info { background-color: #3182ce !important; }
.bg-warning { background-color: #d69e2e !important; }
.bg-secondary { background-color: #718096 !important; }

.bg-light {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
}

.section-title h2 {
  background: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%);
  margin: 1rem auto 0;
  border-radius: 2px;
}

h4, h5, h6 {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

h5 {
  font-size: 1.25rem;
  color: #4a5568;
}

.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Animaciones para los badges */
.badge {
  transition: all 0.3s ease;
  transform: scale(1);
}

.badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para las tablas */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(247, 250, 252, 0.5);
}

.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: rgba(255, 255, 255, 0.8);
}

.table tbody tr:hover {
  background-color: rgba(237, 242, 247, 0.8) !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .code-block {
    font-size: 0.8rem;
    padding: 1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

/* ===== ESTILOS PARA PÁGINAS DE TEST ===== */

/* Header de prueba */
.test-header {
  background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
  color: white;
  padding: 40px 0;
  margin-bottom: 40px;
}

.test-header .back-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.test-header .back-link:hover {
  color: white;
  transform: translateX(-5px);
}

.test-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards de configuración */
.config-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.config-card .card-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 25px 30px;
}

.config-card .card-header h5 {
  color: white;
  font-weight: 600;
}

.config-card .card-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-control {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

/* Botón de prueba */
.btn-test {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* Panel de información */
.info-panel {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border-radius: 20px;
  padding: 25px;
  height: 100%;
}

/* Cards de resultado */
.result-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
  margin-top: 30px;
}

.result-card .card-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 25px 30px;
}

.result-card .card-header h5 {
  color: white;
  font-weight: 600;
}

.result-content {
  padding: 30px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
  color: #374151;
}

.result-value {
  color: #6b7280;
}

/* Display JSON */
.json-display {
  background: #1f2937;
  color: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

/* Cards de historial */
.history-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
  margin-top: 30px;
}

.history-card .card-header {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  border: none;
  padding: 25px 30px;
}

.history-card .card-header h5 {
  color: white;
  font-weight: 600;
}

.history-item {
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: #f9fafb;
}

.history-item:last-child {
  border-bottom: none;
}

/* Badges de estado */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Logo de fondo */
.background-logo {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: -1;
  pointer-events: none;
}
