/* ====================================
   DOCUMENTATION STYLES
   ==================================== */

/* CSS Variables - Usar las del sistema vars.css */
:root {
    /* Mapeamos las variables de documentación a las existentes */
    --docs-primary: var(--brand-blue-1000);
    --docs-primary-light: var(--brand-blue-800);
    --docs-secondary: var(--pink-1000);
    --docs-text: var(--neutral-gray-1000);
    --docs-text-light: var(--neutral-gray-800);
    --docs-text-muted: var(--neutral-gray-500);
    --docs-bg: var(--neutral-white-000);
    --docs-bg-alt: var(--neutral-gray-025);
    --docs-bg-dark: var(--neutral-gray-900);
    --docs-border: var(--neutral-gray-300);
    --docs-border-light: var(--neutral-gray-100);
    --docs-shadow: var(--shadow-sm);
    --docs-shadow-lg: var(--shadow-lg);
    --docs-radius: var(--radius-md);
    --docs-radius-lg: var(--radius-lg);
    --docs-radius-xl: var(--radius-xl);
    --docs-success: var(--green-1000);
    --docs-warning: var(--yellow-1000);
    --docs-error: var(--red-1000);
}

/* ====================================
   TYPOGRAPHY CLASSES PARA DOCS
   ==================================== */

/* Clases específicas para títulos en docs - NO selectores globales */
.docs-layout .docs-title-xl {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--docs-text);
    margin-bottom: 1.5rem;
}

.docs-layout .docs-title-lg {
    font-family: var(--font-family);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--docs-text);
    margin-bottom: 1.5rem;
}

.docs-layout .docs-title-md {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--docs-text);
    margin-bottom: 1rem;
}

.docs-layout .docs-title-sm {
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--docs-text);
    margin-bottom: 0.75rem;
}

.docs-layout .docs-title-xs {
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--docs-text);
    margin-bottom: 0.75rem;
}

.docs-layout .docs-title-xxs {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--docs-text);
    margin-bottom: 0.5rem;
}

/* Clases para texto en docs */
.docs-layout .docs-text {
    margin-bottom: 1rem;
    color: var(--docs-text-light);
    line-height: 1.6;
    font-family: var(--font-family);
}

.docs-layout .docs-text-muted {
    color: var(--docs-text-muted);
}

.docs-layout .docs-text-center {
    text-align: center;
}

