/* ====================================================
   GUÃA & TUTORIAL â€” Styles
   ==================================================== */

/* Docs Hero */
.docs-hero {
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(160deg, rgba(99,102,241,0.1) 0%, rgba(13,17,26,0.7) 40%, rgba(16,185,129,0.07) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99,102,241,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(16,185,129,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.docs-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--warning);
  animation: docsFadeIn 0.6s ease-out;
}
.docs-hero-icon i:first-child { animation: docsBounceIn 0.8s ease-out; }
.docs-hero-icon i:nth-child(2) { animation: docsSlideIn 0.6s ease-out 0.2s both; }
.docs-hero-icon i:last-child { animation: docsScaleIn 0.5s ease-out 0.4s both; color: var(--success); }
@keyframes docsFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes docsBounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes docsSlideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes docsScaleIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.docs-hero h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.docs-hero-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.docs-hero-text strong { color: var(--text); }

/* Ventajas Grid (3 Columnas) */
.docs-ventajas-section {
  max-width: 960px;
  margin: 0 auto 3.5rem auto;
}
.docs-ventajas-header {
  text-align: center;
  margin-bottom: 2rem;
}
.docs-ventajas-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.docs-ventajas-header h2 i {
  color: var(--success-light);
}
.docs-ventajas-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.docs-ventajas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.ventaja-card {
  background: rgba(16, 185, 129, 0.02);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.ventaja-card:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}
.ventaja-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.08));
  color: var(--success-light);
  flex-shrink: 0;
}
.ventaja-info h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem 0;
  line-height: 1.35;
}
.ventaja-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- FAQ Section Styles --- */
.docs-faq-section {
  max-width: 960px;
  margin: 4rem auto 2rem auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 3rem;
}
.docs-faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.docs-faq-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.docs-faq-header h2 i {
  color: var(--primary-light);
}
.docs-faq-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.faq-search {
  position: relative;
  margin-bottom: 1.25rem;
}
.faq-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
#faq-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
#faq-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
#faq-search-input::placeholder {
  color: var(--text-muted-dark);
}
.faq-item.faq-hidden {
  display: none !important;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
.faq-item[open] {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(129, 140, 248, 0.3);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  list-style: none; /* Hide default triangle */
}
.faq-question::-webkit-details-marker {
  display: none; /* Hide default triangle in Safari */
}
.faq-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-light);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1rem;
}
.faq-answer p {
  margin: 0 0 1rem 0;
}
.faq-answer p:last-child {
  margin: 0;
}
.faq-answer ol, .faq-answer ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}
.faq-answer li {
  margin-bottom: 0.5rem;
}
.faq-answer li:last-child {
  margin-bottom: 0;
}

/* Custom Highlight colors inside FAQ answers */
.faq-answer .step-highlight.highlight-warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning-light);
}
.faq-answer .step-highlight.highlight-info {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}
.faq-answer .step-highlight.highlight-success {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-light);
}


/* â”€â”€ SecciÃ³n comparativa: Â¿Por quÃ© caracterÃ­stica publicito? â”€â”€ */
.docs-compare {
  max-width: 960px;
  margin: 0 auto 3rem auto;
}
.docs-compare-header {
  text-align: center;
  margin-bottom: 2rem;
}
.docs-compare-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.docs-compare-header h2 i { color: var(--warning); margin-right: 0.5rem; }
.docs-compare-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.compare-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.compare-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.compare-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.badge-obj {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.compare-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}
.compare-detail { display: flex; flex-direction: column; gap: 0.6rem; }
.cd-row {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #d1d5db;
}
.cd-label { display: block; font-weight: 600; margin-bottom: 0.1rem; font-size: 0.75rem; }
.cd-label i { margin-right: 0.3rem; }
.cd-val { color: var(--text-muted); display: block; }
.cd-highlight {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  margin-top: 0.2rem;
}
.cd-highlight .cd-label { color: var(--warning); }
.cd-highlight .cd-val { color: #d1d5db; }

.compare-recommend {
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  align-items: flex-start;
}
.recommend-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
}
.recommend-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}
.recommend-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.recommend-content li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1d5db;
  padding-left: 1.2rem;
  position: relative;
}
.recommend-content li::before {
  content: "â–¸";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}
