
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            padding: 30px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 3px solid #667eea;
        }
        
        h1 {
            color: #2d3748;
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .subtitle {
            color: #718096;
            font-size: 16px;
            margin-bottom: 15px;
        }
        
        .case-info {
            background: #f7fafc;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            margin-top: 10px;
        }
        
        .case-info p {
            color: #4a5568;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .diagram-wrapper {
            overflow-x: auto;
            margin: 20px 0;
            background: #fafafa;
            border-radius: 10px;
            padding: 20px;
        }
        
        svg {
            display: block;
            margin: 0 auto;
        }
        
        .legend {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            margin: 20px 0;
            padding: 20px;
            background: #f7fafc;
            border-radius: 10px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #4a5568;
        }
        
        .legend-shape {
            width: 60px;
            height: 30px;
        }
        
        .footer {
            margin-top: 30px;
            padding: 20px;
            background: #edf2f7;
            border-radius: 10px;
        }
        
        .footer h3 {
            color: #2d3748;
            font-size: 18px;
            margin-bottom: 15px;
        }
        
        .footer ul {
            list-style: none;
            padding-left: 0;
        }
        
        .footer li {
            color: #4a5568;
            font-size: 13px;
            line-height: 1.8;
            padding: 5px 0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .footer li:last-child {
            border-bottom: none;
        }
        
        /* Estilos para elementos del SVG */
        .node-text {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 11px;
            fill: #2d3748;
        }
        
        .node-title {
            font-weight: bold;
            font-size: 12px;
        }
        
        .arrow-text {
            font-size: 10px;
            fill: #4a5568;
            font-style: italic;
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            h1 {
                font-size: 22px;
            }
            
            .legend {
                flex-direction: column;
                align-items: flex-start;
            }
        }
    