/* Clases para enlaces específicos en docs */
.docs-layout .docs-link {
    color: var(--docs-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-layout .docs-link:hover {
    color: var(--docs-secondary);
    text-decoration: underline;
    .icon {
        filter: brightness(0) saturate(100%) invert(11%) sepia(41%)
            saturate(7136%) hue-rotate(227deg) brightness(86%) contrast(112%) !important;
    }
}

/* Clases para listas específicas en docs */
.docs-layout .docs-list {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-layout .docs-list-item {
    margin-bottom: 0.25rem;
    color: var(--docs-text-light);
}

.docs-layout .docs-code-block {
    background-color: var(--docs-bg-dark);
    color: var(--docs-bg);
    padding: 1rem;
    border-radius: var(--docs-radius-lg);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.docs-layout .docs-code-block .docs-code-inline {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
}

/* ====================================
   RESET ESPECÍFICO PARA DOCS - EVITAR CONFLICTOS
   ==================================== */

/* Aplicar base styles específicos para docs */
.docs-layout {
    font-family: var(--font-family) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--docs-text) !important;
    background: var(--docs-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

/* Box sizing para todo en docs */
.docs-layout,
.docs-layout *,
.docs-layout *::before,
.docs-layout *::after {
    box-sizing: border-box !important;
}

/* Container override específico y agresivo */
.docs-layout .container {
    all: unset !important;
    display: block !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* ====================================
   LAYOUT PRINCIPAL
   ==================================== */

/* Reset específico para documentación */
.docs-layout {
    min-height: 100vh;
    background: var(--docs-bg);
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--docs-text);
}

.docs-layout *,
.docs-layout *::before,
.docs-layout *::after {
    box-sizing: border-box;
}

/* Override container de app.css para docs */
.docs-layout .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: block;
    flex-direction: unset;
    flex-wrap: unset;
    align-content: unset;
    justify-content: unset;
    align-items: unset;
}

/* Override específico para contenedor de documentación */
.docs-header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    display: block !important;
}

/* Header de Documentación */
.docs-header {
    background: var(--docs-bg);
    border-bottom: 1px solid var(--docs-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.docs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.docs-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--docs-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.docs-layout .brand-link:hover {
    color: var(--docs-primary);
    text-decoration: none;
    .icon {
        filter: brightness(0) saturate(100%) invert(11%) sepia(41%)
            saturate(7136%) hue-rotate(227deg) brightness(86%) contrast(112%) !important;
    }
}

.brand-separator {
    color: var(--docs-text-muted);
    font-weight: 300;
}

.brand-docs {
    color: var(--docs-primary);
    font-weight: 600;
}

.docs-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Main Layout */
.docs-main {
    display: flex;
    min-height: calc(100vh - 73px); /* Altura del header */
}

/* ====================================
   SIDEBAR NAVIGATION
   ==================================== */

.docs-sidebar {
    width: var(--docs-sidebar-width);
    background: var(--docs-bg-alt);
    border-right: 1px solid var(--docs-border);
    overflow-y: auto;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
}

.docs-navigation {
    padding: 1.5rem 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--docs-text-light);
    text-decoration: none;
    border-radius: var(--docs-radius);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.docs-layout .nav-link:hover {
    background: var(--docs-bg-alt);
    color: var(--docs-primary);
    text-decoration: none;
    .icon {
        filter: brightness(0) saturate(100%) invert(11%) sepia(41%)
            saturate(7136%) hue-rotate(227deg) brightness(86%) contrast(112%) !important;
    }
}

.docs-layout .nav-link.active {
    background: var(--docs-primary);
    color: white;
    font-weight: 500;
}

.nav-link-external {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-sublist {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    border-left: 2px solid var(--docs-border-light);
    margin-left: 0.75rem;
}

.nav-sublink {
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--docs-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.docs-layout .nav-sublink:hover {
    color: var(--docs-primary);
    background: var(--docs-bg-alt);
    text-decoration: none;
    .icon {
        filter: brightness(0) saturate(100%) invert(11%) sepia(41%)
            saturate(7136%) hue-rotate(227deg) brightness(86%) contrast(112%) !important;
    }
}

.docs-layout .nav-sublink.active {
    color: var(--docs-primary);
    font-weight: 500;
    background: white;
    border-left: 2px solid var(--docs-primary);
    margin-left: -2px;
}

/* ====================================
   CONTENT AREA
   ==================================== */

.docs-content {
    flex: 1;
    max-width: calc(100vw - var(--docs-sidebar-width));
}

.docs-page {
    padding: 2rem;
    max-width: 60vw;
    margin: 0 auto;
}

/* ====================================
   HOMEPAGE ESPECÍFICO
   ==================================== */

.docs-home {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.docs-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--docs-border);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--docs-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--docs-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Demo Interactivo */
.hero-demo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-container {
    background: white;
    border-radius: var(--docs-radius-lg);
    box-shadow: var(--docs-shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--docs-bg-alt);
    border-bottom: 1px solid var(--docs-border);
}

.demo-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-badge {
    background: var(--docs-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.demo-content {
    padding: 2rem 1.25rem;
}

.demo-placeholder {
    text-align: center;
    color: var(--docs-text-muted);
    padding: 2rem 0;
}

.demo-placeholder .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.demo-mock-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mock-image,
.mock-upload {
    aspect-ratio: 1;
    background: var(--docs-bg-alt);
    border-radius: var(--docs-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.mock-image.active {
    background: var(--docs-primary);
    color: white;
}

.mock-upload {
    border: 2px dashed var(--docs-border);
    font-size: 1rem;
    color: var(--docs-text-muted);
}

.demo-loaded {
    animation: fadeIn 0.3s ease;
}

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

/* Quick Navigation */
.docs-quick-nav {
    padding: 3rem 2rem;
}

.docs-quick-nav h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--docs-text);
    margin-bottom: 2rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-nav-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--docs-text);
    transition: all 0.2s ease;
    position: relative;
}

.quick-nav-card:hover {
    border-color: var(--docs-primary);
    box-shadow: var(--docs-shadow-lg);
    transform: translateY(-2px);
}

.quick-nav-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-nav-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--docs-text);
}

.quick-nav-card p {
    color: var(--docs-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--docs-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Features Section */
.docs-features {
    padding: 3rem 2rem;
    background: var(--docs-bg-alt);
}

.docs-features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--docs-text);
    margin-bottom: 2rem;
}

.docs-content-grid .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-content-grid .feature-card {
    background: white;
    border-radius: var(--docs-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--docs-shadow);
    border: 1px solid var(--docs-border);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-text);
    margin: 0;
}

.feature-card p {
    color: var(--docs-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.feature-list li {
    padding: 0.25rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.25rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--docs-success);
    font-weight: 600;
}

.feature-link {
    color: var(--docs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Technology Stack */
.docs-tech-stack {
    padding: 3rem 2rem;
}

.docs-tech-stack h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--docs-text);
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 1rem;
}

.tech-items {
    display: grid;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
}

.tech-logo {
    font-size: 1.5rem;
}

.tech-item strong {
    display: block;
    color: var(--docs-text);
    font-weight: 600;
}

.tech-item small {
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

/* Call to Action */
.docs-cta {
    padding: 3rem 2rem;
    background: var(--docs-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   CONTENT PAGES STYLES
   ==================================== */

.docs-content-page {
    max-width: 60dvw;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--docs-text-muted);
}

.breadcrumb a {
    color: var(--docs-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--docs-text-muted);
}

.breadcrumb-current {
    color: var(--docs-text);
    font-weight: 500;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--docs-border);
}

.page-header .docs-title-xl {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--docs-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--docs-text-light);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section .docs-title-lg {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--docs-border-light);
}

.content-section .docs-title-md {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 1rem;
}

.content-section .docs-title-sm {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-text);
    margin-bottom: 0;
}

.content-section .docs-text {
    color: var(--docs-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Estilos consejos e información */

.info-section {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--docs-primary);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.info-section h4 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-text);
}

.info-section p {
    margin: 0;
    color: var(--docs-text-light);
}

.info-content {
    color: var(--docs-text-light);
    line-height: 1.6;
}

.info-text {
    color: var(--docs-text-light);
    line-height: 1.6;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-text);
}

/* Estilos comparaciones */

.comparison {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-column {
    flex: 1;
}

.comparison-column h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--docs-text);
}

.comparison-column .code-block {
    background: var(--docs-bg-dark);
    border-radius: var(--docs-radius);
    padding: 1rem;
}

/* Presets styles */

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.preset-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.preset-header {
    display: flex;
    align-items: center;
    justify-content: start;
    .docs-title-sm {
        margin-bottom: 0;
    }
}

.preset-description {
    margin: 0.5rem 0;
}

.preset-specs {
    margin: 0.5rem 0;
}

.preset-example {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preset-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-wrap: wrap;
}

.preset-card {
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1rem;
    box-shadow: var(--docs-shadow);
    box-sizing: content-box;
}

/* Estilos process step */

.custom-preset-process {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.process-step .step-number {
    margin-right: 0.5rem;
}

/* Quick Reference Card */
.quick-reference-card {
    background: linear-gradient(
        135deg,
        var(--docs-primary) 0%,
        var(--docs-primary-light) 100%
    );
    color: white;
    border-radius: var(--docs-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.ref-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ref-icon {
    font-size: 1.5rem;
}

.ref-header .docs-title-md {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.ref-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ref-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ref-item strong {
    opacity: 0.9;
    font-size: 0.875rem;
}

.ref-item .docs-code-inline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Code Blocks */
.code-block {
    background: var(--docs-bg-dark);
    border-radius: var(--docs-radius);
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.code-block.small {
    font-size: 0.875rem;
}

.code-header {
    background: #374151;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #d1d5db;
}

.code-lang {
    font-weight: 500;
}

.copy-code-btn {
    background: whitesmoke;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
    color: var(--docs-text-light);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn {
    background: transparent;
    color: #d1d5db;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    .icon {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%)
            saturate(7470%) hue-rotate(136deg) brightness(98%) contrast(95%);
    }
}

.copy-btn:hover {
    background: #6b7280;
    color: white;
    .icon {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%)
            saturate(7500%) hue-rotate(136deg) brightness(105%) contrast(105%) !important;
    }
}

.copy-btn.copied {
    background: var(--docs-success);
    border-color: var(--docs-success);
    color: white;
}

.code-block .docs-code-block {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    background: transparent;
}

/* Tabs */
.tabs-container {
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    overflow: hidden;
    margin: 1rem 0;
}

.tabs-header {
    display: flex;
    background: var(--docs-bg-alt);
    border-bottom: 1px solid var(--docs-border);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-right: 1px solid var(--docs-border);
    transition: all 0.15s ease;
    color: var(--docs-text-light);
    font-weight: 500;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: white;
    color: var(--docs-primary);
    .icon {
        filter: brightness(0) saturate(100%) invert(13%) sepia(70%)
            saturate(3003%) hue-rotate(212deg) brightness(86%) contrast(129%) !important;
    }
}

.tab-btn.active {
    background: var(--docs-primary);
    color: white;
}

.tab-content {
    display: none;
    padding: 1rem;
}

.tab-content.active {
    display: block;
}

/* Component Overview */
.component-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.component-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--docs-shadow);
}

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

.component-icon {
    font-size: 1.5rem;
}

.component-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.component-tech {
    background: var(--docs-bg-alt);
    color: var(--docs-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.component-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.component-features li {
    padding: 0.25rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--docs-bg-alt);
    border-radius: var(--docs-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.arch-layer {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
}

.arch-layer:last-child {
    margin-bottom: 0;
}

.arch-layer h4 {
    margin: 0 0 1rem 0;
    color: var(--docs-text);
    font-weight: 600;
}

.arch-components {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.arch-component {
    background: var(--docs-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.arch-arrow {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--docs-text-muted);
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.workflow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: var(--docs-primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-code-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.step-code {
    color: var(--docs-text);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
    display: inline-block;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.use-case-card:hover {
    border-color: var(--docs-primary);
    box-shadow: var(--docs-shadow-lg);
    transform: translateY(-2px);
}

.use-case-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.use-case-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--docs-text);
}

.use-case-card p {
    margin: 0 0 1rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

.use-case-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: var(--docs-bg-alt);
    color: var(--docs-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Endpoints Grid */
.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.endpoint-group {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.group-icon {
    font-size: 1.25rem;
}

.group-header .docs-title-sm {
    margin: 0;
    color: var(--docs-text);
}

.group-endpoints {
    margin-bottom: 1rem;
}

.endpoint-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--docs-border-light);
}

.endpoint-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.method {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
}

.method.get {
    background: #dcfce7;
    color: #166534;
}

.method.post {
    background: #dbeafe;
    color: #1e40af;
}

.method.put {
    background: #fef3c7;
    color: #92400e;
}

.method.delete {
    background: #fecaca;
    color: #991b1b;
}

.endpoint-item .docs-code-inline {
    background: var(--docs-bg-alt);
    color: var(--docs-text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.endpoint-item .docs-text {
    margin: 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
    flex: 1;
}

.group-link {
    color: var(--docs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.group-link:hover {
    text-decoration: underline;
}

.file-url {
    margin-bottom: 1rem;
}

/* Auth Flow */
.auth-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.flow-step {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.flow-step .step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--docs-primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.flow-step .step-content {
    margin-top: 1rem;
}

.flow-step h4 {
    margin: 0 0 0.5rem 0;
    color: var(--docs-text);
}

.flow-step p {
    margin: 0 0 1rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

/* Warning Box */
.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--docs-radius);
    padding: 1rem;
    margin: 2rem 0;
    display: flex;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.25rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.warning-content h4 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
}

.warning-content p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
}

/* Warning Box */
.danger-box {
    background: var(--red-200);
    border: 1px solid var(--red-1000);
    border-radius: var(--docs-radius);
    padding: 1rem;
    margin: 2rem 0;
    display: flex;
    gap: 0.75rem;
}

.danger-icon {
    font-size: 1.25rem;
    color: var(--red-1000);
    flex-shrink: 0;
}

.danger-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--red-800);
}

.danger-content p {
    margin: 0;
    color: var(--red-800);
    font-size: 0.875rem;
}

/* Status Codes */
.status-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.status-group {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
}

.status-group h4 {
    margin: 0 0 1rem 0;
    color: var(--docs-text);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--docs-bg-alt);
    border-radius: 0.375rem;
}

.status-item code {
    background: var(--docs-text);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
}

.success .status-item code {
    background: var(--docs-success);
}

.client-error .status-item code {
    background: var(--docs-warning);
}

.server-error .status-item code {
    background: var(--docs-error);
}

.status-item span {
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

/* Limits Grid */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.limit-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
    text-align: center;
}

.limit-card h4 {
    margin: 0 0 1rem 0;
    color: var(--docs-text);
    font-size: 1rem;
}

.limit-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--docs-primary);
    margin-bottom: 0.5rem;
}

.limit-card p {
    margin: 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

/* SDKs Grid */
.sdks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sdk-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
}

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

.sdk-icon {
    font-size: 1.5rem;
}

.sdk-header h4 {
    margin: 0;
    color: var(--docs-text);
    flex: 1;
    margin-left: 0.75rem;
}

.sdk-version {
    background: var(--docs-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.sdk-card[data-status="planned"] .sdk-version {
    background: var(--docs-text-muted);
}

.sdk-card p {
    margin: 0 0 1rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

.sdk-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--docs-bg-alt);
    color: var(--docs-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.sdk-link {
    color: var(--docs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.sdk-link:hover {
    text-decoration: underline;
}

.sdk-link.disabled {
    color: var(--docs-text-muted);
    cursor: not-allowed;
}

/* Next Steps */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--docs-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.next-step-card:hover {
    border-color: var(--docs-primary);
    box-shadow: var(--docs-shadow-lg);
    transform: translateY(-2px);
}

.next-step-card.primary {
    background: var(--docs-primary);
    color: white !important;
    border-color: var(--docs-primary);
    * {
        color: white !important;
    }
}

.next-step-card.primary:hover {
    background: var(--docs-primary-light);
}

.step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.next-step-card .step-content {
    flex: 1;
}

.next-step-card h4 {
    margin: 0 0 0.25rem 0;
    color: inherit;
}

.next-step-card p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.step-arrow {
    font-size: 1.25rem;
    opacity: 0.7;
}

/* Installation specific */
.quick-setup-alert {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: var(--docs-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
}

.alert-icon {
    font-size: 1.25rem;
    color: #0ea5e9;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    color: #0c4a6e;
}

.alert-content p {
    margin: 0;
    color: #0c4a6e;
    font-size: 0.875rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.requirement-card {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
}

.requirement-card h4 {
    margin: 0 0 1rem 0;
    color: var(--docs-text);
}

.requirement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-list li {
    padding: 0.5rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--docs-border-light);
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list strong {
    color: var(--docs-text);
}

.installation-steps {
    margin: 2rem 0;
}

.step-item {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    overflow: hidden;
}

.step-header {
    background: var(--docs-bg-alt);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--docs-border);
}

.step-item .step-number {
    background: var(--docs-primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-header h4 {
    margin: 0;
    color: var(--docs-text);
}

.step-item .step-content {
    padding: 1.5rem;
}

.component-install-options {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.install-option {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    overflow: hidden;
}

.option-header {
    background: var(--docs-bg-alt);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--docs-border);
}

.option-icon {
    font-size: 1.5rem;
}

.option-header h4 {
    margin: 0;
    color: var(--docs-text);
    flex: 1;
    margin-left: 0.75rem;
}

.option-badge {
    background: var(--docs-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.option-content {
    padding: 1.5rem;
}

.verification-checklist {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.check-item {
    background: white;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.check-icon {
    font-size: 1.5rem;
    color: var(--docs-success);
    flex-shrink: 0;
}

.check-content {
    flex: 1;
}

.check-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--docs-text);
}

.check-content p {
    margin: 0 0 0.75rem 0;
    color: var(--docs-text-light);
    font-size: 0.875rem;
}

.check-link {
    color: var(--docs-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.check-link:hover {
    text-decoration: underline;
}

/* ====================================
   BOTONES ESPECÍFICOS DOCS
   ==================================== */

/* Botones específicos para documentación que no entren en conflicto */
.docs-layout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--docs-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.875rem;
    line-height: 1.4;
}

.docs-layout .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.docs-layout .btn:focus {
    outline: 2px solid var(--docs-primary);
    outline-offset: 2px;
}

.docs-layout .btn-primary {
    background: var(--docs-primary);
    color: white;
    border-color: var(--docs-primary);
}

.docs-layout .btn-primary:hover {
    background: var(--docs-primary-light);
    border-color: var(--docs-primary-light);
    color: white;
}

.docs-layout .btn-outline {
    background: transparent;
    color: var(--docs-primary);
    border-color: var(--docs-border);
}

.docs-layout .btn-outline:hover {
    background: var(--docs-primary);
    color: white;
    border-color: var(--docs-primary);
    .icon {
        filter: brightness(0) saturate(100%) invert(86%) sepia(100%)
            saturate(0%) hue-rotate(336deg) brightness(103%) contrast(100%) !important;
    }
}

.docs-layout .btn-ghost {
    background: transparent;
    color: var(--docs-text-light);
    border-color: transparent;
}

.docs-layout .btn-ghost:hover {
    background: var(--docs-bg-alt);
    color: var(--docs-text);
    .icon {
        filter: brightness(0) saturate(100%) invert(14%) sepia(3%) saturate(7%)
            hue-rotate(329deg) brightness(94%) contrast(97%) !important;
    }
}

/* Iconos en botones */
.docs-layout .btn .icon {
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .component-overview,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .auth-flow,
    .endpoints-grid,
    .use-cases-grid,
    .sdks-grid,
    .next-steps {
        grid-template-columns: 1fr;
    }

    .ref-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .docs-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-demo {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --docs-sidebar-width: 100%;
    }

    .docs-main {
        flex-direction: column;
    }

    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--docs-border);
    }

    .docs-content {
        max-width: 100%;
    }

    .docs-page {
        padding: 1rem;
    }

    .docs-hero {
        padding: 2rem 1rem;
    }

    .docs-quick-nav,
    .docs-features,
    .docs-tech-stack,
    .docs-cta {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .quick-nav-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
