/* ===== GUÍAS VISUAL UPGRADE ===== */

/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Variables mejoradas para guías */
:root {
  --guide-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --guide-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --guide-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --guide-info: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --guide-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --guide-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  --guide-radius: 16px;
  --guide-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fuente principal para guías */
.guia-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
  color: #2d3748;
}

/* Hero de guías mejorado */
.guide-hero {
  background: var(--guide-primary);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.guide-hero::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.15"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="150" cy="150" r="80" fill="url(%23a)"/><circle cx="850" cy="200" r="120" fill="url(%23a)"/><circle cx="300" cy="800" r="100" fill="url(%23a)"/></svg>') no-repeat center center;
  background-size: cover;
  opacity: 0.4;
}

.guide-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.guide-icon i {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.guide-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.guide-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Pasos de guía mejorados */
.guide-step {
  background: white;
  border-radius: var(--guide-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--guide-shadow);
  transition: var(--guide-transition);
  position: relative;
  overflow: hidden;
}

.guide-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--guide-primary);
  transform: scaleX(0);
  transition: var(--guide-transition);
}

.guide-step:hover::before {
  transform: scaleX(1);
}

.guide-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--guide-hover-shadow);
}

/* Números de paso mejorados */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--guide-primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Títulos de sección mejorados */
.guide-step h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.guide-step h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.guide-step h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* Listas mejoradas */
.guide-step ol,
.guide-step ul {
  margin-bottom: 1.5rem;
}

.guide-step ol li,
.guide-step ul li {
  margin-bottom: 0.5rem;
  color: #4a5568;
  line-height: 1.7;
}

.guide-step ol li {
  padding-left: 0.5rem;
}

/* Cajas informativas mejoradas */
.info-box {
  background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-box i {
  color: #667eea;
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.success-box {
  background: linear-gradient(135deg, #e6fff2 0%, #ccf7e0 100%);
  border: 1px solid rgba(72, 187, 120, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.success-box i {
  color: #48bb78;
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.warning-box {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  border: 1px solid rgba(237, 137, 54, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.warning-box i {
  color: #ed8936;
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Códigos mejorados */
code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: #667eea;
  font-weight: 500;
}

pre {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Badges mejorados */
.badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bg-success {
  background: var(--guide-success) !important;
  border: none;
}

.bg-warning {
  background: var(--guide-warning) !important;
  border: none;
}

.bg-primary {
  background: var(--guide-primary) !important;
  border: none;
}

/* Botones mejorados */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: var(--guide-transition);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--guide-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-success {
  background: var(--guide-success);
  color: white;
  box-shadow: 0 4px 16px rgba(79, 172, 254, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 172, 254, 0.4);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cards de características mejoradas */
.guide-step .row .col-md-4 > div,
.guide-step .row .col-md-6 > div {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--guide-transition);
  position: relative;
  overflow: hidden;
}

.guide-step .row .col-md-4 > div:hover,
.guide-step .row .col-md-6 > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .guide-title {
    font-size: 2.2rem;
  }
  
  .guide-subtitle {
    font-size: 1.1rem;
  }
  
  .guide-step {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .guide-step h2 {
    font-size: 1.5rem;
  }
  
  .guide-step h3 {
    font-size: 1.3rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Animaciones suaves */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-step {
  animation: slideInUp 0.6s ease-out;
}

.guide-step:nth-child(2) {
  animation-delay: 0.1s;
}

.guide-step:nth-child(3) {
  animation-delay: 0.2s;
}

.guide-step:nth-child(4) {
  animation-delay: 0.3s;
}

/* Mejoras en tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--guide-shadow);
}

th {
  background: var(--guide-primary);
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* Mejoras en formularios */
.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--guide-transition);
}

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

/* Mejoras en iconos inline */
.guide-step i {
  margin-right: 0.5rem;
}

/* Efectos de hover en enlaces */
.guide-step a {
  color: #667eea;
  text-decoration: none;
  transition: var(--guide-transition);
  position: relative;
}

.guide-step a:hover {
  color: #5a67d8;
}

.guide-step a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: var(--guide-transition);
}

.guide-step a:hover::after {
  width: 100%;
}
