 @page {
            size: A4;
            margin: 15mm;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #2c3e50;
            background: white;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Asap Condensed', 'Arial Narrow', sans-serif;
        }
        
        /* Irina Ichim Brand Colors */
        :root {
            /* Colores principales */
            --primary: #ea4f33;
            --secondary: #4737bb;
            --accent: #6c63ff;
            --dark: #2a2170;
            --light: #fdfdfd;
            --warning: #f59e0b;
            --success: #10b981;
            --danger: #ef4444;
            
            /* Sombras */
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.15);
            --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
            --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
            --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
            
            /* Border radius */
            --radius-sm: 0.5rem;
            --radius-md: 0.8rem;
            --radius-lg: 1rem;
            --radius-xl: 1.5rem;
            
            /* Spacing */
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 1.5rem;
            --spacing-lg: 2rem;
            --spacing-xl: 3rem;
            
            /* Transiciones */
            --transition-fast: 0.3s ease;
            --transition-smooth: 0.6s cubic-bezier(0.33, 0.0, 0.22, 1);
        }
        
        /* Cover Page */
        .cover {
            height: 100vh;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px;
            page-break-after: always;
        }
        
        .cover h1 {
            font-size: 3.5em;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .cover .subtitle {
            font-size: 1.8em;
            margin-bottom: 40px;
            opacity: 0.95;
        }
        
        .cover .logo {
            font-size: 5em;
            margin-bottom: 30px;
        }
        
        .cover .author {
            margin-top: 60px;
            font-size: 1.2em;
            opacity: 0.9;
        }
        
        /* Table of Contents */
        .toc {
            page-break-after: always;
            padding: 40px;
        }
        
        .toc h2 {
            color: var(--primary);
            font-size: 2.5em;
            margin-bottom: 30px;
            border-bottom: 3px solid var(--secondary);
            padding-bottom: 10px;
        }
        
        .toc-item {
            padding: 15px 20px;
            margin: 10px 0;
            background: var(--light);
            border-left: 4px solid var(--primary);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        .toc-item:hover {
            background: #e0e7ff;
            transform: translateX(5px);
        }
        
        .toc-number {
            font-size: 1.5em;
            font-weight: bold;
            color: var(--secondary);
            margin-right: 15px;
        }
        
        /* Content Sections */
        .section {
            padding: 40px;
            page-break-before: always;
        }
        
        .section h2 {
            color: var(--primary);
            font-size: 2.2em;
            margin-bottom: 20px;
            border-bottom: 3px solid var(--secondary);
            padding-bottom: 10px;
        }
        
        .section h3 {
            color: var(--dark);
            font-size: 1.6em;
            margin: 30px 0 15px 0;
            padding-left: 15px;
            border-left: 4px solid var(--accent);
        }
        
        .section h4 {
            color: var(--primary);
            font-size: 1.3em;
            margin: 20px 0 10px 0;
        }
        
        /* Info Boxes */
        .info-box {
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            border-left: 5px solid;
        }
        
        .info-box.tip {
            background: #f0fdf4;
            border-color: var(--success);
        }
        
        .info-box.warning {
            background: #fffbeb;
            border-color: var(--warning);
        }
        
        .info-box.danger {
            background: #fef2f2;
            border-color: var(--danger);
        }
        
        .info-box.info {
            background: #eff6ff;
            border-color: var(--accent);
        }
        
        .info-box-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Code Blocks */
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
            border-left: 4px solid var(--accent);
        }
        
        .code-block code {
            font-size: 0.9em;
            line-height: 1.5;
        }
        
        .code-comment {
            color: #94a3b8;
        }
        
        /* Tables */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        th {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: 600;
        }
        
        td {
            padding: 12px 15px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        tr:nth-child(even) {
            background: var(--light);
        }
        
        tr:hover {
            background: #e0e7ff;
        }
        
        /* Diagrams */
        .diagram {
            background: var(--light);
            padding: 30px;
            border-radius: 12px;
            margin: 30px 0;
            text-align: center;
            border: 2px solid var(--primary);
        }
        
        .diagram-title {
            font-size: 1.3em;
            color: var(--primary);
            font-weight: bold;
            margin-bottom: 20px;
        }
        
        .flow-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .flow-item {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            min-width: 150px;
            border: 2px solid var(--accent);
        }
        
        .flow-arrow {
            font-size: 2em;
            color: var(--secondary);
        }
        
        /* Lists */
        ul, ol {
            margin: 15px 0 15px 30px;
        }
        
        li {
            margin: 8px 0;
            line-height: 1.6;
        }
        
        /* Checklist */
        .checklist {
            background: var(--light);
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .checklist-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 10px 0;
            padding: 10px;
            background: white;
            border-radius: 5px;
        }
        
        .checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--primary);
            border-radius: 4px;
            flex-shrink: 0;
        }
        
        /* Antipatterns */
        .antipattern {
            background: #fef2f2;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            border-left: 5px solid var(--danger);
        }
        
        .antipattern-title {
            font-size: 1.3em;
            color: var(--danger);
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .antipattern-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 15px;
        }
        
        .antipattern-item {
            background: white;
            padding: 15px;
            border-radius: 8px;
        }
        
        .antipattern-item strong {
            color: var(--danger);
        }
        
        /* Command Table */
        .command-table {
            margin: 20px 0;
        }
        
        .command-row {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 15px;
            margin: 10px 0;
            background: var(--light);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--accent);
        }
        
        .command {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            color: var(--dark);
            background: white;
            padding: 10px;
            border-radius: 5px;
        }
        
        /* Highlight Box */
        .highlight {
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border: 2px solid var(--accent);
            padding: 25px;
            margin: 30px 0;
            border-radius: 12px;
            font-size: 1.1em;
            text-align: center;
            font-weight: 500;
        }
        
        /* Footer */
        .footer {
            text-align: center;
            padding: 20px;
            color: #64748b;
            font-size: 0.9em;
            border-top: 2px solid var(--light);
            margin-top: 40px;
        }
        
        /* Visual Vocabulary */
        .vocab-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 20px 0;
        }
        
        .vocab-card {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-top: 4px solid var(--primary);
        }
        
        .vocab-term {
            font-size: 1.3em;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        .vocab-icon {
            font-size: 2em;
            margin-bottom: 10px;
        }
        
        /* Network Diagram */
        .network-diagram {
            background: var(--light);
            padding: 30px;
            border-radius: 12px;
            margin: 30px 0;
        }
        
        .container-box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin: 15px;
            border: 2px solid var(--primary);
            text-align: center;
            display: inline-block;
            min-width: 200px;
        }
        
        .container-name {
            font-weight: bold;
            color: var(--primary);
            font-size: 1.2em;
        }
        
        .container-port {
            color: var(--secondary);
            font-family: monospace;
        }

        /* Botón Volver Arriba */
        .back-to-top {
            position: fixed;
            bottom: 40px;
            right: 40px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 2em;
            font-weight: bold;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        }

        .back-to-top:active {
            transform: translateY(-2px);
        }

        @media print {
            .section {
                page-break-inside: avoid;
            }

            .info-box, .diagram, .code-block {
                page-break-inside: avoid;
            }

            .back-to-top {
                display: none;
            }
        }