.recommend-content li strong { color: var(--text); }

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-recommend { flex-direction: column; }
  .recommend-icon { width: 40px; height: 40px; font-size: 1rem; }
}

/* Timeline Connection Line */
.docs-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
  position: relative;
  padding-left: 1rem;
}


/* Step Highlight Box */
.step-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #c4b5fd;
  line-height: 1.5;
}
.step-highlight i { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* Card glow orange */
.card-glow-orange {
  border-left: 3.5px solid var(--warning);
}
.card-glow-orange:hover {
  border-color: rgba(245,158,11,0.3);
  border-left-color: var(--warning);
}

/* Step Cards */
.docs-step-card {
  display: flex;
  background: rgba(13, 17, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  gap: 1.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.docs-step-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.03;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.docs-step-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.docs-step-card.card-glow-indigo {
  border-left: 3.5px solid var(--primary);
}
.docs-step-card.card-glow-indigo::after {
  background: radial-gradient(circle, var(--primary), transparent);
  top: -30px;
  right: -30px;
}
.docs-step-card.card-glow-indigo:hover {
  border-color: rgba(99, 102, 241, 0.3);
  border-left-color: var(--primary);
  box-shadow: 0 8px 30px rgba(99,102,241,0.08);
}
.docs-step-card.card-glow-indigo:hover::after { opacity: 0.06; }

.docs-step-card.card-glow-green {
  border-left: 3.5px solid var(--success);
}
.docs-step-card.card-glow-green::after {
  background: radial-gradient(circle, var(--success), transparent);
  top: -30px;
  right: -30px;
}
.docs-step-card.card-glow-green:hover {
  border-color: rgba(16, 185, 129, 0.3);
  border-left-color: var(--success);
  box-shadow: 0 8px 30px rgba(16,185,129,0.08);
}
.docs-step-card.card-glow-green:hover::after { opacity: 0.06; }

.docs-step-card.card-glow-purple {
  border-left: 3.5px solid var(--purple);
}
.docs-step-card.card-glow-purple::after {
  background: radial-gradient(circle, var(--purple), transparent);
  top: -30px;
  right: -30px;
}
.docs-step-card.card-glow-purple:hover {
  border-color: rgba(139, 92, 246, 0.3);
  border-left-color: var(--purple);
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
}
.docs-step-card.card-glow-purple:hover::after { opacity: 0.06; }

.docs-step-card.card-glow-orange {
  border-left: 3.5px solid var(--warning);
}
.docs-step-card.card-glow-orange::after {
  background: radial-gradient(circle, var(--warning), transparent);
  top: -30px;
  right: -30px;
}
.docs-step-card.card-glow-orange:hover {
  border-color: rgba(245,158,11,0.3);
  border-left-color: var(--warning);
  box-shadow: 0 8px 30px rgba(245,158,11,0.08);
}
.docs-step-card.card-glow-orange:hover::after { opacity: 0.06; }

.step-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
}
.docs-step-card.card-glow-indigo .step-num { background: linear-gradient(135deg, var(--primary), #4f46e5); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.docs-step-card.card-glow-green .step-num { background: linear-gradient(135deg, var(--success), var(--success-dark)); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.docs-step-card.card-glow-purple .step-num { background: linear-gradient(135deg, var(--purple), #7c3aed); box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
.docs-step-card.card-glow-orange .step-num { background: linear-gradient(135deg, var(--warning), #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.step-content {
  flex-grow: 1;
  /* Sin esto, un hijo flex nunca se achica más allá del ancho mínimo de su
     contenido — y el <pre> del código (líneas largas sin salto) empujaba
     toda la tarjeta más ancha que el viewport, corriendo los botones de
     "Copiar" fuera de la pantalla. */
  min-width: 0;
}
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.docs-list {
  padding-left: 1.2rem;
}
.docs-list li {
  font-size: 0.82rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.docs-list code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: monospace;
  color: #a5b4fc;
}
